1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69. 4# 5# 6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 7# 8# 9# This configure script is free software; the Free Software Foundation 10# gives unlimited permission to copy, distribute and modify it. 11## -------------------- ## 12## M4sh Initialization. ## 13## -------------------- ## 14 15# Be more Bourne compatible 16DUALCASE=1; export DUALCASE # for MKS sh 17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 18 emulate sh 19 NULLCMD=: 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 21 # is contrary to our usage. Disable this feature. 22 alias -g '${1+"$@"}'='"$@"' 23 setopt NO_GLOB_SUBST 24else 25 case `(set -o) 2>/dev/null` in #( 26 *posix*) : 27 set -o posix ;; #( 28 *) : 29 ;; 30esac 31fi 32 33 34as_nl=' 35' 36export as_nl 37# Printing a long string crashes Solaris 7 /usr/bin/printf. 38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 41# Prefer a ksh shell builtin over an external printf program on Solaris, 42# but without wasting forks for bash or zsh. 43if test -z "$BASH_VERSION$ZSH_VERSION" \ 44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 45 as_echo='print -r --' 46 as_echo_n='print -rn --' 47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 48 as_echo='printf %s\n' 49 as_echo_n='printf %s' 50else 51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 53 as_echo_n='/usr/ucb/echo -n' 54 else 55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 56 as_echo_n_body='eval 57 arg=$1; 58 case $arg in #( 59 *"$as_nl"*) 60 expr "X$arg" : "X\\(.*\\)$as_nl"; 61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 62 esac; 63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 64 ' 65 export as_echo_n_body 66 as_echo_n='sh -c $as_echo_n_body as_echo' 67 fi 68 export as_echo_body 69 as_echo='sh -c $as_echo_body as_echo' 70fi 71 72# The user is always right. 73if test "${PATH_SEPARATOR+set}" != set; then 74 PATH_SEPARATOR=: 75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 77 PATH_SEPARATOR=';' 78 } 79fi 80 81 82# IFS 83# We need space, tab and new line, in precisely that order. Quoting is 84# there to prevent editors from complaining about space-tab. 85# (If _AS_PATH_WALK were called with IFS unset, it would disable word 86# splitting by setting IFS to empty value.) 87IFS=" "" $as_nl" 88 89# Find who we are. Look in the path if we contain no directory separator. 90as_myself= 91case $0 in #(( 92 *[\\/]* ) as_myself=$0 ;; 93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 94for as_dir in $PATH 95do 96 IFS=$as_save_IFS 97 test -z "$as_dir" && as_dir=. 98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 99 done 100IFS=$as_save_IFS 101 102 ;; 103esac 104# We did not find ourselves, most probably we were run as `sh COMMAND' 105# in which case we are not to be found in the path. 106if test "x$as_myself" = x; then 107 as_myself=$0 108fi 109if test ! -f "$as_myself"; then 110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 111 exit 1 112fi 113 114# Unset variables that we do not need and which cause bugs (e.g. in 115# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 116# suppresses any "Segmentation fault" message there. '((' could 117# trigger a bug in pdksh 5.2.14. 118for as_var in BASH_ENV ENV MAIL MAILPATH 119do eval test x\${$as_var+set} = xset \ 120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 121done 122PS1='$ ' 123PS2='> ' 124PS4='+ ' 125 126# NLS nuisances. 127LC_ALL=C 128export LC_ALL 129LANGUAGE=C 130export LANGUAGE 131 132# CDPATH. 133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 134 135# Use a proper internal environment variable to ensure we don't fall 136 # into an infinite loop, continuously re-executing ourselves. 137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 138 _as_can_reexec=no; export _as_can_reexec; 139 # We cannot yet assume a decent shell, so we have to provide a 140# neutralization value for shells without unset; and this also 141# works around shells that cannot unset nonexistent variables. 142# Preserve -v and -x to the replacement shell. 143BASH_ENV=/dev/null 144ENV=/dev/null 145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 146case $- in # (((( 147 *v*x* | *x*v* ) as_opts=-vx ;; 148 *v* ) as_opts=-v ;; 149 *x* ) as_opts=-x ;; 150 * ) as_opts= ;; 151esac 152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 153# Admittedly, this is quite paranoid, since all the known shells bail 154# out after a failed `exec'. 155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 156as_fn_exit 255 157 fi 158 # We don't want this to propagate to other subprocesses. 159 { _as_can_reexec=; unset _as_can_reexec;} 160if test "x$CONFIG_SHELL" = x; then 161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 162 emulate sh 163 NULLCMD=: 164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 165 # is contrary to our usage. Disable this feature. 166 alias -g '\${1+\"\$@\"}'='\"\$@\"' 167 setopt NO_GLOB_SUBST 168else 169 case \`(set -o) 2>/dev/null\` in #( 170 *posix*) : 171 set -o posix ;; #( 172 *) : 173 ;; 174esac 175fi 176" 177 as_required="as_fn_return () { (exit \$1); } 178as_fn_success () { as_fn_return 0; } 179as_fn_failure () { as_fn_return 1; } 180as_fn_ret_success () { return 0; } 181as_fn_ret_failure () { return 1; } 182 183exitcode=0 184as_fn_success || { exitcode=1; echo as_fn_success failed.; } 185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 189 190else 191 exitcode=1; echo positional parameters were not saved. 192fi 193test x\$exitcode = x0 || exit 1 194test -x / || exit 1" 195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 199test \$(( 1 + 1 )) = 2 || exit 1" 200 if (eval "$as_required") 2>/dev/null; then : 201 as_have_required=yes 202else 203 as_have_required=no 204fi 205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 206 207else 208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 209as_found=false 210for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 211do 212 IFS=$as_save_IFS 213 test -z "$as_dir" && as_dir=. 214 as_found=: 215 case $as_dir in #( 216 /*) 217 for as_base in sh bash ksh sh5; do 218 # Try only shells that exist, to save several forks. 219 as_shell=$as_dir/$as_base 220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 222 CONFIG_SHELL=$as_shell as_have_required=yes 223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 224 break 2 225fi 226fi 227 done;; 228 esac 229 as_found=false 230done 231$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 233 CONFIG_SHELL=$SHELL as_have_required=yes 234fi; } 235IFS=$as_save_IFS 236 237 238 if test "x$CONFIG_SHELL" != x; then : 239 export CONFIG_SHELL 240 # We cannot yet assume a decent shell, so we have to provide a 241# neutralization value for shells without unset; and this also 242# works around shells that cannot unset nonexistent variables. 243# Preserve -v and -x to the replacement shell. 244BASH_ENV=/dev/null 245ENV=/dev/null 246(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 247case $- in # (((( 248 *v*x* | *x*v* ) as_opts=-vx ;; 249 *v* ) as_opts=-v ;; 250 *x* ) as_opts=-x ;; 251 * ) as_opts= ;; 252esac 253exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 254# Admittedly, this is quite paranoid, since all the known shells bail 255# out after a failed `exec'. 256$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 257exit 255 258fi 259 260 if test x$as_have_required = xno; then : 261 $as_echo "$0: This script requires a shell more modern than all" 262 $as_echo "$0: the shells that I found on your system." 263 if test x${ZSH_VERSION+set} = xset ; then 264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 265 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 266 else 267 $as_echo "$0: Please tell [email protected] about your system, 268$0: including any error possibly output before this 269$0: message. Then install a modern shell, or manually run 270$0: the script under such a shell if you do have one." 271 fi 272 exit 1 273fi 274fi 275fi 276SHELL=${CONFIG_SHELL-/bin/sh} 277export SHELL 278# Unset more variables known to interfere with behavior of common tools. 279CLICOLOR_FORCE= GREP_OPTIONS= 280unset CLICOLOR_FORCE GREP_OPTIONS 281 282## --------------------- ## 283## M4sh Shell Functions. ## 284## --------------------- ## 285# as_fn_unset VAR 286# --------------- 287# Portably unset VAR. 288as_fn_unset () 289{ 290 { eval $1=; unset $1;} 291} 292as_unset=as_fn_unset 293 294# as_fn_set_status STATUS 295# ----------------------- 296# Set $? to STATUS, without forking. 297as_fn_set_status () 298{ 299 return $1 300} # as_fn_set_status 301 302# as_fn_exit STATUS 303# ----------------- 304# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 305as_fn_exit () 306{ 307 set +e 308 as_fn_set_status $1 309 exit $1 310} # as_fn_exit 311 312# as_fn_mkdir_p 313# ------------- 314# Create "$as_dir" as a directory, including parents if necessary. 315as_fn_mkdir_p () 316{ 317 318 case $as_dir in #( 319 -*) as_dir=./$as_dir;; 320 esac 321 test -d "$as_dir" || eval $as_mkdir_p || { 322 as_dirs= 323 while :; do 324 case $as_dir in #( 325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 326 *) as_qdir=$as_dir;; 327 esac 328 as_dirs="'$as_qdir' $as_dirs" 329 as_dir=`$as_dirname -- "$as_dir" || 330$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 331 X"$as_dir" : 'X\(//\)[^/]' \| \ 332 X"$as_dir" : 'X\(//\)$' \| \ 333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 334$as_echo X"$as_dir" | 335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 336 s//\1/ 337 q 338 } 339 /^X\(\/\/\)[^/].*/{ 340 s//\1/ 341 q 342 } 343 /^X\(\/\/\)$/{ 344 s//\1/ 345 q 346 } 347 /^X\(\/\).*/{ 348 s//\1/ 349 q 350 } 351 s/.*/./; q'` 352 test -d "$as_dir" && break 353 done 354 test -z "$as_dirs" || eval "mkdir $as_dirs" 355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 356 357 358} # as_fn_mkdir_p 359 360# as_fn_executable_p FILE 361# ----------------------- 362# Test if FILE is an executable regular file. 363as_fn_executable_p () 364{ 365 test -f "$1" && test -x "$1" 366} # as_fn_executable_p 367# as_fn_append VAR VALUE 368# ---------------------- 369# Append the text in VALUE to the end of the definition contained in VAR. Take 370# advantage of any shell optimizations that allow amortized linear growth over 371# repeated appends, instead of the typical quadratic growth present in naive 372# implementations. 373if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 374 eval 'as_fn_append () 375 { 376 eval $1+=\$2 377 }' 378else 379 as_fn_append () 380 { 381 eval $1=\$$1\$2 382 } 383fi # as_fn_append 384 385# as_fn_arith ARG... 386# ------------------ 387# Perform arithmetic evaluation on the ARGs, and store the result in the 388# global $as_val. Take advantage of shells that can avoid forks. The arguments 389# must be portable across $(()) and expr. 390if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 391 eval 'as_fn_arith () 392 { 393 as_val=$(( $* )) 394 }' 395else 396 as_fn_arith () 397 { 398 as_val=`expr "$@" || test $? -eq 1` 399 } 400fi # as_fn_arith 401 402 403# as_fn_error STATUS ERROR [LINENO LOG_FD] 404# ---------------------------------------- 405# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 406# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 407# script with STATUS, using 1 if that was 0. 408as_fn_error () 409{ 410 as_status=$1; test $as_status -eq 0 && as_status=1 411 if test "$4"; then 412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 414 fi 415 $as_echo "$as_me: error: $2" >&2 416 as_fn_exit $as_status 417} # as_fn_error 418 419if expr a : '\(a\)' >/dev/null 2>&1 && 420 test "X`expr 00001 : '.*\(...\)'`" = X001; then 421 as_expr=expr 422else 423 as_expr=false 424fi 425 426if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 427 as_basename=basename 428else 429 as_basename=false 430fi 431 432if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 433 as_dirname=dirname 434else 435 as_dirname=false 436fi 437 438as_me=`$as_basename -- "$0" || 439$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 440 X"$0" : 'X\(//\)$' \| \ 441 X"$0" : 'X\(/\)' \| . 2>/dev/null || 442$as_echo X/"$0" | 443 sed '/^.*\/\([^/][^/]*\)\/*$/{ 444 s//\1/ 445 q 446 } 447 /^X\/\(\/\/\)$/{ 448 s//\1/ 449 q 450 } 451 /^X\/\(\/\).*/{ 452 s//\1/ 453 q 454 } 455 s/.*/./; q'` 456 457# Avoid depending upon Character Ranges. 458as_cr_letters='abcdefghijklmnopqrstuvwxyz' 459as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 460as_cr_Letters=$as_cr_letters$as_cr_LETTERS 461as_cr_digits='0123456789' 462as_cr_alnum=$as_cr_Letters$as_cr_digits 463 464 465 as_lineno_1=$LINENO as_lineno_1a=$LINENO 466 as_lineno_2=$LINENO as_lineno_2a=$LINENO 467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 470 sed -n ' 471 p 472 /[$]LINENO/= 473 ' <$as_myself | 474 sed ' 475 s/[$]LINENO.*/&-/ 476 t lineno 477 b 478 :lineno 479 N 480 :loop 481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 482 t loop 483 s/-\n.*// 484 ' >$as_me.lineno && 485 chmod +x "$as_me.lineno" || 486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 487 488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 489 # already done that, so ensure we don't try to do so again and fall 490 # in an infinite loop. This has already happened in practice. 491 _as_can_reexec=no; export _as_can_reexec 492 # Don't try to exec as it changes $[0], causing all sort of problems 493 # (the dirname of $[0] is not the place where we might find the 494 # original and so on. Autoconf is especially sensitive to this). 495 . "./$as_me.lineno" 496 # Exit status is that of the last command. 497 exit 498} 499 500ECHO_C= ECHO_N= ECHO_T= 501case `echo -n x` in #((((( 502-n*) 503 case `echo 'xy\c'` in 504 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 505 xy) ECHO_C='\c';; 506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 507 ECHO_T=' ';; 508 esac;; 509*) 510 ECHO_N='-n';; 511esac 512 513rm -f conf$$ conf$$.exe conf$$.file 514if test -d conf$$.dir; then 515 rm -f conf$$.dir/conf$$.file 516else 517 rm -f conf$$.dir 518 mkdir conf$$.dir 2>/dev/null 519fi 520if (echo >conf$$.file) 2>/dev/null; then 521 if ln -s conf$$.file conf$$ 2>/dev/null; then 522 as_ln_s='ln -s' 523 # ... but there are two gotchas: 524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 526 # In both cases, we have to default to `cp -pR'. 527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 528 as_ln_s='cp -pR' 529 elif ln conf$$.file conf$$ 2>/dev/null; then 530 as_ln_s=ln 531 else 532 as_ln_s='cp -pR' 533 fi 534else 535 as_ln_s='cp -pR' 536fi 537rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 538rmdir conf$$.dir 2>/dev/null 539 540if mkdir -p . 2>/dev/null; then 541 as_mkdir_p='mkdir -p "$as_dir"' 542else 543 test -d ./-p && rmdir ./-p 544 as_mkdir_p=false 545fi 546 547as_test_x='test -x' 548as_executable_p=as_fn_executable_p 549 550# Sed expression to map a string onto a valid CPP name. 551as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 552 553# Sed expression to map a string onto a valid variable name. 554as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 555 556 557test -n "$DJDIR" || exec 7<&0 </dev/null 558exec 6>&1 559 560# Name of the host. 561# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 562# so uname gets run too. 563ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 564 565# 566# Initializations. 567# 568ac_default_prefix=/usr/local 569ac_clean_files= 570ac_config_libobj_dir=. 571LIBOBJS= 572cross_compiling=no 573subdirs= 574MFLAGS= 575MAKEFLAGS= 576 577# Identity of this package. 578PACKAGE_NAME= 579PACKAGE_TARNAME= 580PACKAGE_VERSION= 581PACKAGE_STRING= 582PACKAGE_BUGREPORT= 583PACKAGE_URL= 584 585ac_unique_file="vim.h" 586# Factoring default headers for most tests. 587ac_includes_default="\ 588#include <stdio.h> 589#ifdef HAVE_SYS_TYPES_H 590# include <sys/types.h> 591#endif 592#ifdef HAVE_SYS_STAT_H 593# include <sys/stat.h> 594#endif 595#ifdef STDC_HEADERS 596# include <stdlib.h> 597# include <stddef.h> 598#else 599# ifdef HAVE_STDLIB_H 600# include <stdlib.h> 601# endif 602#endif 603#ifdef HAVE_STRING_H 604# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 605# include <memory.h> 606# endif 607# include <string.h> 608#endif 609#ifdef HAVE_STRINGS_H 610# include <strings.h> 611#endif 612#ifdef HAVE_INTTYPES_H 613# include <inttypes.h> 614#endif 615#ifdef HAVE_STDINT_H 616# include <stdint.h> 617#endif 618#ifdef HAVE_UNISTD_H 619# include <unistd.h> 620#endif" 621 622ac_subst_vars='LTLIBOBJS 623LIBOBJS 624LINK_AS_NEEDED 625DEPEND_CFLAGS_FILTER 626MAKEMO 627MSGFMT 628INSTALL_TOOL_LANGS 629INSTALL_LANGS 630TAGPRG 631HANGULIN_OBJ 632HANGULIN_SRC 633GUI_X_LIBS 634GUITYPE 635GUI_LIB_LOC 636GUI_INC_LOC 637NARROW_PROTO 638MOTIF_LIBNAME 639GRESOURCE_OBJ 640GRESOURCE_SRC 641UPDATE_DESKTOP_DATABASE 642GTK_UPDATE_ICON_CACHE 643GLIB_COMPILE_RESOURCES 644GNOME_INCLUDEDIR 645GNOME_LIBDIR 646GNOME_LIBS 647GTK_LIBNAME 648GTK_LIBS 649GTK_CFLAGS 650PKG_CONFIG 651X_LIB 652X_EXTRA_LIBS 653X_LIBS 654X_PRE_LIBS 655X_CFLAGS 656XMKMF 657xmkmfpath 658CHANNEL_OBJ 659CHANNEL_SRC 660NETBEANS_OBJ 661NETBEANS_SRC 662WORKSHOP_OBJ 663WORKSHOP_SRC 664RUBY_LIBS 665RUBY_CFLAGS 666RUBY_PRO 667RUBY_OBJ 668RUBY_SRC 669vi_cv_path_ruby 670TCL_LIBS 671TCL_CFLAGS 672TCL_PRO 673TCL_OBJ 674TCL_SRC 675vi_cv_path_tcl 676PYTHON3_OBJ 677PYTHON3_SRC 678PYTHON3_CFLAGS 679PYTHON3_LIBS 680PYTHON3_CONFDIR 681vi_cv_path_python3 682PYTHON_OBJ 683PYTHON_SRC 684PYTHON_CFLAGS 685PYTHON_GETPATH_CFLAGS 686PYTHON_LIBS 687PYTHON_CONFDIR 688vi_cv_path_python 689PERL_LIBS 690PERL_CFLAGS 691PERL_PRO 692PERL_OBJ 693PERL_SRC 694shrpenv 695vi_cv_perl_xsubpp 696vi_cv_perllib 697vi_cv_path_perl 698MZSCHEME_MZC 699MZSCHEME_EXTRA 700MZSCHEME_CFLAGS 701MZSCHEME_LIBS 702MZSCHEME_PRO 703MZSCHEME_OBJ 704MZSCHEME_SRC 705vi_cv_path_mzscheme 706LUA_CFLAGS 707LUA_LIBS 708LUA_PRO 709LUA_OBJ 710LUA_SRC 711vi_cv_path_plain_lua 712vi_cv_path_luajit 713vi_cv_path_lua 714compiledby 715dogvimdiff 716dovimdiff 717QUOTESED 718line_break 719VIEWNAME 720EXNAME 721VIMNAME 722OS_EXTRA_OBJ 723OS_EXTRA_SRC 724XCODE_SELECT 725CPP_MM 726CROSS_COMPILING 727STRIP 728AWK 729FGREP 730EGREP 731GREP 732CPP 733OBJEXT 734EXEEXT 735ac_ct_CC 736CPPFLAGS 737LDFLAGS 738CFLAGS 739CC 740SET_MAKE 741target_alias 742host_alias 743build_alias 744LIBS 745ECHO_T 746ECHO_N 747ECHO_C 748DEFS 749mandir 750localedir 751libdir 752psdir 753pdfdir 754dvidir 755htmldir 756infodir 757docdir 758oldincludedir 759includedir 760runstatedir 761localstatedir 762sharedstatedir 763sysconfdir 764datadir 765datarootdir 766libexecdir 767sbindir 768bindir 769program_transform_name 770prefix 771exec_prefix 772PACKAGE_URL 773PACKAGE_BUGREPORT 774PACKAGE_STRING 775PACKAGE_VERSION 776PACKAGE_TARNAME 777PACKAGE_NAME 778PATH_SEPARATOR 779SHELL' 780ac_subst_files='' 781ac_user_opts=' 782enable_option_checking 783enable_fail_if_missing 784enable_darwin 785with_mac_arch 786with_developer_dir 787with_local_dir 788with_vim_name 789with_ex_name 790with_view_name 791with_global_runtime 792with_modified_by 793enable_smack 794enable_selinux 795with_features 796with_compiledby 797enable_xsmp 798enable_xsmp_interact 799enable_luainterp 800with_lua_prefix 801with_luajit 802enable_mzschemeinterp 803with_plthome 804enable_perlinterp 805enable_pythoninterp 806with_python_config_dir 807enable_python3interp 808with_python3_config_dir 809enable_tclinterp 810with_tclsh 811enable_rubyinterp 812with_ruby_command 813enable_cscope 814enable_workshop 815enable_netbeans 816enable_channel 817enable_multibyte 818enable_hangulinput 819enable_xim 820enable_fontset 821with_x 822enable_gui 823enable_gtk2_check 824enable_gnome_check 825enable_gtk3_check 826enable_motif_check 827enable_athena_check 828enable_nextaw_check 829enable_carbon_check 830enable_gtktest 831with_gnome_includes 832with_gnome_libs 833with_gnome 834enable_icon_cache_update 835enable_desktop_database_update 836with_motif_lib 837with_tlib 838enable_largefile 839enable_acl 840enable_gpm 841enable_sysmouse 842enable_nls 843' 844 ac_precious_vars='build_alias 845host_alias 846target_alias 847CC 848CFLAGS 849LDFLAGS 850LIBS 851CPPFLAGS 852CPP 853XMKMF' 854 855 856# Initialize some variables set by options. 857ac_init_help= 858ac_init_version=false 859ac_unrecognized_opts= 860ac_unrecognized_sep= 861# The variables have the same names as the options, with 862# dashes changed to underlines. 863cache_file=/dev/null 864exec_prefix=NONE 865no_create= 866no_recursion= 867prefix=NONE 868program_prefix=NONE 869program_suffix=NONE 870program_transform_name=s,x,x, 871silent= 872site= 873srcdir= 874verbose= 875x_includes=NONE 876x_libraries=NONE 877 878# Installation directory options. 879# These are left unexpanded so users can "make install exec_prefix=/foo" 880# and all the variables that are supposed to be based on exec_prefix 881# by default will actually change. 882# Use braces instead of parens because sh, perl, etc. also accept them. 883# (The list follows the same order as the GNU Coding Standards.) 884bindir='${exec_prefix}/bin' 885sbindir='${exec_prefix}/sbin' 886libexecdir='${exec_prefix}/libexec' 887datarootdir='${prefix}/share' 888datadir='${datarootdir}' 889sysconfdir='${prefix}/etc' 890sharedstatedir='${prefix}/com' 891localstatedir='${prefix}/var' 892runstatedir='${localstatedir}/run' 893includedir='${prefix}/include' 894oldincludedir='/usr/include' 895docdir='${datarootdir}/doc/${PACKAGE}' 896infodir='${datarootdir}/info' 897htmldir='${docdir}' 898dvidir='${docdir}' 899pdfdir='${docdir}' 900psdir='${docdir}' 901libdir='${exec_prefix}/lib' 902localedir='${datarootdir}/locale' 903mandir='${datarootdir}/man' 904 905ac_prev= 906ac_dashdash= 907for ac_option 908do 909 # If the previous option needs an argument, assign it. 910 if test -n "$ac_prev"; then 911 eval $ac_prev=\$ac_option 912 ac_prev= 913 continue 914 fi 915 916 case $ac_option in 917 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 918 *=) ac_optarg= ;; 919 *) ac_optarg=yes ;; 920 esac 921 922 # Accept the important Cygnus configure options, so we can diagnose typos. 923 924 case $ac_dashdash$ac_option in 925 --) 926 ac_dashdash=yes ;; 927 928 -bindir | --bindir | --bindi | --bind | --bin | --bi) 929 ac_prev=bindir ;; 930 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 931 bindir=$ac_optarg ;; 932 933 -build | --build | --buil | --bui | --bu) 934 ac_prev=build_alias ;; 935 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 936 build_alias=$ac_optarg ;; 937 938 -cache-file | --cache-file | --cache-fil | --cache-fi \ 939 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 940 ac_prev=cache_file ;; 941 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 942 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 943 cache_file=$ac_optarg ;; 944 945 --config-cache | -C) 946 cache_file=config.cache ;; 947 948 -datadir | --datadir | --datadi | --datad) 949 ac_prev=datadir ;; 950 -datadir=* | --datadir=* | --datadi=* | --datad=*) 951 datadir=$ac_optarg ;; 952 953 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 954 | --dataroo | --dataro | --datar) 955 ac_prev=datarootdir ;; 956 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 957 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 958 datarootdir=$ac_optarg ;; 959 960 -disable-* | --disable-*) 961 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 962 # Reject names that are not valid shell variable names. 963 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 964 as_fn_error $? "invalid feature name: $ac_useropt" 965 ac_useropt_orig=$ac_useropt 966 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 967 case $ac_user_opts in 968 *" 969"enable_$ac_useropt" 970"*) ;; 971 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 972 ac_unrecognized_sep=', ';; 973 esac 974 eval enable_$ac_useropt=no ;; 975 976 -docdir | --docdir | --docdi | --doc | --do) 977 ac_prev=docdir ;; 978 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 979 docdir=$ac_optarg ;; 980 981 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 982 ac_prev=dvidir ;; 983 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 984 dvidir=$ac_optarg ;; 985 986 -enable-* | --enable-*) 987 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 988 # Reject names that are not valid shell variable names. 989 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 990 as_fn_error $? "invalid feature name: $ac_useropt" 991 ac_useropt_orig=$ac_useropt 992 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 993 case $ac_user_opts in 994 *" 995"enable_$ac_useropt" 996"*) ;; 997 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 998 ac_unrecognized_sep=', ';; 999 esac 1000 eval enable_$ac_useropt=\$ac_optarg ;; 1001 1002 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1003 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1004 | --exec | --exe | --ex) 1005 ac_prev=exec_prefix ;; 1006 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1007 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1008 | --exec=* | --exe=* | --ex=*) 1009 exec_prefix=$ac_optarg ;; 1010 1011 -gas | --gas | --ga | --g) 1012 # Obsolete; use --with-gas. 1013 with_gas=yes ;; 1014 1015 -help | --help | --hel | --he | -h) 1016 ac_init_help=long ;; 1017 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1018 ac_init_help=recursive ;; 1019 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1020 ac_init_help=short ;; 1021 1022 -host | --host | --hos | --ho) 1023 ac_prev=host_alias ;; 1024 -host=* | --host=* | --hos=* | --ho=*) 1025 host_alias=$ac_optarg ;; 1026 1027 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1028 ac_prev=htmldir ;; 1029 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1030 | --ht=*) 1031 htmldir=$ac_optarg ;; 1032 1033 -includedir | --includedir | --includedi | --included | --include \ 1034 | --includ | --inclu | --incl | --inc) 1035 ac_prev=includedir ;; 1036 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1037 | --includ=* | --inclu=* | --incl=* | --inc=*) 1038 includedir=$ac_optarg ;; 1039 1040 -infodir | --infodir | --infodi | --infod | --info | --inf) 1041 ac_prev=infodir ;; 1042 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1043 infodir=$ac_optarg ;; 1044 1045 -libdir | --libdir | --libdi | --libd) 1046 ac_prev=libdir ;; 1047 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1048 libdir=$ac_optarg ;; 1049 1050 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1051 | --libexe | --libex | --libe) 1052 ac_prev=libexecdir ;; 1053 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1054 | --libexe=* | --libex=* | --libe=*) 1055 libexecdir=$ac_optarg ;; 1056 1057 -localedir | --localedir | --localedi | --localed | --locale) 1058 ac_prev=localedir ;; 1059 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1060 localedir=$ac_optarg ;; 1061 1062 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1063 | --localstate | --localstat | --localsta | --localst | --locals) 1064 ac_prev=localstatedir ;; 1065 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1066 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1067 localstatedir=$ac_optarg ;; 1068 1069 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1070 ac_prev=mandir ;; 1071 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1072 mandir=$ac_optarg ;; 1073 1074 -nfp | --nfp | --nf) 1075 # Obsolete; use --without-fp. 1076 with_fp=no ;; 1077 1078 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1079 | --no-cr | --no-c | -n) 1080 no_create=yes ;; 1081 1082 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1083 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1084 no_recursion=yes ;; 1085 1086 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1087 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1088 | --oldin | --oldi | --old | --ol | --o) 1089 ac_prev=oldincludedir ;; 1090 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1091 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1092 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1093 oldincludedir=$ac_optarg ;; 1094 1095 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1096 ac_prev=prefix ;; 1097 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1098 prefix=$ac_optarg ;; 1099 1100 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1101 | --program-pre | --program-pr | --program-p) 1102 ac_prev=program_prefix ;; 1103 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1104 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1105 program_prefix=$ac_optarg ;; 1106 1107 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1108 | --program-suf | --program-su | --program-s) 1109 ac_prev=program_suffix ;; 1110 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1111 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1112 program_suffix=$ac_optarg ;; 1113 1114 -program-transform-name | --program-transform-name \ 1115 | --program-transform-nam | --program-transform-na \ 1116 | --program-transform-n | --program-transform- \ 1117 | --program-transform | --program-transfor \ 1118 | --program-transfo | --program-transf \ 1119 | --program-trans | --program-tran \ 1120 | --progr-tra | --program-tr | --program-t) 1121 ac_prev=program_transform_name ;; 1122 -program-transform-name=* | --program-transform-name=* \ 1123 | --program-transform-nam=* | --program-transform-na=* \ 1124 | --program-transform-n=* | --program-transform-=* \ 1125 | --program-transform=* | --program-transfor=* \ 1126 | --program-transfo=* | --program-transf=* \ 1127 | --program-trans=* | --program-tran=* \ 1128 | --progr-tra=* | --program-tr=* | --program-t=*) 1129 program_transform_name=$ac_optarg ;; 1130 1131 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1132 ac_prev=pdfdir ;; 1133 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1134 pdfdir=$ac_optarg ;; 1135 1136 -psdir | --psdir | --psdi | --psd | --ps) 1137 ac_prev=psdir ;; 1138 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1139 psdir=$ac_optarg ;; 1140 1141 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1142 | -silent | --silent | --silen | --sile | --sil) 1143 silent=yes ;; 1144 1145 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1146 | --runstate | --runstat | --runsta | --runst | --runs \ 1147 | --run | --ru | --r) 1148 ac_prev=runstatedir ;; 1149 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1150 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1151 | --run=* | --ru=* | --r=*) 1152 runstatedir=$ac_optarg ;; 1153 1154 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1155 ac_prev=sbindir ;; 1156 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1157 | --sbi=* | --sb=*) 1158 sbindir=$ac_optarg ;; 1159 1160 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1161 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1162 | --sharedst | --shareds | --shared | --share | --shar \ 1163 | --sha | --sh) 1164 ac_prev=sharedstatedir ;; 1165 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1166 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1167 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1168 | --sha=* | --sh=*) 1169 sharedstatedir=$ac_optarg ;; 1170 1171 -site | --site | --sit) 1172 ac_prev=site ;; 1173 -site=* | --site=* | --sit=*) 1174 site=$ac_optarg ;; 1175 1176 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1177 ac_prev=srcdir ;; 1178 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1179 srcdir=$ac_optarg ;; 1180 1181 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1182 | --syscon | --sysco | --sysc | --sys | --sy) 1183 ac_prev=sysconfdir ;; 1184 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1185 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1186 sysconfdir=$ac_optarg ;; 1187 1188 -target | --target | --targe | --targ | --tar | --ta | --t) 1189 ac_prev=target_alias ;; 1190 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1191 target_alias=$ac_optarg ;; 1192 1193 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1194 verbose=yes ;; 1195 1196 -version | --version | --versio | --versi | --vers | -V) 1197 ac_init_version=: ;; 1198 1199 -with-* | --with-*) 1200 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1201 # Reject names that are not valid shell variable names. 1202 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1203 as_fn_error $? "invalid package name: $ac_useropt" 1204 ac_useropt_orig=$ac_useropt 1205 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1206 case $ac_user_opts in 1207 *" 1208"with_$ac_useropt" 1209"*) ;; 1210 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1211 ac_unrecognized_sep=', ';; 1212 esac 1213 eval with_$ac_useropt=\$ac_optarg ;; 1214 1215 -without-* | --without-*) 1216 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1217 # Reject names that are not valid shell variable names. 1218 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1219 as_fn_error $? "invalid package name: $ac_useropt" 1220 ac_useropt_orig=$ac_useropt 1221 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1222 case $ac_user_opts in 1223 *" 1224"with_$ac_useropt" 1225"*) ;; 1226 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1227 ac_unrecognized_sep=', ';; 1228 esac 1229 eval with_$ac_useropt=no ;; 1230 1231 --x) 1232 # Obsolete; use --with-x. 1233 with_x=yes ;; 1234 1235 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1236 | --x-incl | --x-inc | --x-in | --x-i) 1237 ac_prev=x_includes ;; 1238 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1239 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1240 x_includes=$ac_optarg ;; 1241 1242 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1243 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1244 ac_prev=x_libraries ;; 1245 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1246 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1247 x_libraries=$ac_optarg ;; 1248 1249 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1250Try \`$0 --help' for more information" 1251 ;; 1252 1253 *=*) 1254 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1255 # Reject names that are not valid shell variable names. 1256 case $ac_envvar in #( 1257 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1258 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1259 esac 1260 eval $ac_envvar=\$ac_optarg 1261 export $ac_envvar ;; 1262 1263 *) 1264 # FIXME: should be removed in autoconf 3.0. 1265 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1266 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1267 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1268 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1269 ;; 1270 1271 esac 1272done 1273 1274if test -n "$ac_prev"; then 1275 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1276 as_fn_error $? "missing argument to $ac_option" 1277fi 1278 1279if test -n "$ac_unrecognized_opts"; then 1280 case $enable_option_checking in 1281 no) ;; 1282 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1283 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1284 esac 1285fi 1286 1287# Check all directory arguments for consistency. 1288for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1289 datadir sysconfdir sharedstatedir localstatedir includedir \ 1290 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1291 libdir localedir mandir runstatedir 1292do 1293 eval ac_val=\$$ac_var 1294 # Remove trailing slashes. 1295 case $ac_val in 1296 */ ) 1297 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1298 eval $ac_var=\$ac_val;; 1299 esac 1300 # Be sure to have absolute directory names. 1301 case $ac_val in 1302 [\\/$]* | ?:[\\/]* ) continue;; 1303 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1304 esac 1305 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1306done 1307 1308# There might be people who depend on the old broken behavior: `$host' 1309# used to hold the argument of --host etc. 1310# FIXME: To remove some day. 1311build=$build_alias 1312host=$host_alias 1313target=$target_alias 1314 1315# FIXME: To remove some day. 1316if test "x$host_alias" != x; then 1317 if test "x$build_alias" = x; then 1318 cross_compiling=maybe 1319 elif test "x$build_alias" != "x$host_alias"; then 1320 cross_compiling=yes 1321 fi 1322fi 1323 1324ac_tool_prefix= 1325test -n "$host_alias" && ac_tool_prefix=$host_alias- 1326 1327test "$silent" = yes && exec 6>/dev/null 1328 1329 1330ac_pwd=`pwd` && test -n "$ac_pwd" && 1331ac_ls_di=`ls -di .` && 1332ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1333 as_fn_error $? "working directory cannot be determined" 1334test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1335 as_fn_error $? "pwd does not report name of working directory" 1336 1337 1338# Find the source files, if location was not specified. 1339if test -z "$srcdir"; then 1340 ac_srcdir_defaulted=yes 1341 # Try the directory containing this script, then the parent directory. 1342 ac_confdir=`$as_dirname -- "$as_myself" || 1343$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1344 X"$as_myself" : 'X\(//\)[^/]' \| \ 1345 X"$as_myself" : 'X\(//\)$' \| \ 1346 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1347$as_echo X"$as_myself" | 1348 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1349 s//\1/ 1350 q 1351 } 1352 /^X\(\/\/\)[^/].*/{ 1353 s//\1/ 1354 q 1355 } 1356 /^X\(\/\/\)$/{ 1357 s//\1/ 1358 q 1359 } 1360 /^X\(\/\).*/{ 1361 s//\1/ 1362 q 1363 } 1364 s/.*/./; q'` 1365 srcdir=$ac_confdir 1366 if test ! -r "$srcdir/$ac_unique_file"; then 1367 srcdir=.. 1368 fi 1369else 1370 ac_srcdir_defaulted=no 1371fi 1372if test ! -r "$srcdir/$ac_unique_file"; then 1373 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1374 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1375fi 1376ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1377ac_abs_confdir=`( 1378 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1379 pwd)` 1380# When building in place, set srcdir=. 1381if test "$ac_abs_confdir" = "$ac_pwd"; then 1382 srcdir=. 1383fi 1384# Remove unnecessary trailing slashes from srcdir. 1385# Double slashes in file names in object file debugging info 1386# mess up M-x gdb in Emacs. 1387case $srcdir in 1388*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1389esac 1390for ac_var in $ac_precious_vars; do 1391 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1392 eval ac_env_${ac_var}_value=\$${ac_var} 1393 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1394 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1395done 1396 1397# 1398# Report the --help message. 1399# 1400if test "$ac_init_help" = "long"; then 1401 # Omit some internal or obsolete options to make the list less imposing. 1402 # This message is too long to be a string in the A/UX 3.1 sh. 1403 cat <<_ACEOF 1404\`configure' configures this package to adapt to many kinds of systems. 1405 1406Usage: $0 [OPTION]... [VAR=VALUE]... 1407 1408To assign environment variables (e.g., CC, CFLAGS...), specify them as 1409VAR=VALUE. See below for descriptions of some of the useful variables. 1410 1411Defaults for the options are specified in brackets. 1412 1413Configuration: 1414 -h, --help display this help and exit 1415 --help=short display options specific to this package 1416 --help=recursive display the short help of all the included packages 1417 -V, --version display version information and exit 1418 -q, --quiet, --silent do not print \`checking ...' messages 1419 --cache-file=FILE cache test results in FILE [disabled] 1420 -C, --config-cache alias for \`--cache-file=config.cache' 1421 -n, --no-create do not create output files 1422 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1423 1424Installation directories: 1425 --prefix=PREFIX install architecture-independent files in PREFIX 1426 [$ac_default_prefix] 1427 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1428 [PREFIX] 1429 1430By default, \`make install' will install all the files in 1431\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1432an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1433for instance \`--prefix=\$HOME'. 1434 1435For better control, use the options below. 1436 1437Fine tuning of the installation directories: 1438 --bindir=DIR user executables [EPREFIX/bin] 1439 --sbindir=DIR system admin executables [EPREFIX/sbin] 1440 --libexecdir=DIR program executables [EPREFIX/libexec] 1441 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1442 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1443 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1444 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1445 --libdir=DIR object code libraries [EPREFIX/lib] 1446 --includedir=DIR C header files [PREFIX/include] 1447 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1448 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1449 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1450 --infodir=DIR info documentation [DATAROOTDIR/info] 1451 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1452 --mandir=DIR man documentation [DATAROOTDIR/man] 1453 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] 1454 --htmldir=DIR html documentation [DOCDIR] 1455 --dvidir=DIR dvi documentation [DOCDIR] 1456 --pdfdir=DIR pdf documentation [DOCDIR] 1457 --psdir=DIR ps documentation [DOCDIR] 1458_ACEOF 1459 1460 cat <<\_ACEOF 1461 1462X features: 1463 --x-includes=DIR X include files are in DIR 1464 --x-libraries=DIR X library files are in DIR 1465_ACEOF 1466fi 1467 1468if test -n "$ac_init_help"; then 1469 1470 cat <<\_ACEOF 1471 1472Optional Features: 1473 --disable-option-checking ignore unrecognized --enable/--with options 1474 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1475 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1476 --enable-fail-if-missing Fail if dependencies on additional features 1477 specified on the command line are missing. 1478 --disable-darwin Disable Darwin (Mac OS X) support. 1479 --disable-smack Do not check for Smack support. 1480 --disable-selinux Do not check for SELinux support. 1481 --disable-xsmp Disable XSMP session management 1482 --disable-xsmp-interact Disable XSMP interaction 1483 --enable-luainterp=OPTS Include Lua interpreter. default=no OPTS=no/yes/dynamic 1484 --enable-mzschemeinterp Include MzScheme interpreter. 1485 --enable-perlinterp=OPTS Include Perl interpreter. default=no OPTS=no/yes/dynamic 1486 --enable-pythoninterp=OPTS Include Python interpreter. default=no OPTS=no/yes/dynamic 1487 --enable-python3interp=OPTS Include Python3 interpreter. default=no OPTS=no/yes/dynamic 1488 --enable-tclinterp=OPTS Include Tcl interpreter. default=no OPTS=no/yes/dynamic 1489 --enable-rubyinterp=OPTS Include Ruby interpreter. default=no OPTS=no/yes/dynamic 1490 --enable-cscope Include cscope interface. 1491 --enable-workshop Include Sun Visual Workshop support. 1492 --disable-netbeans Disable NetBeans integration support. 1493 --disable-channel Disable process communication support. 1494 --enable-multibyte Include multibyte editing support. 1495 --enable-hangulinput Include Hangul input support. 1496 --enable-xim Include XIM input support. 1497 --enable-fontset Include X fontset output support. 1498 --enable-gui=OPTS X11 GUI default=auto OPTS=auto/no/gtk2/gnome2/gtk3/motif/athena/neXtaw/photon/carbon 1499 --enable-gtk2-check If auto-select GUI, check for GTK+ 2 default=yes 1500 --enable-gnome-check If GTK GUI, check for GNOME default=no 1501 --enable-gtk3-check If auto-select GUI, check for GTK+ 3 default=yes 1502 --enable-motif-check If auto-select GUI, check for Motif default=yes 1503 --enable-athena-check If auto-select GUI, check for Athena default=yes 1504 --enable-nextaw-check If auto-select GUI, check for neXtaw default=yes 1505 --enable-carbon-check If auto-select GUI, check for Carbon default=yes 1506 --disable-gtktest Do not try to compile and run a test GTK program 1507 --disable-icon-cache-update update disabled 1508 --disable-desktop-database-update update disabled 1509 --disable-largefile omit support for large files 1510 --disable-acl Don't check for ACL support. 1511 --disable-gpm Don't use gpm (Linux mouse daemon). 1512 --disable-sysmouse Don't use sysmouse (mouse in *BSD console). 1513 --disable-nls Don't support NLS (gettext()). 1514 1515Optional Packages: 1516 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1517 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1518 --with-mac-arch=ARCH current, intel, ppc or both 1519 --with-developer-dir=PATH use PATH as location for Xcode developer tools 1520 --with-local-dir=PATH search PATH instead of /usr/local for local libraries. 1521 --without-local-dir do not search /usr/local for local libraries. 1522 --with-vim-name=NAME what to call the Vim executable 1523 --with-ex-name=NAME what to call the Ex executable 1524 --with-view-name=NAME what to call the View executable 1525 --with-global-runtime=DIR global runtime directory in 'runtimepath' 1526 --with-modified-by=NAME name of who modified a release version 1527 --with-features=TYPE tiny, small, normal, big or huge (default: huge) 1528 --with-compiledby=NAME name to show in :version message 1529 --with-lua-prefix=PFX Prefix where Lua is installed. 1530 --with-luajit Link with LuaJIT instead of Lua. 1531 --with-plthome=PLTHOME Use PLTHOME. 1532 --with-python-config-dir=PATH Python's config directory 1533 --with-python3-config-dir=PATH Python's config directory 1534 --with-tclsh=PATH which tclsh to use (default: tclsh8.0) 1535 --with-ruby-command=RUBY name of the Ruby command (default: ruby) 1536 --with-x use the X Window System 1537 --with-gnome-includes=DIR Specify location of GNOME headers 1538 --with-gnome-libs=DIR Specify location of GNOME libs 1539 --with-gnome Specify prefix for GNOME files 1540 --with-motif-lib=STRING Library for Motif 1541 --with-tlib=library terminal library to be used 1542 1543Some influential environment variables: 1544 CC C compiler command 1545 CFLAGS C compiler flags 1546 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1547 nonstandard directory <lib dir> 1548 LIBS libraries to pass to the linker, e.g. -l<library> 1549 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1550 you have headers in a nonstandard directory <include dir> 1551 CPP C preprocessor 1552 XMKMF Path to xmkmf, Makefile generator for X Window System 1553 1554Use these variables to override the choices made by `configure' or to help 1555it to find libraries and programs with nonstandard names/locations. 1556 1557Report bugs to the package provider. 1558_ACEOF 1559ac_status=$? 1560fi 1561 1562if test "$ac_init_help" = "recursive"; then 1563 # If there are subdirs, report their specific --help. 1564 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1565 test -d "$ac_dir" || 1566 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1567 continue 1568 ac_builddir=. 1569 1570case "$ac_dir" in 1571.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1572*) 1573 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1574 # A ".." for each directory in $ac_dir_suffix. 1575 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1576 case $ac_top_builddir_sub in 1577 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1578 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1579 esac ;; 1580esac 1581ac_abs_top_builddir=$ac_pwd 1582ac_abs_builddir=$ac_pwd$ac_dir_suffix 1583# for backward compatibility: 1584ac_top_builddir=$ac_top_build_prefix 1585 1586case $srcdir in 1587 .) # We are building in place. 1588 ac_srcdir=. 1589 ac_top_srcdir=$ac_top_builddir_sub 1590 ac_abs_top_srcdir=$ac_pwd ;; 1591 [\\/]* | ?:[\\/]* ) # Absolute name. 1592 ac_srcdir=$srcdir$ac_dir_suffix; 1593 ac_top_srcdir=$srcdir 1594 ac_abs_top_srcdir=$srcdir ;; 1595 *) # Relative name. 1596 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1597 ac_top_srcdir=$ac_top_build_prefix$srcdir 1598 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1599esac 1600ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1601 1602 cd "$ac_dir" || { ac_status=$?; continue; } 1603 # Check for guested configure. 1604 if test -f "$ac_srcdir/configure.gnu"; then 1605 echo && 1606 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1607 elif test -f "$ac_srcdir/configure"; then 1608 echo && 1609 $SHELL "$ac_srcdir/configure" --help=recursive 1610 else 1611 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1612 fi || ac_status=$? 1613 cd "$ac_pwd" || { ac_status=$?; break; } 1614 done 1615fi 1616 1617test -n "$ac_init_help" && exit $ac_status 1618if $ac_init_version; then 1619 cat <<\_ACEOF 1620configure 1621generated by GNU Autoconf 2.69 1622 1623Copyright (C) 2012 Free Software Foundation, Inc. 1624This configure script is free software; the Free Software Foundation 1625gives unlimited permission to copy, distribute and modify it. 1626_ACEOF 1627 exit 1628fi 1629 1630## ------------------------ ## 1631## Autoconf initialization. ## 1632## ------------------------ ## 1633 1634# ac_fn_c_try_compile LINENO 1635# -------------------------- 1636# Try to compile conftest.$ac_ext, and return whether this succeeded. 1637ac_fn_c_try_compile () 1638{ 1639 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1640 rm -f conftest.$ac_objext 1641 if { { ac_try="$ac_compile" 1642case "(($ac_try" in 1643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1644 *) ac_try_echo=$ac_try;; 1645esac 1646eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1647$as_echo "$ac_try_echo"; } >&5 1648 (eval "$ac_compile") 2>conftest.err 1649 ac_status=$? 1650 if test -s conftest.err; then 1651 grep -v '^ *+' conftest.err >conftest.er1 1652 cat conftest.er1 >&5 1653 mv -f conftest.er1 conftest.err 1654 fi 1655 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1656 test $ac_status = 0; } && { 1657 test -z "$ac_c_werror_flag" || 1658 test ! -s conftest.err 1659 } && test -s conftest.$ac_objext; then : 1660 ac_retval=0 1661else 1662 $as_echo "$as_me: failed program was:" >&5 1663sed 's/^/| /' conftest.$ac_ext >&5 1664 1665 ac_retval=1 1666fi 1667 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1668 as_fn_set_status $ac_retval 1669 1670} # ac_fn_c_try_compile 1671 1672# ac_fn_c_try_cpp LINENO 1673# ---------------------- 1674# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1675ac_fn_c_try_cpp () 1676{ 1677 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1678 if { { ac_try="$ac_cpp conftest.$ac_ext" 1679case "(($ac_try" in 1680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1681 *) ac_try_echo=$ac_try;; 1682esac 1683eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1684$as_echo "$ac_try_echo"; } >&5 1685 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1686 ac_status=$? 1687 if test -s conftest.err; then 1688 grep -v '^ *+' conftest.err >conftest.er1 1689 cat conftest.er1 >&5 1690 mv -f conftest.er1 conftest.err 1691 fi 1692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1693 test $ac_status = 0; } > conftest.i && { 1694 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1695 test ! -s conftest.err 1696 }; then : 1697 ac_retval=0 1698else 1699 $as_echo "$as_me: failed program was:" >&5 1700sed 's/^/| /' conftest.$ac_ext >&5 1701 1702 ac_retval=1 1703fi 1704 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1705 as_fn_set_status $ac_retval 1706 1707} # ac_fn_c_try_cpp 1708 1709# ac_fn_c_try_link LINENO 1710# ----------------------- 1711# Try to link conftest.$ac_ext, and return whether this succeeded. 1712ac_fn_c_try_link () 1713{ 1714 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1715 rm -f conftest.$ac_objext conftest$ac_exeext 1716 if { { ac_try="$ac_link" 1717case "(($ac_try" in 1718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1719 *) ac_try_echo=$ac_try;; 1720esac 1721eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1722$as_echo "$ac_try_echo"; } >&5 1723 (eval "$ac_link") 2>conftest.err 1724 ac_status=$? 1725 if test -s conftest.err; then 1726 grep -v '^ *+' conftest.err >conftest.er1 1727 cat conftest.er1 >&5 1728 mv -f conftest.er1 conftest.err 1729 fi 1730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1731 test $ac_status = 0; } && { 1732 test -z "$ac_c_werror_flag" || 1733 test ! -s conftest.err 1734 } && test -s conftest$ac_exeext && { 1735 test "$cross_compiling" = yes || 1736 test -x conftest$ac_exeext 1737 }; then : 1738 ac_retval=0 1739else 1740 $as_echo "$as_me: failed program was:" >&5 1741sed 's/^/| /' conftest.$ac_ext >&5 1742 1743 ac_retval=1 1744fi 1745 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1746 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1747 # interfere with the next link command; also delete a directory that is 1748 # left behind by Apple's compiler. We do this before executing the actions. 1749 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1750 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1751 as_fn_set_status $ac_retval 1752 1753} # ac_fn_c_try_link 1754 1755# ac_fn_c_try_run LINENO 1756# ---------------------- 1757# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1758# that executables *can* be run. 1759ac_fn_c_try_run () 1760{ 1761 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1762 if { { ac_try="$ac_link" 1763case "(($ac_try" in 1764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1765 *) ac_try_echo=$ac_try;; 1766esac 1767eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1768$as_echo "$ac_try_echo"; } >&5 1769 (eval "$ac_link") 2>&5 1770 ac_status=$? 1771 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1772 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1773 { { case "(($ac_try" in 1774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1775 *) ac_try_echo=$ac_try;; 1776esac 1777eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1778$as_echo "$ac_try_echo"; } >&5 1779 (eval "$ac_try") 2>&5 1780 ac_status=$? 1781 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1782 test $ac_status = 0; }; }; then : 1783 ac_retval=0 1784else 1785 $as_echo "$as_me: program exited with status $ac_status" >&5 1786 $as_echo "$as_me: failed program was:" >&5 1787sed 's/^/| /' conftest.$ac_ext >&5 1788 1789 ac_retval=$ac_status 1790fi 1791 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1792 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1793 as_fn_set_status $ac_retval 1794 1795} # ac_fn_c_try_run 1796 1797# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1798# ------------------------------------------------------- 1799# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1800# the include files in INCLUDES and setting the cache variable VAR 1801# accordingly. 1802ac_fn_c_check_header_mongrel () 1803{ 1804 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1805 if eval \${$3+:} false; then : 1806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1807$as_echo_n "checking for $2... " >&6; } 1808if eval \${$3+:} false; then : 1809 $as_echo_n "(cached) " >&6 1810fi 1811eval ac_res=\$$3 1812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1813$as_echo "$ac_res" >&6; } 1814else 1815 # Is the header compilable? 1816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1817$as_echo_n "checking $2 usability... " >&6; } 1818cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1819/* end confdefs.h. */ 1820$4 1821#include <$2> 1822_ACEOF 1823if ac_fn_c_try_compile "$LINENO"; then : 1824 ac_header_compiler=yes 1825else 1826 ac_header_compiler=no 1827fi 1828rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1830$as_echo "$ac_header_compiler" >&6; } 1831 1832# Is the header present? 1833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1834$as_echo_n "checking $2 presence... " >&6; } 1835cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1836/* end confdefs.h. */ 1837#include <$2> 1838_ACEOF 1839if ac_fn_c_try_cpp "$LINENO"; then : 1840 ac_header_preproc=yes 1841else 1842 ac_header_preproc=no 1843fi 1844rm -f conftest.err conftest.i conftest.$ac_ext 1845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1846$as_echo "$ac_header_preproc" >&6; } 1847 1848# So? What about this header? 1849case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1850 yes:no: ) 1851 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1852$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1853 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1854$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1855 ;; 1856 no:yes:* ) 1857 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1858$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1859 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1860$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1861 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1862$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1863 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1864$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1865 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1866$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1867 ;; 1868esac 1869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1870$as_echo_n "checking for $2... " >&6; } 1871if eval \${$3+:} false; then : 1872 $as_echo_n "(cached) " >&6 1873else 1874 eval "$3=\$ac_header_compiler" 1875fi 1876eval ac_res=\$$3 1877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1878$as_echo "$ac_res" >&6; } 1879fi 1880 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1881 1882} # ac_fn_c_check_header_mongrel 1883 1884# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1885# ------------------------------------------------------- 1886# Tests whether HEADER exists and can be compiled using the include files in 1887# INCLUDES, setting the cache variable VAR accordingly. 1888ac_fn_c_check_header_compile () 1889{ 1890 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1892$as_echo_n "checking for $2... " >&6; } 1893if eval \${$3+:} false; then : 1894 $as_echo_n "(cached) " >&6 1895else 1896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1897/* end confdefs.h. */ 1898$4 1899#include <$2> 1900_ACEOF 1901if ac_fn_c_try_compile "$LINENO"; then : 1902 eval "$3=yes" 1903else 1904 eval "$3=no" 1905fi 1906rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1907fi 1908eval ac_res=\$$3 1909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1910$as_echo "$ac_res" >&6; } 1911 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1912 1913} # ac_fn_c_check_header_compile 1914 1915# ac_fn_c_check_func LINENO FUNC VAR 1916# ---------------------------------- 1917# Tests whether FUNC exists, setting the cache variable VAR accordingly 1918ac_fn_c_check_func () 1919{ 1920 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1922$as_echo_n "checking for $2... " >&6; } 1923if eval \${$3+:} false; then : 1924 $as_echo_n "(cached) " >&6 1925else 1926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1927/* end confdefs.h. */ 1928/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1929 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1930#define $2 innocuous_$2 1931 1932/* System header to define __stub macros and hopefully few prototypes, 1933 which can conflict with char $2 (); below. 1934 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1935 <limits.h> exists even on freestanding compilers. */ 1936 1937#ifdef __STDC__ 1938# include <limits.h> 1939#else 1940# include <assert.h> 1941#endif 1942 1943#undef $2 1944 1945/* Override any GCC internal prototype to avoid an error. 1946 Use char because int might match the return type of a GCC 1947 builtin and then its argument prototype would still apply. */ 1948#ifdef __cplusplus 1949extern "C" 1950#endif 1951char $2 (); 1952/* The GNU C library defines this for functions which it implements 1953 to always fail with ENOSYS. Some functions are actually named 1954 something starting with __ and the normal name is an alias. */ 1955#if defined __stub_$2 || defined __stub___$2 1956choke me 1957#endif 1958 1959int 1960main () 1961{ 1962return $2 (); 1963 ; 1964 return 0; 1965} 1966_ACEOF 1967if ac_fn_c_try_link "$LINENO"; then : 1968 eval "$3=yes" 1969else 1970 eval "$3=no" 1971fi 1972rm -f core conftest.err conftest.$ac_objext \ 1973 conftest$ac_exeext conftest.$ac_ext 1974fi 1975eval ac_res=\$$3 1976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1977$as_echo "$ac_res" >&6; } 1978 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1979 1980} # ac_fn_c_check_func 1981 1982# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 1983# ------------------------------------------- 1984# Tests whether TYPE exists after having included INCLUDES, setting cache 1985# variable VAR accordingly. 1986ac_fn_c_check_type () 1987{ 1988 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1990$as_echo_n "checking for $2... " >&6; } 1991if eval \${$3+:} false; then : 1992 $as_echo_n "(cached) " >&6 1993else 1994 eval "$3=no" 1995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1996/* end confdefs.h. */ 1997$4 1998int 1999main () 2000{ 2001if (sizeof ($2)) 2002 return 0; 2003 ; 2004 return 0; 2005} 2006_ACEOF 2007if ac_fn_c_try_compile "$LINENO"; then : 2008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2009/* end confdefs.h. */ 2010$4 2011int 2012main () 2013{ 2014if (sizeof (($2))) 2015 return 0; 2016 ; 2017 return 0; 2018} 2019_ACEOF 2020if ac_fn_c_try_compile "$LINENO"; then : 2021 2022else 2023 eval "$3=yes" 2024fi 2025rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2026fi 2027rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2028fi 2029eval ac_res=\$$3 2030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2031$as_echo "$ac_res" >&6; } 2032 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2033 2034} # ac_fn_c_check_type 2035 2036# ac_fn_c_find_uintX_t LINENO BITS VAR 2037# ------------------------------------ 2038# Finds an unsigned integer type with width BITS, setting cache variable VAR 2039# accordingly. 2040ac_fn_c_find_uintX_t () 2041{ 2042 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5 2044$as_echo_n "checking for uint$2_t... " >&6; } 2045if eval \${$3+:} false; then : 2046 $as_echo_n "(cached) " >&6 2047else 2048 eval "$3=no" 2049 # Order is important - never check a type that is potentially smaller 2050 # than half of the expected target width. 2051 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \ 2052 'unsigned long long int' 'unsigned short int' 'unsigned char'; do 2053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2054/* end confdefs.h. */ 2055$ac_includes_default 2056int 2057main () 2058{ 2059static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)]; 2060test_array [0] = 0; 2061return test_array [0]; 2062 2063 ; 2064 return 0; 2065} 2066_ACEOF 2067if ac_fn_c_try_compile "$LINENO"; then : 2068 case $ac_type in #( 2069 uint$2_t) : 2070 eval "$3=yes" ;; #( 2071 *) : 2072 eval "$3=\$ac_type" ;; 2073esac 2074fi 2075rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2076 if eval test \"x\$"$3"\" = x"no"; then : 2077 2078else 2079 break 2080fi 2081 done 2082fi 2083eval ac_res=\$$3 2084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2085$as_echo "$ac_res" >&6; } 2086 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2087 2088} # ac_fn_c_find_uintX_t 2089 2090# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 2091# -------------------------------------------- 2092# Tries to find the compile-time value of EXPR in a program that includes 2093# INCLUDES, setting VAR accordingly. Returns whether the value could be 2094# computed 2095ac_fn_c_compute_int () 2096{ 2097 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2098 if test "$cross_compiling" = yes; then 2099 # Depending upon the size, compute the lo and hi bounds. 2100cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2101/* end confdefs.h. */ 2102$4 2103int 2104main () 2105{ 2106static int test_array [1 - 2 * !(($2) >= 0)]; 2107test_array [0] = 0; 2108return test_array [0]; 2109 2110 ; 2111 return 0; 2112} 2113_ACEOF 2114if ac_fn_c_try_compile "$LINENO"; then : 2115 ac_lo=0 ac_mid=0 2116 while :; do 2117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2118/* end confdefs.h. */ 2119$4 2120int 2121main () 2122{ 2123static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2124test_array [0] = 0; 2125return test_array [0]; 2126 2127 ; 2128 return 0; 2129} 2130_ACEOF 2131if ac_fn_c_try_compile "$LINENO"; then : 2132 ac_hi=$ac_mid; break 2133else 2134 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2135 if test $ac_lo -le $ac_mid; then 2136 ac_lo= ac_hi= 2137 break 2138 fi 2139 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2140fi 2141rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2142 done 2143else 2144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2145/* end confdefs.h. */ 2146$4 2147int 2148main () 2149{ 2150static int test_array [1 - 2 * !(($2) < 0)]; 2151test_array [0] = 0; 2152return test_array [0]; 2153 2154 ; 2155 return 0; 2156} 2157_ACEOF 2158if ac_fn_c_try_compile "$LINENO"; then : 2159 ac_hi=-1 ac_mid=-1 2160 while :; do 2161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2162/* end confdefs.h. */ 2163$4 2164int 2165main () 2166{ 2167static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2168test_array [0] = 0; 2169return test_array [0]; 2170 2171 ; 2172 return 0; 2173} 2174_ACEOF 2175if ac_fn_c_try_compile "$LINENO"; then : 2176 ac_lo=$ac_mid; break 2177else 2178 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2179 if test $ac_mid -le $ac_hi; then 2180 ac_lo= ac_hi= 2181 break 2182 fi 2183 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2184fi 2185rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2186 done 2187else 2188 ac_lo= ac_hi= 2189fi 2190rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2191fi 2192rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2193# Binary search between lo and hi bounds. 2194while test "x$ac_lo" != "x$ac_hi"; do 2195 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2197/* end confdefs.h. */ 2198$4 2199int 2200main () 2201{ 2202static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2203test_array [0] = 0; 2204return test_array [0]; 2205 2206 ; 2207 return 0; 2208} 2209_ACEOF 2210if ac_fn_c_try_compile "$LINENO"; then : 2211 ac_hi=$ac_mid 2212else 2213 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2214fi 2215rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2216done 2217case $ac_lo in #(( 2218?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2219'') ac_retval=1 ;; 2220esac 2221 else 2222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2223/* end confdefs.h. */ 2224$4 2225static long int longval () { return $2; } 2226static unsigned long int ulongval () { return $2; } 2227#include <stdio.h> 2228#include <stdlib.h> 2229int 2230main () 2231{ 2232 2233 FILE *f = fopen ("conftest.val", "w"); 2234 if (! f) 2235 return 1; 2236 if (($2) < 0) 2237 { 2238 long int i = longval (); 2239 if (i != ($2)) 2240 return 1; 2241 fprintf (f, "%ld", i); 2242 } 2243 else 2244 { 2245 unsigned long int i = ulongval (); 2246 if (i != ($2)) 2247 return 1; 2248 fprintf (f, "%lu", i); 2249 } 2250 /* Do not output a trailing newline, as this causes \r\n confusion 2251 on some platforms. */ 2252 return ferror (f) || fclose (f) != 0; 2253 2254 ; 2255 return 0; 2256} 2257_ACEOF 2258if ac_fn_c_try_run "$LINENO"; then : 2259 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2260else 2261 ac_retval=1 2262fi 2263rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2264 conftest.$ac_objext conftest.beam conftest.$ac_ext 2265rm -f conftest.val 2266 2267 fi 2268 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2269 as_fn_set_status $ac_retval 2270 2271} # ac_fn_c_compute_int 2272cat >auto/config.log <<_ACEOF 2273This file contains any messages produced by compilers while 2274running configure, to aid debugging if configure makes a mistake. 2275 2276It was created by $as_me, which was 2277generated by GNU Autoconf 2.69. Invocation command line was 2278 2279 $ $0 $@ 2280 2281_ACEOF 2282exec 5>>auto/config.log 2283{ 2284cat <<_ASUNAME 2285## --------- ## 2286## Platform. ## 2287## --------- ## 2288 2289hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2290uname -m = `(uname -m) 2>/dev/null || echo unknown` 2291uname -r = `(uname -r) 2>/dev/null || echo unknown` 2292uname -s = `(uname -s) 2>/dev/null || echo unknown` 2293uname -v = `(uname -v) 2>/dev/null || echo unknown` 2294 2295/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2296/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2297 2298/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2299/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2300/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2301/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2302/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2303/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2304/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2305 2306_ASUNAME 2307 2308as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2309for as_dir in $PATH 2310do 2311 IFS=$as_save_IFS 2312 test -z "$as_dir" && as_dir=. 2313 $as_echo "PATH: $as_dir" 2314 done 2315IFS=$as_save_IFS 2316 2317} >&5 2318 2319cat >&5 <<_ACEOF 2320 2321 2322## ----------- ## 2323## Core tests. ## 2324## ----------- ## 2325 2326_ACEOF 2327 2328 2329# Keep a trace of the command line. 2330# Strip out --no-create and --no-recursion so they do not pile up. 2331# Strip out --silent because we don't want to record it for future runs. 2332# Also quote any args containing shell meta-characters. 2333# Make two passes to allow for proper duplicate-argument suppression. 2334ac_configure_args= 2335ac_configure_args0= 2336ac_configure_args1= 2337ac_must_keep_next=false 2338for ac_pass in 1 2 2339do 2340 for ac_arg 2341 do 2342 case $ac_arg in 2343 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2344 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2345 | -silent | --silent | --silen | --sile | --sil) 2346 continue ;; 2347 *\'*) 2348 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2349 esac 2350 case $ac_pass in 2351 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2352 2) 2353 as_fn_append ac_configure_args1 " '$ac_arg'" 2354 if test $ac_must_keep_next = true; then 2355 ac_must_keep_next=false # Got value, back to normal. 2356 else 2357 case $ac_arg in 2358 *=* | --config-cache | -C | -disable-* | --disable-* \ 2359 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2360 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2361 | -with-* | --with-* | -without-* | --without-* | --x) 2362 case "$ac_configure_args0 " in 2363 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2364 esac 2365 ;; 2366 -* ) ac_must_keep_next=true ;; 2367 esac 2368 fi 2369 as_fn_append ac_configure_args " '$ac_arg'" 2370 ;; 2371 esac 2372 done 2373done 2374{ ac_configure_args0=; unset ac_configure_args0;} 2375{ ac_configure_args1=; unset ac_configure_args1;} 2376 2377# When interrupted or exit'd, cleanup temporary files, and complete 2378# config.log. We remove comments because anyway the quotes in there 2379# would cause problems or look ugly. 2380# WARNING: Use '\'' to represent an apostrophe within the trap. 2381# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2382trap 'exit_status=$? 2383 # Save into config.log some information that might help in debugging. 2384 { 2385 echo 2386 2387 $as_echo "## ---------------- ## 2388## Cache variables. ## 2389## ---------------- ##" 2390 echo 2391 # The following way of writing the cache mishandles newlines in values, 2392( 2393 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2394 eval ac_val=\$$ac_var 2395 case $ac_val in #( 2396 *${as_nl}*) 2397 case $ac_var in #( 2398 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2399$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2400 esac 2401 case $ac_var in #( 2402 _ | IFS | as_nl) ;; #( 2403 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2404 *) { eval $ac_var=; unset $ac_var;} ;; 2405 esac ;; 2406 esac 2407 done 2408 (set) 2>&1 | 2409 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2410 *${as_nl}ac_space=\ *) 2411 sed -n \ 2412 "s/'\''/'\''\\\\'\'''\''/g; 2413 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2414 ;; #( 2415 *) 2416 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2417 ;; 2418 esac | 2419 sort 2420) 2421 echo 2422 2423 $as_echo "## ----------------- ## 2424## Output variables. ## 2425## ----------------- ##" 2426 echo 2427 for ac_var in $ac_subst_vars 2428 do 2429 eval ac_val=\$$ac_var 2430 case $ac_val in 2431 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2432 esac 2433 $as_echo "$ac_var='\''$ac_val'\''" 2434 done | sort 2435 echo 2436 2437 if test -n "$ac_subst_files"; then 2438 $as_echo "## ------------------- ## 2439## File substitutions. ## 2440## ------------------- ##" 2441 echo 2442 for ac_var in $ac_subst_files 2443 do 2444 eval ac_val=\$$ac_var 2445 case $ac_val in 2446 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2447 esac 2448 $as_echo "$ac_var='\''$ac_val'\''" 2449 done | sort 2450 echo 2451 fi 2452 2453 if test -s confdefs.h; then 2454 $as_echo "## ----------- ## 2455## confdefs.h. ## 2456## ----------- ##" 2457 echo 2458 cat confdefs.h 2459 echo 2460 fi 2461 test "$ac_signal" != 0 && 2462 $as_echo "$as_me: caught signal $ac_signal" 2463 $as_echo "$as_me: exit $exit_status" 2464 } >&5 2465 rm -f core *.core core.conftest.* && 2466 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2467 exit $exit_status 2468' 0 2469for ac_signal in 1 2 13 15; do 2470 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2471done 2472ac_signal=0 2473 2474# confdefs.h avoids OS command line length limits that DEFS can exceed. 2475rm -f -r conftest* confdefs.h 2476 2477$as_echo "/* confdefs.h */" > confdefs.h 2478 2479# Predefined preprocessor variables. 2480 2481cat >>confdefs.h <<_ACEOF 2482#define PACKAGE_NAME "$PACKAGE_NAME" 2483_ACEOF 2484 2485cat >>confdefs.h <<_ACEOF 2486#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2487_ACEOF 2488 2489cat >>confdefs.h <<_ACEOF 2490#define PACKAGE_VERSION "$PACKAGE_VERSION" 2491_ACEOF 2492 2493cat >>confdefs.h <<_ACEOF 2494#define PACKAGE_STRING "$PACKAGE_STRING" 2495_ACEOF 2496 2497cat >>confdefs.h <<_ACEOF 2498#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2499_ACEOF 2500 2501cat >>confdefs.h <<_ACEOF 2502#define PACKAGE_URL "$PACKAGE_URL" 2503_ACEOF 2504 2505 2506# Let the site file select an alternate cache file if it wants to. 2507# Prefer an explicitly selected file to automatically selected ones. 2508ac_site_file1=NONE 2509ac_site_file2=NONE 2510if test -n "$CONFIG_SITE"; then 2511 # We do not want a PATH search for config.site. 2512 case $CONFIG_SITE in #(( 2513 -*) ac_site_file1=./$CONFIG_SITE;; 2514 */*) ac_site_file1=$CONFIG_SITE;; 2515 *) ac_site_file1=./$CONFIG_SITE;; 2516 esac 2517elif test "x$prefix" != xNONE; then 2518 ac_site_file1=$prefix/share/config.site 2519 ac_site_file2=$prefix/etc/config.site 2520else 2521 ac_site_file1=$ac_default_prefix/share/config.site 2522 ac_site_file2=$ac_default_prefix/etc/config.site 2523fi 2524for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2525do 2526 test "x$ac_site_file" = xNONE && continue 2527 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2528 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2529$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2530 sed 's/^/| /' "$ac_site_file" >&5 2531 . "$ac_site_file" \ 2532 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2533$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2534as_fn_error $? "failed to load site script $ac_site_file 2535See \`config.log' for more details" "$LINENO" 5; } 2536 fi 2537done 2538 2539if test -r "$cache_file"; then 2540 # Some versions of bash will fail to source /dev/null (special files 2541 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2542 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2543 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2544$as_echo "$as_me: loading cache $cache_file" >&6;} 2545 case $cache_file in 2546 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2547 *) . "./$cache_file";; 2548 esac 2549 fi 2550else 2551 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2552$as_echo "$as_me: creating cache $cache_file" >&6;} 2553 >$cache_file 2554fi 2555 2556# Check that the precious variables saved in the cache have kept the same 2557# value. 2558ac_cache_corrupted=false 2559for ac_var in $ac_precious_vars; do 2560 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2561 eval ac_new_set=\$ac_env_${ac_var}_set 2562 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2563 eval ac_new_val=\$ac_env_${ac_var}_value 2564 case $ac_old_set,$ac_new_set in 2565 set,) 2566 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2567$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2568 ac_cache_corrupted=: ;; 2569 ,set) 2570 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2571$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2572 ac_cache_corrupted=: ;; 2573 ,);; 2574 *) 2575 if test "x$ac_old_val" != "x$ac_new_val"; then 2576 # differences in whitespace do not lead to failure. 2577 ac_old_val_w=`echo x $ac_old_val` 2578 ac_new_val_w=`echo x $ac_new_val` 2579 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2580 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2581$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2582 ac_cache_corrupted=: 2583 else 2584 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2585$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2586 eval $ac_var=\$ac_old_val 2587 fi 2588 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2589$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2590 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2591$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2592 fi;; 2593 esac 2594 # Pass precious variables to config.status. 2595 if test "$ac_new_set" = set; then 2596 case $ac_new_val in 2597 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2598 *) ac_arg=$ac_var=$ac_new_val ;; 2599 esac 2600 case " $ac_configure_args " in 2601 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2602 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2603 esac 2604 fi 2605done 2606if $ac_cache_corrupted; then 2607 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2608$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2609 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2610$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2611 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2612fi 2613## -------------------- ## 2614## Main body of script. ## 2615## -------------------- ## 2616 2617ac_ext=c 2618ac_cpp='$CPP $CPPFLAGS' 2619ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2620ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2621ac_compiler_gnu=$ac_cv_c_compiler_gnu 2622 2623 2624ac_config_headers="$ac_config_headers auto/config.h:config.h.in" 2625 2626 2627$as_echo "#define UNIX 1" >>confdefs.h 2628 2629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2630$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2631set x ${MAKE-make} 2632ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2633if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2634 $as_echo_n "(cached) " >&6 2635else 2636 cat >conftest.make <<\_ACEOF 2637SHELL = /bin/sh 2638all: 2639 @echo '@@@%%%=$(MAKE)=@@@%%%' 2640_ACEOF 2641# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2642case `${MAKE-make} -f conftest.make 2>/dev/null` in 2643 *@@@%%%=?*=@@@%%%*) 2644 eval ac_cv_prog_make_${ac_make}_set=yes;; 2645 *) 2646 eval ac_cv_prog_make_${ac_make}_set=no;; 2647esac 2648rm -f conftest.make 2649fi 2650if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2652$as_echo "yes" >&6; } 2653 SET_MAKE= 2654else 2655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2656$as_echo "no" >&6; } 2657 SET_MAKE="MAKE=${MAKE-make}" 2658fi 2659 2660 2661ac_ext=c 2662ac_cpp='$CPP $CPPFLAGS' 2663ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2664ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2665ac_compiler_gnu=$ac_cv_c_compiler_gnu 2666if test -n "$ac_tool_prefix"; then 2667 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2668set dummy ${ac_tool_prefix}gcc; ac_word=$2 2669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2670$as_echo_n "checking for $ac_word... " >&6; } 2671if ${ac_cv_prog_CC+:} false; then : 2672 $as_echo_n "(cached) " >&6 2673else 2674 if test -n "$CC"; then 2675 ac_cv_prog_CC="$CC" # Let the user override the test. 2676else 2677as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2678for as_dir in $PATH 2679do 2680 IFS=$as_save_IFS 2681 test -z "$as_dir" && as_dir=. 2682 for ac_exec_ext in '' $ac_executable_extensions; do 2683 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2684 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2686 break 2 2687 fi 2688done 2689 done 2690IFS=$as_save_IFS 2691 2692fi 2693fi 2694CC=$ac_cv_prog_CC 2695if test -n "$CC"; then 2696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2697$as_echo "$CC" >&6; } 2698else 2699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2700$as_echo "no" >&6; } 2701fi 2702 2703 2704fi 2705if test -z "$ac_cv_prog_CC"; then 2706 ac_ct_CC=$CC 2707 # Extract the first word of "gcc", so it can be a program name with args. 2708set dummy gcc; ac_word=$2 2709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2710$as_echo_n "checking for $ac_word... " >&6; } 2711if ${ac_cv_prog_ac_ct_CC+:} false; then : 2712 $as_echo_n "(cached) " >&6 2713else 2714 if test -n "$ac_ct_CC"; then 2715 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2716else 2717as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2718for as_dir in $PATH 2719do 2720 IFS=$as_save_IFS 2721 test -z "$as_dir" && as_dir=. 2722 for ac_exec_ext in '' $ac_executable_extensions; do 2723 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2724 ac_cv_prog_ac_ct_CC="gcc" 2725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2726 break 2 2727 fi 2728done 2729 done 2730IFS=$as_save_IFS 2731 2732fi 2733fi 2734ac_ct_CC=$ac_cv_prog_ac_ct_CC 2735if test -n "$ac_ct_CC"; then 2736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2737$as_echo "$ac_ct_CC" >&6; } 2738else 2739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2740$as_echo "no" >&6; } 2741fi 2742 2743 if test "x$ac_ct_CC" = x; then 2744 CC="" 2745 else 2746 case $cross_compiling:$ac_tool_warned in 2747yes:) 2748{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2749$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2750ac_tool_warned=yes ;; 2751esac 2752 CC=$ac_ct_CC 2753 fi 2754else 2755 CC="$ac_cv_prog_CC" 2756fi 2757 2758if test -z "$CC"; then 2759 if test -n "$ac_tool_prefix"; then 2760 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2761set dummy ${ac_tool_prefix}cc; ac_word=$2 2762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2763$as_echo_n "checking for $ac_word... " >&6; } 2764if ${ac_cv_prog_CC+:} false; then : 2765 $as_echo_n "(cached) " >&6 2766else 2767 if test -n "$CC"; then 2768 ac_cv_prog_CC="$CC" # Let the user override the test. 2769else 2770as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2771for as_dir in $PATH 2772do 2773 IFS=$as_save_IFS 2774 test -z "$as_dir" && as_dir=. 2775 for ac_exec_ext in '' $ac_executable_extensions; do 2776 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2777 ac_cv_prog_CC="${ac_tool_prefix}cc" 2778 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2779 break 2 2780 fi 2781done 2782 done 2783IFS=$as_save_IFS 2784 2785fi 2786fi 2787CC=$ac_cv_prog_CC 2788if test -n "$CC"; then 2789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2790$as_echo "$CC" >&6; } 2791else 2792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2793$as_echo "no" >&6; } 2794fi 2795 2796 2797 fi 2798fi 2799if test -z "$CC"; then 2800 # Extract the first word of "cc", so it can be a program name with args. 2801set dummy cc; ac_word=$2 2802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2803$as_echo_n "checking for $ac_word... " >&6; } 2804if ${ac_cv_prog_CC+:} false; then : 2805 $as_echo_n "(cached) " >&6 2806else 2807 if test -n "$CC"; then 2808 ac_cv_prog_CC="$CC" # Let the user override the test. 2809else 2810 ac_prog_rejected=no 2811as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2812for as_dir in $PATH 2813do 2814 IFS=$as_save_IFS 2815 test -z "$as_dir" && as_dir=. 2816 for ac_exec_ext in '' $ac_executable_extensions; do 2817 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2818 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2819 ac_prog_rejected=yes 2820 continue 2821 fi 2822 ac_cv_prog_CC="cc" 2823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2824 break 2 2825 fi 2826done 2827 done 2828IFS=$as_save_IFS 2829 2830if test $ac_prog_rejected = yes; then 2831 # We found a bogon in the path, so make sure we never use it. 2832 set dummy $ac_cv_prog_CC 2833 shift 2834 if test $# != 0; then 2835 # We chose a different compiler from the bogus one. 2836 # However, it has the same basename, so the bogon will be chosen 2837 # first if we set CC to just the basename; use the full file name. 2838 shift 2839 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2840 fi 2841fi 2842fi 2843fi 2844CC=$ac_cv_prog_CC 2845if test -n "$CC"; then 2846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2847$as_echo "$CC" >&6; } 2848else 2849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2850$as_echo "no" >&6; } 2851fi 2852 2853 2854fi 2855if test -z "$CC"; then 2856 if test -n "$ac_tool_prefix"; then 2857 for ac_prog in cl.exe 2858 do 2859 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2860set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2862$as_echo_n "checking for $ac_word... " >&6; } 2863if ${ac_cv_prog_CC+:} false; then : 2864 $as_echo_n "(cached) " >&6 2865else 2866 if test -n "$CC"; then 2867 ac_cv_prog_CC="$CC" # Let the user override the test. 2868else 2869as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2870for as_dir in $PATH 2871do 2872 IFS=$as_save_IFS 2873 test -z "$as_dir" && as_dir=. 2874 for ac_exec_ext in '' $ac_executable_extensions; do 2875 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2876 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2878 break 2 2879 fi 2880done 2881 done 2882IFS=$as_save_IFS 2883 2884fi 2885fi 2886CC=$ac_cv_prog_CC 2887if test -n "$CC"; then 2888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2889$as_echo "$CC" >&6; } 2890else 2891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2892$as_echo "no" >&6; } 2893fi 2894 2895 2896 test -n "$CC" && break 2897 done 2898fi 2899if test -z "$CC"; then 2900 ac_ct_CC=$CC 2901 for ac_prog in cl.exe 2902do 2903 # Extract the first word of "$ac_prog", so it can be a program name with args. 2904set dummy $ac_prog; ac_word=$2 2905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2906$as_echo_n "checking for $ac_word... " >&6; } 2907if ${ac_cv_prog_ac_ct_CC+:} false; then : 2908 $as_echo_n "(cached) " >&6 2909else 2910 if test -n "$ac_ct_CC"; then 2911 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2912else 2913as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2914for as_dir in $PATH 2915do 2916 IFS=$as_save_IFS 2917 test -z "$as_dir" && as_dir=. 2918 for ac_exec_ext in '' $ac_executable_extensions; do 2919 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2920 ac_cv_prog_ac_ct_CC="$ac_prog" 2921 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2922 break 2 2923 fi 2924done 2925 done 2926IFS=$as_save_IFS 2927 2928fi 2929fi 2930ac_ct_CC=$ac_cv_prog_ac_ct_CC 2931if test -n "$ac_ct_CC"; then 2932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2933$as_echo "$ac_ct_CC" >&6; } 2934else 2935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2936$as_echo "no" >&6; } 2937fi 2938 2939 2940 test -n "$ac_ct_CC" && break 2941done 2942 2943 if test "x$ac_ct_CC" = x; then 2944 CC="" 2945 else 2946 case $cross_compiling:$ac_tool_warned in 2947yes:) 2948{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2949$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2950ac_tool_warned=yes ;; 2951esac 2952 CC=$ac_ct_CC 2953 fi 2954fi 2955 2956fi 2957 2958 2959test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2960$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2961as_fn_error $? "no acceptable C compiler found in \$PATH 2962See \`config.log' for more details" "$LINENO" 5; } 2963 2964# Provide some information about the compiler. 2965$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 2966set X $ac_compile 2967ac_compiler=$2 2968for ac_option in --version -v -V -qversion; do 2969 { { ac_try="$ac_compiler $ac_option >&5" 2970case "(($ac_try" in 2971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2972 *) ac_try_echo=$ac_try;; 2973esac 2974eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2975$as_echo "$ac_try_echo"; } >&5 2976 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 2977 ac_status=$? 2978 if test -s conftest.err; then 2979 sed '10a\ 2980... rest of stderr output deleted ... 2981 10q' conftest.err >conftest.er1 2982 cat conftest.er1 >&5 2983 fi 2984 rm -f conftest.er1 conftest.err 2985 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2986 test $ac_status = 0; } 2987done 2988 2989cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2990/* end confdefs.h. */ 2991 2992int 2993main () 2994{ 2995 2996 ; 2997 return 0; 2998} 2999_ACEOF 3000ac_clean_files_save=$ac_clean_files 3001ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3002# Try to create an executable without -o first, disregard a.out. 3003# It will help us diagnose broken compilers, and finding out an intuition 3004# of exeext. 3005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3006$as_echo_n "checking whether the C compiler works... " >&6; } 3007ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3008 3009# The possible output files: 3010ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3011 3012ac_rmfiles= 3013for ac_file in $ac_files 3014do 3015 case $ac_file in 3016 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3017 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3018 esac 3019done 3020rm -f $ac_rmfiles 3021 3022if { { ac_try="$ac_link_default" 3023case "(($ac_try" in 3024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3025 *) ac_try_echo=$ac_try;; 3026esac 3027eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3028$as_echo "$ac_try_echo"; } >&5 3029 (eval "$ac_link_default") 2>&5 3030 ac_status=$? 3031 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3032 test $ac_status = 0; }; then : 3033 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3034# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3035# in a Makefile. We should not override ac_cv_exeext if it was cached, 3036# so that the user can short-circuit this test for compilers unknown to 3037# Autoconf. 3038for ac_file in $ac_files '' 3039do 3040 test -f "$ac_file" || continue 3041 case $ac_file in 3042 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3043 ;; 3044 [ab].out ) 3045 # We found the default executable, but exeext='' is most 3046 # certainly right. 3047 break;; 3048 *.* ) 3049 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3050 then :; else 3051 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3052 fi 3053 # We set ac_cv_exeext here because the later test for it is not 3054 # safe: cross compilers may not add the suffix if given an `-o' 3055 # argument, so we may need to know it at that point already. 3056 # Even if this section looks crufty: it has the advantage of 3057 # actually working. 3058 break;; 3059 * ) 3060 break;; 3061 esac 3062done 3063test "$ac_cv_exeext" = no && ac_cv_exeext= 3064 3065else 3066 ac_file='' 3067fi 3068if test -z "$ac_file"; then : 3069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3070$as_echo "no" >&6; } 3071$as_echo "$as_me: failed program was:" >&5 3072sed 's/^/| /' conftest.$ac_ext >&5 3073 3074{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3075$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3076as_fn_error 77 "C compiler cannot create executables 3077See \`config.log' for more details" "$LINENO" 5; } 3078else 3079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3080$as_echo "yes" >&6; } 3081fi 3082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3083$as_echo_n "checking for C compiler default output file name... " >&6; } 3084{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3085$as_echo "$ac_file" >&6; } 3086ac_exeext=$ac_cv_exeext 3087 3088rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3089ac_clean_files=$ac_clean_files_save 3090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3091$as_echo_n "checking for suffix of executables... " >&6; } 3092if { { ac_try="$ac_link" 3093case "(($ac_try" in 3094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3095 *) ac_try_echo=$ac_try;; 3096esac 3097eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3098$as_echo "$ac_try_echo"; } >&5 3099 (eval "$ac_link") 2>&5 3100 ac_status=$? 3101 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3102 test $ac_status = 0; }; then : 3103 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3104# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3105# work properly (i.e., refer to `conftest.exe'), while it won't with 3106# `rm'. 3107for ac_file in conftest.exe conftest conftest.*; do 3108 test -f "$ac_file" || continue 3109 case $ac_file in 3110 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3111 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3112 break;; 3113 * ) break;; 3114 esac 3115done 3116else 3117 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3118$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3119as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3120See \`config.log' for more details" "$LINENO" 5; } 3121fi 3122rm -f conftest conftest$ac_cv_exeext 3123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3124$as_echo "$ac_cv_exeext" >&6; } 3125 3126rm -f conftest.$ac_ext 3127EXEEXT=$ac_cv_exeext 3128ac_exeext=$EXEEXT 3129cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3130/* end confdefs.h. */ 3131#include <stdio.h> 3132int 3133main () 3134{ 3135FILE *f = fopen ("conftest.out", "w"); 3136 return ferror (f) || fclose (f) != 0; 3137 3138 ; 3139 return 0; 3140} 3141_ACEOF 3142ac_clean_files="$ac_clean_files conftest.out" 3143# Check that the compiler produces executables we can run. If not, either 3144# the compiler is broken, or we cross compile. 3145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3146$as_echo_n "checking whether we are cross compiling... " >&6; } 3147if test "$cross_compiling" != yes; then 3148 { { ac_try="$ac_link" 3149case "(($ac_try" in 3150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3151 *) ac_try_echo=$ac_try;; 3152esac 3153eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3154$as_echo "$ac_try_echo"; } >&5 3155 (eval "$ac_link") 2>&5 3156 ac_status=$? 3157 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3158 test $ac_status = 0; } 3159 if { ac_try='./conftest$ac_cv_exeext' 3160 { { case "(($ac_try" in 3161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3162 *) ac_try_echo=$ac_try;; 3163esac 3164eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3165$as_echo "$ac_try_echo"; } >&5 3166 (eval "$ac_try") 2>&5 3167 ac_status=$? 3168 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3169 test $ac_status = 0; }; }; then 3170 cross_compiling=no 3171 else 3172 if test "$cross_compiling" = maybe; then 3173 cross_compiling=yes 3174 else 3175 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3176$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3177as_fn_error $? "cannot run C compiled programs. 3178If you meant to cross compile, use \`--host'. 3179See \`config.log' for more details" "$LINENO" 5; } 3180 fi 3181 fi 3182fi 3183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3184$as_echo "$cross_compiling" >&6; } 3185 3186rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3187ac_clean_files=$ac_clean_files_save 3188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3189$as_echo_n "checking for suffix of object files... " >&6; } 3190if ${ac_cv_objext+:} false; then : 3191 $as_echo_n "(cached) " >&6 3192else 3193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3194/* end confdefs.h. */ 3195 3196int 3197main () 3198{ 3199 3200 ; 3201 return 0; 3202} 3203_ACEOF 3204rm -f conftest.o conftest.obj 3205if { { ac_try="$ac_compile" 3206case "(($ac_try" in 3207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3208 *) ac_try_echo=$ac_try;; 3209esac 3210eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3211$as_echo "$ac_try_echo"; } >&5 3212 (eval "$ac_compile") 2>&5 3213 ac_status=$? 3214 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3215 test $ac_status = 0; }; then : 3216 for ac_file in conftest.o conftest.obj conftest.*; do 3217 test -f "$ac_file" || continue; 3218 case $ac_file in 3219 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3220 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3221 break;; 3222 esac 3223done 3224else 3225 $as_echo "$as_me: failed program was:" >&5 3226sed 's/^/| /' conftest.$ac_ext >&5 3227 3228{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3229$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3230as_fn_error $? "cannot compute suffix of object files: cannot compile 3231See \`config.log' for more details" "$LINENO" 5; } 3232fi 3233rm -f conftest.$ac_cv_objext conftest.$ac_ext 3234fi 3235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3236$as_echo "$ac_cv_objext" >&6; } 3237OBJEXT=$ac_cv_objext 3238ac_objext=$OBJEXT 3239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3240$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3241if ${ac_cv_c_compiler_gnu+:} false; then : 3242 $as_echo_n "(cached) " >&6 3243else 3244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3245/* end confdefs.h. */ 3246 3247int 3248main () 3249{ 3250#ifndef __GNUC__ 3251 choke me 3252#endif 3253 3254 ; 3255 return 0; 3256} 3257_ACEOF 3258if ac_fn_c_try_compile "$LINENO"; then : 3259 ac_compiler_gnu=yes 3260else 3261 ac_compiler_gnu=no 3262fi 3263rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3264ac_cv_c_compiler_gnu=$ac_compiler_gnu 3265 3266fi 3267{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3268$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3269if test $ac_compiler_gnu = yes; then 3270 GCC=yes 3271else 3272 GCC= 3273fi 3274ac_test_CFLAGS=${CFLAGS+set} 3275ac_save_CFLAGS=$CFLAGS 3276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3277$as_echo_n "checking whether $CC accepts -g... " >&6; } 3278if ${ac_cv_prog_cc_g+:} false; then : 3279 $as_echo_n "(cached) " >&6 3280else 3281 ac_save_c_werror_flag=$ac_c_werror_flag 3282 ac_c_werror_flag=yes 3283 ac_cv_prog_cc_g=no 3284 CFLAGS="-g" 3285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3286/* end confdefs.h. */ 3287 3288int 3289main () 3290{ 3291 3292 ; 3293 return 0; 3294} 3295_ACEOF 3296if ac_fn_c_try_compile "$LINENO"; then : 3297 ac_cv_prog_cc_g=yes 3298else 3299 CFLAGS="" 3300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3301/* end confdefs.h. */ 3302 3303int 3304main () 3305{ 3306 3307 ; 3308 return 0; 3309} 3310_ACEOF 3311if ac_fn_c_try_compile "$LINENO"; then : 3312 3313else 3314 ac_c_werror_flag=$ac_save_c_werror_flag 3315 CFLAGS="-g" 3316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3317/* end confdefs.h. */ 3318 3319int 3320main () 3321{ 3322 3323 ; 3324 return 0; 3325} 3326_ACEOF 3327if ac_fn_c_try_compile "$LINENO"; then : 3328 ac_cv_prog_cc_g=yes 3329fi 3330rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3331fi 3332rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3333fi 3334rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3335 ac_c_werror_flag=$ac_save_c_werror_flag 3336fi 3337{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3338$as_echo "$ac_cv_prog_cc_g" >&6; } 3339if test "$ac_test_CFLAGS" = set; then 3340 CFLAGS=$ac_save_CFLAGS 3341elif test $ac_cv_prog_cc_g = yes; then 3342 if test "$GCC" = yes; then 3343 CFLAGS="-g -O2" 3344 else 3345 CFLAGS="-g" 3346 fi 3347else 3348 if test "$GCC" = yes; then 3349 CFLAGS="-O2" 3350 else 3351 CFLAGS= 3352 fi 3353fi 3354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3355$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3356if ${ac_cv_prog_cc_c89+:} false; then : 3357 $as_echo_n "(cached) " >&6 3358else 3359 ac_cv_prog_cc_c89=no 3360ac_save_CC=$CC 3361cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3362/* end confdefs.h. */ 3363#include <stdarg.h> 3364#include <stdio.h> 3365struct stat; 3366/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3367struct buf { int x; }; 3368FILE * (*rcsopen) (struct buf *, struct stat *, int); 3369static char *e (p, i) 3370 char **p; 3371 int i; 3372{ 3373 return p[i]; 3374} 3375static char *f (char * (*g) (char **, int), char **p, ...) 3376{ 3377 char *s; 3378 va_list v; 3379 va_start (v,p); 3380 s = g (p, va_arg (v,int)); 3381 va_end (v); 3382 return s; 3383} 3384 3385/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3386 function prototypes and stuff, but not '\xHH' hex character constants. 3387 These don't provoke an error unfortunately, instead are silently treated 3388 as 'x'. The following induces an error, until -std is added to get 3389 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3390 array size at least. It's necessary to write '\x00'==0 to get something 3391 that's true only with -std. */ 3392int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3393 3394/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3395 inside strings and character constants. */ 3396#define FOO(x) 'x' 3397int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3398 3399int test (int i, double x); 3400struct s1 {int (*f) (int a);}; 3401struct s2 {int (*f) (double a);}; 3402int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3403int argc; 3404char **argv; 3405int 3406main () 3407{ 3408return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3409 ; 3410 return 0; 3411} 3412_ACEOF 3413for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3414 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3415do 3416 CC="$ac_save_CC $ac_arg" 3417 if ac_fn_c_try_compile "$LINENO"; then : 3418 ac_cv_prog_cc_c89=$ac_arg 3419fi 3420rm -f core conftest.err conftest.$ac_objext 3421 test "x$ac_cv_prog_cc_c89" != "xno" && break 3422done 3423rm -f conftest.$ac_ext 3424CC=$ac_save_CC 3425 3426fi 3427# AC_CACHE_VAL 3428case "x$ac_cv_prog_cc_c89" in 3429 x) 3430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3431$as_echo "none needed" >&6; } ;; 3432 xno) 3433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3434$as_echo "unsupported" >&6; } ;; 3435 *) 3436 CC="$CC $ac_cv_prog_cc_c89" 3437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3438$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3439esac 3440if test "x$ac_cv_prog_cc_c89" != xno; then : 3441 3442fi 3443 3444ac_ext=c 3445ac_cpp='$CPP $CPPFLAGS' 3446ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3447ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3448ac_compiler_gnu=$ac_cv_c_compiler_gnu 3449 ac_ext=c 3450ac_cpp='$CPP $CPPFLAGS' 3451ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3452ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3453ac_compiler_gnu=$ac_cv_c_compiler_gnu 3454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 3455$as_echo_n "checking how to run the C preprocessor... " >&6; } 3456# On Suns, sometimes $CPP names a directory. 3457if test -n "$CPP" && test -d "$CPP"; then 3458 CPP= 3459fi 3460if test -z "$CPP"; then 3461 if ${ac_cv_prog_CPP+:} false; then : 3462 $as_echo_n "(cached) " >&6 3463else 3464 # Double quotes because CPP needs to be expanded 3465 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3466 do 3467 ac_preproc_ok=false 3468for ac_c_preproc_warn_flag in '' yes 3469do 3470 # Use a header file that comes with gcc, so configuring glibc 3471 # with a fresh cross-compiler works. 3472 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3473 # <limits.h> exists even on freestanding compilers. 3474 # On the NeXT, cc -E runs the code through the compiler's parser, 3475 # not just through cpp. "Syntax error" is here to catch this case. 3476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3477/* end confdefs.h. */ 3478#ifdef __STDC__ 3479# include <limits.h> 3480#else 3481# include <assert.h> 3482#endif 3483 Syntax error 3484_ACEOF 3485if ac_fn_c_try_cpp "$LINENO"; then : 3486 3487else 3488 # Broken: fails on valid input. 3489continue 3490fi 3491rm -f conftest.err conftest.i conftest.$ac_ext 3492 3493 # OK, works on sane cases. Now check whether nonexistent headers 3494 # can be detected and how. 3495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3496/* end confdefs.h. */ 3497#include <ac_nonexistent.h> 3498_ACEOF 3499if ac_fn_c_try_cpp "$LINENO"; then : 3500 # Broken: success on invalid input. 3501continue 3502else 3503 # Passes both tests. 3504ac_preproc_ok=: 3505break 3506fi 3507rm -f conftest.err conftest.i conftest.$ac_ext 3508 3509done 3510# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3511rm -f conftest.i conftest.err conftest.$ac_ext 3512if $ac_preproc_ok; then : 3513 break 3514fi 3515 3516 done 3517 ac_cv_prog_CPP=$CPP 3518 3519fi 3520 CPP=$ac_cv_prog_CPP 3521else 3522 ac_cv_prog_CPP=$CPP 3523fi 3524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 3525$as_echo "$CPP" >&6; } 3526ac_preproc_ok=false 3527for ac_c_preproc_warn_flag in '' yes 3528do 3529 # Use a header file that comes with gcc, so configuring glibc 3530 # with a fresh cross-compiler works. 3531 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3532 # <limits.h> exists even on freestanding compilers. 3533 # On the NeXT, cc -E runs the code through the compiler's parser, 3534 # not just through cpp. "Syntax error" is here to catch this case. 3535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3536/* end confdefs.h. */ 3537#ifdef __STDC__ 3538# include <limits.h> 3539#else 3540# include <assert.h> 3541#endif 3542 Syntax error 3543_ACEOF 3544if ac_fn_c_try_cpp "$LINENO"; then : 3545 3546else 3547 # Broken: fails on valid input. 3548continue 3549fi 3550rm -f conftest.err conftest.i conftest.$ac_ext 3551 3552 # OK, works on sane cases. Now check whether nonexistent headers 3553 # can be detected and how. 3554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3555/* end confdefs.h. */ 3556#include <ac_nonexistent.h> 3557_ACEOF 3558if ac_fn_c_try_cpp "$LINENO"; then : 3559 # Broken: success on invalid input. 3560continue 3561else 3562 # Passes both tests. 3563ac_preproc_ok=: 3564break 3565fi 3566rm -f conftest.err conftest.i conftest.$ac_ext 3567 3568done 3569# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3570rm -f conftest.i conftest.err conftest.$ac_ext 3571if $ac_preproc_ok; then : 3572 3573else 3574 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3575$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3576as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 3577See \`config.log' for more details" "$LINENO" 5; } 3578fi 3579 3580ac_ext=c 3581ac_cpp='$CPP $CPPFLAGS' 3582ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3583ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3584ac_compiler_gnu=$ac_cv_c_compiler_gnu 3585 3586 3587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 3588$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3589if ${ac_cv_path_GREP+:} false; then : 3590 $as_echo_n "(cached) " >&6 3591else 3592 if test -z "$GREP"; then 3593 ac_path_GREP_found=false 3594 # Loop through the user's path and test for each of PROGNAME-LIST 3595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3596for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3597do 3598 IFS=$as_save_IFS 3599 test -z "$as_dir" && as_dir=. 3600 for ac_prog in grep ggrep; do 3601 for ac_exec_ext in '' $ac_executable_extensions; do 3602 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3603 as_fn_executable_p "$ac_path_GREP" || continue 3604# Check for GNU ac_path_GREP and select it if it is found. 3605 # Check for GNU $ac_path_GREP 3606case `"$ac_path_GREP" --version 2>&1` in 3607*GNU*) 3608 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3609*) 3610 ac_count=0 3611 $as_echo_n 0123456789 >"conftest.in" 3612 while : 3613 do 3614 cat "conftest.in" "conftest.in" >"conftest.tmp" 3615 mv "conftest.tmp" "conftest.in" 3616 cp "conftest.in" "conftest.nl" 3617 $as_echo 'GREP' >> "conftest.nl" 3618 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3619 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3620 as_fn_arith $ac_count + 1 && ac_count=$as_val 3621 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3622 # Best one so far, save it but keep looking for a better one 3623 ac_cv_path_GREP="$ac_path_GREP" 3624 ac_path_GREP_max=$ac_count 3625 fi 3626 # 10*(2^10) chars as input seems more than enough 3627 test $ac_count -gt 10 && break 3628 done 3629 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3630esac 3631 3632 $ac_path_GREP_found && break 3 3633 done 3634 done 3635 done 3636IFS=$as_save_IFS 3637 if test -z "$ac_cv_path_GREP"; then 3638 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3639 fi 3640else 3641 ac_cv_path_GREP=$GREP 3642fi 3643 3644fi 3645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 3646$as_echo "$ac_cv_path_GREP" >&6; } 3647 GREP="$ac_cv_path_GREP" 3648 3649 3650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 3651$as_echo_n "checking for egrep... " >&6; } 3652if ${ac_cv_path_EGREP+:} false; then : 3653 $as_echo_n "(cached) " >&6 3654else 3655 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3656 then ac_cv_path_EGREP="$GREP -E" 3657 else 3658 if test -z "$EGREP"; then 3659 ac_path_EGREP_found=false 3660 # Loop through the user's path and test for each of PROGNAME-LIST 3661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3662for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3663do 3664 IFS=$as_save_IFS 3665 test -z "$as_dir" && as_dir=. 3666 for ac_prog in egrep; do 3667 for ac_exec_ext in '' $ac_executable_extensions; do 3668 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3669 as_fn_executable_p "$ac_path_EGREP" || continue 3670# Check for GNU ac_path_EGREP and select it if it is found. 3671 # Check for GNU $ac_path_EGREP 3672case `"$ac_path_EGREP" --version 2>&1` in 3673*GNU*) 3674 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3675*) 3676 ac_count=0 3677 $as_echo_n 0123456789 >"conftest.in" 3678 while : 3679 do 3680 cat "conftest.in" "conftest.in" >"conftest.tmp" 3681 mv "conftest.tmp" "conftest.in" 3682 cp "conftest.in" "conftest.nl" 3683 $as_echo 'EGREP' >> "conftest.nl" 3684 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3685 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3686 as_fn_arith $ac_count + 1 && ac_count=$as_val 3687 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3688 # Best one so far, save it but keep looking for a better one 3689 ac_cv_path_EGREP="$ac_path_EGREP" 3690 ac_path_EGREP_max=$ac_count 3691 fi 3692 # 10*(2^10) chars as input seems more than enough 3693 test $ac_count -gt 10 && break 3694 done 3695 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3696esac 3697 3698 $ac_path_EGREP_found && break 3 3699 done 3700 done 3701 done 3702IFS=$as_save_IFS 3703 if test -z "$ac_cv_path_EGREP"; then 3704 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3705 fi 3706else 3707 ac_cv_path_EGREP=$EGREP 3708fi 3709 3710 fi 3711fi 3712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 3713$as_echo "$ac_cv_path_EGREP" >&6; } 3714 EGREP="$ac_cv_path_EGREP" 3715 3716 3717cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3718/* end confdefs.h. */ 3719 3720_ACEOF 3721if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3722 $EGREP "" >/dev/null 2>&1; then : 3723 3724fi 3725rm -f conftest* 3726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 3727$as_echo_n "checking for fgrep... " >&6; } 3728if ${ac_cv_path_FGREP+:} false; then : 3729 $as_echo_n "(cached) " >&6 3730else 3731 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 3732 then ac_cv_path_FGREP="$GREP -F" 3733 else 3734 if test -z "$FGREP"; then 3735 ac_path_FGREP_found=false 3736 # Loop through the user's path and test for each of PROGNAME-LIST 3737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3738for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3739do 3740 IFS=$as_save_IFS 3741 test -z "$as_dir" && as_dir=. 3742 for ac_prog in fgrep; do 3743 for ac_exec_ext in '' $ac_executable_extensions; do 3744 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 3745 as_fn_executable_p "$ac_path_FGREP" || continue 3746# Check for GNU ac_path_FGREP and select it if it is found. 3747 # Check for GNU $ac_path_FGREP 3748case `"$ac_path_FGREP" --version 2>&1` in 3749*GNU*) 3750 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 3751*) 3752 ac_count=0 3753 $as_echo_n 0123456789 >"conftest.in" 3754 while : 3755 do 3756 cat "conftest.in" "conftest.in" >"conftest.tmp" 3757 mv "conftest.tmp" "conftest.in" 3758 cp "conftest.in" "conftest.nl" 3759 $as_echo 'FGREP' >> "conftest.nl" 3760 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 3761 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3762 as_fn_arith $ac_count + 1 && ac_count=$as_val 3763 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 3764 # Best one so far, save it but keep looking for a better one 3765 ac_cv_path_FGREP="$ac_path_FGREP" 3766 ac_path_FGREP_max=$ac_count 3767 fi 3768 # 10*(2^10) chars as input seems more than enough 3769 test $ac_count -gt 10 && break 3770 done 3771 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3772esac 3773 3774 $ac_path_FGREP_found && break 3 3775 done 3776 done 3777 done 3778IFS=$as_save_IFS 3779 if test -z "$ac_cv_path_FGREP"; then 3780 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3781 fi 3782else 3783 ac_cv_path_FGREP=$FGREP 3784fi 3785 3786 fi 3787fi 3788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 3789$as_echo "$ac_cv_path_FGREP" >&6; } 3790 FGREP="$ac_cv_path_FGREP" 3791 3792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5 3793$as_echo_n "checking for library containing strerror... " >&6; } 3794if ${ac_cv_search_strerror+:} false; then : 3795 $as_echo_n "(cached) " >&6 3796else 3797 ac_func_search_save_LIBS=$LIBS 3798cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3799/* end confdefs.h. */ 3800 3801/* Override any GCC internal prototype to avoid an error. 3802 Use char because int might match the return type of a GCC 3803 builtin and then its argument prototype would still apply. */ 3804#ifdef __cplusplus 3805extern "C" 3806#endif 3807char strerror (); 3808int 3809main () 3810{ 3811return strerror (); 3812 ; 3813 return 0; 3814} 3815_ACEOF 3816for ac_lib in '' cposix; do 3817 if test -z "$ac_lib"; then 3818 ac_res="none required" 3819 else 3820 ac_res=-l$ac_lib 3821 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 3822 fi 3823 if ac_fn_c_try_link "$LINENO"; then : 3824 ac_cv_search_strerror=$ac_res 3825fi 3826rm -f core conftest.err conftest.$ac_objext \ 3827 conftest$ac_exeext 3828 if ${ac_cv_search_strerror+:} false; then : 3829 break 3830fi 3831done 3832if ${ac_cv_search_strerror+:} false; then : 3833 3834else 3835 ac_cv_search_strerror=no 3836fi 3837rm conftest.$ac_ext 3838LIBS=$ac_func_search_save_LIBS 3839fi 3840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5 3841$as_echo "$ac_cv_search_strerror" >&6; } 3842ac_res=$ac_cv_search_strerror 3843if test "$ac_res" != no; then : 3844 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 3845 3846fi 3847 for ac_prog in gawk mawk nawk awk 3848do 3849 # Extract the first word of "$ac_prog", so it can be a program name with args. 3850set dummy $ac_prog; ac_word=$2 3851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3852$as_echo_n "checking for $ac_word... " >&6; } 3853if ${ac_cv_prog_AWK+:} false; then : 3854 $as_echo_n "(cached) " >&6 3855else 3856 if test -n "$AWK"; then 3857 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3858else 3859as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3860for as_dir in $PATH 3861do 3862 IFS=$as_save_IFS 3863 test -z "$as_dir" && as_dir=. 3864 for ac_exec_ext in '' $ac_executable_extensions; do 3865 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3866 ac_cv_prog_AWK="$ac_prog" 3867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3868 break 2 3869 fi 3870done 3871 done 3872IFS=$as_save_IFS 3873 3874fi 3875fi 3876AWK=$ac_cv_prog_AWK 3877if test -n "$AWK"; then 3878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3879$as_echo "$AWK" >&6; } 3880else 3881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3882$as_echo "no" >&6; } 3883fi 3884 3885 3886 test -n "$AWK" && break 3887done 3888 3889# Extract the first word of "strip", so it can be a program name with args. 3890set dummy strip; ac_word=$2 3891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3892$as_echo_n "checking for $ac_word... " >&6; } 3893if ${ac_cv_prog_STRIP+:} false; then : 3894 $as_echo_n "(cached) " >&6 3895else 3896 if test -n "$STRIP"; then 3897 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 3898else 3899as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3900for as_dir in $PATH 3901do 3902 IFS=$as_save_IFS 3903 test -z "$as_dir" && as_dir=. 3904 for ac_exec_ext in '' $ac_executable_extensions; do 3905 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3906 ac_cv_prog_STRIP="strip" 3907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3908 break 2 3909 fi 3910done 3911 done 3912IFS=$as_save_IFS 3913 3914 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":" 3915fi 3916fi 3917STRIP=$ac_cv_prog_STRIP 3918if test -n "$STRIP"; then 3919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 3920$as_echo "$STRIP" >&6; } 3921else 3922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3923$as_echo "no" >&6; } 3924fi 3925 3926 3927 3928 3929 3930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 3931$as_echo_n "checking for ANSI C header files... " >&6; } 3932if ${ac_cv_header_stdc+:} false; then : 3933 $as_echo_n "(cached) " >&6 3934else 3935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3936/* end confdefs.h. */ 3937#include <stdlib.h> 3938#include <stdarg.h> 3939#include <string.h> 3940#include <float.h> 3941 3942int 3943main () 3944{ 3945 3946 ; 3947 return 0; 3948} 3949_ACEOF 3950if ac_fn_c_try_compile "$LINENO"; then : 3951 ac_cv_header_stdc=yes 3952else 3953 ac_cv_header_stdc=no 3954fi 3955rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3956 3957if test $ac_cv_header_stdc = yes; then 3958 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3960/* end confdefs.h. */ 3961#include <string.h> 3962 3963_ACEOF 3964if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3965 $EGREP "memchr" >/dev/null 2>&1; then : 3966 3967else 3968 ac_cv_header_stdc=no 3969fi 3970rm -f conftest* 3971 3972fi 3973 3974if test $ac_cv_header_stdc = yes; then 3975 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3977/* end confdefs.h. */ 3978#include <stdlib.h> 3979 3980_ACEOF 3981if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3982 $EGREP "free" >/dev/null 2>&1; then : 3983 3984else 3985 ac_cv_header_stdc=no 3986fi 3987rm -f conftest* 3988 3989fi 3990 3991if test $ac_cv_header_stdc = yes; then 3992 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3993 if test "$cross_compiling" = yes; then : 3994 : 3995else 3996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3997/* end confdefs.h. */ 3998#include <ctype.h> 3999#include <stdlib.h> 4000#if ((' ' & 0x0FF) == 0x020) 4001# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4002# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4003#else 4004# define ISLOWER(c) \ 4005 (('a' <= (c) && (c) <= 'i') \ 4006 || ('j' <= (c) && (c) <= 'r') \ 4007 || ('s' <= (c) && (c) <= 'z')) 4008# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4009#endif 4010 4011#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4012int 4013main () 4014{ 4015 int i; 4016 for (i = 0; i < 256; i++) 4017 if (XOR (islower (i), ISLOWER (i)) 4018 || toupper (i) != TOUPPER (i)) 4019 return 2; 4020 return 0; 4021} 4022_ACEOF 4023if ac_fn_c_try_run "$LINENO"; then : 4024 4025else 4026 ac_cv_header_stdc=no 4027fi 4028rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4029 conftest.$ac_objext conftest.beam conftest.$ac_ext 4030fi 4031 4032fi 4033fi 4034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4035$as_echo "$ac_cv_header_stdc" >&6; } 4036if test $ac_cv_header_stdc = yes; then 4037 4038$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4039 4040fi 4041 4042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5 4043$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; } 4044if ${ac_cv_header_sys_wait_h+:} false; then : 4045 $as_echo_n "(cached) " >&6 4046else 4047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4048/* end confdefs.h. */ 4049#include <sys/types.h> 4050#include <sys/wait.h> 4051#ifndef WEXITSTATUS 4052# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) 4053#endif 4054#ifndef WIFEXITED 4055# define WIFEXITED(stat_val) (((stat_val) & 255) == 0) 4056#endif 4057 4058int 4059main () 4060{ 4061 int s; 4062 wait (&s); 4063 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 4064 ; 4065 return 0; 4066} 4067_ACEOF 4068if ac_fn_c_try_compile "$LINENO"; then : 4069 ac_cv_header_sys_wait_h=yes 4070else 4071 ac_cv_header_sys_wait_h=no 4072fi 4073rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4074fi 4075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5 4076$as_echo "$ac_cv_header_sys_wait_h" >&6; } 4077if test $ac_cv_header_sys_wait_h = yes; then 4078 4079$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h 4080 4081fi 4082 4083 4084 4085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-fail-if-missing argument" >&5 4086$as_echo_n "checking --enable-fail-if-missing argument... " >&6; } 4087# Check whether --enable-fail_if_missing was given. 4088if test "${enable_fail_if_missing+set}" = set; then : 4089 enableval=$enable_fail_if_missing; fail_if_missing="yes" 4090else 4091 fail_if_missing="no" 4092fi 4093 4094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $fail_if_missing" >&5 4095$as_echo "$fail_if_missing" >&6; } 4096 4097if test -z "$CFLAGS"; then 4098 CFLAGS="-O" 4099 test "$GCC" = yes && CFLAGS="-O2 -fno-strength-reduce -Wall" 4100fi 4101if test "$GCC" = yes; then 4102 gccversion=`$CC -dumpversion` 4103 if test "x$gccversion" = "x"; then 4104 gccversion=`$CC --version | sed -e '2,$d' -e 's/darwin.//' -e 's/^[^0-9]*\([0-9]\.[0-9.]*\).*$/\1/g'` 4105 fi 4106 if test "$gccversion" = "3.0.1" -o "$gccversion" = "3.0.2" -o "$gccversion" = "4.0.1"; then 4107 echo 'GCC [34].0.[12] has a bug in the optimizer, disabling "-O#"' 4108 CFLAGS=`echo "$CFLAGS" | sed 's/-O[23456789]/-O/'` 4109 else 4110 if test "$gccversion" = "3.1" -o "$gccversion" = "3.2" -o "$gccversion" = "3.2.1" && `echo "$CFLAGS" | grep -v fno-strength-reduce >/dev/null`; then 4111 echo 'GCC 3.1 and 3.2 have a bug in the optimizer, adding "-fno-strength-reduce"' 4112 CFLAGS="$CFLAGS -fno-strength-reduce" 4113 fi 4114 fi 4115fi 4116 4117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for clang version" >&5 4118$as_echo_n "checking for clang version... " >&6; } 4119CLANG_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'` 4120if test x"$CLANG_VERSION_STRING" != x"" ; then 4121 CLANG_MAJOR=`echo "$CLANG_VERSION_STRING" | sed -n -e 's/\([0-9][0-9]*\)\.[0-9][0-9]*\.[0-9][0-9]*/\1/p'` 4122 CLANG_MINOR=`echo "$CLANG_VERSION_STRING" | sed -n -e 's/[0-9][0-9]*\.\([0-9][0-9]*\)\.[0-9][0-9]*/\1/p'` 4123 CLANG_REVISION=`echo "$CLANG_VERSION_STRING" | sed -n -e 's/[0-9][0-9]*\.[0-9][0-9]*\.\([0-9][0-9]*\)/\1/p'` 4124 CLANG_VERSION=`expr $CLANG_MAJOR '*' 1000000 '+' $CLANG_MINOR '*' 1000 '+' $CLANG_REVISION` 4125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLANG_VERSION" >&5 4126$as_echo "$CLANG_VERSION" >&6; } 4127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if clang supports -fno-strength-reduce" >&5 4128$as_echo_n "checking if clang supports -fno-strength-reduce... " >&6; } 4129 if test "$CLANG_VERSION" -ge 500002075 ; then 4130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4131$as_echo "no" >&6; } 4132 CFLAGS=`echo "$CFLAGS" | sed -e 's/-fno-strength-reduce/ /'` 4133 else 4134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4135$as_echo "yes" >&6; } 4136 fi 4137else 4138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: N/A" >&5 4139$as_echo "N/A" >&6; } 4140fi 4141 4142CROSS_COMPILING= 4143if test "$cross_compiling" = yes; then 4144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot compile a simple program; if not cross compiling check CC and CFLAGS" >&5 4145$as_echo "cannot compile a simple program; if not cross compiling check CC and CFLAGS" >&6; } 4146 CROSS_COMPILING=1 4147fi 4148 4149 4150test "$GCC" = yes && CPP_MM=M; 4151 4152if test -f ./toolcheck; then 4153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for buggy tools..." >&5 4154$as_echo "$as_me: checking for buggy tools..." >&6;} 4155 sh ./toolcheck 1>&6 4156fi 4157 4158OS_EXTRA_SRC=""; OS_EXTRA_OBJ="" 4159 4160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BeOS" >&5 4161$as_echo_n "checking for BeOS... " >&6; } 4162case `uname` in 4163 BeOS) OS_EXTRA_SRC=os_beos.c; OS_EXTRA_OBJ=objects/os_beos.o 4164 BEOS=yes; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4165$as_echo "yes" >&6; };; 4166 *) BEOS=no; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4167$as_echo "no" >&6; };; 4168esac 4169 4170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for QNX" >&5 4171$as_echo_n "checking for QNX... " >&6; } 4172case `uname` in 4173 QNX) OS_EXTRA_SRC=os_qnx.c; OS_EXTRA_OBJ=objects/os_qnx.o 4174 test -z "$with_x" && with_x=no 4175 QNX=yes; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4176$as_echo "yes" >&6; };; 4177 *) QNX=no; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4178$as_echo "no" >&6; };; 4179esac 4180 4181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Darwin (Mac OS X)" >&5 4182$as_echo_n "checking for Darwin (Mac OS X)... " >&6; } 4183if test "`(uname) 2>/dev/null`" = Darwin; then 4184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4185$as_echo "yes" >&6; } 4186 4187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-darwin argument" >&5 4188$as_echo_n "checking --disable-darwin argument... " >&6; } 4189 # Check whether --enable-darwin was given. 4190if test "${enable_darwin+set}" = set; then : 4191 enableval=$enable_darwin; 4192else 4193 enable_darwin="yes" 4194fi 4195 4196 if test "$enable_darwin" = "yes"; then 4197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4198$as_echo "no" >&6; } 4199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Darwin files are there" >&5 4200$as_echo_n "checking if Darwin files are there... " >&6; } 4201 if test -f os_macosx.m; then 4202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4203$as_echo "yes" >&6; } 4204 else 4205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, Darwin support disabled" >&5 4206$as_echo "no, Darwin support disabled" >&6; } 4207 enable_darwin=no 4208 fi 4209 else 4210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, Darwin support excluded" >&5 4211$as_echo "yes, Darwin support excluded" >&6; } 4212 fi 4213 4214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-mac-arch argument" >&5 4215$as_echo_n "checking --with-mac-arch argument... " >&6; } 4216 4217# Check whether --with-mac-arch was given. 4218if test "${with_mac_arch+set}" = set; then : 4219 withval=$with_mac_arch; MACARCH="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MACARCH" >&5 4220$as_echo "$MACARCH" >&6; } 4221else 4222 MACARCH="current"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: defaulting to $MACARCH" >&5 4223$as_echo "defaulting to $MACARCH" >&6; } 4224fi 4225 4226 4227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-developer-dir argument" >&5 4228$as_echo_n "checking --with-developer-dir argument... " >&6; } 4229 4230# Check whether --with-developer-dir was given. 4231if test "${with_developer_dir+set}" = set; then : 4232 withval=$with_developer_dir; DEVELOPER_DIR="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVELOPER_DIR" >&5 4233$as_echo "$DEVELOPER_DIR" >&6; } 4234else 4235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not present" >&5 4236$as_echo "not present" >&6; } 4237fi 4238 4239 4240 if test "x$DEVELOPER_DIR" = "x"; then 4241 # Extract the first word of "xcode-select", so it can be a program name with args. 4242set dummy xcode-select; ac_word=$2 4243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4244$as_echo_n "checking for $ac_word... " >&6; } 4245if ${ac_cv_path_XCODE_SELECT+:} false; then : 4246 $as_echo_n "(cached) " >&6 4247else 4248 case $XCODE_SELECT in 4249 [\\/]* | ?:[\\/]*) 4250 ac_cv_path_XCODE_SELECT="$XCODE_SELECT" # Let the user override the test with a path. 4251 ;; 4252 *) 4253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4254for as_dir in $PATH 4255do 4256 IFS=$as_save_IFS 4257 test -z "$as_dir" && as_dir=. 4258 for ac_exec_ext in '' $ac_executable_extensions; do 4259 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4260 ac_cv_path_XCODE_SELECT="$as_dir/$ac_word$ac_exec_ext" 4261 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4262 break 2 4263 fi 4264done 4265 done 4266IFS=$as_save_IFS 4267 4268 ;; 4269esac 4270fi 4271XCODE_SELECT=$ac_cv_path_XCODE_SELECT 4272if test -n "$XCODE_SELECT"; then 4273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XCODE_SELECT" >&5 4274$as_echo "$XCODE_SELECT" >&6; } 4275else 4276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4277$as_echo "no" >&6; } 4278fi 4279 4280 4281 if test "x$XCODE_SELECT" != "x"; then 4282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for developer dir using xcode-select" >&5 4283$as_echo_n "checking for developer dir using xcode-select... " >&6; } 4284 DEVELOPER_DIR=`$XCODE_SELECT -print-path` 4285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVELOPER_DIR" >&5 4286$as_echo "$DEVELOPER_DIR" >&6; } 4287 else 4288 DEVELOPER_DIR=/Developer 4289 fi 4290 fi 4291 4292 if test "x$MACARCH" = "xboth"; then 4293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 10.4 universal SDK" >&5 4294$as_echo_n "checking for 10.4 universal SDK... " >&6; } 4295 save_cppflags="$CPPFLAGS" 4296 save_cflags="$CFLAGS" 4297 save_ldflags="$LDFLAGS" 4298 CFLAGS="$CFLAGS -isysroot $DEVELOPER_DIR/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc" 4299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4300/* end confdefs.h. */ 4301 4302int 4303main () 4304{ 4305 4306 ; 4307 return 0; 4308} 4309_ACEOF 4310if ac_fn_c_try_link "$LINENO"; then : 4311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5 4312$as_echo "found" >&6; } 4313else 4314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 4315$as_echo "not found" >&6; } 4316 CFLAGS="$save_cflags" 4317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Intel architecture is supported" >&5 4318$as_echo_n "checking if Intel architecture is supported... " >&6; } 4319 CPPFLAGS="$CPPFLAGS -arch i386" 4320 LDFLAGS="$save_ldflags -arch i386" 4321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4322/* end confdefs.h. */ 4323 4324int 4325main () 4326{ 4327 4328 ; 4329 return 0; 4330} 4331_ACEOF 4332if ac_fn_c_try_link "$LINENO"; then : 4333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4334$as_echo "yes" >&6; }; MACARCH="intel" 4335else 4336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4337$as_echo "no" >&6; } 4338 MACARCH="ppc" 4339 CPPFLAGS="$save_cppflags -arch ppc" 4340 LDFLAGS="$save_ldflags -arch ppc" 4341fi 4342rm -f core conftest.err conftest.$ac_objext \ 4343 conftest$ac_exeext conftest.$ac_ext 4344fi 4345rm -f core conftest.err conftest.$ac_objext \ 4346 conftest$ac_exeext conftest.$ac_ext 4347 elif test "x$MACARCH" = "xintel"; then 4348 CPPFLAGS="$CPPFLAGS -arch intel" 4349 LDFLAGS="$LDFLAGS -arch intel" 4350 elif test "x$MACARCH" = "xppc"; then 4351 CPPFLAGS="$CPPFLAGS -arch ppc" 4352 LDFLAGS="$LDFLAGS -arch ppc" 4353 fi 4354 4355 if test "$enable_darwin" = "yes"; then 4356 MACOSX=yes 4357 OS_EXTRA_SRC="os_macosx.m os_mac_conv.c"; 4358 OS_EXTRA_OBJ="objects/os_macosx.o objects/os_mac_conv.o" 4359 CPPFLAGS="$CPPFLAGS -DMACOS_X_UNIX" 4360 4361 # On IRIX 5.3, sys/types and inttypes.h are conflicting. 4362for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4363 inttypes.h stdint.h unistd.h 4364do : 4365 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4366ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4367" 4368if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4369 cat >>confdefs.h <<_ACEOF 4370#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4371_ACEOF 4372 4373fi 4374 4375done 4376 4377 4378ac_fn_c_check_header_mongrel "$LINENO" "Carbon/Carbon.h" "ac_cv_header_Carbon_Carbon_h" "$ac_includes_default" 4379if test "x$ac_cv_header_Carbon_Carbon_h" = xyes; then : 4380 CARBON=yes 4381fi 4382 4383 4384 if test "x$CARBON" = "xyes"; then 4385 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 4386 with_x=no 4387 fi 4388 fi 4389 fi 4390 4391 if test "$MACARCH" = "intel" -o "$MACARCH" = "both"; then 4392 CFLAGS=`echo "$CFLAGS" | sed 's/-O[23456789]/-Oz/'` 4393 fi 4394 4395else 4396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4397$as_echo "no" >&6; } 4398fi 4399 4400for ac_header in AvailabilityMacros.h 4401do : 4402 ac_fn_c_check_header_mongrel "$LINENO" "AvailabilityMacros.h" "ac_cv_header_AvailabilityMacros_h" "$ac_includes_default" 4403if test "x$ac_cv_header_AvailabilityMacros_h" = xyes; then : 4404 cat >>confdefs.h <<_ACEOF 4405#define HAVE_AVAILABILITYMACROS_H 1 4406_ACEOF 4407 4408fi 4409 4410done 4411 4412 4413 4414 4415 4416if test "$cross_compiling" = no; then 4417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-local-dir argument" >&5 4418$as_echo_n "checking --with-local-dir argument... " >&6; } 4419 have_local_include='' 4420 have_local_lib='' 4421 4422# Check whether --with-local-dir was given. 4423if test "${with_local_dir+set}" = set; then : 4424 withval=$with_local_dir; 4425 local_dir="$withval" 4426 case "$withval" in 4427 */*) ;; 4428 no) 4429 # avoid adding local dir to LDFLAGS and CPPFLAGS 4430 have_local_include=yes 4431 have_local_lib=yes 4432 ;; 4433 *) as_fn_error $? "must pass path argument to --with-local-dir" "$LINENO" 5 ;; 4434 esac 4435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $local_dir" >&5 4436$as_echo "$local_dir" >&6; } 4437 4438else 4439 4440 local_dir=/usr/local 4441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to $local_dir" >&5 4442$as_echo "Defaulting to $local_dir" >&6; } 4443 4444fi 4445 4446 if test "$GCC" = yes -a "$local_dir" != no; then 4447 echo 'void f(){}' > conftest.c 4448 have_local_include=`${CC-cc} -c -v conftest.c 2>&1 | grep "${local_dir}/include"` 4449 have_local_lib=`${CC-cc} -c -v conftest.c 2>&1 | grep "${local_dir}/lib"` 4450 rm -f conftest.c conftest.o 4451 fi 4452 if test -z "$have_local_lib" -a -d "${local_dir}/lib"; then 4453 tt=`echo "$LDFLAGS" | sed -e "s+-L${local_dir}/lib ++g" -e "s+-L${local_dir}/lib$++g"` 4454 if test "$tt" = "$LDFLAGS"; then 4455 LDFLAGS="$LDFLAGS -L${local_dir}/lib" 4456 fi 4457 fi 4458 if test -z "$have_local_include" -a -d "${local_dir}/include"; then 4459 tt=`echo "$CPPFLAGS" | sed -e "s+-I${local_dir}/include ++g" -e "s+-I${local_dir}/include$++g"` 4460 if test "$tt" = "$CPPFLAGS"; then 4461 CPPFLAGS="$CPPFLAGS -I${local_dir}/include" 4462 fi 4463 fi 4464fi 4465 4466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-vim-name argument" >&5 4467$as_echo_n "checking --with-vim-name argument... " >&6; } 4468 4469# Check whether --with-vim-name was given. 4470if test "${with_vim_name+set}" = set; then : 4471 withval=$with_vim_name; VIMNAME="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VIMNAME" >&5 4472$as_echo "$VIMNAME" >&6; } 4473else 4474 VIMNAME="vim"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to $VIMNAME" >&5 4475$as_echo "Defaulting to $VIMNAME" >&6; } 4476fi 4477 4478 4479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-ex-name argument" >&5 4480$as_echo_n "checking --with-ex-name argument... " >&6; } 4481 4482# Check whether --with-ex-name was given. 4483if test "${with_ex_name+set}" = set; then : 4484 withval=$with_ex_name; EXNAME="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXNAME" >&5 4485$as_echo "$EXNAME" >&6; } 4486else 4487 EXNAME="ex"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to ex" >&5 4488$as_echo "Defaulting to ex" >&6; } 4489fi 4490 4491 4492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-view-name argument" >&5 4493$as_echo_n "checking --with-view-name argument... " >&6; } 4494 4495# Check whether --with-view-name was given. 4496if test "${with_view_name+set}" = set; then : 4497 withval=$with_view_name; VIEWNAME="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VIEWNAME" >&5 4498$as_echo "$VIEWNAME" >&6; } 4499else 4500 VIEWNAME="view"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to view" >&5 4501$as_echo "Defaulting to view" >&6; } 4502fi 4503 4504 4505 4506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-global-runtime argument" >&5 4507$as_echo_n "checking --with-global-runtime argument... " >&6; } 4508 4509# Check whether --with-global-runtime was given. 4510if test "${with_global_runtime+set}" = set; then : 4511 withval=$with_global_runtime; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 4512$as_echo "$withval" >&6; }; cat >>confdefs.h <<_ACEOF 4513#define RUNTIME_GLOBAL "$withval" 4514_ACEOF 4515 4516else 4517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4518$as_echo "no" >&6; } 4519fi 4520 4521 4522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-modified-by argument" >&5 4523$as_echo_n "checking --with-modified-by argument... " >&6; } 4524 4525# Check whether --with-modified-by was given. 4526if test "${with_modified_by+set}" = set; then : 4527 withval=$with_modified_by; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 4528$as_echo "$withval" >&6; }; cat >>confdefs.h <<_ACEOF 4529#define MODIFIED_BY "$withval" 4530_ACEOF 4531 4532else 4533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4534$as_echo "no" >&6; } 4535fi 4536 4537 4538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if character set is EBCDIC" >&5 4539$as_echo_n "checking if character set is EBCDIC... " >&6; } 4540cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4541/* end confdefs.h. */ 4542 4543int 4544main () 4545{ 4546 /* TryCompile function for CharSet. 4547 Treat any failure as ASCII for compatibility with existing art. 4548 Use compile-time rather than run-time tests for cross-compiler 4549 tolerance. */ 4550#if '0'!=240 4551make an error "Character set is not EBCDIC" 4552#endif 4553 ; 4554 return 0; 4555} 4556_ACEOF 4557if ac_fn_c_try_compile "$LINENO"; then : 4558 # TryCompile action if true 4559cf_cv_ebcdic=yes 4560else 4561 # TryCompile action if false 4562cf_cv_ebcdic=no 4563fi 4564rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4565# end of TryCompile ]) 4566# end of CacheVal CvEbcdic 4567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_cv_ebcdic" >&5 4568$as_echo "$cf_cv_ebcdic" >&6; } 4569case "$cf_cv_ebcdic" in #(vi 4570 yes) $as_echo "#define EBCDIC 1" >>confdefs.h 4571 4572 line_break='"\\n"' 4573 ;; 4574 *) line_break='"\\012"';; 4575esac 4576 4577 4578if test "$cf_cv_ebcdic" = "yes"; then 4579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for z/OS Unix" >&5 4580$as_echo_n "checking for z/OS Unix... " >&6; } 4581case `uname` in 4582 OS/390) zOSUnix="yes"; 4583 if test "$CC" = "cc"; then 4584 ccm="$_CC_CCMODE" 4585 ccn="CC" 4586 else 4587 if test "$CC" = "c89"; then 4588 ccm="$_CC_C89MODE" 4589 ccn="C89" 4590 else 4591 ccm=1 4592 fi 4593 fi 4594 if test "$ccm" != "1"; then 4595 echo "" 4596 echo "------------------------------------------" 4597 echo " On z/OS Unix, the environment variable" 4598 echo " _CC_${ccn}MODE must be set to \"1\"!" 4599 echo " Do:" 4600 echo " export _CC_${ccn}MODE=1" 4601 echo " and then call configure again." 4602 echo "------------------------------------------" 4603 exit 1 4604 fi 4605 # Set CFLAGS for configure process. 4606 # This will be reset later for config.mk. 4607 # Use haltonmsg to force error for missing H files. 4608 CFLAGS="$CFLAGS -D_ALL_SOURCE -Wc,float(ieee),haltonmsg(3296)"; 4609 LDFLAGS="$LDFLAGS -Wl,EDIT=NO" 4610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4611$as_echo "yes" >&6; } 4612 ;; 4613 *) zOSUnix="no"; 4614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4615$as_echo "no" >&6; } 4616 ;; 4617esac 4618fi 4619 4620if test "$zOSUnix" = "yes"; then 4621 QUOTESED="sed -e 's/[\\\\\"]/\\\\\\\\&/g' -e 's/\\\\\\\\\"/\"/' -e 's/\\\\\\\\\";\$\$/\";/'" 4622else 4623 QUOTESED="sed -e 's/[\\\\\"]/\\\\&/g' -e 's/\\\\\"/\"/' -e 's/\\\\\";\$\$/\";/'" 4624fi 4625 4626 4627 4628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-smack argument" >&5 4629$as_echo_n "checking --disable-smack argument... " >&6; } 4630# Check whether --enable-smack was given. 4631if test "${enable_smack+set}" = set; then : 4632 enableval=$enable_smack; 4633else 4634 enable_smack="yes" 4635fi 4636 4637if test "$enable_smack" = "yes"; then 4638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4639$as_echo "no" >&6; } 4640 ac_fn_c_check_header_mongrel "$LINENO" "linux/xattr.h" "ac_cv_header_linux_xattr_h" "$ac_includes_default" 4641if test "x$ac_cv_header_linux_xattr_h" = xyes; then : 4642 true 4643else 4644 enable_smack="no" 4645fi 4646 4647 4648else 4649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4650$as_echo "yes" >&6; } 4651fi 4652if test "$enable_smack" = "yes"; then 4653 ac_fn_c_check_header_mongrel "$LINENO" "attr/xattr.h" "ac_cv_header_attr_xattr_h" "$ac_includes_default" 4654if test "x$ac_cv_header_attr_xattr_h" = xyes; then : 4655 true 4656else 4657 enable_smack="no" 4658fi 4659 4660 4661fi 4662if test "$enable_smack" = "yes"; then 4663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XATTR_NAME_SMACKEXEC in linux/xattr.h" >&5 4664$as_echo_n "checking for XATTR_NAME_SMACKEXEC in linux/xattr.h... " >&6; } 4665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4666/* end confdefs.h. */ 4667#include <linux/xattr.h> 4668_ACEOF 4669if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4670 $EGREP "XATTR_NAME_SMACKEXEC" >/dev/null 2>&1; then : 4671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4672$as_echo "yes" >&6; } 4673else 4674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4675$as_echo "no" >&6; }; enable_smack="no" 4676fi 4677rm -f conftest* 4678 4679fi 4680if test "$enable_smack" = "yes"; then 4681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setxattr in -lattr" >&5 4682$as_echo_n "checking for setxattr in -lattr... " >&6; } 4683if ${ac_cv_lib_attr_setxattr+:} false; then : 4684 $as_echo_n "(cached) " >&6 4685else 4686 ac_check_lib_save_LIBS=$LIBS 4687LIBS="-lattr $LIBS" 4688cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4689/* end confdefs.h. */ 4690 4691/* Override any GCC internal prototype to avoid an error. 4692 Use char because int might match the return type of a GCC 4693 builtin and then its argument prototype would still apply. */ 4694#ifdef __cplusplus 4695extern "C" 4696#endif 4697char setxattr (); 4698int 4699main () 4700{ 4701return setxattr (); 4702 ; 4703 return 0; 4704} 4705_ACEOF 4706if ac_fn_c_try_link "$LINENO"; then : 4707 ac_cv_lib_attr_setxattr=yes 4708else 4709 ac_cv_lib_attr_setxattr=no 4710fi 4711rm -f core conftest.err conftest.$ac_objext \ 4712 conftest$ac_exeext conftest.$ac_ext 4713LIBS=$ac_check_lib_save_LIBS 4714fi 4715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_attr_setxattr" >&5 4716$as_echo "$ac_cv_lib_attr_setxattr" >&6; } 4717if test "x$ac_cv_lib_attr_setxattr" = xyes; then : 4718 LIBS="$LIBS -lattr" 4719 found_smack="yes" 4720 $as_echo "#define HAVE_SMACK 1" >>confdefs.h 4721 4722fi 4723 4724fi 4725 4726if test "x$found_smack" = "x"; then 4727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-selinux argument" >&5 4728$as_echo_n "checking --disable-selinux argument... " >&6; } 4729 # Check whether --enable-selinux was given. 4730if test "${enable_selinux+set}" = set; then : 4731 enableval=$enable_selinux; 4732else 4733 enable_selinux="yes" 4734fi 4735 4736 if test "$enable_selinux" = "yes"; then 4737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4738$as_echo "no" >&6; } 4739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_selinux_enabled in -lselinux" >&5 4740$as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; } 4741if ${ac_cv_lib_selinux_is_selinux_enabled+:} false; then : 4742 $as_echo_n "(cached) " >&6 4743else 4744 ac_check_lib_save_LIBS=$LIBS 4745LIBS="-lselinux $LIBS" 4746cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4747/* end confdefs.h. */ 4748 4749/* Override any GCC internal prototype to avoid an error. 4750 Use char because int might match the return type of a GCC 4751 builtin and then its argument prototype would still apply. */ 4752#ifdef __cplusplus 4753extern "C" 4754#endif 4755char is_selinux_enabled (); 4756int 4757main () 4758{ 4759return is_selinux_enabled (); 4760 ; 4761 return 0; 4762} 4763_ACEOF 4764if ac_fn_c_try_link "$LINENO"; then : 4765 ac_cv_lib_selinux_is_selinux_enabled=yes 4766else 4767 ac_cv_lib_selinux_is_selinux_enabled=no 4768fi 4769rm -f core conftest.err conftest.$ac_objext \ 4770 conftest$ac_exeext conftest.$ac_ext 4771LIBS=$ac_check_lib_save_LIBS 4772fi 4773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5 4774$as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; } 4775if test "x$ac_cv_lib_selinux_is_selinux_enabled" = xyes; then : 4776 LIBS="$LIBS -lselinux" 4777 $as_echo "#define HAVE_SELINUX 1" >>confdefs.h 4778 4779fi 4780 4781 else 4782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4783$as_echo "yes" >&6; } 4784 fi 4785fi 4786 4787 4788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-features argument" >&5 4789$as_echo_n "checking --with-features argument... " >&6; } 4790 4791# Check whether --with-features was given. 4792if test "${with_features+set}" = set; then : 4793 withval=$with_features; features="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $features" >&5 4794$as_echo "$features" >&6; } 4795else 4796 features="huge"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defaulting to huge" >&5 4797$as_echo "Defaulting to huge" >&6; } 4798fi 4799 4800 4801dovimdiff="" 4802dogvimdiff="" 4803case "$features" in 4804 tiny) $as_echo "#define FEAT_TINY 1" >>confdefs.h 4805 ;; 4806 small) $as_echo "#define FEAT_SMALL 1" >>confdefs.h 4807 ;; 4808 normal) $as_echo "#define FEAT_NORMAL 1" >>confdefs.h 4809 dovimdiff="installvimdiff"; 4810 dogvimdiff="installgvimdiff" ;; 4811 big) $as_echo "#define FEAT_BIG 1" >>confdefs.h 4812 dovimdiff="installvimdiff"; 4813 dogvimdiff="installgvimdiff" ;; 4814 huge) $as_echo "#define FEAT_HUGE 1" >>confdefs.h 4815 dovimdiff="installvimdiff"; 4816 dogvimdiff="installgvimdiff" ;; 4817 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: Sorry, $features is not supported" >&5 4818$as_echo "Sorry, $features is not supported" >&6; } ;; 4819esac 4820 4821 4822 4823 4824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-compiledby argument" >&5 4825$as_echo_n "checking --with-compiledby argument... " >&6; } 4826 4827# Check whether --with-compiledby was given. 4828if test "${with_compiledby+set}" = set; then : 4829 withval=$with_compiledby; compiledby="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 4830$as_echo "$withval" >&6; } 4831else 4832 compiledby=""; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4833$as_echo "no" >&6; } 4834fi 4835 4836 4837 4838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-xsmp argument" >&5 4839$as_echo_n "checking --disable-xsmp argument... " >&6; } 4840# Check whether --enable-xsmp was given. 4841if test "${enable_xsmp+set}" = set; then : 4842 enableval=$enable_xsmp; 4843else 4844 enable_xsmp="yes" 4845fi 4846 4847 4848if test "$enable_xsmp" = "yes"; then 4849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4850$as_echo "no" >&6; } 4851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-xsmp-interact argument" >&5 4852$as_echo_n "checking --disable-xsmp-interact argument... " >&6; } 4853 # Check whether --enable-xsmp-interact was given. 4854if test "${enable_xsmp_interact+set}" = set; then : 4855 enableval=$enable_xsmp_interact; 4856else 4857 enable_xsmp_interact="yes" 4858fi 4859 4860 if test "$enable_xsmp_interact" = "yes"; then 4861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4862$as_echo "no" >&6; } 4863 $as_echo "#define USE_XSMP_INTERACT 1" >>confdefs.h 4864 4865 else 4866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4867$as_echo "yes" >&6; } 4868 fi 4869else 4870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4871$as_echo "yes" >&6; } 4872fi 4873 4874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-luainterp argument" >&5 4875$as_echo_n "checking --enable-luainterp argument... " >&6; } 4876# Check whether --enable-luainterp was given. 4877if test "${enable_luainterp+set}" = set; then : 4878 enableval=$enable_luainterp; 4879else 4880 enable_luainterp="no" 4881fi 4882 4883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_luainterp" >&5 4884$as_echo "$enable_luainterp" >&6; } 4885 4886if test "$enable_luainterp" = "yes" -o "$enable_luainterp" = "dynamic"; then 4887 if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then 4888 as_fn_error $? "cannot use Lua with tiny or small features" "$LINENO" 5 4889 fi 4890 4891 4892 4893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-lua-prefix argument" >&5 4894$as_echo_n "checking --with-lua-prefix argument... " >&6; } 4895 4896# Check whether --with-lua_prefix was given. 4897if test "${with_lua_prefix+set}" = set; then : 4898 withval=$with_lua_prefix; with_lua_prefix="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_lua_prefix" >&5 4899$as_echo "$with_lua_prefix" >&6; } 4900else 4901 with_lua_prefix="";{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4902$as_echo "no" >&6; } 4903fi 4904 4905 4906 if test "X$with_lua_prefix" != "X"; then 4907 vi_cv_path_lua_pfx="$with_lua_prefix" 4908 else 4909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LUA_PREFIX environment var" >&5 4910$as_echo_n "checking LUA_PREFIX environment var... " >&6; } 4911 if test "X$LUA_PREFIX" != "X"; then 4912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$LUA_PREFIX\"" >&5 4913$as_echo "\"$LUA_PREFIX\"" >&6; } 4914 vi_cv_path_lua_pfx="$LUA_PREFIX" 4915 else 4916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not set, default to /usr" >&5 4917$as_echo "not set, default to /usr" >&6; } 4918 vi_cv_path_lua_pfx="/usr" 4919 fi 4920 fi 4921 4922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-luajit" >&5 4923$as_echo_n "checking --with-luajit... " >&6; } 4924 4925# Check whether --with-luajit was given. 4926if test "${with_luajit+set}" = set; then : 4927 withval=$with_luajit; vi_cv_with_luajit="$withval" 4928else 4929 vi_cv_with_luajit="no" 4930fi 4931 4932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_with_luajit" >&5 4933$as_echo "$vi_cv_with_luajit" >&6; } 4934 4935 LUA_INC= 4936 if test "X$vi_cv_path_lua_pfx" != "X"; then 4937 if test "x$vi_cv_with_luajit" != "xno"; then 4938 # Extract the first word of "luajit", so it can be a program name with args. 4939set dummy luajit; ac_word=$2 4940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4941$as_echo_n "checking for $ac_word... " >&6; } 4942if ${ac_cv_path_vi_cv_path_luajit+:} false; then : 4943 $as_echo_n "(cached) " >&6 4944else 4945 case $vi_cv_path_luajit in 4946 [\\/]* | ?:[\\/]*) 4947 ac_cv_path_vi_cv_path_luajit="$vi_cv_path_luajit" # Let the user override the test with a path. 4948 ;; 4949 *) 4950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4951for as_dir in $PATH 4952do 4953 IFS=$as_save_IFS 4954 test -z "$as_dir" && as_dir=. 4955 for ac_exec_ext in '' $ac_executable_extensions; do 4956 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4957 ac_cv_path_vi_cv_path_luajit="$as_dir/$ac_word$ac_exec_ext" 4958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4959 break 2 4960 fi 4961done 4962 done 4963IFS=$as_save_IFS 4964 4965 ;; 4966esac 4967fi 4968vi_cv_path_luajit=$ac_cv_path_vi_cv_path_luajit 4969if test -n "$vi_cv_path_luajit"; then 4970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_luajit" >&5 4971$as_echo "$vi_cv_path_luajit" >&6; } 4972else 4973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4974$as_echo "no" >&6; } 4975fi 4976 4977 4978 if test "X$vi_cv_path_luajit" != "X"; then 4979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LuaJIT version" >&5 4980$as_echo_n "checking LuaJIT version... " >&6; } 4981if ${vi_cv_version_luajit+:} false; then : 4982 $as_echo_n "(cached) " >&6 4983else 4984 vi_cv_version_luajit=`${vi_cv_path_luajit} -v 2>&1 | sed 's/LuaJIT \([0-9.]*\)\.[0-9]\(-[a-z0-9]*\)* .*/\1/'` 4985fi 4986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_version_luajit" >&5 4987$as_echo "$vi_cv_version_luajit" >&6; } 4988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Lua version of LuaJIT" >&5 4989$as_echo_n "checking Lua version of LuaJIT... " >&6; } 4990if ${vi_cv_version_lua_luajit+:} false; then : 4991 $as_echo_n "(cached) " >&6 4992else 4993 vi_cv_version_lua_luajit=`${vi_cv_path_luajit} -e "print(_VERSION)" | sed 's/.* //'` 4994fi 4995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_version_lua_luajit" >&5 4996$as_echo "$vi_cv_version_lua_luajit" >&6; } 4997 vi_cv_path_lua="$vi_cv_path_luajit" 4998 vi_cv_version_lua="$vi_cv_version_lua_luajit" 4999 fi 5000 else 5001 # Extract the first word of "lua", so it can be a program name with args. 5002set dummy lua; ac_word=$2 5003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5004$as_echo_n "checking for $ac_word... " >&6; } 5005if ${ac_cv_path_vi_cv_path_plain_lua+:} false; then : 5006 $as_echo_n "(cached) " >&6 5007else 5008 case $vi_cv_path_plain_lua in 5009 [\\/]* | ?:[\\/]*) 5010 ac_cv_path_vi_cv_path_plain_lua="$vi_cv_path_plain_lua" # Let the user override the test with a path. 5011 ;; 5012 *) 5013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5014for as_dir in $PATH 5015do 5016 IFS=$as_save_IFS 5017 test -z "$as_dir" && as_dir=. 5018 for ac_exec_ext in '' $ac_executable_extensions; do 5019 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5020 ac_cv_path_vi_cv_path_plain_lua="$as_dir/$ac_word$ac_exec_ext" 5021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5022 break 2 5023 fi 5024done 5025 done 5026IFS=$as_save_IFS 5027 5028 ;; 5029esac 5030fi 5031vi_cv_path_plain_lua=$ac_cv_path_vi_cv_path_plain_lua 5032if test -n "$vi_cv_path_plain_lua"; then 5033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_plain_lua" >&5 5034$as_echo "$vi_cv_path_plain_lua" >&6; } 5035else 5036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5037$as_echo "no" >&6; } 5038fi 5039 5040 5041 if test "X$vi_cv_path_plain_lua" != "X"; then 5042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Lua version" >&5 5043$as_echo_n "checking Lua version... " >&6; } 5044if ${vi_cv_version_plain_lua+:} false; then : 5045 $as_echo_n "(cached) " >&6 5046else 5047 vi_cv_version_plain_lua=`${vi_cv_path_plain_lua} -e "print(_VERSION)" | sed 's/.* //'` 5048fi 5049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_version_plain_lua" >&5 5050$as_echo "$vi_cv_version_plain_lua" >&6; } 5051 fi 5052 vi_cv_path_lua="$vi_cv_path_plain_lua" 5053 vi_cv_version_lua="$vi_cv_version_plain_lua" 5054 fi 5055 if test "x$vi_cv_with_luajit" != "xno" && test "X$vi_cv_version_luajit" != "X"; then 5056 { $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 5057$as_echo_n "checking if lua.h can be found in $vi_cv_path_lua_pfx/include/luajit-$vi_cv_version_luajit... " >&6; } 5058 if test -f "$vi_cv_path_lua_pfx/include/luajit-$vi_cv_version_luajit/lua.h"; then 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5060$as_echo "yes" >&6; } 5061 LUA_INC=/luajit-$vi_cv_version_luajit 5062 fi 5063 fi 5064 if test "X$LUA_INC" = "X"; then 5065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if lua.h can be found in $vi_cv_path_lua_pfx/include" >&5 5066$as_echo_n "checking if lua.h can be found in $vi_cv_path_lua_pfx/include... " >&6; } 5067 if test -f "$vi_cv_path_lua_pfx/include/lua.h"; then 5068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5069$as_echo "yes" >&6; } 5070 else 5071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5072$as_echo "no" >&6; } 5073 { $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 5074$as_echo_n "checking if lua.h can be found in $vi_cv_path_lua_pfx/include/lua$vi_cv_version_lua... " >&6; } 5075 if test -f "$vi_cv_path_lua_pfx/include/lua$vi_cv_version_lua/lua.h"; then 5076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5077$as_echo "yes" >&6; } 5078 LUA_INC=/lua$vi_cv_version_lua 5079 else 5080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5081$as_echo "no" >&6; } 5082 vi_cv_path_lua_pfx= 5083 fi 5084 fi 5085 fi 5086 fi 5087 5088 if test "X$vi_cv_path_lua_pfx" != "X"; then 5089 if test "x$vi_cv_with_luajit" != "xno"; then 5090 multiarch=`dpkg-architecture -qDEB_HOST_MULTIARCH 2> /dev/null` 5091 if test "X$multiarch" != "X"; then 5092 lib_multiarch="lib/${multiarch}" 5093 else 5094 lib_multiarch="lib" 5095 fi 5096 if test "X$vi_cv_version_lua" = "X"; then 5097 LUA_LIBS="-L${vi_cv_path_lua_pfx}/${lib_multiarch} -lluajit" 5098 else 5099 LUA_LIBS="-L${vi_cv_path_lua_pfx}/${lib_multiarch} -lluajit-$vi_cv_version_lua" 5100 fi 5101 else 5102 if test "X$LUA_INC" != "X"; then 5103 LUA_LIBS="-L${vi_cv_path_lua_pfx}/lib -llua$vi_cv_version_lua" 5104 else 5105 LUA_LIBS="-L${vi_cv_path_lua_pfx}/lib -llua" 5106 fi 5107 fi 5108 if test "$enable_luainterp" = "dynamic"; then 5109 lua_ok="yes" 5110 else 5111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if link with ${LUA_LIBS} is sane" >&5 5112$as_echo_n "checking if link with ${LUA_LIBS} is sane... " >&6; } 5113 libs_save=$LIBS 5114 LIBS="$LIBS $LUA_LIBS" 5115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5116/* end confdefs.h. */ 5117 5118int 5119main () 5120{ 5121 5122 ; 5123 return 0; 5124} 5125_ACEOF 5126if ac_fn_c_try_link "$LINENO"; then : 5127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5128$as_echo "yes" >&6; }; lua_ok="yes" 5129else 5130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5131$as_echo "no" >&6; }; lua_ok="no"; LUA_LIBS="" 5132fi 5133rm -f core conftest.err conftest.$ac_objext \ 5134 conftest$ac_exeext conftest.$ac_ext 5135 LIBS=$libs_save 5136 fi 5137 if test "x$lua_ok" = "xyes"; then 5138 LUA_CFLAGS="-I${vi_cv_path_lua_pfx}/include${LUA_INC}" 5139 LUA_SRC="if_lua.c" 5140 LUA_OBJ="objects/if_lua.o" 5141 LUA_PRO="if_lua.pro" 5142 $as_echo "#define FEAT_LUA 1" >>confdefs.h 5143 5144 fi 5145 if test "$enable_luainterp" = "dynamic"; then 5146 if test "x$vi_cv_with_luajit" != "xno"; then 5147 luajit="jit" 5148 fi 5149 if test -f "${vi_cv_path_lua_pfx}/bin/cyglua-${vi_cv_version_lua}.dll"; then 5150 vi_cv_dll_name_lua="cyglua-${vi_cv_version_lua}.dll" 5151 else 5152 if test "x$MACOSX" = "xyes"; then 5153 ext="dylib" 5154 indexes="" 5155 else 5156 ext="so" 5157 indexes=".0 .1 .2 .3 .4 .5 .6 .7 .8 .9" 5158 multiarch=`dpkg-architecture -qDEB_HOST_MULTIARCH 2> /dev/null` 5159 if test "X$multiarch" != "X"; then 5160 lib_multiarch="lib/${multiarch}" 5161 fi 5162 fi 5163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if liblua${luajit}*.${ext}* can be found in $vi_cv_path_lua_pfx" >&5 5164$as_echo_n "checking if liblua${luajit}*.${ext}* can be found in $vi_cv_path_lua_pfx... " >&6; } 5165 for subdir in "${lib_multiarch}" lib64 lib; do 5166 if test -z "$subdir"; then 5167 continue 5168 fi 5169 for sover in "${vi_cv_version_lua}.${ext}" "-${vi_cv_version_lua}.${ext}" \ 5170 ".${vi_cv_version_lua}.${ext}" ".${ext}.${vi_cv_version_lua}"; do 5171 for i in $indexes ""; do 5172 if test -f "${vi_cv_path_lua_pfx}/${subdir}/liblua${luajit}${sover}$i"; then 5173 sover2="$i" 5174 break 3 5175 fi 5176 done 5177 done 5178 sover="" 5179 done 5180 if test "X$sover" = "X"; then 5181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5182$as_echo "no" >&6; } 5183 lua_ok="no" 5184 vi_cv_dll_name_lua="liblua${luajit}.${ext}" 5185 else 5186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5187$as_echo "yes" >&6; } 5188 lua_ok="yes" 5189 vi_cv_dll_name_lua="liblua${luajit}${sover}$sover2" 5190 fi 5191 fi 5192 $as_echo "#define DYNAMIC_LUA 1" >>confdefs.h 5193 5194 LUA_LIBS="" 5195 LUA_CFLAGS="-DDYNAMIC_LUA_DLL=\\\"${vi_cv_dll_name_lua}\\\" $LUA_CFLAGS" 5196 fi 5197 if test "X$LUA_CFLAGS$LUA_LIBS" != "X" && \ 5198 test "x$MACOSX" = "xyes" && test "x$vi_cv_with_luajit" != "xno" && \ 5199 test "`(uname -m) 2>/dev/null`" = "x86_64"; then 5200 LUA_LIBS="-pagezero_size 10000 -image_base 100000000 $LUA_LIBS" 5201 fi 5202 fi 5203 if test "$fail_if_missing" = "yes" -a "$lua_ok" != "yes"; then 5204 as_fn_error $? "could not configure lua" "$LINENO" 5 5205 fi 5206 5207 5208 5209 5210 5211fi 5212 5213 5214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-mzschemeinterp argument" >&5 5215$as_echo_n "checking --enable-mzschemeinterp argument... " >&6; } 5216# Check whether --enable-mzschemeinterp was given. 5217if test "${enable_mzschemeinterp+set}" = set; then : 5218 enableval=$enable_mzschemeinterp; 5219else 5220 enable_mzschemeinterp="no" 5221fi 5222 5223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_mzschemeinterp" >&5 5224$as_echo "$enable_mzschemeinterp" >&6; } 5225 5226if test "$enable_mzschemeinterp" = "yes"; then 5227 5228 5229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-plthome argument" >&5 5230$as_echo_n "checking --with-plthome argument... " >&6; } 5231 5232# Check whether --with-plthome was given. 5233if test "${with_plthome+set}" = set; then : 5234 withval=$with_plthome; with_plthome="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_plthome" >&5 5235$as_echo "$with_plthome" >&6; } 5236else 5237 with_plthome="";{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"no\"" >&5 5238$as_echo "\"no\"" >&6; } 5239fi 5240 5241 5242 if test "X$with_plthome" != "X"; then 5243 vi_cv_path_mzscheme_pfx="$with_plthome" 5244 vi_cv_path_mzscheme="${vi_cv_path_mzscheme_pfx}/bin/mzscheme" 5245 else 5246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking PLTHOME environment var" >&5 5247$as_echo_n "checking PLTHOME environment var... " >&6; } 5248 if test "X$PLTHOME" != "X"; then 5249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$PLTHOME\"" >&5 5250$as_echo "\"$PLTHOME\"" >&6; } 5251 vi_cv_path_mzscheme_pfx="$PLTHOME" 5252 vi_cv_path_mzscheme="${vi_cv_path_mzscheme_pfx}/bin/mzscheme" 5253 else 5254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not set" >&5 5255$as_echo "not set" >&6; } 5256 # Extract the first word of "mzscheme", so it can be a program name with args. 5257set dummy mzscheme; ac_word=$2 5258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5259$as_echo_n "checking for $ac_word... " >&6; } 5260if ${ac_cv_path_vi_cv_path_mzscheme+:} false; then : 5261 $as_echo_n "(cached) " >&6 5262else 5263 case $vi_cv_path_mzscheme in 5264 [\\/]* | ?:[\\/]*) 5265 ac_cv_path_vi_cv_path_mzscheme="$vi_cv_path_mzscheme" # Let the user override the test with a path. 5266 ;; 5267 *) 5268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5269for as_dir in $PATH 5270do 5271 IFS=$as_save_IFS 5272 test -z "$as_dir" && as_dir=. 5273 for ac_exec_ext in '' $ac_executable_extensions; do 5274 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5275 ac_cv_path_vi_cv_path_mzscheme="$as_dir/$ac_word$ac_exec_ext" 5276 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5277 break 2 5278 fi 5279done 5280 done 5281IFS=$as_save_IFS 5282 5283 ;; 5284esac 5285fi 5286vi_cv_path_mzscheme=$ac_cv_path_vi_cv_path_mzscheme 5287if test -n "$vi_cv_path_mzscheme"; then 5288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_mzscheme" >&5 5289$as_echo "$vi_cv_path_mzscheme" >&6; } 5290else 5291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5292$as_echo "no" >&6; } 5293fi 5294 5295 5296 5297 if test "X$vi_cv_path_mzscheme" != "X"; then 5298 lsout=`ls -l $vi_cv_path_mzscheme` 5299 if echo "$lsout" | grep -e '->' >/dev/null 2>/dev/null; then 5300 vi_cv_path_mzscheme=`echo "$lsout" | sed 's/.*-> \(.*\)/\1/'` 5301 fi 5302 fi 5303 5304 if test "X$vi_cv_path_mzscheme" != "X"; then 5305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking MzScheme install prefix" >&5 5306$as_echo_n "checking MzScheme install prefix... " >&6; } 5307if ${vi_cv_path_mzscheme_pfx+:} false; then : 5308 $as_echo_n "(cached) " >&6 5309else 5310 echo "(display (simplify-path \ 5311 (build-path (call-with-values \ 5312 (lambda () (split-path (find-system-path (quote exec-file)))) \ 5313 (lambda (base name must-be-dir?) base)) (quote up))))" > mzdirs.scm 5314 vi_cv_path_mzscheme_pfx=`${vi_cv_path_mzscheme} -r mzdirs.scm | \ 5315 sed -e 's+/$++'` 5316fi 5317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_mzscheme_pfx" >&5 5318$as_echo "$vi_cv_path_mzscheme_pfx" >&6; } 5319 rm -f mzdirs.scm 5320 fi 5321 fi 5322 fi 5323 5324 if test "X$vi_cv_path_mzscheme_pfx" != "X"; then 5325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for racket include directory" >&5 5326$as_echo_n "checking for racket include directory... " >&6; } 5327 SCHEME_INC=`${vi_cv_path_mzscheme} -e '(require setup/dirs)(let ((p (find-include-dir))) (when (path? p) (display p)))'` 5328 if test "X$SCHEME_INC" != "X"; then 5329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${SCHEME_INC}" >&5 5330$as_echo "${SCHEME_INC}" >&6; } 5331 else 5332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5333$as_echo "not found" >&6; } 5334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include" >&5 5335$as_echo_n "checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include... " >&6; } 5336 if test -f "$vi_cv_path_mzscheme_pfx/include/scheme.h"; then 5337 SCHEME_INC=${vi_cv_path_mzscheme_pfx}/include 5338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5339$as_echo "yes" >&6; } 5340 else 5341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5342$as_echo "no" >&6; } 5343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include/plt" >&5 5344$as_echo_n "checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include/plt... " >&6; } 5345 if test -f "$vi_cv_path_mzscheme_pfx/include/plt/scheme.h"; then 5346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5347$as_echo "yes" >&6; } 5348 SCHEME_INC=${vi_cv_path_mzscheme_pfx}/include/plt 5349 else 5350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5351$as_echo "no" >&6; } 5352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include/racket" >&5 5353$as_echo_n "checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include/racket... " >&6; } 5354 if test -f "$vi_cv_path_mzscheme_pfx/include/racket/scheme.h"; then 5355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5356$as_echo "yes" >&6; } 5357 SCHEME_INC=${vi_cv_path_mzscheme_pfx}/include/racket 5358 else 5359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5360$as_echo "no" >&6; } 5361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if scheme.h can be found in /usr/include/plt/" >&5 5362$as_echo_n "checking if scheme.h can be found in /usr/include/plt/... " >&6; } 5363 if test -f /usr/include/plt/scheme.h; then 5364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5365$as_echo "yes" >&6; } 5366 SCHEME_INC=/usr/include/plt 5367 else 5368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5369$as_echo "no" >&6; } 5370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if scheme.h can be found in /usr/include/racket/" >&5 5371$as_echo_n "checking if scheme.h can be found in /usr/include/racket/... " >&6; } 5372 if test -f /usr/include/racket/scheme.h; then 5373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5374$as_echo "yes" >&6; } 5375 SCHEME_INC=/usr/include/racket 5376 else 5377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5378$as_echo "no" >&6; } 5379 vi_cv_path_mzscheme_pfx= 5380 fi 5381 fi 5382 fi 5383 fi 5384 fi 5385 fi 5386 fi 5387 5388 if test "X$vi_cv_path_mzscheme_pfx" != "X"; then 5389 5390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for racket lib directory" >&5 5391$as_echo_n "checking for racket lib directory... " >&6; } 5392 SCHEME_LIB=`${vi_cv_path_mzscheme} -e '(require setup/dirs)(let ((p (find-lib-dir))) (when (path? p) (display p)))'` 5393 if test "X$SCHEME_LIB" != "X"; then 5394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${SCHEME_LIB}" >&5 5395$as_echo "${SCHEME_LIB}" >&6; } 5396 else 5397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5398$as_echo "not found" >&6; } 5399 fi 5400 5401 for path in "${vi_cv_path_mzscheme_pfx}/lib" "${SCHEME_LIB}"; do 5402 if test "X$path" != "X"; then 5403 if test "x$MACOSX" = "xyes"; then 5404 MZSCHEME_LIBS="-framework Racket" 5405 MZSCHEME_CFLAGS="-DMZ_PRECISE_GC" 5406 elif test -f "${path}/libmzscheme3m.a"; then 5407 MZSCHEME_LIBS="${path}/libmzscheme3m.a" 5408 MZSCHEME_CFLAGS="-DMZ_PRECISE_GC" 5409 elif test -f "${path}/libracket3m.a"; then 5410 MZSCHEME_LIBS="${path}/libracket3m.a" 5411 MZSCHEME_CFLAGS="-DMZ_PRECISE_GC" 5412 elif test -f "${path}/libracket.a"; then 5413 MZSCHEME_LIBS="${path}/libracket.a ${path}/libmzgc.a" 5414 elif test -f "${path}/libmzscheme.a"; then 5415 MZSCHEME_LIBS="${path}/libmzscheme.a ${path}/libmzgc.a" 5416 else 5417 if test -f "${path}/libmzscheme3m.so"; then 5418 MZSCHEME_LIBS="-L${path} -lmzscheme3m" 5419 MZSCHEME_CFLAGS="-DMZ_PRECISE_GC" 5420 elif test -f "${path}/libracket3m.so"; then 5421 MZSCHEME_LIBS="-L${path} -lracket3m" 5422 MZSCHEME_CFLAGS="-DMZ_PRECISE_GC" 5423 elif test -f "${path}/libracket.so"; then 5424 MZSCHEME_LIBS="-L${path} -lracket -lmzgc" 5425 else 5426 if test "$path" != "$SCHEME_LIB"; then 5427 continue 5428 fi 5429 MZSCHEME_LIBS="-L${path} -lmzscheme -lmzgc" 5430 fi 5431 if test "$GCC" = yes; then 5432 MZSCHEME_LIBS="${MZSCHEME_LIBS} -Wl,-rpath -Wl,${path}" 5433 elif test "`(uname) 2>/dev/null`" = SunOS && 5434 uname -r | grep '^5' >/dev/null; then 5435 MZSCHEME_LIBS="${MZSCHEME_LIBS} -R ${path}" 5436 fi 5437 fi 5438 fi 5439 if test "X$MZSCHEME_LIBS" != "X"; then 5440 break 5441 fi 5442 done 5443 5444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if racket requires -pthread" >&5 5445$as_echo_n "checking if racket requires -pthread... " >&6; } 5446 if test "X$SCHEME_LIB" != "X" && $FGREP -e -pthread "$SCHEME_LIB/buildinfo" >/dev/null ; then 5447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5448$as_echo "yes" >&6; } 5449 MZSCHEME_LIBS="${MZSCHEME_LIBS} -pthread" 5450 MZSCHEME_CFLAGS="${MZSCHEME_CFLAGS} -pthread" 5451 else 5452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5453$as_echo "no" >&6; } 5454 fi 5455 5456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for racket config directory" >&5 5457$as_echo_n "checking for racket config directory... " >&6; } 5458 SCHEME_CONFIGDIR=`${vi_cv_path_mzscheme} -e '(require setup/dirs)(let ((p (find-config-dir))) (when (path? p) (display p)))'` 5459 if test "X$SCHEME_CONFIGDIR" != "X"; then 5460 MZSCHEME_CFLAGS="${MZSCHEME_CFLAGS} -DMZSCHEME_CONFIGDIR='\"${SCHEME_CONFIGDIR}\"'" 5461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${SCHEME_CONFIGDIR}" >&5 5462$as_echo "${SCHEME_CONFIGDIR}" >&6; } 5463 else 5464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5465$as_echo "not found" >&6; } 5466 fi 5467 5468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for racket collects directory" >&5 5469$as_echo_n "checking for racket collects directory... " >&6; } 5470 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))))'` 5471 if test "X$SCHEME_COLLECTS" = "X"; then 5472 if test -d "$vi_cv_path_mzscheme_pfx/lib/plt/collects"; then 5473 SCHEME_COLLECTS=$vi_cv_path_mzscheme_pfx/lib/plt/ 5474 else 5475 if test -d "$vi_cv_path_mzscheme_pfx/lib/racket/collects"; then 5476 SCHEME_COLLECTS=$vi_cv_path_mzscheme_pfx/lib/racket/ 5477 else 5478 if test -d "$vi_cv_path_mzscheme_pfx/share/racket/collects"; then 5479 SCHEME_COLLECTS=$vi_cv_path_mzscheme_pfx/share/racket/ 5480 else 5481 if test -d "$vi_cv_path_mzscheme_pfx/collects"; then 5482 SCHEME_COLLECTS=$vi_cv_path_mzscheme_pfx/ 5483 fi 5484 fi 5485 fi 5486 fi 5487 fi 5488 if test "X$SCHEME_COLLECTS" != "X" ; then 5489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${SCHEME_COLLECTS}" >&5 5490$as_echo "${SCHEME_COLLECTS}" >&6; } 5491 else 5492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5493$as_echo "not found" >&6; } 5494 fi 5495 5496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mzscheme_base.c" >&5 5497$as_echo_n "checking for mzscheme_base.c... " >&6; } 5498 if test -f "${SCHEME_COLLECTS}collects/scheme/base.ss" ; then 5499 MZSCHEME_EXTRA="mzscheme_base.c" 5500 MZSCHEME_MZC="${vi_cv_path_mzscheme_pfx}/bin/mzc" 5501 MZSCHEME_MOD="++lib scheme/base" 5502 else 5503 if test -f "${SCHEME_COLLECTS}collects/scheme/base.rkt" ; then 5504 MZSCHEME_EXTRA="mzscheme_base.c" 5505 MZSCHEME_MZC="${vi_cv_path_mzscheme_pfx}/bin/mzc" 5506 MZSCHEME_MOD="++lib scheme/base" 5507 else 5508 if test -f "${SCHEME_COLLECTS}collects/racket/base.rkt" ; then 5509 MZSCHEME_EXTRA="mzscheme_base.c" 5510 MZSCHEME_MZC="${vi_cv_path_mzscheme_pfx}/bin/raco ctool" 5511 MZSCHEME_MOD="" 5512 fi 5513 fi 5514 fi 5515 if test "X$MZSCHEME_EXTRA" != "X" ; then 5516 MZSCHEME_CFLAGS="${MZSCHEME_CFLAGS} -DINCLUDE_MZSCHEME_BASE" 5517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: needed" >&5 5518$as_echo "needed" >&6; } 5519 else 5520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not needed" >&5 5521$as_echo "not needed" >&6; } 5522 fi 5523 5524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ffi_type_void in -lffi" >&5 5525$as_echo_n "checking for ffi_type_void in -lffi... " >&6; } 5526if ${ac_cv_lib_ffi_ffi_type_void+:} false; then : 5527 $as_echo_n "(cached) " >&6 5528else 5529 ac_check_lib_save_LIBS=$LIBS 5530LIBS="-lffi $LIBS" 5531cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5532/* end confdefs.h. */ 5533 5534/* Override any GCC internal prototype to avoid an error. 5535 Use char because int might match the return type of a GCC 5536 builtin and then its argument prototype would still apply. */ 5537#ifdef __cplusplus 5538extern "C" 5539#endif 5540char ffi_type_void (); 5541int 5542main () 5543{ 5544return ffi_type_void (); 5545 ; 5546 return 0; 5547} 5548_ACEOF 5549if ac_fn_c_try_link "$LINENO"; then : 5550 ac_cv_lib_ffi_ffi_type_void=yes 5551else 5552 ac_cv_lib_ffi_ffi_type_void=no 5553fi 5554rm -f core conftest.err conftest.$ac_objext \ 5555 conftest$ac_exeext conftest.$ac_ext 5556LIBS=$ac_check_lib_save_LIBS 5557fi 5558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ffi_ffi_type_void" >&5 5559$as_echo "$ac_cv_lib_ffi_ffi_type_void" >&6; } 5560if test "x$ac_cv_lib_ffi_ffi_type_void" = xyes; then : 5561 MZSCHEME_LIBS="$MZSCHEME_LIBS -lffi" 5562fi 5563 5564 5565 MZSCHEME_CFLAGS="${MZSCHEME_CFLAGS} -I${SCHEME_INC} \ 5566 -DMZSCHEME_COLLECTS='\"${SCHEME_COLLECTS}collects\"'" 5567 5568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compile and link flags for MzScheme are sane" >&5 5569$as_echo_n "checking if compile and link flags for MzScheme are sane... " >&6; } 5570 cflags_save=$CFLAGS 5571 libs_save=$LIBS 5572 CFLAGS="$CFLAGS $MZSCHEME_CFLAGS" 5573 LIBS="$LIBS $MZSCHEME_LIBS" 5574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5575/* end confdefs.h. */ 5576 5577int 5578main () 5579{ 5580 5581 ; 5582 return 0; 5583} 5584_ACEOF 5585if ac_fn_c_try_link "$LINENO"; then : 5586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5587$as_echo "yes" >&6; }; mzs_ok=yes 5588else 5589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: MZSCHEME DISABLED" >&5 5590$as_echo "no: MZSCHEME DISABLED" >&6; }; mzs_ok=no 5591fi 5592rm -f core conftest.err conftest.$ac_objext \ 5593 conftest$ac_exeext conftest.$ac_ext 5594 CFLAGS=$cflags_save 5595 LIBS=$libs_save 5596 if test $mzs_ok = yes; then 5597 MZSCHEME_SRC="if_mzsch.c" 5598 MZSCHEME_OBJ="objects/if_mzsch.o" 5599 MZSCHEME_PRO="if_mzsch.pro" 5600 $as_echo "#define FEAT_MZSCHEME 1" >>confdefs.h 5601 5602 else 5603 MZSCHEME_CFLAGS= 5604 MZSCHEME_LIBS= 5605 MZSCHEME_EXTRA= 5606 MZSCHEME_MZC= 5607 fi 5608 fi 5609 5610 5611 5612 5613 5614 5615 5616fi 5617 5618 5619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-perlinterp argument" >&5 5620$as_echo_n "checking --enable-perlinterp argument... " >&6; } 5621# Check whether --enable-perlinterp was given. 5622if test "${enable_perlinterp+set}" = set; then : 5623 enableval=$enable_perlinterp; 5624else 5625 enable_perlinterp="no" 5626fi 5627 5628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_perlinterp" >&5 5629$as_echo "$enable_perlinterp" >&6; } 5630if test "$enable_perlinterp" = "yes" -o "$enable_perlinterp" = "dynamic"; then 5631 if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then 5632 as_fn_error $? "cannot use Perl with tiny or small features" "$LINENO" 5 5633 fi 5634 5635 # Extract the first word of "perl", so it can be a program name with args. 5636set dummy perl; ac_word=$2 5637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5638$as_echo_n "checking for $ac_word... " >&6; } 5639if ${ac_cv_path_vi_cv_path_perl+:} false; then : 5640 $as_echo_n "(cached) " >&6 5641else 5642 case $vi_cv_path_perl in 5643 [\\/]* | ?:[\\/]*) 5644 ac_cv_path_vi_cv_path_perl="$vi_cv_path_perl" # Let the user override the test with a path. 5645 ;; 5646 *) 5647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5648for as_dir in $PATH 5649do 5650 IFS=$as_save_IFS 5651 test -z "$as_dir" && as_dir=. 5652 for ac_exec_ext in '' $ac_executable_extensions; do 5653 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5654 ac_cv_path_vi_cv_path_perl="$as_dir/$ac_word$ac_exec_ext" 5655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5656 break 2 5657 fi 5658done 5659 done 5660IFS=$as_save_IFS 5661 5662 ;; 5663esac 5664fi 5665vi_cv_path_perl=$ac_cv_path_vi_cv_path_perl 5666if test -n "$vi_cv_path_perl"; then 5667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_perl" >&5 5668$as_echo "$vi_cv_path_perl" >&6; } 5669else 5670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5671$as_echo "no" >&6; } 5672fi 5673 5674 5675 if test "X$vi_cv_path_perl" != "X"; then 5676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Perl version" >&5 5677$as_echo_n "checking Perl version... " >&6; } 5678 if $vi_cv_path_perl -e 'require 5.003_01' >/dev/null 2>/dev/null; then 5679 eval `$vi_cv_path_perl -V:usethreads` 5680 eval `$vi_cv_path_perl -V:libperl` 5681 if test "X$usethreads" = "XUNKNOWN" -o "X$usethreads" = "Xundef"; then 5682 badthreads=no 5683 else 5684 if $vi_cv_path_perl -e 'require 5.6.0' >/dev/null 2>/dev/null; then 5685 eval `$vi_cv_path_perl -V:use5005threads` 5686 if test "X$use5005threads" = "XUNKNOWN" -o "X$use5005threads" = "Xundef"; then 5687 badthreads=no 5688 else 5689 badthreads=yes 5690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: >>> Perl > 5.6 with 5.5 threads cannot be used <<<" >&5 5691$as_echo ">>> Perl > 5.6 with 5.5 threads cannot be used <<<" >&6; } 5692 fi 5693 else 5694 badthreads=yes 5695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: >>> Perl 5.5 with threads cannot be used <<<" >&5 5696$as_echo ">>> Perl 5.5 with threads cannot be used <<<" >&6; } 5697 fi 5698 fi 5699 if test $badthreads = no; then 5700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK" >&5 5701$as_echo "OK" >&6; } 5702 eval `$vi_cv_path_perl -V:shrpenv` 5703 if test "X$shrpenv" = "XUNKNOWN"; then # pre 5.003_04 5704 shrpenv="" 5705 fi 5706 vi_cv_perllib=`$vi_cv_path_perl -MConfig -e 'print $Config{privlibexp}'` 5707 5708 vi_cv_perl_extutils=unknown_perl_extutils_path 5709 for extutils_rel_path in ExtUtils vendor_perl/ExtUtils; do 5710 xsubpp_path="$vi_cv_perllib/$extutils_rel_path/xsubpp" 5711 if test -f "$xsubpp_path"; then 5712 vi_cv_perl_xsubpp="$xsubpp_path" 5713 fi 5714 done 5715 5716 perlcppflags=`$vi_cv_path_perl -Mlib=$srcdir -MExtUtils::Embed \ 5717 -e 'ccflags;perl_inc;print"\n"' | sed -e 's/-fno[^ ]*//' \ 5718 -e 's/-fdebug-prefix-map[^ ]*//g'` 5719 perllibs=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed -e 'ldopts' | \ 5720 sed -e '/Warning/d' -e '/Note (probably harmless)/d' \ 5721 -e 's/-bE:perl.exp//' -e 's/-lc //'` 5722 perlldflags=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed \ 5723 -e 'ccdlflags' | sed -e 's/-bE:perl.exp//'` 5724 5725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compile and link flags for Perl are sane" >&5 5726$as_echo_n "checking if compile and link flags for Perl are sane... " >&6; } 5727 cflags_save=$CFLAGS 5728 libs_save=$LIBS 5729 ldflags_save=$LDFLAGS 5730 CFLAGS="$CFLAGS $perlcppflags" 5731 LIBS="$LIBS $perllibs" 5732 perlldflags=`echo "$perlldflags" | sed -e 's/^ *//g'` 5733 LDFLAGS="$perlldflags $LDFLAGS" 5734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5735/* end confdefs.h. */ 5736 5737int 5738main () 5739{ 5740 5741 ; 5742 return 0; 5743} 5744_ACEOF 5745if ac_fn_c_try_link "$LINENO"; then : 5746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5747$as_echo "yes" >&6; }; perl_ok=yes 5748else 5749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: PERL DISABLED" >&5 5750$as_echo "no: PERL DISABLED" >&6; }; perl_ok=no 5751fi 5752rm -f core conftest.err conftest.$ac_objext \ 5753 conftest$ac_exeext conftest.$ac_ext 5754 CFLAGS=$cflags_save 5755 LIBS=$libs_save 5756 LDFLAGS=$ldflags_save 5757 if test $perl_ok = yes; then 5758 if test "X$perlcppflags" != "X"; then 5759 PERL_CFLAGS=`echo "$perlcppflags" | sed -e 's/-pipe //' -e 's/-W[^ ]*//'` 5760 fi 5761 if test "X$perlldflags" != "X"; then 5762 if test "X`echo \"$LDFLAGS\" | $FGREP -e \"$perlldflags\"`" = "X"; then 5763 LDFLAGS="$perlldflags $LDFLAGS" 5764 fi 5765 fi 5766 PERL_LIBS=$perllibs 5767 PERL_SRC="auto/if_perl.c if_perlsfio.c" 5768 PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o" 5769 PERL_PRO="if_perl.pro if_perlsfio.pro" 5770 $as_echo "#define FEAT_PERL 1" >>confdefs.h 5771 5772 fi 5773 fi 5774 else 5775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: >>> too old; need Perl version 5.003_01 or later <<<" >&5 5776$as_echo ">>> too old; need Perl version 5.003_01 or later <<<" >&6; } 5777 fi 5778 fi 5779 5780 if test "x$MACOSX" = "xyes"; then 5781 dir=/System/Library/Perl 5782 darwindir=$dir/darwin 5783 if test -d $darwindir; then 5784 PERL=/usr/bin/perl 5785 else 5786 dir=/System/Library/Perl/5.8.1 5787 darwindir=$dir/darwin-thread-multi-2level 5788 if test -d $darwindir; then 5789 PERL=/usr/bin/perl 5790 fi 5791 fi 5792 if test -n "$PERL"; then 5793 PERL_DIR="$dir" 5794 PERL_CFLAGS="-DFEAT_PERL -I$darwindir/CORE" 5795 PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o $darwindir/auto/DynaLoader/DynaLoader.a" 5796 PERL_LIBS="-L$darwindir/CORE -lperl" 5797 fi 5798 PERL_LIBS=`echo "$PERL_LIBS" | sed -e 's/-arch\ ppc//' -e 's/-arch\ i386//' -e 's/-arch\ x86_64//'` 5799 PERL_CFLAGS=`echo "$PERL_CFLAGS" | sed -e 's/-arch\ ppc//' -e 's/-arch\ i386//' -e 's/-arch\ x86_64//'` 5800 fi 5801 if test "$enable_perlinterp" = "dynamic"; then 5802 if test "$perl_ok" = "yes" -a "X$libperl" != "X"; then 5803 $as_echo "#define DYNAMIC_PERL 1" >>confdefs.h 5804 5805 PERL_CFLAGS="-DDYNAMIC_PERL_DLL=\\\"$libperl\\\" $PERL_CFLAGS" 5806 fi 5807 fi 5808 5809 if test "$fail_if_missing" = "yes" -a "$perl_ok" != "yes"; then 5810 as_fn_error $? "could not configure perl" "$LINENO" 5 5811 fi 5812fi 5813 5814 5815 5816 5817 5818 5819 5820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-pythoninterp argument" >&5 5821$as_echo_n "checking --enable-pythoninterp argument... " >&6; } 5822# Check whether --enable-pythoninterp was given. 5823if test "${enable_pythoninterp+set}" = set; then : 5824 enableval=$enable_pythoninterp; 5825else 5826 enable_pythoninterp="no" 5827fi 5828 5829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_pythoninterp" >&5 5830$as_echo "$enable_pythoninterp" >&6; } 5831if test "$enable_pythoninterp" = "yes" -o "$enable_pythoninterp" = "dynamic"; then 5832 if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then 5833 as_fn_error $? "cannot use Python with tiny or small features" "$LINENO" 5 5834 fi 5835 5836 for ac_prog in python2 python 5837do 5838 # Extract the first word of "$ac_prog", so it can be a program name with args. 5839set dummy $ac_prog; ac_word=$2 5840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5841$as_echo_n "checking for $ac_word... " >&6; } 5842if ${ac_cv_path_vi_cv_path_python+:} false; then : 5843 $as_echo_n "(cached) " >&6 5844else 5845 case $vi_cv_path_python in 5846 [\\/]* | ?:[\\/]*) 5847 ac_cv_path_vi_cv_path_python="$vi_cv_path_python" # Let the user override the test with a path. 5848 ;; 5849 *) 5850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5851for as_dir in $PATH 5852do 5853 IFS=$as_save_IFS 5854 test -z "$as_dir" && as_dir=. 5855 for ac_exec_ext in '' $ac_executable_extensions; do 5856 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5857 ac_cv_path_vi_cv_path_python="$as_dir/$ac_word$ac_exec_ext" 5858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5859 break 2 5860 fi 5861done 5862 done 5863IFS=$as_save_IFS 5864 5865 ;; 5866esac 5867fi 5868vi_cv_path_python=$ac_cv_path_vi_cv_path_python 5869if test -n "$vi_cv_path_python"; then 5870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python" >&5 5871$as_echo "$vi_cv_path_python" >&6; } 5872else 5873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5874$as_echo "no" >&6; } 5875fi 5876 5877 5878 test -n "$vi_cv_path_python" && break 5879done 5880 5881 if test "X$vi_cv_path_python" != "X"; then 5882 5883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python version" >&5 5884$as_echo_n "checking Python version... " >&6; } 5885if ${vi_cv_var_python_version+:} false; then : 5886 $as_echo_n "(cached) " >&6 5887else 5888 vi_cv_var_python_version=` 5889 ${vi_cv_path_python} -c 'import sys; print sys.version[:3]'` 5890 5891fi 5892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_var_python_version" >&5 5893$as_echo "$vi_cv_var_python_version" >&6; } 5894 5895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python is 2.3 or better" >&5 5896$as_echo_n "checking Python is 2.3 or better... " >&6; } 5897 if ${vi_cv_path_python} -c \ 5898 "import sys; sys.exit(${vi_cv_var_python_version} < 2.3)" 5899 then 5900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yep" >&5 5901$as_echo "yep" >&6; } 5902 5903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's install prefix" >&5 5904$as_echo_n "checking Python's install prefix... " >&6; } 5905if ${vi_cv_path_python_pfx+:} false; then : 5906 $as_echo_n "(cached) " >&6 5907else 5908 vi_cv_path_python_pfx=` 5909 ${vi_cv_path_python} -c \ 5910 "import sys; print sys.prefix"` 5911fi 5912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python_pfx" >&5 5913$as_echo "$vi_cv_path_python_pfx" >&6; } 5914 5915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's execution prefix" >&5 5916$as_echo_n "checking Python's execution prefix... " >&6; } 5917if ${vi_cv_path_python_epfx+:} false; then : 5918 $as_echo_n "(cached) " >&6 5919else 5920 vi_cv_path_python_epfx=` 5921 ${vi_cv_path_python} -c \ 5922 "import sys; print sys.exec_prefix"` 5923fi 5924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python_epfx" >&5 5925$as_echo "$vi_cv_path_python_epfx" >&6; } 5926 5927 5928 if ${vi_cv_path_pythonpath+:} false; then : 5929 $as_echo_n "(cached) " >&6 5930else 5931 vi_cv_path_pythonpath=` 5932 unset PYTHONPATH; 5933 ${vi_cv_path_python} -c \ 5934 "import sys, string; print string.join(sys.path,':')"` 5935fi 5936 5937 5938 5939 5940# Check whether --with-python-config-dir was given. 5941if test "${with_python_config_dir+set}" = set; then : 5942 withval=$with_python_config_dir; vi_cv_path_python_conf="${withval}" 5943fi 5944 5945 5946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's configuration directory" >&5 5947$as_echo_n "checking Python's configuration directory... " >&6; } 5948if ${vi_cv_path_python_conf+:} false; then : 5949 $as_echo_n "(cached) " >&6 5950else 5951 5952 vi_cv_path_python_conf= 5953 d=`${vi_cv_path_python} -c "import distutils.sysconfig; print distutils.sysconfig.get_config_var('LIBPL')"` 5954 if test -d "$d" && test -f "$d/config.c"; then 5955 vi_cv_path_python_conf="$d" 5956 else 5957 for path in "${vi_cv_path_python_pfx}" "${vi_cv_path_python_epfx}"; do 5958 for subdir in lib64 lib share; do 5959 d="${path}/${subdir}/python${vi_cv_var_python_version}/config" 5960 if test -d "$d" && test -f "$d/config.c"; then 5961 vi_cv_path_python_conf="$d" 5962 fi 5963 done 5964 done 5965 fi 5966 5967fi 5968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python_conf" >&5 5969$as_echo "$vi_cv_path_python_conf" >&6; } 5970 5971 PYTHON_CONFDIR="${vi_cv_path_python_conf}" 5972 5973 if test "X$PYTHON_CONFDIR" = "X"; then 5974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: can't find it!" >&5 5975$as_echo "can't find it!" >&6; } 5976 else 5977 5978 if ${vi_cv_path_python_plibs+:} false; then : 5979 $as_echo_n "(cached) " >&6 5980else 5981 5982 pwd=`pwd` 5983 tmp_mkf="$pwd/config-PyMake$$" 5984 cat -- "${PYTHON_CONFDIR}/Makefile" - <<'eof' >"${tmp_mkf}" 5985__: 5986 @echo "python_BASEMODLIBS='$(BASEMODLIBS)'" 5987 @echo "python_LIBS='$(LIBS)'" 5988 @echo "python_SYSLIBS='$(SYSLIBS)'" 5989 @echo "python_LINKFORSHARED='$(LINKFORSHARED)'" 5990 @echo "python_DLLLIBRARY='$(DLLLIBRARY)'" 5991 @echo "python_INSTSONAME='$(INSTSONAME)'" 5992 @echo "python_PYTHONFRAMEWORK='$(PYTHONFRAMEWORK)'" 5993 @echo "python_PYTHONFRAMEWORKPREFIX='$(PYTHONFRAMEWORKPREFIX)'" 5994 @echo "python_PYTHONFRAMEWORKINSTALLDIR='$(PYTHONFRAMEWORKINSTALLDIR)'" 5995eof 5996 eval "`cd ${PYTHON_CONFDIR} && make -f "${tmp_mkf}" __ | sed '/ directory /d'`" 5997 rm -f -- "${tmp_mkf}" 5998 if test "x$MACOSX" = "xyes" && test -n "${python_PYTHONFRAMEWORK}" && ${vi_cv_path_python} -c \ 5999 "import sys; sys.exit(${vi_cv_var_python_version} < 2.3)"; then 6000 vi_cv_path_python_plibs="-framework Python" 6001 if test "x${vi_cv_path_python}" != "x/usr/bin/python" && test -n "${python_PYTHONFRAMEWORKPREFIX}"; then 6002 vi_cv_path_python_plibs="-F${python_PYTHONFRAMEWORKPREFIX} -framework Python" 6003 fi 6004 else 6005 if test "${vi_cv_var_python_version}" = "1.4"; then 6006 vi_cv_path_python_plibs="${PYTHON_CONFDIR}/libModules.a ${PYTHON_CONFDIR}/libPython.a ${PYTHON_CONFDIR}/libObjects.a ${PYTHON_CONFDIR}/libParser.a" 6007 else 6008 vi_cv_path_python_plibs="-L${PYTHON_CONFDIR} -lpython${vi_cv_var_python_version}" 6009 fi 6010 if test -n "${python_LINKFORSHARED}" && test -n "${python_PYTHONFRAMEWORKPREFIX}"; then 6011 python_link_symbol=`echo ${python_LINKFORSHARED} | sed 's/\([^ \t][^ \t]*[ \t][ \t]*[^ \t][^ \t]*\)[ \t].*/\1/'` 6012 python_link_path=`echo ${python_LINKFORSHARED} | sed 's/\([^ \t][^ \t]*[ \t][ \t]*[^ \t][^ \t]*\)[ \t][ \t]*\(.*\)/\2/'` 6013 if test -n "${python_link_path}" && ! test -x "${python_link_path}"; then 6014 python_link_path="${python_PYTHONFRAMEWORKPREFIX}/${python_link_path}" 6015 if test -n "${python_link_path}" && ! test -x "${python_link_path}"; then 6016 python_link_path="${python_PYTHONFRAMEWORKINSTALLDIR}/Versions/${vi_cv_var_python_version}/${python_PYTHONFRAMEWORK}" 6017 fi 6018 python_LINKFORSHARED="${python_link_symbol} ${python_link_path}" 6019 fi 6020 fi 6021 vi_cv_path_python_plibs="${vi_cv_path_python_plibs} ${python_BASEMODLIBS} ${python_LIBS} ${python_SYSLIBS} ${python_LINKFORSHARED}" 6022 vi_cv_path_python_plibs=`echo $vi_cv_path_python_plibs | sed s/-ltermcap//` 6023 fi 6024 6025fi 6026 6027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's dll name" >&5 6028$as_echo_n "checking Python's dll name... " >&6; } 6029if ${vi_cv_dll_name_python+:} false; then : 6030 $as_echo_n "(cached) " >&6 6031else 6032 6033 if test "X$python_DLLLIBRARY" != "X"; then 6034 vi_cv_dll_name_python="$python_DLLLIBRARY" 6035 else 6036 vi_cv_dll_name_python="$python_INSTSONAME" 6037 fi 6038 6039fi 6040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_dll_name_python" >&5 6041$as_echo "$vi_cv_dll_name_python" >&6; } 6042 6043 PYTHON_LIBS="${vi_cv_path_python_plibs}" 6044 if test "${vi_cv_path_python_pfx}" = "${vi_cv_path_python_epfx}"; then 6045 PYTHON_CFLAGS="-I${vi_cv_path_python_pfx}/include/python${vi_cv_var_python_version} -DPYTHON_HOME='\"${vi_cv_path_python_pfx}\"'" 6046 else 6047 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}\"'" 6048 fi 6049 PYTHON_SRC="if_python.c" 6050 PYTHON_OBJ="objects/if_python.o" 6051 if test "${vi_cv_var_python_version}" = "1.4"; then 6052 PYTHON_OBJ="$PYTHON_OBJ objects/py_getpath.o" 6053 fi 6054 PYTHON_GETPATH_CFLAGS="-DPYTHONPATH='\"${vi_cv_path_pythonpath}\"' -DPREFIX='\"${vi_cv_path_python_pfx}\"' -DEXEC_PREFIX='\"${vi_cv_path_python_epfx}\"'" 6055 6056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -pthread should be used" >&5 6057$as_echo_n "checking if -pthread should be used... " >&6; } 6058 threadsafe_flag= 6059 thread_lib= 6060 if test "`(uname) 2>/dev/null`" != Darwin; then 6061 test "$GCC" = yes && threadsafe_flag="-pthread" 6062 if test "`(uname) 2>/dev/null`" = FreeBSD; then 6063 threadsafe_flag="-D_THREAD_SAFE" 6064 thread_lib="-pthread" 6065 fi 6066 if test "`(uname) 2>/dev/null`" = SunOS; then 6067 threadsafe_flag="-pthreads" 6068 fi 6069 fi 6070 libs_save_old=$LIBS 6071 if test -n "$threadsafe_flag"; then 6072 cflags_save=$CFLAGS 6073 CFLAGS="$CFLAGS $threadsafe_flag" 6074 LIBS="$LIBS $thread_lib" 6075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6076/* end confdefs.h. */ 6077 6078int 6079main () 6080{ 6081 6082 ; 6083 return 0; 6084} 6085_ACEOF 6086if ac_fn_c_try_link "$LINENO"; then : 6087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6088$as_echo "yes" >&6; }; PYTHON_CFLAGS="$PYTHON_CFLAGS $threadsafe_flag" 6089else 6090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6091$as_echo "no" >&6; }; LIBS=$libs_save_old 6092 6093fi 6094rm -f core conftest.err conftest.$ac_objext \ 6095 conftest$ac_exeext conftest.$ac_ext 6096 CFLAGS=$cflags_save 6097 else 6098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6099$as_echo "no" >&6; } 6100 fi 6101 6102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compile and link flags for Python are sane" >&5 6103$as_echo_n "checking if compile and link flags for Python are sane... " >&6; } 6104 cflags_save=$CFLAGS 6105 libs_save=$LIBS 6106 CFLAGS="$CFLAGS $PYTHON_CFLAGS" 6107 LIBS="$LIBS $PYTHON_LIBS" 6108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6109/* end confdefs.h. */ 6110 6111int 6112main () 6113{ 6114 6115 ; 6116 return 0; 6117} 6118_ACEOF 6119if ac_fn_c_try_link "$LINENO"; then : 6120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6121$as_echo "yes" >&6; }; python_ok=yes 6122else 6123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: PYTHON DISABLED" >&5 6124$as_echo "no: PYTHON DISABLED" >&6; }; python_ok=no 6125fi 6126rm -f core conftest.err conftest.$ac_objext \ 6127 conftest$ac_exeext conftest.$ac_ext 6128 CFLAGS=$cflags_save 6129 LIBS=$libs_save 6130 if test $python_ok = yes; then 6131 $as_echo "#define FEAT_PYTHON 1" >>confdefs.h 6132 6133 else 6134 LIBS=$libs_save_old 6135 PYTHON_SRC= 6136 PYTHON_OBJ= 6137 PYTHON_LIBS= 6138 PYTHON_CFLAGS= 6139 fi 6140 fi 6141 else 6142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: too old" >&5 6143$as_echo "too old" >&6; } 6144 fi 6145 fi 6146 6147 if test "$fail_if_missing" = "yes" -a "$python_ok" != "yes"; then 6148 as_fn_error $? "could not configure python" "$LINENO" 5 6149 fi 6150fi 6151 6152 6153 6154 6155 6156 6157 6158 6159 6160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-python3interp argument" >&5 6161$as_echo_n "checking --enable-python3interp argument... " >&6; } 6162# Check whether --enable-python3interp was given. 6163if test "${enable_python3interp+set}" = set; then : 6164 enableval=$enable_python3interp; 6165else 6166 enable_python3interp="no" 6167fi 6168 6169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_python3interp" >&5 6170$as_echo "$enable_python3interp" >&6; } 6171if test "$enable_python3interp" = "yes" -o "$enable_python3interp" = "dynamic"; then 6172 if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then 6173 as_fn_error $? "cannot use Python with tiny or small features" "$LINENO" 5 6174 fi 6175 6176 for ac_prog in python3 python 6177do 6178 # Extract the first word of "$ac_prog", so it can be a program name with args. 6179set dummy $ac_prog; ac_word=$2 6180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6181$as_echo_n "checking for $ac_word... " >&6; } 6182if ${ac_cv_path_vi_cv_path_python3+:} false; then : 6183 $as_echo_n "(cached) " >&6 6184else 6185 case $vi_cv_path_python3 in 6186 [\\/]* | ?:[\\/]*) 6187 ac_cv_path_vi_cv_path_python3="$vi_cv_path_python3" # Let the user override the test with a path. 6188 ;; 6189 *) 6190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6191for as_dir in $PATH 6192do 6193 IFS=$as_save_IFS 6194 test -z "$as_dir" && as_dir=. 6195 for ac_exec_ext in '' $ac_executable_extensions; do 6196 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6197 ac_cv_path_vi_cv_path_python3="$as_dir/$ac_word$ac_exec_ext" 6198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6199 break 2 6200 fi 6201done 6202 done 6203IFS=$as_save_IFS 6204 6205 ;; 6206esac 6207fi 6208vi_cv_path_python3=$ac_cv_path_vi_cv_path_python3 6209if test -n "$vi_cv_path_python3"; then 6210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python3" >&5 6211$as_echo "$vi_cv_path_python3" >&6; } 6212else 6213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6214$as_echo "no" >&6; } 6215fi 6216 6217 6218 test -n "$vi_cv_path_python3" && break 6219done 6220 6221 if test "X$vi_cv_path_python3" != "X"; then 6222 6223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python version" >&5 6224$as_echo_n "checking Python version... " >&6; } 6225if ${vi_cv_var_python3_version+:} false; then : 6226 $as_echo_n "(cached) " >&6 6227else 6228 vi_cv_var_python3_version=` 6229 ${vi_cv_path_python3} -c 'import sys; print(sys.version[:3])'` 6230 6231fi 6232{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_var_python3_version" >&5 6233$as_echo "$vi_cv_var_python3_version" >&6; } 6234 6235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python is 3.0 or better" >&5 6236$as_echo_n "checking Python is 3.0 or better... " >&6; } 6237 if ${vi_cv_path_python3} -c \ 6238 "import sys; sys.exit(${vi_cv_var_python3_version} < 3.0)" 6239 then 6240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yep" >&5 6241$as_echo "yep" >&6; } 6242 6243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's abiflags" >&5 6244$as_echo_n "checking Python's abiflags... " >&6; } 6245if ${vi_cv_var_python3_abiflags+:} false; then : 6246 $as_echo_n "(cached) " >&6 6247else 6248 6249 vi_cv_var_python3_abiflags= 6250 if ${vi_cv_path_python3} -c \ 6251 "import sys; sys.exit(${vi_cv_var_python3_version} < 3.2)" 6252 then 6253 vi_cv_var_python3_abiflags=`${vi_cv_path_python3} -c \ 6254 "import sys; print(sys.abiflags)"` 6255 fi 6256fi 6257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_var_python3_abiflags" >&5 6258$as_echo "$vi_cv_var_python3_abiflags" >&6; } 6259 6260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's install prefix" >&5 6261$as_echo_n "checking Python's install prefix... " >&6; } 6262if ${vi_cv_path_python3_pfx+:} false; then : 6263 $as_echo_n "(cached) " >&6 6264else 6265 vi_cv_path_python3_pfx=` 6266 ${vi_cv_path_python3} -c \ 6267 "import sys; print(sys.prefix)"` 6268fi 6269{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python3_pfx" >&5 6270$as_echo "$vi_cv_path_python3_pfx" >&6; } 6271 6272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's execution prefix" >&5 6273$as_echo_n "checking Python's execution prefix... " >&6; } 6274if ${vi_cv_path_python3_epfx+:} false; then : 6275 $as_echo_n "(cached) " >&6 6276else 6277 vi_cv_path_python3_epfx=` 6278 ${vi_cv_path_python3} -c \ 6279 "import sys; print(sys.exec_prefix)"` 6280fi 6281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python3_epfx" >&5 6282$as_echo "$vi_cv_path_python3_epfx" >&6; } 6283 6284 6285 if ${vi_cv_path_python3path+:} false; then : 6286 $as_echo_n "(cached) " >&6 6287else 6288 vi_cv_path_python3path=` 6289 unset PYTHONPATH; 6290 ${vi_cv_path_python3} -c \ 6291 "import sys, string; print(':'.join(sys.path))"` 6292fi 6293 6294 6295 6296 6297# Check whether --with-python3-config-dir was given. 6298if test "${with_python3_config_dir+set}" = set; then : 6299 withval=$with_python3_config_dir; vi_cv_path_python3_conf="${withval}" 6300fi 6301 6302 6303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python's configuration directory" >&5 6304$as_echo_n "checking Python's configuration directory... " >&6; } 6305if ${vi_cv_path_python3_conf+:} false; then : 6306 $as_echo_n "(cached) " >&6 6307else 6308 6309 vi_cv_path_python3_conf= 6310 config_dir="config-${vi_cv_var_python3_version}${vi_cv_var_python3_abiflags}" 6311 d=`${vi_cv_path_python3} -c "import distutils.sysconfig; print(distutils.sysconfig.get_config_var('LIBPL'))"` 6312 if test -d "$d" && test -f "$d/config.c"; then 6313 vi_cv_path_python3_conf="$d" 6314 else 6315 for path in "${vi_cv_path_python3_pfx}" "${vi_cv_path_python3_epfx}"; do 6316 for subdir in lib64 lib share; do 6317 d="${path}/${subdir}/python${vi_cv_var_python3_version}/${config_dir}" 6318 if test -d "$d" && test -f "$d/config.c"; then 6319 vi_cv_path_python3_conf="$d" 6320 fi 6321 done 6322 done 6323 fi 6324 6325fi 6326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_python3_conf" >&5 6327$as_echo "$vi_cv_path_python3_conf" >&6; } 6328 6329 PYTHON3_CONFDIR="${vi_cv_path_python3_conf}" 6330 6331 if test "X$PYTHON3_CONFDIR" = "X"; then 6332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: can't find it!" >&5 6333$as_echo "can't find it!" >&6; } 6334 else 6335 6336 if ${vi_cv_path_python3_plibs+:} false; then : 6337 $as_echo_n "(cached) " >&6 6338else 6339 6340 pwd=`pwd` 6341 tmp_mkf="$pwd/config-PyMake$$" 6342 cat -- "${PYTHON3_CONFDIR}/Makefile" - <<'eof' >"${tmp_mkf}" 6343__: 6344 @echo "python3_BASEMODLIBS='$(BASEMODLIBS)'" 6345 @echo "python3_LIBS='$(LIBS)'" 6346 @echo "python3_SYSLIBS='$(SYSLIBS)'" 6347 @echo "python3_DLLLIBRARY='$(DLLLIBRARY)'" 6348 @echo "python3_INSTSONAME='$(INSTSONAME)'" 6349eof 6350 eval "`cd ${PYTHON3_CONFDIR} && make -f "${tmp_mkf}" __ | sed '/ directory /d'`" 6351 rm -f -- "${tmp_mkf}" 6352 vi_cv_path_python3_plibs="-L${PYTHON3_CONFDIR} -lpython${vi_cv_var_python3_version}${vi_cv_var_python3_abiflags}" 6353 vi_cv_path_python3_plibs="${vi_cv_path_python3_plibs} ${python3_BASEMODLIBS} ${python3_LIBS} ${python3_SYSLIBS}" 6354 vi_cv_path_python3_plibs=`echo $vi_cv_path_python3_plibs | sed s/-ltermcap//` 6355 vi_cv_path_python3_plibs=`echo $vi_cv_path_python3_plibs | sed s/-lffi//` 6356 6357fi 6358 6359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python3's dll name" >&5 6360$as_echo_n "checking Python3's dll name... " >&6; } 6361if ${vi_cv_dll_name_python3+:} false; then : 6362 $as_echo_n "(cached) " >&6 6363else 6364 6365 if test "X$python3_DLLLIBRARY" != "X"; then 6366 vi_cv_dll_name_python3="$python3_DLLLIBRARY" 6367 else 6368 vi_cv_dll_name_python3="$python3_INSTSONAME" 6369 fi 6370 6371fi 6372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_dll_name_python3" >&5 6373$as_echo "$vi_cv_dll_name_python3" >&6; } 6374 6375 PYTHON3_LIBS="${vi_cv_path_python3_plibs}" 6376 if test "${vi_cv_path_python3_pfx}" = "${vi_cv_path_python3_epfx}"; then 6377 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}\"'" 6378 else 6379 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}\"'" 6380 fi 6381 PYTHON3_SRC="if_python3.c" 6382 PYTHON3_OBJ="objects/if_python3.o" 6383 6384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -pthread should be used" >&5 6385$as_echo_n "checking if -pthread should be used... " >&6; } 6386 threadsafe_flag= 6387 thread_lib= 6388 if test "`(uname) 2>/dev/null`" != Darwin; then 6389 test "$GCC" = yes && threadsafe_flag="-pthread" 6390 if test "`(uname) 2>/dev/null`" = FreeBSD; then 6391 threadsafe_flag="-D_THREAD_SAFE" 6392 thread_lib="-pthread" 6393 fi 6394 if test "`(uname) 2>/dev/null`" = SunOS; then 6395 threadsafe_flag="-pthreads" 6396 fi 6397 fi 6398 libs_save_old=$LIBS 6399 if test -n "$threadsafe_flag"; then 6400 cflags_save=$CFLAGS 6401 CFLAGS="$CFLAGS $threadsafe_flag" 6402 LIBS="$LIBS $thread_lib" 6403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6404/* end confdefs.h. */ 6405 6406int 6407main () 6408{ 6409 6410 ; 6411 return 0; 6412} 6413_ACEOF 6414if ac_fn_c_try_link "$LINENO"; then : 6415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6416$as_echo "yes" >&6; }; PYTHON3_CFLAGS="$PYTHON3_CFLAGS $threadsafe_flag" 6417else 6418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6419$as_echo "no" >&6; }; LIBS=$libs_save_old 6420 6421fi 6422rm -f core conftest.err conftest.$ac_objext \ 6423 conftest$ac_exeext conftest.$ac_ext 6424 CFLAGS=$cflags_save 6425 else 6426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6427$as_echo "no" >&6; } 6428 fi 6429 6430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compile and link flags for Python 3 are sane" >&5 6431$as_echo_n "checking if compile and link flags for Python 3 are sane... " >&6; } 6432 cflags_save=$CFLAGS 6433 libs_save=$LIBS 6434 CFLAGS="$CFLAGS $PYTHON3_CFLAGS" 6435 LIBS="$LIBS $PYTHON3_LIBS" 6436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6437/* end confdefs.h. */ 6438 6439int 6440main () 6441{ 6442 6443 ; 6444 return 0; 6445} 6446_ACEOF 6447if ac_fn_c_try_link "$LINENO"; then : 6448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6449$as_echo "yes" >&6; }; python3_ok=yes 6450else 6451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no: PYTHON3 DISABLED" >&5 6452$as_echo "no: PYTHON3 DISABLED" >&6; }; python3_ok=no 6453fi 6454rm -f core conftest.err conftest.$ac_objext \ 6455 conftest$ac_exeext conftest.$ac_ext 6456 CFLAGS=$cflags_save 6457 LIBS=$libs_save 6458 if test "$python3_ok" = yes; then 6459 $as_echo "#define FEAT_PYTHON3 1" >>confdefs.h 6460 6461 else 6462 LIBS=$libs_save_old 6463 PYTHON3_SRC= 6464 PYTHON3_OBJ= 6465 PYTHON3_LIBS= 6466 PYTHON3_CFLAGS= 6467 fi 6468 fi 6469 else 6470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: too old" >&5 6471$as_echo "too old" >&6; } 6472 fi 6473 fi 6474 if test "$fail_if_missing" = "yes" -a "$python3_ok" != "yes"; then 6475 as_fn_error $? "could not configure python3" "$LINENO" 5 6476 fi 6477fi 6478 6479 6480 6481 6482 6483 6484 6485if test "$python_ok" = yes && test "$python3_ok" = yes; then 6486 $as_echo "#define DYNAMIC_PYTHON 1" >>confdefs.h 6487 6488 $as_echo "#define DYNAMIC_PYTHON3 1" >>confdefs.h 6489 6490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can do without RTLD_GLOBAL for Python" >&5 6491$as_echo_n "checking whether we can do without RTLD_GLOBAL for Python... " >&6; } 6492 cflags_save=$CFLAGS 6493 CFLAGS="$CFLAGS $PYTHON_CFLAGS" 6494 libs_save=$LIBS 6495 LIBS="-ldl $LIBS" 6496 if test "$cross_compiling" = yes; then : 6497 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 6498$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6499as_fn_error $? "cannot run test program while cross compiling 6500See \`config.log' for more details" "$LINENO" 5; } 6501else 6502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6503/* end confdefs.h. */ 6504 6505 #include <dlfcn.h> 6506 /* If this program fails, then RTLD_GLOBAL is needed. 6507 * RTLD_GLOBAL will be used and then it is not possible to 6508 * have both python versions enabled in the same vim instance. 6509 * Only the first python version used will be switched on. 6510 */ 6511 6512 int no_rtl_global_needed_for(char *python_instsoname, char *prefix) 6513 { 6514 int needed = 0; 6515 void* pylib = dlopen(python_instsoname, RTLD_LAZY|RTLD_LOCAL); 6516 if (pylib != 0) 6517 { 6518 void (*pfx)(char *home) = dlsym(pylib, "Py_SetPythonHome"); 6519 void (*init)(void) = dlsym(pylib, "Py_Initialize"); 6520 int (*simple)(char*) = dlsym(pylib, "PyRun_SimpleString"); 6521 void (*final)(void) = dlsym(pylib, "Py_Finalize"); 6522 (*pfx)(prefix); 6523 (*init)(); 6524 needed = (*simple)("import termios") == -1; 6525 (*final)(); 6526 dlclose(pylib); 6527 } 6528 return !needed; 6529 } 6530 6531 int main(int argc, char** argv) 6532 { 6533 int not_needed = 0; 6534 if (no_rtl_global_needed_for("${vi_cv_dll_name_python}", "${vi_cv_path_python_pfx}")) 6535 not_needed = 1; 6536 return !not_needed; 6537 } 6538_ACEOF 6539if ac_fn_c_try_run "$LINENO"; then : 6540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6541$as_echo "yes" >&6; };$as_echo "#define PY_NO_RTLD_GLOBAL 1" >>confdefs.h 6542 6543else 6544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6545$as_echo "no" >&6; } 6546fi 6547rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 6548 conftest.$ac_objext conftest.beam conftest.$ac_ext 6549fi 6550 6551 6552 CFLAGS=$cflags_save 6553 LIBS=$libs_save 6554 6555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can do without RTLD_GLOBAL for Python3" >&5 6556$as_echo_n "checking whether we can do without RTLD_GLOBAL for Python3... " >&6; } 6557 cflags_save=$CFLAGS 6558 CFLAGS="$CFLAGS $PYTHON3_CFLAGS" 6559 libs_save=$LIBS 6560 LIBS="-ldl $LIBS" 6561 if test "$cross_compiling" = yes; then : 6562 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 6563$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6564as_fn_error $? "cannot run test program while cross compiling 6565See \`config.log' for more details" "$LINENO" 5; } 6566else 6567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6568/* end confdefs.h. */ 6569 6570 #include <dlfcn.h> 6571 #include <wchar.h> 6572 /* If this program fails, then RTLD_GLOBAL is needed. 6573 * RTLD_GLOBAL will be used and then it is not possible to 6574 * have both python versions enabled in the same vim instance. 6575 * Only the first python version used will be switched on. 6576 */ 6577 6578 int no_rtl_global_needed_for(char *python_instsoname, wchar_t *prefix) 6579 { 6580 int needed = 0; 6581 void* pylib = dlopen(python_instsoname, RTLD_LAZY|RTLD_LOCAL); 6582 if (pylib != 0) 6583 { 6584 void (*pfx)(wchar_t *home) = dlsym(pylib, "Py_SetPythonHome"); 6585 void (*init)(void) = dlsym(pylib, "Py_Initialize"); 6586 int (*simple)(char*) = dlsym(pylib, "PyRun_SimpleString"); 6587 void (*final)(void) = dlsym(pylib, "Py_Finalize"); 6588 (*pfx)(prefix); 6589 (*init)(); 6590 needed = (*simple)("import termios") == -1; 6591 (*final)(); 6592 dlclose(pylib); 6593 } 6594 return !needed; 6595 } 6596 6597 int main(int argc, char** argv) 6598 { 6599 int not_needed = 0; 6600 if (no_rtl_global_needed_for("${vi_cv_dll_name_python3}", L"${vi_cv_path_python3_pfx}")) 6601 not_needed = 1; 6602 return !not_needed; 6603 } 6604_ACEOF 6605if ac_fn_c_try_run "$LINENO"; then : 6606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6607$as_echo "yes" >&6; };$as_echo "#define PY3_NO_RTLD_GLOBAL 1" >>confdefs.h 6608 6609else 6610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6611$as_echo "no" >&6; } 6612fi 6613rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 6614 conftest.$ac_objext conftest.beam conftest.$ac_ext 6615fi 6616 6617 6618 CFLAGS=$cflags_save 6619 LIBS=$libs_save 6620 6621 PYTHON_SRC="if_python.c" 6622 PYTHON_OBJ="objects/if_python.o" 6623 PYTHON_CFLAGS="$PYTHON_CFLAGS -DDYNAMIC_PYTHON_DLL=\\\"${vi_cv_dll_name_python}\\\"" 6624 PYTHON_LIBS= 6625 PYTHON3_SRC="if_python3.c" 6626 PYTHON3_OBJ="objects/if_python3.o" 6627 PYTHON3_CFLAGS="$PYTHON3_CFLAGS -DDYNAMIC_PYTHON3_DLL=\\\"${vi_cv_dll_name_python3}\\\"" 6628 PYTHON3_LIBS= 6629elif test "$python_ok" = yes && test "$enable_pythoninterp" = "dynamic"; then 6630 $as_echo "#define DYNAMIC_PYTHON 1" >>confdefs.h 6631 6632 PYTHON_SRC="if_python.c" 6633 PYTHON_OBJ="objects/if_python.o" 6634 PYTHON_CFLAGS="$PYTHON_CFLAGS -DDYNAMIC_PYTHON_DLL=\\\"${vi_cv_dll_name_python}\\\"" 6635 PYTHON_LIBS= 6636elif test "$python_ok" = yes; then 6637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -fPIE can be added for Python" >&5 6638$as_echo_n "checking if -fPIE can be added for Python... " >&6; } 6639 cflags_save=$CFLAGS 6640 libs_save=$LIBS 6641 CFLAGS="$CFLAGS $PYTHON_CFLAGS -fPIE" 6642 LIBS="$LIBS $PYTHON_LIBS" 6643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6644/* end confdefs.h. */ 6645 6646int 6647main () 6648{ 6649 6650 ; 6651 return 0; 6652} 6653_ACEOF 6654if ac_fn_c_try_link "$LINENO"; then : 6655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6656$as_echo "yes" >&6; }; fpie_ok=yes 6657else 6658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6659$as_echo "no" >&6; }; fpie_ok=no 6660fi 6661rm -f core conftest.err conftest.$ac_objext \ 6662 conftest$ac_exeext conftest.$ac_ext 6663 CFLAGS=$cflags_save 6664 LIBS=$libs_save 6665 if test $fpie_ok = yes; then 6666 PYTHON_CFLAGS="$PYTHON_CFLAGS -fPIE" 6667 fi 6668elif test "$python3_ok" = yes && test "$enable_python3interp" = "dynamic"; then 6669 $as_echo "#define DYNAMIC_PYTHON3 1" >>confdefs.h 6670 6671 PYTHON3_SRC="if_python3.c" 6672 PYTHON3_OBJ="objects/if_python3.o" 6673 PYTHON3_CFLAGS="$PYTHON3_CFLAGS -DDYNAMIC_PYTHON3_DLL=\\\"${vi_cv_dll_name_python3}\\\"" 6674 PYTHON3_LIBS= 6675elif test "$python3_ok" = yes; then 6676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -fPIE can be added for Python3" >&5 6677$as_echo_n "checking if -fPIE can be added for Python3... " >&6; } 6678 cflags_save=$CFLAGS 6679 libs_save=$LIBS 6680 CFLAGS="$CFLAGS $PYTHON3_CFLAGS -fPIE" 6681 LIBS="$LIBS $PYTHON3_LIBS" 6682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6683/* end confdefs.h. */ 6684 6685int 6686main () 6687{ 6688 6689 ; 6690 return 0; 6691} 6692_ACEOF 6693if ac_fn_c_try_link "$LINENO"; then : 6694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6695$as_echo "yes" >&6; }; fpie_ok=yes 6696else 6697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6698$as_echo "no" >&6; }; fpie_ok=no 6699fi 6700rm -f core conftest.err conftest.$ac_objext \ 6701 conftest$ac_exeext conftest.$ac_ext 6702 CFLAGS=$cflags_save 6703 LIBS=$libs_save 6704 if test $fpie_ok = yes; then 6705 PYTHON3_CFLAGS="$PYTHON3_CFLAGS -fPIE" 6706 fi 6707fi 6708 6709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-tclinterp argument" >&5 6710$as_echo_n "checking --enable-tclinterp argument... " >&6; } 6711# Check whether --enable-tclinterp was given. 6712if test "${enable_tclinterp+set}" = set; then : 6713 enableval=$enable_tclinterp; 6714else 6715 enable_tclinterp="no" 6716fi 6717 6718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_tclinterp" >&5 6719$as_echo "$enable_tclinterp" >&6; } 6720 6721if test "$enable_tclinterp" = "yes" -o "$enable_tclinterp" = "dynamic"; then 6722 6723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-tclsh argument" >&5 6724$as_echo_n "checking --with-tclsh argument... " >&6; } 6725 6726# Check whether --with-tclsh was given. 6727if test "${with_tclsh+set}" = set; then : 6728 withval=$with_tclsh; tclsh_name="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tclsh_name" >&5 6729$as_echo "$tclsh_name" >&6; } 6730else 6731 tclsh_name="tclsh8.5"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6732$as_echo "no" >&6; } 6733fi 6734 6735 # Extract the first word of "$tclsh_name", so it can be a program name with args. 6736set dummy $tclsh_name; ac_word=$2 6737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6738$as_echo_n "checking for $ac_word... " >&6; } 6739if ${ac_cv_path_vi_cv_path_tcl+:} false; then : 6740 $as_echo_n "(cached) " >&6 6741else 6742 case $vi_cv_path_tcl in 6743 [\\/]* | ?:[\\/]*) 6744 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path. 6745 ;; 6746 *) 6747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6748for as_dir in $PATH 6749do 6750 IFS=$as_save_IFS 6751 test -z "$as_dir" && as_dir=. 6752 for ac_exec_ext in '' $ac_executable_extensions; do 6753 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6754 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext" 6755 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6756 break 2 6757 fi 6758done 6759 done 6760IFS=$as_save_IFS 6761 6762 ;; 6763esac 6764fi 6765vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl 6766if test -n "$vi_cv_path_tcl"; then 6767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_tcl" >&5 6768$as_echo "$vi_cv_path_tcl" >&6; } 6769else 6770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6771$as_echo "no" >&6; } 6772fi 6773 6774 6775 6776 6777 if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.5"; then 6778 tclsh_name="tclsh8.4" 6779 # Extract the first word of "$tclsh_name", so it can be a program name with args. 6780set dummy $tclsh_name; ac_word=$2 6781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6782$as_echo_n "checking for $ac_word... " >&6; } 6783if ${ac_cv_path_vi_cv_path_tcl+:} false; then : 6784 $as_echo_n "(cached) " >&6 6785else 6786 case $vi_cv_path_tcl in 6787 [\\/]* | ?:[\\/]*) 6788 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path. 6789 ;; 6790 *) 6791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6792for as_dir in $PATH 6793do 6794 IFS=$as_save_IFS 6795 test -z "$as_dir" && as_dir=. 6796 for ac_exec_ext in '' $ac_executable_extensions; do 6797 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6798 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext" 6799 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6800 break 2 6801 fi 6802done 6803 done 6804IFS=$as_save_IFS 6805 6806 ;; 6807esac 6808fi 6809vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl 6810if test -n "$vi_cv_path_tcl"; then 6811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_tcl" >&5 6812$as_echo "$vi_cv_path_tcl" >&6; } 6813else 6814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6815$as_echo "no" >&6; } 6816fi 6817 6818 6819 fi 6820 if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.4"; then 6821 tclsh_name="tclsh8.2" 6822 # Extract the first word of "$tclsh_name", so it can be a program name with args. 6823set dummy $tclsh_name; ac_word=$2 6824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6825$as_echo_n "checking for $ac_word... " >&6; } 6826if ${ac_cv_path_vi_cv_path_tcl+:} false; then : 6827 $as_echo_n "(cached) " >&6 6828else 6829 case $vi_cv_path_tcl in 6830 [\\/]* | ?:[\\/]*) 6831 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path. 6832 ;; 6833 *) 6834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6835for as_dir in $PATH 6836do 6837 IFS=$as_save_IFS 6838 test -z "$as_dir" && as_dir=. 6839 for ac_exec_ext in '' $ac_executable_extensions; do 6840 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6841 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext" 6842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6843 break 2 6844 fi 6845done 6846 done 6847IFS=$as_save_IFS 6848 6849 ;; 6850esac 6851fi 6852vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl 6853if test -n "$vi_cv_path_tcl"; then 6854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_tcl" >&5 6855$as_echo "$vi_cv_path_tcl" >&6; } 6856else 6857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6858$as_echo "no" >&6; } 6859fi 6860 6861 6862 fi 6863 if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.2"; then 6864 tclsh_name="tclsh8.0" 6865 # Extract the first word of "$tclsh_name", so it can be a program name with args. 6866set dummy $tclsh_name; ac_word=$2 6867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6868$as_echo_n "checking for $ac_word... " >&6; } 6869if ${ac_cv_path_vi_cv_path_tcl+:} false; then : 6870 $as_echo_n "(cached) " >&6 6871else 6872 case $vi_cv_path_tcl in 6873 [\\/]* | ?:[\\/]*) 6874 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path. 6875 ;; 6876 *) 6877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6878for as_dir in $PATH 6879do 6880 IFS=$as_save_IFS 6881 test -z "$as_dir" && as_dir=. 6882 for ac_exec_ext in '' $ac_executable_extensions; do 6883 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6884 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext" 6885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6886 break 2 6887 fi 6888done 6889 done 6890IFS=$as_save_IFS 6891 6892 ;; 6893esac 6894fi 6895vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl 6896if test -n "$vi_cv_path_tcl"; then 6897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_tcl" >&5 6898$as_echo "$vi_cv_path_tcl" >&6; } 6899else 6900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6901$as_echo "no" >&6; } 6902fi 6903 6904 6905 fi 6906 if test "X$vi_cv_path_tcl" = "X"; then 6907 tclsh_name="tclsh" 6908 # Extract the first word of "$tclsh_name", so it can be a program name with args. 6909set dummy $tclsh_name; ac_word=$2 6910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6911$as_echo_n "checking for $ac_word... " >&6; } 6912if ${ac_cv_path_vi_cv_path_tcl+:} false; then : 6913 $as_echo_n "(cached) " >&6 6914else 6915 case $vi_cv_path_tcl in 6916 [\\/]* | ?:[\\/]*) 6917 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path. 6918 ;; 6919 *) 6920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6921for as_dir in $PATH 6922do 6923 IFS=$as_save_IFS 6924 test -z "$as_dir" && as_dir=. 6925 for ac_exec_ext in '' $ac_executable_extensions; do 6926 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6927 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext" 6928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6929 break 2 6930 fi 6931done 6932 done 6933IFS=$as_save_IFS 6934 6935 ;; 6936esac 6937fi 6938vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl 6939if test -n "$vi_cv_path_tcl"; then 6940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_tcl" >&5 6941$as_echo "$vi_cv_path_tcl" >&6; } 6942else 6943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6944$as_echo "no" >&6; } 6945fi 6946 6947 6948 fi 6949 if test "X$vi_cv_path_tcl" != "X"; then 6950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Tcl version" >&5 6951$as_echo_n "checking Tcl version... " >&6; } 6952 if echo 'exit [expr [info tclversion] < 8.0]' | "$vi_cv_path_tcl" - ; then 6953 tclver=`echo 'puts [info tclversion]' | $vi_cv_path_tcl -` 6954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tclver - OK" >&5 6955$as_echo "$tclver - OK" >&6; }; 6956 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 -` 6957 tcldll=`echo 'puts libtcl[info tclversion][info sharedlibextension]' | $vi_cv_path_tcl -` 6958 6959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of Tcl include" >&5 6960$as_echo_n "checking for location of Tcl include... " >&6; } 6961 if test "x$MACOSX" != "xyes"; then 6962 tclinc="$tclloc/include $tclloc/include/tcl $tclloc/include/tcl$tclver /usr/local/include /usr/local/include/tcl$tclver /usr/include /usr/include/tcl$tclver" 6963 else 6964 tclinc="/System/Library/Frameworks/Tcl.framework/Headers" 6965 fi 6966 TCL_INC= 6967 for try in $tclinc; do 6968 if test -f "$try/tcl.h"; then 6969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $try/tcl.h" >&5 6970$as_echo "$try/tcl.h" >&6; } 6971 TCL_INC=$try 6972 break 6973 fi 6974 done 6975 if test -z "$TCL_INC"; then 6976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: <not found>" >&5 6977$as_echo "<not found>" >&6; } 6978 SKIP_TCL=YES 6979 fi 6980 if test -z "$SKIP_TCL"; then 6981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of tclConfig.sh script" >&5 6982$as_echo_n "checking for location of tclConfig.sh script... " >&6; } 6983 if test "x$MACOSX" != "xyes"; then 6984 tclcnf=`echo $tclinc | sed s/include/lib/g` 6985 tclcnf="$tclcnf `echo $tclinc | sed s/include/lib64/g`" 6986 else 6987 tclcnf="/System/Library/Frameworks/Tcl.framework" 6988 fi 6989 for try in $tclcnf; do 6990 if test -f "$try/tclConfig.sh"; then 6991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $try/tclConfig.sh" >&5 6992$as_echo "$try/tclConfig.sh" >&6; } 6993 . "$try/tclConfig.sh" 6994 if test "$enable_tclinterp" = "dynamic"; then 6995 TCL_LIBS=`eval echo "$TCL_STUB_LIB_SPEC $TCL_LIBS"` 6996 else 6997 TCL_LIBS=`eval echo "$TCL_LIB_SPEC $TCL_LIBS"` 6998 fi 6999 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'` 7000 break 7001 fi 7002 done 7003 if test -z "$TCL_LIBS"; then 7004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: <not found>" >&5 7005$as_echo "<not found>" >&6; } 7006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl library by myself" >&5 7007$as_echo_n "checking for Tcl library by myself... " >&6; } 7008 tcllib=`echo $tclinc | sed s/include/lib/g` 7009 tcllib="$tcllib `echo $tclinc | sed s/include/lib64/g`" 7010 for ext in .so .a ; do 7011 for ver in "" $tclver ; do 7012 for try in $tcllib ; do 7013 trylib=tcl$ver$ext 7014 if test -f "$try/lib$trylib" ; then 7015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $try/lib$trylib" >&5 7016$as_echo "$try/lib$trylib" >&6; } 7017 TCL_LIBS="-L\"$try\" -ltcl$ver -ldl -lm" 7018 if test "`(uname) 2>/dev/null`" = SunOS && 7019 uname -r | grep '^5' >/dev/null; then 7020 TCL_LIBS="$TCL_LIBS -R $try" 7021 fi 7022 break 3 7023 fi 7024 done 7025 done 7026 done 7027 if test -z "$TCL_LIBS"; then 7028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: <not found>" >&5 7029$as_echo "<not found>" >&6; } 7030 SKIP_TCL=YES 7031 fi 7032 fi 7033 if test -z "$SKIP_TCL"; then 7034 $as_echo "#define FEAT_TCL 1" >>confdefs.h 7035 7036 TCL_SRC=if_tcl.c 7037 TCL_OBJ=objects/if_tcl.o 7038 TCL_PRO=if_tcl.pro 7039 TCL_CFLAGS="-I$TCL_INC $TCL_DEFS" 7040 fi 7041 fi 7042 else 7043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: too old; need Tcl version 8.0 or later" >&5 7044$as_echo "too old; need Tcl version 8.0 or later" >&6; } 7045 fi 7046 fi 7047 if test "$enable_tclinterp" = "dynamic"; then 7048 if test "X$TCL_SRC" != "X" -a "X$tcldll" != "X"; then 7049 $as_echo "#define DYNAMIC_TCL 1" >>confdefs.h 7050 7051 TCL_CFLAGS="-DDYNAMIC_TCL_DLL=\\\"$tcldll\\\" -DDYNAMIC_TCL_VER=\\\"$tclver\\\" $TCL_CFLAGS" 7052 fi 7053 fi 7054 if test "$fail_if_missing" = "yes" -a -z "$TCL_SRC"; then 7055 as_fn_error $? "could not configure Tcl" "$LINENO" 5 7056 fi 7057fi 7058 7059 7060 7061 7062 7063 7064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-rubyinterp argument" >&5 7065$as_echo_n "checking --enable-rubyinterp argument... " >&6; } 7066# Check whether --enable-rubyinterp was given. 7067if test "${enable_rubyinterp+set}" = set; then : 7068 enableval=$enable_rubyinterp; 7069else 7070 enable_rubyinterp="no" 7071fi 7072 7073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_rubyinterp" >&5 7074$as_echo "$enable_rubyinterp" >&6; } 7075if test "$enable_rubyinterp" = "yes" -o "$enable_rubyinterp" = "dynamic"; then 7076 if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then 7077 as_fn_error $? "cannot use Ruby with tiny or small features" "$LINENO" 5 7078 fi 7079 7080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-ruby-command argument" >&5 7081$as_echo_n "checking --with-ruby-command argument... " >&6; } 7082 7083 7084# Check whether --with-ruby-command was given. 7085if test "${with_ruby_command+set}" = set; then : 7086 withval=$with_ruby_command; RUBY_CMD="$withval"; vi_cv_path_ruby="$withval"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUBY_CMD" >&5 7087$as_echo "$RUBY_CMD" >&6; } 7088else 7089 RUBY_CMD="ruby"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: defaulting to $RUBY_CMD" >&5 7090$as_echo "defaulting to $RUBY_CMD" >&6; } 7091fi 7092 7093 # Extract the first word of "$RUBY_CMD", so it can be a program name with args. 7094set dummy $RUBY_CMD; ac_word=$2 7095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7096$as_echo_n "checking for $ac_word... " >&6; } 7097if ${ac_cv_path_vi_cv_path_ruby+:} false; then : 7098 $as_echo_n "(cached) " >&6 7099else 7100 case $vi_cv_path_ruby in 7101 [\\/]* | ?:[\\/]*) 7102 ac_cv_path_vi_cv_path_ruby="$vi_cv_path_ruby" # Let the user override the test with a path. 7103 ;; 7104 *) 7105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7106for as_dir in $PATH 7107do 7108 IFS=$as_save_IFS 7109 test -z "$as_dir" && as_dir=. 7110 for ac_exec_ext in '' $ac_executable_extensions; do 7111 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7112 ac_cv_path_vi_cv_path_ruby="$as_dir/$ac_word$ac_exec_ext" 7113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7114 break 2 7115 fi 7116done 7117 done 7118IFS=$as_save_IFS 7119 7120 ;; 7121esac 7122fi 7123vi_cv_path_ruby=$ac_cv_path_vi_cv_path_ruby 7124if test -n "$vi_cv_path_ruby"; then 7125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_path_ruby" >&5 7126$as_echo "$vi_cv_path_ruby" >&6; } 7127else 7128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7129$as_echo "no" >&6; } 7130fi 7131 7132 7133 if test "X$vi_cv_path_ruby" != "X"; then 7134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Ruby version" >&5 7135$as_echo_n "checking Ruby version... " >&6; } 7136 if $vi_cv_path_ruby -e '(VERSION rescue RUBY_VERSION) >= "1.6.0" or exit 1' >/dev/null 2>/dev/null; then 7137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK" >&5 7138$as_echo "OK" >&6; } 7139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Ruby rbconfig" >&5 7140$as_echo_n "checking Ruby rbconfig... " >&6; } 7141 ruby_rbconfig="RbConfig" 7142 if ! $vi_cv_path_ruby -r rbconfig -e 'RbConfig' >/dev/null 2>/dev/null; then 7143 ruby_rbconfig="Config" 7144 fi 7145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ruby_rbconfig" >&5 7146$as_echo "$ruby_rbconfig" >&6; } 7147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Ruby header files" >&5 7148$as_echo_n "checking Ruby header files... " >&6; } 7149 rubyhdrdir=`$vi_cv_path_ruby -r mkmf -e "print $ruby_rbconfig::CONFIG['rubyhdrdir'] || $ruby_rbconfig::CONFIG['archdir'] || \\$hdrdir" 2>/dev/null` 7150 if test "X$rubyhdrdir" != "X"; then 7151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rubyhdrdir" >&5 7152$as_echo "$rubyhdrdir" >&6; } 7153 RUBY_CFLAGS="-I$rubyhdrdir" 7154 rubyarchdir=`$vi_cv_path_ruby -r rbconfig -e "print ($ruby_rbconfig::CONFIG.has_key? 'rubyarchhdrdir') ? $ruby_rbconfig::CONFIG['rubyarchhdrdir'] : '$rubyhdrdir/'+$ruby_rbconfig::CONFIG['arch']"` 7155 if test -d "$rubyarchdir"; then 7156 RUBY_CFLAGS="$RUBY_CFLAGS -I$rubyarchdir" 7157 fi 7158 rubyversion=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig::CONFIG['ruby_version'].gsub(/\./, '')[0,2]"` 7159 if test "X$rubyversion" = "X"; then 7160 rubyversion=`$vi_cv_path_ruby -e "print ((VERSION rescue RUBY_VERSION)).gsub(/\./, '')[0,2]"` 7161 fi 7162 RUBY_CFLAGS="$RUBY_CFLAGS -DRUBY_VERSION=$rubyversion" 7163 rubylibs=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig::CONFIG['LIBS']"` 7164 if test "X$rubylibs" != "X"; then 7165 RUBY_LIBS="$rubylibs" 7166 fi 7167 librubyarg=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig.expand($ruby_rbconfig::CONFIG['LIBRUBYARG'])"` 7168 librubya=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig.expand($ruby_rbconfig::CONFIG['LIBRUBY_A'])"` 7169 rubylibdir=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig.expand($ruby_rbconfig::CONFIG['libdir'])"` 7170 if test -f "$rubylibdir/$librubya"; then 7171 librubyarg="$librubyarg" 7172 RUBY_LIBS="$RUBY_LIBS -L$rubylibdir" 7173 elif test "$librubyarg" = "libruby.a"; then 7174 librubyarg="-lruby" 7175 RUBY_LIBS="$RUBY_LIBS -L$rubylibdir" 7176 fi 7177 7178 if test "X$librubyarg" != "X"; then 7179 RUBY_LIBS="$librubyarg $RUBY_LIBS" 7180 fi 7181 rubyldflags=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig::CONFIG['LDFLAGS']"` 7182 if test "X$rubyldflags" != "X"; then 7183 rubyldflags=`echo "$rubyldflags" | sed -e 's/-arch\ ppc//' -e 's/-arch\ i386//' -e 's/-arch\ x86_64//'` 7184 if test "X$rubyldflags" != "X"; then 7185 if test "X`echo \"$LDFLAGS\" | $FGREP -e \"$rubyldflags\"`" = "X"; then 7186 LDFLAGS="$rubyldflags $LDFLAGS" 7187 fi 7188 fi 7189 fi 7190 RUBY_SRC="if_ruby.c" 7191 RUBY_OBJ="objects/if_ruby.o" 7192 RUBY_PRO="if_ruby.pro" 7193 $as_echo "#define FEAT_RUBY 1" >>confdefs.h 7194 7195 if test "$enable_rubyinterp" = "dynamic"; then 7196 libruby=`$vi_cv_path_ruby -r rbconfig -e "puts $ruby_rbconfig::CONFIG['LIBRUBY_SO']"` 7197 $as_echo "#define DYNAMIC_RUBY 1" >>confdefs.h 7198 7199 RUBY_CFLAGS="-DDYNAMIC_RUBY_DLL=\\\"$libruby\\\" -DDYNAMIC_RUBY_VER=$rubyversion $RUBY_CFLAGS" 7200 RUBY_LIBS= 7201 fi 7202 else 7203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found; disabling Ruby" >&5 7204$as_echo "not found; disabling Ruby" >&6; } 7205 fi 7206 else 7207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: too old; need Ruby version 1.6.0 or later" >&5 7208$as_echo "too old; need Ruby version 1.6.0 or later" >&6; } 7209 fi 7210 fi 7211 7212 if test "$fail_if_missing" = "yes" -a -z "$RUBY_OBJ"; then 7213 as_fn_error $? "could not configure Ruby" "$LINENO" 5 7214 fi 7215fi 7216 7217 7218 7219 7220 7221 7222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-cscope argument" >&5 7223$as_echo_n "checking --enable-cscope argument... " >&6; } 7224# Check whether --enable-cscope was given. 7225if test "${enable_cscope+set}" = set; then : 7226 enableval=$enable_cscope; 7227else 7228 enable_cscope="no" 7229fi 7230 7231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_cscope" >&5 7232$as_echo "$enable_cscope" >&6; } 7233if test "$enable_cscope" = "yes"; then 7234 $as_echo "#define FEAT_CSCOPE 1" >>confdefs.h 7235 7236fi 7237 7238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-workshop argument" >&5 7239$as_echo_n "checking --enable-workshop argument... " >&6; } 7240# Check whether --enable-workshop was given. 7241if test "${enable_workshop+set}" = set; then : 7242 enableval=$enable_workshop; 7243else 7244 enable_workshop="no" 7245fi 7246 7247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_workshop" >&5 7248$as_echo "$enable_workshop" >&6; } 7249if test "$enable_workshop" = "yes"; then 7250 $as_echo "#define FEAT_SUN_WORKSHOP 1" >>confdefs.h 7251 7252 WORKSHOP_SRC="workshop.c integration.c" 7253 7254 WORKSHOP_OBJ="objects/workshop.o objects/integration.o" 7255 7256 if test "${enable_gui-xxx}" = xxx; then 7257 enable_gui=motif 7258 fi 7259fi 7260 7261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-netbeans argument" >&5 7262$as_echo_n "checking --disable-netbeans argument... " >&6; } 7263# Check whether --enable-netbeans was given. 7264if test "${enable_netbeans+set}" = set; then : 7265 enableval=$enable_netbeans; 7266else 7267 enable_netbeans="yes" 7268fi 7269 7270if test "$enable_netbeans" = "yes"; then 7271 if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then 7272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot use NetBeans with tiny or small features" >&5 7273$as_echo "cannot use NetBeans with tiny or small features" >&6; } 7274 enable_netbeans="no" 7275 else 7276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7277$as_echo "no" >&6; } 7278 fi 7279else 7280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7281$as_echo "yes" >&6; } 7282fi 7283 7284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-channel argument" >&5 7285$as_echo_n "checking --disable-channel argument... " >&6; } 7286# Check whether --enable-channel was given. 7287if test "${enable_channel+set}" = set; then : 7288 enableval=$enable_channel; 7289else 7290 enable_channel="yes" 7291fi 7292 7293if test "$enable_channel" = "yes"; then 7294 if test "x$features" = "xtiny" -o "x$features" = "xsmall"; then 7295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot use channels with tiny or small features" >&5 7296$as_echo "cannot use channels with tiny or small features" >&6; } 7297 enable_channel="no" 7298 else 7299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7300$as_echo "no" >&6; } 7301 fi 7302else 7303 if test "$enable_netbeans" = "yes"; then 7304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, netbeans also disabled" >&5 7305$as_echo "yes, netbeans also disabled" >&6; } 7306 enable_netbeans="no" 7307 else 7308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7309$as_echo "yes" >&6; } 7310 fi 7311fi 7312 7313if test "$enable_channel" = "yes"; then 7314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5 7315$as_echo_n "checking for socket in -lsocket... " >&6; } 7316if ${ac_cv_lib_socket_socket+:} false; then : 7317 $as_echo_n "(cached) " >&6 7318else 7319 ac_check_lib_save_LIBS=$LIBS 7320LIBS="-lsocket $LIBS" 7321cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7322/* end confdefs.h. */ 7323 7324/* Override any GCC internal prototype to avoid an error. 7325 Use char because int might match the return type of a GCC 7326 builtin and then its argument prototype would still apply. */ 7327#ifdef __cplusplus 7328extern "C" 7329#endif 7330char socket (); 7331int 7332main () 7333{ 7334return socket (); 7335 ; 7336 return 0; 7337} 7338_ACEOF 7339if ac_fn_c_try_link "$LINENO"; then : 7340 ac_cv_lib_socket_socket=yes 7341else 7342 ac_cv_lib_socket_socket=no 7343fi 7344rm -f core conftest.err conftest.$ac_objext \ 7345 conftest$ac_exeext conftest.$ac_ext 7346LIBS=$ac_check_lib_save_LIBS 7347fi 7348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5 7349$as_echo "$ac_cv_lib_socket_socket" >&6; } 7350if test "x$ac_cv_lib_socket_socket" = xyes; then : 7351 cat >>confdefs.h <<_ACEOF 7352#define HAVE_LIBSOCKET 1 7353_ACEOF 7354 7355 LIBS="-lsocket $LIBS" 7356 7357fi 7358 7359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 7360$as_echo_n "checking for gethostbyname in -lnsl... " >&6; } 7361if ${ac_cv_lib_nsl_gethostbyname+:} false; then : 7362 $as_echo_n "(cached) " >&6 7363else 7364 ac_check_lib_save_LIBS=$LIBS 7365LIBS="-lnsl $LIBS" 7366cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7367/* end confdefs.h. */ 7368 7369/* Override any GCC internal prototype to avoid an error. 7370 Use char because int might match the return type of a GCC 7371 builtin and then its argument prototype would still apply. */ 7372#ifdef __cplusplus 7373extern "C" 7374#endif 7375char gethostbyname (); 7376int 7377main () 7378{ 7379return gethostbyname (); 7380 ; 7381 return 0; 7382} 7383_ACEOF 7384if ac_fn_c_try_link "$LINENO"; then : 7385 ac_cv_lib_nsl_gethostbyname=yes 7386else 7387 ac_cv_lib_nsl_gethostbyname=no 7388fi 7389rm -f core conftest.err conftest.$ac_objext \ 7390 conftest$ac_exeext conftest.$ac_ext 7391LIBS=$ac_check_lib_save_LIBS 7392fi 7393{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 7394$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } 7395if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then : 7396 cat >>confdefs.h <<_ACEOF 7397#define HAVE_LIBNSL 1 7398_ACEOF 7399 7400 LIBS="-lnsl $LIBS" 7401 7402fi 7403 7404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiling with process communication is possible" >&5 7405$as_echo_n "checking whether compiling with process communication is possible... " >&6; } 7406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7407/* end confdefs.h. */ 7408 7409#include <stdio.h> 7410#include <stdlib.h> 7411#include <stdarg.h> 7412#include <fcntl.h> 7413#include <netdb.h> 7414#include <netinet/in.h> 7415#include <errno.h> 7416#include <sys/types.h> 7417#include <sys/socket.h> 7418 /* Check bitfields */ 7419 struct nbbuf { 7420 unsigned int initDone:1; 7421 unsigned short signmaplen; 7422 }; 7423 7424int 7425main () 7426{ 7427 7428 /* Check creating a socket. */ 7429 struct sockaddr_in server; 7430 (void)socket(AF_INET, SOCK_STREAM, 0); 7431 (void)htons(100); 7432 (void)gethostbyname("microsoft.com"); 7433 if (errno == ECONNREFUSED) 7434 (void)connect(1, (struct sockaddr *)&server, sizeof(server)); 7435 7436 ; 7437 return 0; 7438} 7439_ACEOF 7440if ac_fn_c_try_link "$LINENO"; then : 7441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7442$as_echo "yes" >&6; } 7443else 7444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7445$as_echo "no" >&6; }; enable_netbeans="no"; enable_channel="no" 7446fi 7447rm -f core conftest.err conftest.$ac_objext \ 7448 conftest$ac_exeext conftest.$ac_ext 7449fi 7450if test "$enable_netbeans" = "yes"; then 7451 $as_echo "#define FEAT_NETBEANS_INTG 1" >>confdefs.h 7452 7453 NETBEANS_SRC="netbeans.c" 7454 7455 NETBEANS_OBJ="objects/netbeans.o" 7456 7457fi 7458if test "$enable_channel" = "yes"; then 7459 $as_echo "#define FEAT_JOB_CHANNEL 1" >>confdefs.h 7460 7461 CHANNEL_SRC="channel.c" 7462 7463 CHANNEL_OBJ="objects/channel.o" 7464 7465fi 7466 7467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-multibyte argument" >&5 7468$as_echo_n "checking --enable-multibyte argument... " >&6; } 7469# Check whether --enable-multibyte was given. 7470if test "${enable_multibyte+set}" = set; then : 7471 enableval=$enable_multibyte; 7472else 7473 enable_multibyte="no" 7474fi 7475 7476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_multibyte" >&5 7477$as_echo "$enable_multibyte" >&6; } 7478if test "$enable_multibyte" = "yes"; then 7479 $as_echo "#define FEAT_MBYTE 1" >>confdefs.h 7480 7481fi 7482 7483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-hangulinput argument" >&5 7484$as_echo_n "checking --enable-hangulinput argument... " >&6; } 7485# Check whether --enable-hangulinput was given. 7486if test "${enable_hangulinput+set}" = set; then : 7487 enableval=$enable_hangulinput; 7488else 7489 enable_hangulinput="no" 7490fi 7491 7492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_hangulinput" >&5 7493$as_echo "$enable_hangulinput" >&6; } 7494 7495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-xim argument" >&5 7496$as_echo_n "checking --enable-xim argument... " >&6; } 7497# Check whether --enable-xim was given. 7498if test "${enable_xim+set}" = set; then : 7499 enableval=$enable_xim; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_xim" >&5 7500$as_echo "$enable_xim" >&6; } 7501else 7502 enable_xim="auto"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: defaulting to auto" >&5 7503$as_echo "defaulting to auto" >&6; } 7504fi 7505 7506 7507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-fontset argument" >&5 7508$as_echo_n "checking --enable-fontset argument... " >&6; } 7509# Check whether --enable-fontset was given. 7510if test "${enable_fontset+set}" = set; then : 7511 enableval=$enable_fontset; 7512else 7513 enable_fontset="no" 7514fi 7515 7516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_fontset" >&5 7517$as_echo "$enable_fontset" >&6; } 7518 7519test -z "$with_x" && with_x=yes 7520test "${enable_gui-yes}" != no -a "x$MACOSX" != "xyes" -a "x$QNX" != "xyes" && with_x=yes 7521if test "$with_x" = no; then 7522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: defaulting to: don't HAVE_X11" >&5 7523$as_echo "defaulting to: don't HAVE_X11" >&6; } 7524else 7525 7526 # Extract the first word of "xmkmf", so it can be a program name with args. 7527set dummy xmkmf; ac_word=$2 7528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7529$as_echo_n "checking for $ac_word... " >&6; } 7530if ${ac_cv_path_xmkmfpath+:} false; then : 7531 $as_echo_n "(cached) " >&6 7532else 7533 case $xmkmfpath in 7534 [\\/]* | ?:[\\/]*) 7535 ac_cv_path_xmkmfpath="$xmkmfpath" # Let the user override the test with a path. 7536 ;; 7537 *) 7538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7539for as_dir in $PATH 7540do 7541 IFS=$as_save_IFS 7542 test -z "$as_dir" && as_dir=. 7543 for ac_exec_ext in '' $ac_executable_extensions; do 7544 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7545 ac_cv_path_xmkmfpath="$as_dir/$ac_word$ac_exec_ext" 7546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7547 break 2 7548 fi 7549done 7550 done 7551IFS=$as_save_IFS 7552 7553 ;; 7554esac 7555fi 7556xmkmfpath=$ac_cv_path_xmkmfpath 7557if test -n "$xmkmfpath"; then 7558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xmkmfpath" >&5 7559$as_echo "$xmkmfpath" >&6; } 7560else 7561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7562$as_echo "no" >&6; } 7563fi 7564 7565 7566 7567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5 7568$as_echo_n "checking for X... " >&6; } 7569 7570 7571# Check whether --with-x was given. 7572if test "${with_x+set}" = set; then : 7573 withval=$with_x; 7574fi 7575 7576# $have_x is `yes', `no', `disabled', or empty when we do not yet know. 7577if test "x$with_x" = xno; then 7578 # The user explicitly disabled X. 7579 have_x=disabled 7580else 7581 case $x_includes,$x_libraries in #( 7582 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #( 7583 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then : 7584 $as_echo_n "(cached) " >&6 7585else 7586 # One or both of the vars are not set, and there is no cached value. 7587ac_x_includes=no ac_x_libraries=no 7588rm -f -r conftest.dir 7589if mkdir conftest.dir; then 7590 cd conftest.dir 7591 cat >Imakefile <<'_ACEOF' 7592incroot: 7593 @echo incroot='${INCROOT}' 7594usrlibdir: 7595 @echo usrlibdir='${USRLIBDIR}' 7596libdir: 7597 @echo libdir='${LIBDIR}' 7598_ACEOF 7599 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then 7600 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 7601 for ac_var in incroot usrlibdir libdir; do 7602 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" 7603 done 7604 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. 7605 for ac_extension in a so sl dylib la dll; do 7606 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && 7607 test -f "$ac_im_libdir/libX11.$ac_extension"; then 7608 ac_im_usrlibdir=$ac_im_libdir; break 7609 fi 7610 done 7611 # Screen out bogus values from the imake configuration. They are 7612 # bogus both because they are the default anyway, and because 7613 # using them would break gcc on systems where it needs fixed includes. 7614 case $ac_im_incroot in 7615 /usr/include) ac_x_includes= ;; 7616 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; 7617 esac 7618 case $ac_im_usrlibdir in 7619 /usr/lib | /usr/lib64 | /lib | /lib64) ;; 7620 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; 7621 esac 7622 fi 7623 cd .. 7624 rm -f -r conftest.dir 7625fi 7626 7627# Standard set of common directories for X headers. 7628# Check X11 before X11Rn because it is often a symlink to the current release. 7629ac_x_header_dirs=' 7630/usr/X11/include 7631/usr/X11R7/include 7632/usr/X11R6/include 7633/usr/X11R5/include 7634/usr/X11R4/include 7635 7636/usr/include/X11 7637/usr/include/X11R7 7638/usr/include/X11R6 7639/usr/include/X11R5 7640/usr/include/X11R4 7641 7642/usr/local/X11/include 7643/usr/local/X11R7/include 7644/usr/local/X11R6/include 7645/usr/local/X11R5/include 7646/usr/local/X11R4/include 7647 7648/usr/local/include/X11 7649/usr/local/include/X11R7 7650/usr/local/include/X11R6 7651/usr/local/include/X11R5 7652/usr/local/include/X11R4 7653 7654/usr/X386/include 7655/usr/x386/include 7656/usr/XFree86/include/X11 7657 7658/usr/include 7659/usr/local/include 7660/usr/unsupported/include 7661/usr/athena/include 7662/usr/local/x11r5/include 7663/usr/lpp/Xamples/include 7664 7665/usr/openwin/include 7666/usr/openwin/share/include' 7667 7668if test "$ac_x_includes" = no; then 7669 # Guess where to find include files, by looking for Xlib.h. 7670 # First, try using that file with no special directory specified. 7671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7672/* end confdefs.h. */ 7673#include <X11/Xlib.h> 7674_ACEOF 7675if ac_fn_c_try_cpp "$LINENO"; then : 7676 # We can compile using X headers with no special include directory. 7677ac_x_includes= 7678else 7679 for ac_dir in $ac_x_header_dirs; do 7680 if test -r "$ac_dir/X11/Xlib.h"; then 7681 ac_x_includes=$ac_dir 7682 break 7683 fi 7684done 7685fi 7686rm -f conftest.err conftest.i conftest.$ac_ext 7687fi # $ac_x_includes = no 7688 7689if test "$ac_x_libraries" = no; then 7690 # Check for the libraries. 7691 # See if we find them without any special options. 7692 # Don't add to $LIBS permanently. 7693 ac_save_LIBS=$LIBS 7694 LIBS="-lX11 $LIBS" 7695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7696/* end confdefs.h. */ 7697#include <X11/Xlib.h> 7698int 7699main () 7700{ 7701XrmInitialize () 7702 ; 7703 return 0; 7704} 7705_ACEOF 7706if ac_fn_c_try_link "$LINENO"; then : 7707 LIBS=$ac_save_LIBS 7708# We can link X programs with no special library path. 7709ac_x_libraries= 7710else 7711 LIBS=$ac_save_LIBS 7712for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 7713do 7714 # Don't even attempt the hair of trying to link an X program! 7715 for ac_extension in a so sl dylib la dll; do 7716 if test -r "$ac_dir/libX11.$ac_extension"; then 7717 ac_x_libraries=$ac_dir 7718 break 2 7719 fi 7720 done 7721done 7722fi 7723rm -f core conftest.err conftest.$ac_objext \ 7724 conftest$ac_exeext conftest.$ac_ext 7725fi # $ac_x_libraries = no 7726 7727case $ac_x_includes,$ac_x_libraries in #( 7728 no,* | *,no | *\'*) 7729 # Didn't find X, or a directory has "'" in its name. 7730 ac_cv_have_x="have_x=no";; #( 7731 *) 7732 # Record where we found X for the cache. 7733 ac_cv_have_x="have_x=yes\ 7734 ac_x_includes='$ac_x_includes'\ 7735 ac_x_libraries='$ac_x_libraries'" 7736esac 7737fi 7738;; #( 7739 *) have_x=yes;; 7740 esac 7741 eval "$ac_cv_have_x" 7742fi # $with_x != no 7743 7744if test "$have_x" != yes; then 7745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5 7746$as_echo "$have_x" >&6; } 7747 no_x=yes 7748else 7749 # If each of the values was on the command line, it overrides each guess. 7750 test "x$x_includes" = xNONE && x_includes=$ac_x_includes 7751 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 7752 # Update the cache value to reflect the command line values. 7753 ac_cv_have_x="have_x=yes\ 7754 ac_x_includes='$x_includes'\ 7755 ac_x_libraries='$x_libraries'" 7756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5 7757$as_echo "libraries $x_libraries, headers $x_includes" >&6; } 7758fi 7759 7760if test "$no_x" = yes; then 7761 # Not all programs may use this symbol, but it does not hurt to define it. 7762 7763$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h 7764 7765 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= 7766else 7767 if test -n "$x_includes"; then 7768 X_CFLAGS="$X_CFLAGS -I$x_includes" 7769 fi 7770 7771 # It would also be nice to do this for all -L options, not just this one. 7772 if test -n "$x_libraries"; then 7773 X_LIBS="$X_LIBS -L$x_libraries" 7774 # For Solaris; some versions of Sun CC require a space after -R and 7775 # others require no space. Words are not sufficient . . . . 7776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5 7777$as_echo_n "checking whether -R must be followed by a space... " >&6; } 7778 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" 7779 ac_xsave_c_werror_flag=$ac_c_werror_flag 7780 ac_c_werror_flag=yes 7781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7782/* end confdefs.h. */ 7783 7784int 7785main () 7786{ 7787 7788 ; 7789 return 0; 7790} 7791_ACEOF 7792if ac_fn_c_try_link "$LINENO"; then : 7793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7794$as_echo "no" >&6; } 7795 X_LIBS="$X_LIBS -R$x_libraries" 7796else 7797 LIBS="$ac_xsave_LIBS -R $x_libraries" 7798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7799/* end confdefs.h. */ 7800 7801int 7802main () 7803{ 7804 7805 ; 7806 return 0; 7807} 7808_ACEOF 7809if ac_fn_c_try_link "$LINENO"; then : 7810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7811$as_echo "yes" >&6; } 7812 X_LIBS="$X_LIBS -R $x_libraries" 7813else 7814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5 7815$as_echo "neither works" >&6; } 7816fi 7817rm -f core conftest.err conftest.$ac_objext \ 7818 conftest$ac_exeext conftest.$ac_ext 7819fi 7820rm -f core conftest.err conftest.$ac_objext \ 7821 conftest$ac_exeext conftest.$ac_ext 7822 ac_c_werror_flag=$ac_xsave_c_werror_flag 7823 LIBS=$ac_xsave_LIBS 7824 fi 7825 7826 # Check for system-dependent libraries X programs must link with. 7827 # Do this before checking for the system-independent R6 libraries 7828 # (-lICE), since we may need -lsocket or whatever for X linking. 7829 7830 if test "$ISC" = yes; then 7831 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" 7832 else 7833 # Martyn Johnson says this is needed for Ultrix, if the X 7834 # libraries were built with DECnet support. And Karl Berry says 7835 # the Alpha needs dnet_stub (dnet does not exist). 7836 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" 7837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7838/* end confdefs.h. */ 7839 7840/* Override any GCC internal prototype to avoid an error. 7841 Use char because int might match the return type of a GCC 7842 builtin and then its argument prototype would still apply. */ 7843#ifdef __cplusplus 7844extern "C" 7845#endif 7846char XOpenDisplay (); 7847int 7848main () 7849{ 7850return XOpenDisplay (); 7851 ; 7852 return 0; 7853} 7854_ACEOF 7855if ac_fn_c_try_link "$LINENO"; then : 7856 7857else 7858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5 7859$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; } 7860if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then : 7861 $as_echo_n "(cached) " >&6 7862else 7863 ac_check_lib_save_LIBS=$LIBS 7864LIBS="-ldnet $LIBS" 7865cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7866/* end confdefs.h. */ 7867 7868/* Override any GCC internal prototype to avoid an error. 7869 Use char because int might match the return type of a GCC 7870 builtin and then its argument prototype would still apply. */ 7871#ifdef __cplusplus 7872extern "C" 7873#endif 7874char dnet_ntoa (); 7875int 7876main () 7877{ 7878return dnet_ntoa (); 7879 ; 7880 return 0; 7881} 7882_ACEOF 7883if ac_fn_c_try_link "$LINENO"; then : 7884 ac_cv_lib_dnet_dnet_ntoa=yes 7885else 7886 ac_cv_lib_dnet_dnet_ntoa=no 7887fi 7888rm -f core conftest.err conftest.$ac_objext \ 7889 conftest$ac_exeext conftest.$ac_ext 7890LIBS=$ac_check_lib_save_LIBS 7891fi 7892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 7893$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; } 7894if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then : 7895 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" 7896fi 7897 7898 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 7899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5 7900$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; } 7901if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then : 7902 $as_echo_n "(cached) " >&6 7903else 7904 ac_check_lib_save_LIBS=$LIBS 7905LIBS="-ldnet_stub $LIBS" 7906cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7907/* end confdefs.h. */ 7908 7909/* Override any GCC internal prototype to avoid an error. 7910 Use char because int might match the return type of a GCC 7911 builtin and then its argument prototype would still apply. */ 7912#ifdef __cplusplus 7913extern "C" 7914#endif 7915char dnet_ntoa (); 7916int 7917main () 7918{ 7919return dnet_ntoa (); 7920 ; 7921 return 0; 7922} 7923_ACEOF 7924if ac_fn_c_try_link "$LINENO"; then : 7925 ac_cv_lib_dnet_stub_dnet_ntoa=yes 7926else 7927 ac_cv_lib_dnet_stub_dnet_ntoa=no 7928fi 7929rm -f core conftest.err conftest.$ac_objext \ 7930 conftest$ac_exeext conftest.$ac_ext 7931LIBS=$ac_check_lib_save_LIBS 7932fi 7933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 7934$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } 7935if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then : 7936 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" 7937fi 7938 7939 fi 7940fi 7941rm -f core conftest.err conftest.$ac_objext \ 7942 conftest$ac_exeext conftest.$ac_ext 7943 LIBS="$ac_xsave_LIBS" 7944 7945 # [email protected] says -lnsl (and -lsocket) are needed for his 386/AT, 7946 # to get the SysV transport functions. 7947 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) 7948 # needs -lnsl. 7949 # The nsl library prevents programs from opening the X display 7950 # on Irix 5.2, according to T.E. Dickey. 7951 # The functions gethostbyname, getservbyname, and inet_addr are 7952 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. 7953 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" 7954if test "x$ac_cv_func_gethostbyname" = xyes; then : 7955 7956fi 7957 7958 if test $ac_cv_func_gethostbyname = no; then 7959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 7960$as_echo_n "checking for gethostbyname in -lnsl... " >&6; } 7961if ${ac_cv_lib_nsl_gethostbyname+:} false; then : 7962 $as_echo_n "(cached) " >&6 7963else 7964 ac_check_lib_save_LIBS=$LIBS 7965LIBS="-lnsl $LIBS" 7966cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7967/* end confdefs.h. */ 7968 7969/* Override any GCC internal prototype to avoid an error. 7970 Use char because int might match the return type of a GCC 7971 builtin and then its argument prototype would still apply. */ 7972#ifdef __cplusplus 7973extern "C" 7974#endif 7975char gethostbyname (); 7976int 7977main () 7978{ 7979return gethostbyname (); 7980 ; 7981 return 0; 7982} 7983_ACEOF 7984if ac_fn_c_try_link "$LINENO"; then : 7985 ac_cv_lib_nsl_gethostbyname=yes 7986else 7987 ac_cv_lib_nsl_gethostbyname=no 7988fi 7989rm -f core conftest.err conftest.$ac_objext \ 7990 conftest$ac_exeext conftest.$ac_ext 7991LIBS=$ac_check_lib_save_LIBS 7992fi 7993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 7994$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } 7995if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then : 7996 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" 7997fi 7998 7999 if test $ac_cv_lib_nsl_gethostbyname = no; then 8000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5 8001$as_echo_n "checking for gethostbyname in -lbsd... " >&6; } 8002if ${ac_cv_lib_bsd_gethostbyname+:} false; then : 8003 $as_echo_n "(cached) " >&6 8004else 8005 ac_check_lib_save_LIBS=$LIBS 8006LIBS="-lbsd $LIBS" 8007cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8008/* end confdefs.h. */ 8009 8010/* Override any GCC internal prototype to avoid an error. 8011 Use char because int might match the return type of a GCC 8012 builtin and then its argument prototype would still apply. */ 8013#ifdef __cplusplus 8014extern "C" 8015#endif 8016char gethostbyname (); 8017int 8018main () 8019{ 8020return gethostbyname (); 8021 ; 8022 return 0; 8023} 8024_ACEOF 8025if ac_fn_c_try_link "$LINENO"; then : 8026 ac_cv_lib_bsd_gethostbyname=yes 8027else 8028 ac_cv_lib_bsd_gethostbyname=no 8029fi 8030rm -f core conftest.err conftest.$ac_objext \ 8031 conftest$ac_exeext conftest.$ac_ext 8032LIBS=$ac_check_lib_save_LIBS 8033fi 8034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5 8035$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; } 8036if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then : 8037 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" 8038fi 8039 8040 fi 8041 fi 8042 8043 # [email protected] says without -lsocket, 8044 # socket/setsockopt and other routines are undefined under SCO ODT 8045 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary 8046 # on later versions), says Simon Leinen: it contains gethostby* 8047 # variants that don't use the name server (or something). -lsocket 8048 # must be given before -lnsl if both are needed. We assume that 8049 # if connect needs -lnsl, so does gethostbyname. 8050 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect" 8051if test "x$ac_cv_func_connect" = xyes; then : 8052 8053fi 8054 8055 if test $ac_cv_func_connect = no; then 8056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5 8057$as_echo_n "checking for connect in -lsocket... " >&6; } 8058if ${ac_cv_lib_socket_connect+:} false; then : 8059 $as_echo_n "(cached) " >&6 8060else 8061 ac_check_lib_save_LIBS=$LIBS 8062LIBS="-lsocket $X_EXTRA_LIBS $LIBS" 8063cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8064/* end confdefs.h. */ 8065 8066/* Override any GCC internal prototype to avoid an error. 8067 Use char because int might match the return type of a GCC 8068 builtin and then its argument prototype would still apply. */ 8069#ifdef __cplusplus 8070extern "C" 8071#endif 8072char connect (); 8073int 8074main () 8075{ 8076return connect (); 8077 ; 8078 return 0; 8079} 8080_ACEOF 8081if ac_fn_c_try_link "$LINENO"; then : 8082 ac_cv_lib_socket_connect=yes 8083else 8084 ac_cv_lib_socket_connect=no 8085fi 8086rm -f core conftest.err conftest.$ac_objext \ 8087 conftest$ac_exeext conftest.$ac_ext 8088LIBS=$ac_check_lib_save_LIBS 8089fi 8090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5 8091$as_echo "$ac_cv_lib_socket_connect" >&6; } 8092if test "x$ac_cv_lib_socket_connect" = xyes; then : 8093 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" 8094fi 8095 8096 fi 8097 8098 # Guillermo Gomez says -lposix is necessary on A/UX. 8099 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove" 8100if test "x$ac_cv_func_remove" = xyes; then : 8101 8102fi 8103 8104 if test $ac_cv_func_remove = no; then 8105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5 8106$as_echo_n "checking for remove in -lposix... " >&6; } 8107if ${ac_cv_lib_posix_remove+:} false; then : 8108 $as_echo_n "(cached) " >&6 8109else 8110 ac_check_lib_save_LIBS=$LIBS 8111LIBS="-lposix $LIBS" 8112cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8113/* end confdefs.h. */ 8114 8115/* Override any GCC internal prototype to avoid an error. 8116 Use char because int might match the return type of a GCC 8117 builtin and then its argument prototype would still apply. */ 8118#ifdef __cplusplus 8119extern "C" 8120#endif 8121char remove (); 8122int 8123main () 8124{ 8125return remove (); 8126 ; 8127 return 0; 8128} 8129_ACEOF 8130if ac_fn_c_try_link "$LINENO"; then : 8131 ac_cv_lib_posix_remove=yes 8132else 8133 ac_cv_lib_posix_remove=no 8134fi 8135rm -f core conftest.err conftest.$ac_objext \ 8136 conftest$ac_exeext conftest.$ac_ext 8137LIBS=$ac_check_lib_save_LIBS 8138fi 8139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5 8140$as_echo "$ac_cv_lib_posix_remove" >&6; } 8141if test "x$ac_cv_lib_posix_remove" = xyes; then : 8142 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" 8143fi 8144 8145 fi 8146 8147 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 8148 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat" 8149if test "x$ac_cv_func_shmat" = xyes; then : 8150 8151fi 8152 8153 if test $ac_cv_func_shmat = no; then 8154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5 8155$as_echo_n "checking for shmat in -lipc... " >&6; } 8156if ${ac_cv_lib_ipc_shmat+:} false; then : 8157 $as_echo_n "(cached) " >&6 8158else 8159 ac_check_lib_save_LIBS=$LIBS 8160LIBS="-lipc $LIBS" 8161cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8162/* end confdefs.h. */ 8163 8164/* Override any GCC internal prototype to avoid an error. 8165 Use char because int might match the return type of a GCC 8166 builtin and then its argument prototype would still apply. */ 8167#ifdef __cplusplus 8168extern "C" 8169#endif 8170char shmat (); 8171int 8172main () 8173{ 8174return shmat (); 8175 ; 8176 return 0; 8177} 8178_ACEOF 8179if ac_fn_c_try_link "$LINENO"; then : 8180 ac_cv_lib_ipc_shmat=yes 8181else 8182 ac_cv_lib_ipc_shmat=no 8183fi 8184rm -f core conftest.err conftest.$ac_objext \ 8185 conftest$ac_exeext conftest.$ac_ext 8186LIBS=$ac_check_lib_save_LIBS 8187fi 8188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5 8189$as_echo "$ac_cv_lib_ipc_shmat" >&6; } 8190if test "x$ac_cv_lib_ipc_shmat" = xyes; then : 8191 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" 8192fi 8193 8194 fi 8195 fi 8196 8197 # Check for libraries that X11R6 Xt/Xaw programs need. 8198 ac_save_LDFLAGS=$LDFLAGS 8199 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" 8200 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to 8201 # check for ICE first), but we must link in the order -lSM -lICE or 8202 # we get undefined symbols. So assume we have SM if we have ICE. 8203 # These have to be linked with before -lX11, unlike the other 8204 # libraries we check for below, so use a different variable. 8205 # John Interrante, Karl Berry 8206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5 8207$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; } 8208if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then : 8209 $as_echo_n "(cached) " >&6 8210else 8211 ac_check_lib_save_LIBS=$LIBS 8212LIBS="-lICE $X_EXTRA_LIBS $LIBS" 8213cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8214/* end confdefs.h. */ 8215 8216/* Override any GCC internal prototype to avoid an error. 8217 Use char because int might match the return type of a GCC 8218 builtin and then its argument prototype would still apply. */ 8219#ifdef __cplusplus 8220extern "C" 8221#endif 8222char IceConnectionNumber (); 8223int 8224main () 8225{ 8226return IceConnectionNumber (); 8227 ; 8228 return 0; 8229} 8230_ACEOF 8231if ac_fn_c_try_link "$LINENO"; then : 8232 ac_cv_lib_ICE_IceConnectionNumber=yes 8233else 8234 ac_cv_lib_ICE_IceConnectionNumber=no 8235fi 8236rm -f core conftest.err conftest.$ac_objext \ 8237 conftest$ac_exeext conftest.$ac_ext 8238LIBS=$ac_check_lib_save_LIBS 8239fi 8240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 8241$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; } 8242if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then : 8243 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" 8244fi 8245 8246 LDFLAGS=$ac_save_LDFLAGS 8247 8248fi 8249 8250 8251 if test "$zOSUnix" = "yes"; then 8252 CFLAGS="$CFLAGS -W c,dll" 8253 LDFLAGS="$LDFLAGS -W l,dll" 8254 X_EXTRA_LIBS="$X_EXTRA_LIBS -lSM -lICE -lXmu" 8255 fi 8256 8257 8258 if test -d "$x_includes" && test ! -d "$x_libraries"; then 8259 x_libraries=`echo "$x_includes" | sed s/include/lib/` 8260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Corrected X libraries to $x_libraries" >&5 8261$as_echo "Corrected X libraries to $x_libraries" >&6; } 8262 X_LIBS="$X_LIBS -L$x_libraries" 8263 if test "`(uname) 2>/dev/null`" = SunOS && 8264 uname -r | grep '^5' >/dev/null; then 8265 X_LIBS="$X_LIBS -R $x_libraries" 8266 fi 8267 fi 8268 8269 if test -d "$x_libraries" && test ! -d "$x_includes"; then 8270 x_includes=`echo "$x_libraries" | sed s/lib/include/` 8271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Corrected X includes to $x_includes" >&5 8272$as_echo "Corrected X includes to $x_includes" >&6; } 8273 X_CFLAGS="$X_CFLAGS -I$x_includes" 8274 fi 8275 8276 X_CFLAGS="`echo $X_CFLAGS\ | sed 's%-I/usr/include %%'`" 8277 X_LIBS="`echo $X_LIBS\ | sed 's%-L/usr/lib %%'`" 8278 X_LIBS="`echo $X_LIBS\ | sed -e 's%-R/usr/lib %%' -e 's%-R /usr/lib %%'`" 8279 8280 8281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if X11 header files can be found" >&5 8282$as_echo_n "checking if X11 header files can be found... " >&6; } 8283 cflags_save=$CFLAGS 8284 CFLAGS="$CFLAGS $X_CFLAGS" 8285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8286/* end confdefs.h. */ 8287#include <X11/Xlib.h> 8288#include <X11/Intrinsic.h> 8289int 8290main () 8291{ 8292 8293 ; 8294 return 0; 8295} 8296_ACEOF 8297if ac_fn_c_try_compile "$LINENO"; then : 8298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8299$as_echo "yes" >&6; } 8300else 8301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8302$as_echo "no" >&6; }; no_x=yes 8303fi 8304rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8305 CFLAGS=$cflags_save 8306 8307 if test "${no_x-no}" = yes; then 8308 with_x=no 8309 else 8310 $as_echo "#define HAVE_X11 1" >>confdefs.h 8311 8312 X_LIB="-lXt -lX11"; 8313 8314 8315 ac_save_LDFLAGS="$LDFLAGS" 8316 LDFLAGS="-L$x_libraries $LDFLAGS" 8317 8318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _XdmcpAuthDoIt in -lXdmcp" >&5 8319$as_echo_n "checking for _XdmcpAuthDoIt in -lXdmcp... " >&6; } 8320if ${ac_cv_lib_Xdmcp__XdmcpAuthDoIt+:} false; then : 8321 $as_echo_n "(cached) " >&6 8322else 8323 ac_check_lib_save_LIBS=$LIBS 8324LIBS="-lXdmcp -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS -lXdmcp $LIBS" 8325cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8326/* end confdefs.h. */ 8327 8328/* Override any GCC internal prototype to avoid an error. 8329 Use char because int might match the return type of a GCC 8330 builtin and then its argument prototype would still apply. */ 8331#ifdef __cplusplus 8332extern "C" 8333#endif 8334char _XdmcpAuthDoIt (); 8335int 8336main () 8337{ 8338return _XdmcpAuthDoIt (); 8339 ; 8340 return 0; 8341} 8342_ACEOF 8343if ac_fn_c_try_link "$LINENO"; then : 8344 ac_cv_lib_Xdmcp__XdmcpAuthDoIt=yes 8345else 8346 ac_cv_lib_Xdmcp__XdmcpAuthDoIt=no 8347fi 8348rm -f core conftest.err conftest.$ac_objext \ 8349 conftest$ac_exeext conftest.$ac_ext 8350LIBS=$ac_check_lib_save_LIBS 8351fi 8352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xdmcp__XdmcpAuthDoIt" >&5 8353$as_echo "$ac_cv_lib_Xdmcp__XdmcpAuthDoIt" >&6; } 8354if test "x$ac_cv_lib_Xdmcp__XdmcpAuthDoIt" = xyes; then : 8355 X_EXTRA_LIBS="$X_EXTRA_LIBS -lXdmcp" 8356fi 8357 8358 8359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceOpenConnection in -lICE" >&5 8360$as_echo_n "checking for IceOpenConnection in -lICE... " >&6; } 8361if ${ac_cv_lib_ICE_IceOpenConnection+:} false; then : 8362 $as_echo_n "(cached) " >&6 8363else 8364 ac_check_lib_save_LIBS=$LIBS 8365LIBS="-lICE $X_EXTRA_LIBS $LIBS" 8366cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8367/* end confdefs.h. */ 8368 8369/* Override any GCC internal prototype to avoid an error. 8370 Use char because int might match the return type of a GCC 8371 builtin and then its argument prototype would still apply. */ 8372#ifdef __cplusplus 8373extern "C" 8374#endif 8375char IceOpenConnection (); 8376int 8377main () 8378{ 8379return IceOpenConnection (); 8380 ; 8381 return 0; 8382} 8383_ACEOF 8384if ac_fn_c_try_link "$LINENO"; then : 8385 ac_cv_lib_ICE_IceOpenConnection=yes 8386else 8387 ac_cv_lib_ICE_IceOpenConnection=no 8388fi 8389rm -f core conftest.err conftest.$ac_objext \ 8390 conftest$ac_exeext conftest.$ac_ext 8391LIBS=$ac_check_lib_save_LIBS 8392fi 8393{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceOpenConnection" >&5 8394$as_echo "$ac_cv_lib_ICE_IceOpenConnection" >&6; } 8395if test "x$ac_cv_lib_ICE_IceOpenConnection" = xyes; then : 8396 X_EXTRA_LIBS="$X_EXTRA_LIBS -lSM -lICE" 8397fi 8398 8399 8400 LDFLAGS="$X_LIBS $ac_save_LDFLAGS" 8401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmCreatePixmapFromData in -lXpm" >&5 8402$as_echo_n "checking for XpmCreatePixmapFromData in -lXpm... " >&6; } 8403if ${ac_cv_lib_Xpm_XpmCreatePixmapFromData+:} false; then : 8404 $as_echo_n "(cached) " >&6 8405else 8406 ac_check_lib_save_LIBS=$LIBS 8407LIBS="-lXpm -lXt $X_PRE_LIBS -lXpm -lX11 $X_EXTRA_LIBS $LIBS" 8408cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8409/* end confdefs.h. */ 8410 8411/* Override any GCC internal prototype to avoid an error. 8412 Use char because int might match the return type of a GCC 8413 builtin and then its argument prototype would still apply. */ 8414#ifdef __cplusplus 8415extern "C" 8416#endif 8417char XpmCreatePixmapFromData (); 8418int 8419main () 8420{ 8421return XpmCreatePixmapFromData (); 8422 ; 8423 return 0; 8424} 8425_ACEOF 8426if ac_fn_c_try_link "$LINENO"; then : 8427 ac_cv_lib_Xpm_XpmCreatePixmapFromData=yes 8428else 8429 ac_cv_lib_Xpm_XpmCreatePixmapFromData=no 8430fi 8431rm -f core conftest.err conftest.$ac_objext \ 8432 conftest$ac_exeext conftest.$ac_ext 8433LIBS=$ac_check_lib_save_LIBS 8434fi 8435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&5 8436$as_echo "$ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&6; } 8437if test "x$ac_cv_lib_Xpm_XpmCreatePixmapFromData" = xyes; then : 8438 X_PRE_LIBS="$X_PRE_LIBS -lXpm" 8439fi 8440 8441 8442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if X11 header files implicitly declare return values" >&5 8443$as_echo_n "checking if X11 header files implicitly declare return values... " >&6; } 8444 cflags_save=$CFLAGS 8445 if test "$GCC" = yes; then 8446 CFLAGS="$CFLAGS $X_CFLAGS -Werror" 8447 else 8448 CFLAGS="$CFLAGS $X_CFLAGS" 8449 fi 8450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8451/* end confdefs.h. */ 8452#include <X11/Xlib.h> 8453int 8454main () 8455{ 8456 8457 ; 8458 return 0; 8459} 8460_ACEOF 8461if ac_fn_c_try_compile "$LINENO"; then : 8462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8463$as_echo "no" >&6; } 8464else 8465 CFLAGS="$CFLAGS -Wno-implicit-int" 8466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8467/* end confdefs.h. */ 8468#include <X11/Xlib.h> 8469int 8470main () 8471{ 8472 8473 ; 8474 return 0; 8475} 8476_ACEOF 8477if ac_fn_c_try_compile "$LINENO"; then : 8478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8479$as_echo "yes" >&6; }; cflags_save="$cflags_save -Wno-implicit-int" 8480else 8481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: test failed" >&5 8482$as_echo "test failed" >&6; } 8483 8484fi 8485rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8486 8487fi 8488rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8489 CFLAGS=$cflags_save 8490 8491 LDFLAGS="$ac_save_LDFLAGS" 8492 8493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of wchar_t is 2 bytes" >&5 8494$as_echo_n "checking size of wchar_t is 2 bytes... " >&6; } 8495 if ${ac_cv_small_wchar_t+:} false; then : 8496 $as_echo_n "(cached) " >&6 8497else 8498 if test "$cross_compiling" = yes; then : 8499 as_fn_error $? "failed to compile test program" "$LINENO" 5 8500else 8501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8502/* end confdefs.h. */ 8503 8504#include <X11/Xlib.h> 8505#if STDC_HEADERS 8506# include <stdlib.h> 8507# include <stddef.h> 8508#endif 8509 main() 8510 { 8511 if (sizeof(wchar_t) <= 2) 8512 exit(1); 8513 exit(0); 8514 } 8515_ACEOF 8516if ac_fn_c_try_run "$LINENO"; then : 8517 ac_cv_small_wchar_t="no" 8518else 8519 ac_cv_small_wchar_t="yes" 8520fi 8521rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 8522 conftest.$ac_objext conftest.beam conftest.$ac_ext 8523fi 8524 8525fi 8526 8527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_small_wchar_t" >&5 8528$as_echo "$ac_cv_small_wchar_t" >&6; } 8529 if test "x$ac_cv_small_wchar_t" = "xyes" ; then 8530 $as_echo "#define SMALL_WCHAR_T 1" >>confdefs.h 8531 8532 fi 8533 8534 fi 8535fi 8536 8537test "x$with_x" = xno -a "x$MACOSX" != "xyes" -a "x$QNX" != "xyes" && enable_gui=no 8538 8539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --enable-gui argument" >&5 8540$as_echo_n "checking --enable-gui argument... " >&6; } 8541# Check whether --enable-gui was given. 8542if test "${enable_gui+set}" = set; then : 8543 enableval=$enable_gui; 8544else 8545 enable_gui="auto" 8546fi 8547 8548 8549enable_gui_canon=`echo "_$enable_gui" | \ 8550 sed 's/[ _+-]//g;y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'` 8551 8552SKIP_GTK2=YES 8553SKIP_GTK3=YES 8554SKIP_GNOME=YES 8555SKIP_MOTIF=YES 8556SKIP_ATHENA=YES 8557SKIP_NEXTAW=YES 8558SKIP_PHOTON=YES 8559SKIP_CARBON=YES 8560GUITYPE=NONE 8561 8562if test "x$QNX" = "xyes" -a "x$with_x" = "xno" ; then 8563 SKIP_PHOTON= 8564 case "$enable_gui_canon" in 8565 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI support" >&5 8566$as_echo "no GUI support" >&6; } 8567 SKIP_PHOTON=YES ;; 8568 yes|"") { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - automatic GUI support" >&5 8569$as_echo "yes - automatic GUI support" >&6; } ;; 8570 auto) { $as_echo "$as_me:${as_lineno-$LINENO}: result: auto - automatic GUI support" >&5 8571$as_echo "auto - automatic GUI support" >&6; } ;; 8572 photon) { $as_echo "$as_me:${as_lineno-$LINENO}: result: Photon GUI support" >&5 8573$as_echo "Photon GUI support" >&6; } ;; 8574 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: Sorry, $enable_gui GUI is not supported" >&5 8575$as_echo "Sorry, $enable_gui GUI is not supported" >&6; } 8576 SKIP_PHOTON=YES ;; 8577 esac 8578 8579elif test "x$MACOSX" = "xyes" -a "x$with_x" = "xno" ; then 8580 SKIP_CARBON= 8581 case "$enable_gui_canon" in 8582 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI support" >&5 8583$as_echo "no GUI support" >&6; } 8584 SKIP_CARBON=YES ;; 8585 yes|"") { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - automatic GUI support" >&5 8586$as_echo "yes - automatic GUI support" >&6; } ;; 8587 auto) { $as_echo "$as_me:${as_lineno-$LINENO}: result: auto - Carbon GUI is outdated - disable GUI support" >&5 8588$as_echo "auto - Carbon GUI is outdated - disable GUI support" >&6; } 8589 SKIP_CARBON=YES ;; 8590 carbon) { $as_echo "$as_me:${as_lineno-$LINENO}: result: Carbon GUI support" >&5 8591$as_echo "Carbon GUI support" >&6; } ;; 8592 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: Sorry, $enable_gui GUI is not supported" >&5 8593$as_echo "Sorry, $enable_gui GUI is not supported" >&6; } 8594 SKIP_CARBON=YES ;; 8595 esac 8596 8597else 8598 8599 case "$enable_gui_canon" in 8600 no|none) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI support" >&5 8601$as_echo "no GUI support" >&6; } ;; 8602 yes|""|auto) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes/auto - automatic GUI support" >&5 8603$as_echo "yes/auto - automatic GUI support" >&6; } 8604 SKIP_GTK2= 8605 SKIP_GNOME= 8606 SKIP_MOTIF= 8607 SKIP_ATHENA= 8608 SKIP_NEXTAW= 8609 SKIP_CARBON=;; 8610 gtk2) { $as_echo "$as_me:${as_lineno-$LINENO}: result: GTK+ 2.x GUI support" >&5 8611$as_echo "GTK+ 2.x GUI support" >&6; } 8612 SKIP_GTK2=;; 8613 gnome2) { $as_echo "$as_me:${as_lineno-$LINENO}: result: GNOME 2.x GUI support" >&5 8614$as_echo "GNOME 2.x GUI support" >&6; } 8615 SKIP_GNOME= 8616 SKIP_GTK2=;; 8617 gtk3) { $as_echo "$as_me:${as_lineno-$LINENO}: result: GTK+ 3.x GUI support" >&5 8618$as_echo "GTK+ 3.x GUI support" >&6; } 8619 SKIP_GTK3=;; 8620 motif) { $as_echo "$as_me:${as_lineno-$LINENO}: result: Motif GUI support" >&5 8621$as_echo "Motif GUI support" >&6; } 8622 SKIP_MOTIF=;; 8623 athena) { $as_echo "$as_me:${as_lineno-$LINENO}: result: Athena GUI support" >&5 8624$as_echo "Athena GUI support" >&6; } 8625 SKIP_ATHENA=;; 8626 nextaw) { $as_echo "$as_me:${as_lineno-$LINENO}: result: neXtaw GUI support" >&5 8627$as_echo "neXtaw GUI support" >&6; } 8628 SKIP_NEXTAW=;; 8629 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: Sorry, $enable_gui GUI is not supported" >&5 8630$as_echo "Sorry, $enable_gui GUI is not supported" >&6; } ;; 8631 esac 8632 8633fi 8634 8635if test "x$SKIP_GTK2" != "xYES" -a "$enable_gui_canon" != "gtk2" \ 8636 -a "$enable_gui_canon" != "gnome2"; then 8637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for GTK+ 2" >&5 8638$as_echo_n "checking whether or not to look for GTK+ 2... " >&6; } 8639 # Check whether --enable-gtk2-check was given. 8640if test "${enable_gtk2_check+set}" = set; then : 8641 enableval=$enable_gtk2_check; 8642else 8643 enable_gtk2_check="yes" 8644fi 8645 8646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gtk2_check" >&5 8647$as_echo "$enable_gtk2_check" >&6; } 8648 if test "x$enable_gtk2_check" = "xno"; then 8649 SKIP_GTK2=YES 8650 SKIP_GNOME=YES 8651 fi 8652fi 8653 8654if test "x$SKIP_GNOME" != "xYES" -a "$enable_gui_canon" != "gnome2"; then 8655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for GNOME" >&5 8656$as_echo_n "checking whether or not to look for GNOME... " >&6; } 8657 # Check whether --enable-gnome-check was given. 8658if test "${enable_gnome_check+set}" = set; then : 8659 enableval=$enable_gnome_check; 8660else 8661 enable_gnome_check="no" 8662fi 8663 8664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gnome_check" >&5 8665$as_echo "$enable_gnome_check" >&6; } 8666 if test "x$enable_gnome_check" = "xno"; then 8667 SKIP_GNOME=YES 8668 fi 8669fi 8670 8671if test "x$SKIP_GTK3" != "xYES" -a "$enable_gui_canon" != "gtk3"; then 8672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for GTK+ 3" >&5 8673$as_echo_n "checking whether or not to look for GTK+ 3... " >&6; } 8674 # Check whether --enable-gtk3-check was given. 8675if test "${enable_gtk3_check+set}" = set; then : 8676 enableval=$enable_gtk3_check; 8677else 8678 enable_gtk3_check="yes" 8679fi 8680 8681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gtk3_check" >&5 8682$as_echo "$enable_gtk3_check" >&6; } 8683 if test "x$enable_gtk3_check" = "xno"; then 8684 SKIP_GTK3=YES 8685 fi 8686fi 8687 8688if test "x$SKIP_MOTIF" != "xYES" -a "$enable_gui_canon" != "motif"; then 8689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for Motif" >&5 8690$as_echo_n "checking whether or not to look for Motif... " >&6; } 8691 # Check whether --enable-motif-check was given. 8692if test "${enable_motif_check+set}" = set; then : 8693 enableval=$enable_motif_check; 8694else 8695 enable_motif_check="yes" 8696fi 8697 8698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_motif_check" >&5 8699$as_echo "$enable_motif_check" >&6; } 8700 if test "x$enable_motif_check" = "xno"; then 8701 SKIP_MOTIF=YES 8702 fi 8703fi 8704 8705if test "x$SKIP_ATHENA" != "xYES" -a "$enable_gui_canon" != "athena"; then 8706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for Athena" >&5 8707$as_echo_n "checking whether or not to look for Athena... " >&6; } 8708 # Check whether --enable-athena-check was given. 8709if test "${enable_athena_check+set}" = set; then : 8710 enableval=$enable_athena_check; 8711else 8712 enable_athena_check="yes" 8713fi 8714 8715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_athena_check" >&5 8716$as_echo "$enable_athena_check" >&6; } 8717 if test "x$enable_athena_check" = "xno"; then 8718 SKIP_ATHENA=YES 8719 fi 8720fi 8721 8722if test "x$SKIP_NEXTAW" != "xYES" -a "$enable_gui_canon" != "nextaw"; then 8723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for neXtaw" >&5 8724$as_echo_n "checking whether or not to look for neXtaw... " >&6; } 8725 # Check whether --enable-nextaw-check was given. 8726if test "${enable_nextaw_check+set}" = set; then : 8727 enableval=$enable_nextaw_check; 8728else 8729 enable_nextaw_check="yes" 8730fi 8731 8732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_nextaw_check" >&5 8733$as_echo "$enable_nextaw_check" >&6; }; 8734 if test "x$enable_nextaw_check" = "xno"; then 8735 SKIP_NEXTAW=YES 8736 fi 8737fi 8738 8739if test "x$SKIP_CARBON" != "xYES" -a "$enable_gui_canon" != "carbon"; then 8740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether or not to look for Carbon" >&5 8741$as_echo_n "checking whether or not to look for Carbon... " >&6; } 8742 # Check whether --enable-carbon-check was given. 8743if test "${enable_carbon_check+set}" = set; then : 8744 enableval=$enable_carbon_check; 8745else 8746 enable_carbon_check="yes" 8747fi 8748 8749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_carbon_check" >&5 8750$as_echo "$enable_carbon_check" >&6; }; 8751 if test "x$enable_carbon_check" = "xno"; then 8752 SKIP_CARBON=YES 8753 fi 8754fi 8755 8756 8757if test "x$MACOSX" = "xyes" -a -z "$SKIP_CARBON" -a "x$CARBON" = "xyes"; then 8758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Carbon GUI" >&5 8759$as_echo_n "checking for Carbon GUI... " >&6; } 8760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8761$as_echo "yes" >&6; }; 8762 GUITYPE=CARBONGUI 8763 if test "$VIMNAME" = "vim"; then 8764 VIMNAME=Vim 8765 fi 8766 8767 if test "x$MACARCH" = "xboth"; then 8768 CPPFLAGS="$CPPFLAGS -I$DEVELOPER_DIR/SDKs/MacOSX10.4u.sdk/Developer/Headers/FlatCarbon" 8769 else 8770 CPPFLAGS="$CPPFLAGS -I$DEVELOPER_DIR/Headers/FlatCarbon" 8771 fi 8772 8773 if test x$prefix = xNONE; then 8774 prefix=/Applications 8775 fi 8776 8777 datadir='${prefix}/Vim.app/Contents/Resources' 8778 8779 SKIP_GTK2=YES; 8780 SKIP_GNOME=YES; 8781 SKIP_MOTIF=YES; 8782 SKIP_ATHENA=YES; 8783 SKIP_NEXTAW=YES; 8784 SKIP_PHOTON=YES; 8785 SKIP_CARBON=YES 8786fi 8787 8788 8789 8790 8791 8792 8793 8794 8795if test -z "$SKIP_GTK2"; then 8796 8797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-gtktest argument" >&5 8798$as_echo_n "checking --disable-gtktest argument... " >&6; } 8799 # Check whether --enable-gtktest was given. 8800if test "${enable_gtktest+set}" = set; then : 8801 enableval=$enable_gtktest; 8802else 8803 enable_gtktest=yes 8804fi 8805 8806 if test "x$enable_gtktest" = "xyes" ; then 8807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: gtk test enabled" >&5 8808$as_echo "gtk test enabled" >&6; } 8809 else 8810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: gtk test disabled" >&5 8811$as_echo "gtk test disabled" >&6; } 8812 fi 8813 8814 if test "X$PKG_CONFIG" = "X"; then 8815 # Extract the first word of "pkg-config", so it can be a program name with args. 8816set dummy pkg-config; ac_word=$2 8817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8818$as_echo_n "checking for $ac_word... " >&6; } 8819if ${ac_cv_path_PKG_CONFIG+:} false; then : 8820 $as_echo_n "(cached) " >&6 8821else 8822 case $PKG_CONFIG in 8823 [\\/]* | ?:[\\/]*) 8824 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 8825 ;; 8826 *) 8827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8828for as_dir in $PATH 8829do 8830 IFS=$as_save_IFS 8831 test -z "$as_dir" && as_dir=. 8832 for ac_exec_ext in '' $ac_executable_extensions; do 8833 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8834 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 8835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8836 break 2 8837 fi 8838done 8839 done 8840IFS=$as_save_IFS 8841 8842 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" 8843 ;; 8844esac 8845fi 8846PKG_CONFIG=$ac_cv_path_PKG_CONFIG 8847if test -n "$PKG_CONFIG"; then 8848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 8849$as_echo "$PKG_CONFIG" >&6; } 8850else 8851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8852$as_echo "no" >&6; } 8853fi 8854 8855 8856 fi 8857 8858 if test "x$PKG_CONFIG" != "xno"; then 8859 8860 if test "X$GTK_CONFIG" != "Xno" -o "X$PKG_CONFIG" != "Xno"; then 8861 { 8862 no_gtk="" 8863 if (test "X$SKIP_GTK2" != "XYES" -a "X$PKG_CONFIG" != "Xno") \ 8864 && $PKG_CONFIG --exists gtk+-2.0; then 8865 { 8866 min_gtk_version=2.2.0 8867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK - version >= $min_gtk_version" >&5 8868$as_echo_n "checking for GTK - version >= $min_gtk_version... " >&6; } 8869 GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0` 8870 GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk+-2.0` 8871 GTK_LIBS=`$PKG_CONFIG --libs gtk+-2.0` 8872 gtk_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ 8873 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'` 8874 gtk_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ 8875 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'` 8876 gtk_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ 8877 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'` 8878 } 8879 elif (test "X$SKIP_GTK3" != "XYES" -a "X$PKG_CONFIG" != "Xno") \ 8880 && $PKG_CONFIG --exists gtk+-3.0; then 8881 { 8882 min_gtk_version=2.2.0 8883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK - version >= $min_gtk_version" >&5 8884$as_echo_n "checking for GTK - version >= $min_gtk_version... " >&6; } 8885 8886 GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-3.0` 8887 GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk+-3.0` 8888 GTK_LIBS=`$PKG_CONFIG --libs gtk+-3.0` 8889 gtk_major_version=`$PKG_CONFIG --modversion gtk+-3.0 | \ 8890 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'` 8891 gtk_minor_version=`$PKG_CONFIG --modversion gtk+-3.0 | \ 8892 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'` 8893 gtk_micro_version=`$PKG_CONFIG --modversion gtk+-3.0 | \ 8894 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'` 8895 } 8896 else 8897 no_gtk=yes 8898 fi 8899 8900 if test "x$enable_gtktest" = "xyes" -a "x$no_gtk" = "x"; then 8901 { 8902 ac_save_CFLAGS="$CFLAGS" 8903 ac_save_LIBS="$LIBS" 8904 CFLAGS="$CFLAGS $GTK_CFLAGS" 8905 LIBS="$LIBS $GTK_LIBS" 8906 8907 rm -f conf.gtktest 8908 if test "$cross_compiling" = yes; then : 8909 echo $ac_n "cross compiling; assumed OK... $ac_c" 8910else 8911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8912/* end confdefs.h. */ 8913 8914#include <gtk/gtk.h> 8915#include <stdio.h> 8916#if STDC_HEADERS 8917# include <stdlib.h> 8918# include <stddef.h> 8919#endif 8920 8921int 8922main () 8923{ 8924int major, minor, micro; 8925char *tmp_version; 8926 8927system ("touch conf.gtktest"); 8928 8929/* HP/UX 9 (%@#!) writes to sscanf strings */ 8930tmp_version = g_strdup("$min_gtk_version"); 8931if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { 8932 printf("%s, bad version string\n", "$min_gtk_version"); 8933 exit(1); 8934 } 8935 8936if ((gtk_major_version > major) || 8937 ((gtk_major_version == major) && (gtk_minor_version > minor)) || 8938 ((gtk_major_version == major) && (gtk_minor_version == minor) && 8939 (gtk_micro_version >= micro))) 8940{ 8941 return 0; 8942} 8943return 1; 8944} 8945 8946_ACEOF 8947if ac_fn_c_try_run "$LINENO"; then : 8948 8949else 8950 no_gtk=yes 8951fi 8952rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 8953 conftest.$ac_objext conftest.beam conftest.$ac_ext 8954fi 8955 8956 CFLAGS="$ac_save_CFLAGS" 8957 LIBS="$ac_save_LIBS" 8958 } 8959 fi 8960 if test "x$no_gtk" = x ; then 8961 if test "x$enable_gtktest" = "xyes"; then 8962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5 8963$as_echo "yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; } 8964 else 8965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5 8966$as_echo "found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; } 8967 fi 8968 GUI_LIB_LOC="$GTK_LIBDIR" 8969 GTK_LIBNAME="$GTK_LIBS" 8970 GUI_INC_LOC="$GTK_CFLAGS" 8971 else 8972 { 8973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8974$as_echo "no" >&6; } 8975 GTK_CFLAGS="" 8976 GTK_LIBS="" 8977 : 8978 } 8979 fi 8980 } 8981 else 8982 GTK_CFLAGS="" 8983 GTK_LIBS="" 8984 : 8985 fi 8986 8987 8988 rm -f conf.gtktest 8989 8990 if test "x$GTK_CFLAGS" != "x"; then 8991 SKIP_GTK3=YES 8992 SKIP_ATHENA=YES 8993 SKIP_NEXTAW=YES 8994 SKIP_MOTIF=YES 8995 GUITYPE=GTK 8996 8997 fi 8998 fi 8999 if test "x$GUITYPE" = "xGTK"; then 9000 if test "$gtk_minor_version" = 1 -a "0$gtk_micro_version" -ge 1 \ 9001 || test "0$gtk_minor_version" -ge 2; then 9002 $as_echo "#define HAVE_GTK_MULTIHEAD 1" >>confdefs.h 9003 9004 fi 9005 if test -z "$SKIP_GNOME"; then 9006 { 9007 9008 9009 9010 9011 9012 9013# Check whether --with-gnome-includes was given. 9014if test "${with_gnome_includes+set}" = set; then : 9015 withval=$with_gnome_includes; CFLAGS="$CFLAGS -I$withval" 9016 9017fi 9018 9019 9020 9021# Check whether --with-gnome-libs was given. 9022if test "${with_gnome_libs+set}" = set; then : 9023 withval=$with_gnome_libs; LDFLAGS="$LDFLAGS -L$withval" gnome_prefix=$withval 9024 9025fi 9026 9027 9028 9029# Check whether --with-gnome was given. 9030if test "${with_gnome+set}" = set; then : 9031 withval=$with_gnome; if test x$withval = xyes; then 9032 want_gnome=yes 9033 have_gnome=yes 9034 else 9035 if test "x$withval" = xno; then 9036 want_gnome=no 9037 else 9038 want_gnome=yes 9039 LDFLAGS="$LDFLAGS -L$withval/lib" 9040 CFLAGS="$CFLAGS -I$withval/include" 9041 gnome_prefix=$withval/lib 9042 fi 9043 fi 9044else 9045 want_gnome=yes 9046fi 9047 9048 9049 if test "x$want_gnome" = xyes; then 9050 { 9051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libgnomeui-2.0" >&5 9052$as_echo_n "checking for libgnomeui-2.0... " >&6; } 9053 if $PKG_CONFIG --exists libgnomeui-2.0; then 9054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9055$as_echo "yes" >&6; } 9056 GNOME_LIBS=`$PKG_CONFIG --libs-only-l libgnomeui-2.0` 9057 GNOME_LIBDIR=`$PKG_CONFIG --libs-only-L libgnomeui-2.0` 9058 GNOME_INCLUDEDIR=`$PKG_CONFIG --cflags libgnomeui-2.0` 9059 9060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeBSD" >&5 9061$as_echo_n "checking for FreeBSD... " >&6; } 9062 if test "`(uname) 2>/dev/null`" = FreeBSD; then 9063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9064$as_echo "yes" >&6; } 9065 GNOME_INCLUDEDIR="$GNOME_INCLUDEDIR -D_THREAD_SAFE" 9066 GNOME_LIBS="$GNOME_LIBS -pthread" 9067 else 9068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9069$as_echo "no" >&6; } 9070 fi 9071 have_gnome=yes 9072 else 9073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9074$as_echo "not found" >&6; } 9075 if test "x" = xfail; then 9076 as_fn_error $? "Could not find libgnomeui-2.0 via pkg-config" "$LINENO" 5 9077 fi 9078 fi 9079 } 9080 fi 9081 9082 if test "x$have_gnome" = xyes ; then 9083 $as_echo "#define FEAT_GUI_GNOME 1" >>confdefs.h 9084 9085 GUI_INC_LOC="$GUI_INC_LOC $GNOME_INCLUDEDIR" 9086 GTK_LIBNAME="$GTK_LIBNAME $GNOME_LIBDIR $GNOME_LIBS" 9087 fi 9088 } 9089 fi 9090 fi 9091fi 9092 9093 9094if test -z "$SKIP_GTK3"; then 9095 9096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-gtktest argument" >&5 9097$as_echo_n "checking --disable-gtktest argument... " >&6; } 9098 # Check whether --enable-gtktest was given. 9099if test "${enable_gtktest+set}" = set; then : 9100 enableval=$enable_gtktest; 9101else 9102 enable_gtktest=yes 9103fi 9104 9105 if test "x$enable_gtktest" = "xyes" ; then 9106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: gtk test enabled" >&5 9107$as_echo "gtk test enabled" >&6; } 9108 else 9109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: gtk test disabled" >&5 9110$as_echo "gtk test disabled" >&6; } 9111 fi 9112 9113 if test "X$PKG_CONFIG" = "X"; then 9114 # Extract the first word of "pkg-config", so it can be a program name with args. 9115set dummy pkg-config; ac_word=$2 9116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9117$as_echo_n "checking for $ac_word... " >&6; } 9118if ${ac_cv_path_PKG_CONFIG+:} false; then : 9119 $as_echo_n "(cached) " >&6 9120else 9121 case $PKG_CONFIG in 9122 [\\/]* | ?:[\\/]*) 9123 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 9124 ;; 9125 *) 9126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9127for as_dir in $PATH 9128do 9129 IFS=$as_save_IFS 9130 test -z "$as_dir" && as_dir=. 9131 for ac_exec_ext in '' $ac_executable_extensions; do 9132 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9133 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 9134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9135 break 2 9136 fi 9137done 9138 done 9139IFS=$as_save_IFS 9140 9141 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" 9142 ;; 9143esac 9144fi 9145PKG_CONFIG=$ac_cv_path_PKG_CONFIG 9146if test -n "$PKG_CONFIG"; then 9147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 9148$as_echo "$PKG_CONFIG" >&6; } 9149else 9150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9151$as_echo "no" >&6; } 9152fi 9153 9154 9155 fi 9156 9157 if test "x$PKG_CONFIG" != "xno"; then 9158 9159 if test "X$GTK_CONFIG" != "Xno" -o "X$PKG_CONFIG" != "Xno"; then 9160 { 9161 no_gtk="" 9162 if (test "X$SKIP_GTK2" != "XYES" -a "X$PKG_CONFIG" != "Xno") \ 9163 && $PKG_CONFIG --exists gtk+-2.0; then 9164 { 9165 min_gtk_version=3.0.0 9166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK - version >= $min_gtk_version" >&5 9167$as_echo_n "checking for GTK - version >= $min_gtk_version... " >&6; } 9168 GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0` 9169 GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk+-2.0` 9170 GTK_LIBS=`$PKG_CONFIG --libs gtk+-2.0` 9171 gtk_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ 9172 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'` 9173 gtk_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ 9174 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'` 9175 gtk_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ 9176 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'` 9177 } 9178 elif (test "X$SKIP_GTK3" != "XYES" -a "X$PKG_CONFIG" != "Xno") \ 9179 && $PKG_CONFIG --exists gtk+-3.0; then 9180 { 9181 min_gtk_version=3.0.0 9182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK - version >= $min_gtk_version" >&5 9183$as_echo_n "checking for GTK - version >= $min_gtk_version... " >&6; } 9184 9185 GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-3.0` 9186 GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk+-3.0` 9187 GTK_LIBS=`$PKG_CONFIG --libs gtk+-3.0` 9188 gtk_major_version=`$PKG_CONFIG --modversion gtk+-3.0 | \ 9189 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'` 9190 gtk_minor_version=`$PKG_CONFIG --modversion gtk+-3.0 | \ 9191 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'` 9192 gtk_micro_version=`$PKG_CONFIG --modversion gtk+-3.0 | \ 9193 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'` 9194 } 9195 else 9196 no_gtk=yes 9197 fi 9198 9199 if test "x$enable_gtktest" = "xyes" -a "x$no_gtk" = "x"; then 9200 { 9201 ac_save_CFLAGS="$CFLAGS" 9202 ac_save_LIBS="$LIBS" 9203 CFLAGS="$CFLAGS $GTK_CFLAGS" 9204 LIBS="$LIBS $GTK_LIBS" 9205 9206 rm -f conf.gtktest 9207 if test "$cross_compiling" = yes; then : 9208 echo $ac_n "cross compiling; assumed OK... $ac_c" 9209else 9210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9211/* end confdefs.h. */ 9212 9213#include <gtk/gtk.h> 9214#include <stdio.h> 9215#if STDC_HEADERS 9216# include <stdlib.h> 9217# include <stddef.h> 9218#endif 9219 9220int 9221main () 9222{ 9223int major, minor, micro; 9224char *tmp_version; 9225 9226system ("touch conf.gtktest"); 9227 9228/* HP/UX 9 (%@#!) writes to sscanf strings */ 9229tmp_version = g_strdup("$min_gtk_version"); 9230if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { 9231 printf("%s, bad version string\n", "$min_gtk_version"); 9232 exit(1); 9233 } 9234 9235if ((gtk_major_version > major) || 9236 ((gtk_major_version == major) && (gtk_minor_version > minor)) || 9237 ((gtk_major_version == major) && (gtk_minor_version == minor) && 9238 (gtk_micro_version >= micro))) 9239{ 9240 return 0; 9241} 9242return 1; 9243} 9244 9245_ACEOF 9246if ac_fn_c_try_run "$LINENO"; then : 9247 9248else 9249 no_gtk=yes 9250fi 9251rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 9252 conftest.$ac_objext conftest.beam conftest.$ac_ext 9253fi 9254 9255 CFLAGS="$ac_save_CFLAGS" 9256 LIBS="$ac_save_LIBS" 9257 } 9258 fi 9259 if test "x$no_gtk" = x ; then 9260 if test "x$enable_gtktest" = "xyes"; then 9261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5 9262$as_echo "yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; } 9263 else 9264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5 9265$as_echo "found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6; } 9266 fi 9267 GUI_LIB_LOC="$GTK_LIBDIR" 9268 GTK_LIBNAME="$GTK_LIBS" 9269 GUI_INC_LOC="$GTK_CFLAGS" 9270 else 9271 { 9272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9273$as_echo "no" >&6; } 9274 GTK_CFLAGS="" 9275 GTK_LIBS="" 9276 : 9277 } 9278 fi 9279 } 9280 else 9281 GTK_CFLAGS="" 9282 GTK_LIBS="" 9283 : 9284 fi 9285 9286 9287 rm -f conf.gtktest 9288 9289 if test "x$GTK_CFLAGS" != "x"; then 9290 SKIP_GTK2=YES 9291 SKIP_GNOME=YES 9292 SKIP_ATHENA=YES 9293 SKIP_NEXTAW=YES 9294 SKIP_MOTIF=YES 9295 GUITYPE=GTK 9296 9297 $as_echo "#define HAVE_GTK_MULTIHEAD 1" >>confdefs.h 9298 9299 $as_echo "#define USE_GTK3 1" >>confdefs.h 9300 9301 fi 9302 fi 9303fi 9304 9305if test "x$GUITYPE" = "xGTK"; then 9306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of Gdk-Pixbuf" >&5 9307$as_echo_n "checking version of Gdk-Pixbuf... " >&6; } 9308 gdk_pixbuf_version=`$PKG_CONFIG --modversion gdk-pixbuf-2.0` 9309 if test "x$gdk_pixbuf_version" != x ; then 9310 gdk_pixbuf_version_minor=`echo $gdk_pixbuf_version | \ 9311 sed -e 's/[0-9][0-9]*\.\([0-9][0-9]*\)\.[0-9][0-9]*/\1/'` 9312 if test "x$gdk_pixbuf_version_minor" != x -a \ 9313 $gdk_pixbuf_version_minor -ge 31 ; then 9314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK." >&5 9315$as_echo "OK." >&6; } 9316 # Extract the first word of "glib-compile-resources", so it can be a program name with args. 9317set dummy glib-compile-resources; ac_word=$2 9318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9319$as_echo_n "checking for $ac_word... " >&6; } 9320if ${ac_cv_path_GLIB_COMPILE_RESOURCES+:} false; then : 9321 $as_echo_n "(cached) " >&6 9322else 9323 case $GLIB_COMPILE_RESOURCES in 9324 [\\/]* | ?:[\\/]*) 9325 ac_cv_path_GLIB_COMPILE_RESOURCES="$GLIB_COMPILE_RESOURCES" # Let the user override the test with a path. 9326 ;; 9327 *) 9328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9329for as_dir in $PATH 9330do 9331 IFS=$as_save_IFS 9332 test -z "$as_dir" && as_dir=. 9333 for ac_exec_ext in '' $ac_executable_extensions; do 9334 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9335 ac_cv_path_GLIB_COMPILE_RESOURCES="$as_dir/$ac_word$ac_exec_ext" 9336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9337 break 2 9338 fi 9339done 9340 done 9341IFS=$as_save_IFS 9342 9343 test -z "$ac_cv_path_GLIB_COMPILE_RESOURCES" && ac_cv_path_GLIB_COMPILE_RESOURCES="no" 9344 ;; 9345esac 9346fi 9347GLIB_COMPILE_RESOURCES=$ac_cv_path_GLIB_COMPILE_RESOURCES 9348if test -n "$GLIB_COMPILE_RESOURCES"; then 9349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLIB_COMPILE_RESOURCES" >&5 9350$as_echo "$GLIB_COMPILE_RESOURCES" >&6; } 9351else 9352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9353$as_echo "no" >&6; } 9354fi 9355 9356 9357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking glib-compile-resources" >&5 9358$as_echo_n "checking glib-compile-resources... " >&6; } 9359 if test "x$GLIB_COMPILE_RESOURCES" = xno ; then 9360 GLIB_COMPILE_RESOURCES="" 9361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot be found in PATH." >&5 9362$as_echo "cannot be found in PATH." >&6; } 9363 else 9364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: usable." >&5 9365$as_echo "usable." >&6; } 9366 $as_echo "#define USE_GRESOURCE 1" >>confdefs.h 9367 9368 GRESOURCE_SRC="auto/gui_gtk_gresources.c" 9369 GRESOURCE_OBJ="objects/gui_gtk_gresources.o" 9370 fi 9371 else 9372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not usable." >&5 9373$as_echo "not usable." >&6; } 9374 fi 9375 else 9376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot obtain from pkg_config." >&5 9377$as_echo "cannot obtain from pkg_config." >&6; } 9378 fi 9379 9380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-icon-cache-update argument" >&5 9381$as_echo_n "checking --disable-icon-cache-update argument... " >&6; } 9382 # Check whether --enable-icon_cache_update was given. 9383if test "${enable_icon_cache_update+set}" = set; then : 9384 enableval=$enable_icon_cache_update; 9385else 9386 enable_icon_cache_update="yes" 9387fi 9388 9389 if test "$enable_icon_cache_update" = "yes"; then 9390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not set" >&5 9391$as_echo "not set" >&6; } 9392 # Extract the first word of "gtk-update-icon-cache", so it can be a program name with args. 9393set dummy gtk-update-icon-cache; ac_word=$2 9394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9395$as_echo_n "checking for $ac_word... " >&6; } 9396if ${ac_cv_path_GTK_UPDATE_ICON_CACHE+:} false; then : 9397 $as_echo_n "(cached) " >&6 9398else 9399 case $GTK_UPDATE_ICON_CACHE in 9400 [\\/]* | ?:[\\/]*) 9401 ac_cv_path_GTK_UPDATE_ICON_CACHE="$GTK_UPDATE_ICON_CACHE" # Let the user override the test with a path. 9402 ;; 9403 *) 9404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9405for as_dir in $PATH 9406do 9407 IFS=$as_save_IFS 9408 test -z "$as_dir" && as_dir=. 9409 for ac_exec_ext in '' $ac_executable_extensions; do 9410 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9411 ac_cv_path_GTK_UPDATE_ICON_CACHE="$as_dir/$ac_word$ac_exec_ext" 9412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9413 break 2 9414 fi 9415done 9416 done 9417IFS=$as_save_IFS 9418 9419 test -z "$ac_cv_path_GTK_UPDATE_ICON_CACHE" && ac_cv_path_GTK_UPDATE_ICON_CACHE="no" 9420 ;; 9421esac 9422fi 9423GTK_UPDATE_ICON_CACHE=$ac_cv_path_GTK_UPDATE_ICON_CACHE 9424if test -n "$GTK_UPDATE_ICON_CACHE"; then 9425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_UPDATE_ICON_CACHE" >&5 9426$as_echo "$GTK_UPDATE_ICON_CACHE" >&6; } 9427else 9428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9429$as_echo "no" >&6; } 9430fi 9431 9432 9433 if test "x$GTK_UPDATE_ICON_CACHE" = "xno" ; then 9434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found in PATH." >&5 9435$as_echo "not found in PATH." >&6; } 9436 fi 9437 else 9438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: update disabled" >&5 9439$as_echo "update disabled" >&6; } 9440 fi 9441 9442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-desktop-database-update argument" >&5 9443$as_echo_n "checking --disable-desktop-database-update argument... " >&6; } 9444 # Check whether --enable-desktop_database_update was given. 9445if test "${enable_desktop_database_update+set}" = set; then : 9446 enableval=$enable_desktop_database_update; 9447else 9448 enable_desktop_database_update="yes" 9449fi 9450 9451 if test "$enable_desktop_database_update" = "yes"; then 9452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not set" >&5 9453$as_echo "not set" >&6; } 9454 # Extract the first word of "update-desktop-database", so it can be a program name with args. 9455set dummy update-desktop-database; ac_word=$2 9456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9457$as_echo_n "checking for $ac_word... " >&6; } 9458if ${ac_cv_path_UPDATE_DESKTOP_DATABASE+:} false; then : 9459 $as_echo_n "(cached) " >&6 9460else 9461 case $UPDATE_DESKTOP_DATABASE in 9462 [\\/]* | ?:[\\/]*) 9463 ac_cv_path_UPDATE_DESKTOP_DATABASE="$UPDATE_DESKTOP_DATABASE" # Let the user override the test with a path. 9464 ;; 9465 *) 9466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9467for as_dir in $PATH 9468do 9469 IFS=$as_save_IFS 9470 test -z "$as_dir" && as_dir=. 9471 for ac_exec_ext in '' $ac_executable_extensions; do 9472 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9473 ac_cv_path_UPDATE_DESKTOP_DATABASE="$as_dir/$ac_word$ac_exec_ext" 9474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9475 break 2 9476 fi 9477done 9478 done 9479IFS=$as_save_IFS 9480 9481 test -z "$ac_cv_path_UPDATE_DESKTOP_DATABASE" && ac_cv_path_UPDATE_DESKTOP_DATABASE="no" 9482 ;; 9483esac 9484fi 9485UPDATE_DESKTOP_DATABASE=$ac_cv_path_UPDATE_DESKTOP_DATABASE 9486if test -n "$UPDATE_DESKTOP_DATABASE"; then 9487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UPDATE_DESKTOP_DATABASE" >&5 9488$as_echo "$UPDATE_DESKTOP_DATABASE" >&6; } 9489else 9490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9491$as_echo "no" >&6; } 9492fi 9493 9494 9495 if test "x$UPDATE_DESKTOP_DATABASE" = "xno" ; then 9496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found in PATH." >&5 9497$as_echo "not found in PATH." >&6; } 9498 fi 9499 else 9500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: update disabled" >&5 9501$as_echo "update disabled" >&6; } 9502 fi 9503fi 9504 9505 9506 9507 9508 9509 9510 9511if test -z "$SKIP_MOTIF"; then 9512 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" 9513 GUI_INC_LOC="`echo $GUI_INC_LOC|sed 's%-I%%g'`" 9514 9515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of Motif GUI includes" >&5 9516$as_echo_n "checking for location of Motif GUI includes... " >&6; } 9517 gui_includes="`echo $x_includes|sed 's%/^/^/*$%%'` `echo "$gui_XXX" | sed s/XXX/include/g` $GUI_INC_LOC" 9518 GUI_INC_LOC= 9519 for try in $gui_includes; do 9520 if test -f "$try/Xm/Xm.h"; then 9521 GUI_INC_LOC=$try 9522 fi 9523 done 9524 if test -n "$GUI_INC_LOC"; then 9525 if test "$GUI_INC_LOC" = /usr/include; then 9526 GUI_INC_LOC= 9527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: in default path" >&5 9528$as_echo "in default path" >&6; } 9529 else 9530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUI_INC_LOC" >&5 9531$as_echo "$GUI_INC_LOC" >&6; } 9532 fi 9533 else 9534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: <not found>" >&5 9535$as_echo "<not found>" >&6; } 9536 SKIP_MOTIF=YES 9537 fi 9538fi 9539 9540 9541if test -z "$SKIP_MOTIF"; then 9542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-motif-lib argument" >&5 9543$as_echo_n "checking --with-motif-lib argument... " >&6; } 9544 9545# Check whether --with-motif-lib was given. 9546if test "${with_motif_lib+set}" = set; then : 9547 withval=$with_motif_lib; MOTIF_LIBNAME="${withval}" 9548fi 9549 9550 9551 if test -n "$MOTIF_LIBNAME"; then 9552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOTIF_LIBNAME" >&5 9553$as_echo "$MOTIF_LIBNAME" >&6; } 9554 GUI_LIB_LOC= 9555 else 9556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9557$as_echo "no" >&6; } 9558 9559 GUI_LIB_LOC="`echo $GUI_LIB_LOC|sed 's%-L%%g'`" 9560 9561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for location of Motif GUI libs" >&5 9562$as_echo_n "checking for location of Motif GUI libs... " >&6; } 9563 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" 9564 GUI_LIB_LOC= 9565 for try in $gui_libs; do 9566 for libtry in "$try"/libXm.a "$try"/libXm.so* "$try"/libXm.sl "$try"/libXm.dylib; do 9567 if test -f "$libtry"; then 9568 GUI_LIB_LOC=$try 9569 fi 9570 done 9571 done 9572 if test -n "$GUI_LIB_LOC"; then 9573 if test "$GUI_LIB_LOC" = /usr/lib \ 9574 -o "$GUI_LIB_LOC" = /usr/lib/i386-linux-gnu \ 9575 -o "$GUI_LIB_LOC" = /usr/lib/x86_64-linux-gnu; then 9576 GUI_LIB_LOC= 9577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: in default path" >&5 9578$as_echo "in default path" >&6; } 9579 else 9580 if test -n "$GUI_LIB_LOC"; then 9581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUI_LIB_LOC" >&5 9582$as_echo "$GUI_LIB_LOC" >&6; } 9583 if test "`(uname) 2>/dev/null`" = SunOS && 9584 uname -r | grep '^5' >/dev/null; then 9585 GUI_LIB_LOC="$GUI_LIB_LOC -R $GUI_LIB_LOC" 9586 fi 9587 fi 9588 fi 9589 MOTIF_LIBNAME=-lXm 9590 else 9591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: <not found>" >&5 9592$as_echo "<not found>" >&6; } 9593 SKIP_MOTIF=YES 9594 fi 9595 fi 9596fi 9597 9598if test -z "$SKIP_MOTIF"; then 9599 SKIP_ATHENA=YES 9600 SKIP_NEXTAW=YES 9601 GUITYPE=MOTIF 9602 9603fi 9604 9605 9606GUI_X_LIBS= 9607 9608if test -z "$SKIP_ATHENA"; then 9609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Athena header files can be found" >&5 9610$as_echo_n "checking if Athena header files can be found... " >&6; } 9611 cflags_save=$CFLAGS 9612 CFLAGS="$CFLAGS $X_CFLAGS" 9613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9614/* end confdefs.h. */ 9615 9616#include <X11/Intrinsic.h> 9617#include <X11/Xaw/Paned.h> 9618int 9619main () 9620{ 9621 9622 ; 9623 return 0; 9624} 9625_ACEOF 9626if ac_fn_c_try_compile "$LINENO"; then : 9627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9628$as_echo "yes" >&6; } 9629else 9630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9631$as_echo "no" >&6; }; SKIP_ATHENA=YES 9632fi 9633rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9634 CFLAGS=$cflags_save 9635fi 9636 9637if test -z "$SKIP_ATHENA"; then 9638 GUITYPE=ATHENA 9639fi 9640 9641if test -z "$SKIP_NEXTAW"; then 9642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if neXtaw header files can be found" >&5 9643$as_echo_n "checking if neXtaw header files can be found... " >&6; } 9644 cflags_save=$CFLAGS 9645 CFLAGS="$CFLAGS $X_CFLAGS" 9646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9647/* end confdefs.h. */ 9648 9649#include <X11/Intrinsic.h> 9650#include <X11/neXtaw/Paned.h> 9651int 9652main () 9653{ 9654 9655 ; 9656 return 0; 9657} 9658_ACEOF 9659if ac_fn_c_try_compile "$LINENO"; then : 9660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9661$as_echo "yes" >&6; } 9662else 9663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9664$as_echo "no" >&6; }; SKIP_NEXTAW=YES 9665fi 9666rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9667 CFLAGS=$cflags_save 9668fi 9669 9670if test -z "$SKIP_NEXTAW"; then 9671 GUITYPE=NEXTAW 9672fi 9673 9674if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then 9675 if test -n "$GUI_INC_LOC"; then 9676 GUI_INC_LOC=-I"`echo $GUI_INC_LOC|sed 's%-I%%'`" 9677 fi 9678 if test -n "$GUI_LIB_LOC"; then 9679 GUI_LIB_LOC=-L"`echo $GUI_LIB_LOC|sed 's%-L%%'`" 9680 fi 9681 9682 ldflags_save=$LDFLAGS 9683 LDFLAGS="$X_LIBS $LDFLAGS" 9684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5 9685$as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; } 9686if ${ac_cv_lib_Xext_XShapeQueryExtension+:} false; then : 9687 $as_echo_n "(cached) " >&6 9688else 9689 ac_check_lib_save_LIBS=$LIBS 9690LIBS="-lXext -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS" 9691cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9692/* end confdefs.h. */ 9693 9694/* Override any GCC internal prototype to avoid an error. 9695 Use char because int might match the return type of a GCC 9696 builtin and then its argument prototype would still apply. */ 9697#ifdef __cplusplus 9698extern "C" 9699#endif 9700char XShapeQueryExtension (); 9701int 9702main () 9703{ 9704return XShapeQueryExtension (); 9705 ; 9706 return 0; 9707} 9708_ACEOF 9709if ac_fn_c_try_link "$LINENO"; then : 9710 ac_cv_lib_Xext_XShapeQueryExtension=yes 9711else 9712 ac_cv_lib_Xext_XShapeQueryExtension=no 9713fi 9714rm -f core conftest.err conftest.$ac_objext \ 9715 conftest$ac_exeext conftest.$ac_ext 9716LIBS=$ac_check_lib_save_LIBS 9717fi 9718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5 9719$as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; } 9720if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = xyes; then : 9721 GUI_X_LIBS="-lXext" 9722fi 9723 9724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wslen in -lw" >&5 9725$as_echo_n "checking for wslen in -lw... " >&6; } 9726if ${ac_cv_lib_w_wslen+:} false; then : 9727 $as_echo_n "(cached) " >&6 9728else 9729 ac_check_lib_save_LIBS=$LIBS 9730LIBS="-lw $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS" 9731cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9732/* end confdefs.h. */ 9733 9734/* Override any GCC internal prototype to avoid an error. 9735 Use char because int might match the return type of a GCC 9736 builtin and then its argument prototype would still apply. */ 9737#ifdef __cplusplus 9738extern "C" 9739#endif 9740char wslen (); 9741int 9742main () 9743{ 9744return wslen (); 9745 ; 9746 return 0; 9747} 9748_ACEOF 9749if ac_fn_c_try_link "$LINENO"; then : 9750 ac_cv_lib_w_wslen=yes 9751else 9752 ac_cv_lib_w_wslen=no 9753fi 9754rm -f core conftest.err conftest.$ac_objext \ 9755 conftest$ac_exeext conftest.$ac_ext 9756LIBS=$ac_check_lib_save_LIBS 9757fi 9758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_w_wslen" >&5 9759$as_echo "$ac_cv_lib_w_wslen" >&6; } 9760if test "x$ac_cv_lib_w_wslen" = xyes; then : 9761 X_EXTRA_LIBS="$X_EXTRA_LIBS -lw" 9762fi 9763 9764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5 9765$as_echo_n "checking for dlsym in -ldl... " >&6; } 9766if ${ac_cv_lib_dl_dlsym+:} false; then : 9767 $as_echo_n "(cached) " >&6 9768else 9769 ac_check_lib_save_LIBS=$LIBS 9770LIBS="-ldl $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS" 9771cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9772/* end confdefs.h. */ 9773 9774/* Override any GCC internal prototype to avoid an error. 9775 Use char because int might match the return type of a GCC 9776 builtin and then its argument prototype would still apply. */ 9777#ifdef __cplusplus 9778extern "C" 9779#endif 9780char dlsym (); 9781int 9782main () 9783{ 9784return dlsym (); 9785 ; 9786 return 0; 9787} 9788_ACEOF 9789if ac_fn_c_try_link "$LINENO"; then : 9790 ac_cv_lib_dl_dlsym=yes 9791else 9792 ac_cv_lib_dl_dlsym=no 9793fi 9794rm -f core conftest.err conftest.$ac_objext \ 9795 conftest$ac_exeext conftest.$ac_ext 9796LIBS=$ac_check_lib_save_LIBS 9797fi 9798{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5 9799$as_echo "$ac_cv_lib_dl_dlsym" >&6; } 9800if test "x$ac_cv_lib_dl_dlsym" = xyes; then : 9801 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldl" 9802fi 9803 9804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuCreateStippledPixmap in -lXmu" >&5 9805$as_echo_n "checking for XmuCreateStippledPixmap in -lXmu... " >&6; } 9806if ${ac_cv_lib_Xmu_XmuCreateStippledPixmap+:} false; then : 9807 $as_echo_n "(cached) " >&6 9808else 9809 ac_check_lib_save_LIBS=$LIBS 9810LIBS="-lXmu $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS" 9811cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9812/* end confdefs.h. */ 9813 9814/* Override any GCC internal prototype to avoid an error. 9815 Use char because int might match the return type of a GCC 9816 builtin and then its argument prototype would still apply. */ 9817#ifdef __cplusplus 9818extern "C" 9819#endif 9820char XmuCreateStippledPixmap (); 9821int 9822main () 9823{ 9824return XmuCreateStippledPixmap (); 9825 ; 9826 return 0; 9827} 9828_ACEOF 9829if ac_fn_c_try_link "$LINENO"; then : 9830 ac_cv_lib_Xmu_XmuCreateStippledPixmap=yes 9831else 9832 ac_cv_lib_Xmu_XmuCreateStippledPixmap=no 9833fi 9834rm -f core conftest.err conftest.$ac_objext \ 9835 conftest$ac_exeext conftest.$ac_ext 9836LIBS=$ac_check_lib_save_LIBS 9837fi 9838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuCreateStippledPixmap" >&5 9839$as_echo "$ac_cv_lib_Xmu_XmuCreateStippledPixmap" >&6; } 9840if test "x$ac_cv_lib_Xmu_XmuCreateStippledPixmap" = xyes; then : 9841 GUI_X_LIBS="-lXmu $GUI_X_LIBS" 9842fi 9843 9844 if test -z "$SKIP_MOTIF"; then 9845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpEndJob in -lXp" >&5 9846$as_echo_n "checking for XpEndJob in -lXp... " >&6; } 9847if ${ac_cv_lib_Xp_XpEndJob+:} false; then : 9848 $as_echo_n "(cached) " >&6 9849else 9850 ac_check_lib_save_LIBS=$LIBS 9851LIBS="-lXp $GUI_X_LIBS -lXm -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS" 9852cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9853/* end confdefs.h. */ 9854 9855/* Override any GCC internal prototype to avoid an error. 9856 Use char because int might match the return type of a GCC 9857 builtin and then its argument prototype would still apply. */ 9858#ifdef __cplusplus 9859extern "C" 9860#endif 9861char XpEndJob (); 9862int 9863main () 9864{ 9865return XpEndJob (); 9866 ; 9867 return 0; 9868} 9869_ACEOF 9870if ac_fn_c_try_link "$LINENO"; then : 9871 ac_cv_lib_Xp_XpEndJob=yes 9872else 9873 ac_cv_lib_Xp_XpEndJob=no 9874fi 9875rm -f core conftest.err conftest.$ac_objext \ 9876 conftest$ac_exeext conftest.$ac_ext 9877LIBS=$ac_check_lib_save_LIBS 9878fi 9879{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpEndJob" >&5 9880$as_echo "$ac_cv_lib_Xp_XpEndJob" >&6; } 9881if test "x$ac_cv_lib_Xp_XpEndJob" = xyes; then : 9882 GUI_X_LIBS="-lXp $GUI_X_LIBS" 9883fi 9884 9885 fi 9886 LDFLAGS=$ldflags_save 9887 9888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra X11 defines" >&5 9889$as_echo_n "checking for extra X11 defines... " >&6; } 9890 NARROW_PROTO= 9891 rm -fr conftestdir 9892 if mkdir conftestdir; then 9893 cd conftestdir 9894 cat > Imakefile <<'EOF' 9895acfindx: 9896 @echo 'NARROW_PROTO="${PROTO_DEFINES}"' 9897EOF 9898 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then 9899 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` 9900 fi 9901 cd .. 9902 rm -fr conftestdir 9903 fi 9904 if test -z "$NARROW_PROTO"; then 9905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9906$as_echo "no" >&6; } 9907 else 9908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NARROW_PROTO" >&5 9909$as_echo "$NARROW_PROTO" >&6; } 9910 fi 9911 9912fi 9913 9914if test "$enable_xsmp" = "yes"; then 9915 cppflags_save=$CPPFLAGS 9916 CPPFLAGS="$CPPFLAGS $X_CFLAGS" 9917 for ac_header in X11/SM/SMlib.h 9918do : 9919 ac_fn_c_check_header_mongrel "$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default" 9920if test "x$ac_cv_header_X11_SM_SMlib_h" = xyes; then : 9921 cat >>confdefs.h <<_ACEOF 9922#define HAVE_X11_SM_SMLIB_H 1 9923_ACEOF 9924 9925fi 9926 9927done 9928 9929 CPPFLAGS=$cppflags_save 9930fi 9931 9932 9933if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF" -o -z "$SKIP_GTK2" -o -z "$SKIP_GTK3"; then 9934 cppflags_save=$CPPFLAGS 9935 CPPFLAGS="$CPPFLAGS $X_CFLAGS" 9936 for ac_header in X11/xpm.h X11/Sunkeysym.h 9937do : 9938 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 9939ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 9940if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 9941 cat >>confdefs.h <<_ACEOF 9942#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 9943_ACEOF 9944 9945fi 9946 9947done 9948 9949 9950 if test ! "$enable_xim" = "no"; then 9951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XIMText in X11/Xlib.h" >&5 9952$as_echo_n "checking for XIMText in X11/Xlib.h... " >&6; } 9953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9954/* end confdefs.h. */ 9955#include <X11/Xlib.h> 9956_ACEOF 9957if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 9958 $EGREP "XIMText" >/dev/null 2>&1; then : 9959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9960$as_echo "yes" >&6; } 9961else 9962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no; xim has been disabled" >&5 9963$as_echo "no; xim has been disabled" >&6; }; enable_xim="no" 9964fi 9965rm -f conftest* 9966 9967 fi 9968 CPPFLAGS=$cppflags_save 9969 9970 if test "$enable_xim" = "auto" -a "$enable_hangulinput" != "yes" \ 9971 -a "x$GUITYPE" != "xNONE" ; then 9972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: X GUI selected; xim has been enabled" >&5 9973$as_echo "X GUI selected; xim has been enabled" >&6; } 9974 enable_xim="yes" 9975 fi 9976fi 9977 9978if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then 9979 cppflags_save=$CPPFLAGS 9980 CPPFLAGS="$CPPFLAGS $X_CFLAGS" 9981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11/Xmu/Editres.h" >&5 9982$as_echo_n "checking for X11/Xmu/Editres.h... " >&6; } 9983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9984/* end confdefs.h. */ 9985 9986#include <X11/Intrinsic.h> 9987#include <X11/Xmu/Editres.h> 9988int 9989main () 9990{ 9991int i; i = 0; 9992 ; 9993 return 0; 9994} 9995_ACEOF 9996if ac_fn_c_try_compile "$LINENO"; then : 9997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9998$as_echo "yes" >&6; } 9999 $as_echo "#define HAVE_X11_XMU_EDITRES_H 1" >>confdefs.h 10000 10001else 10002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10003$as_echo "no" >&6; } 10004fi 10005rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10006 CPPFLAGS=$cppflags_save 10007fi 10008 10009if test -z "$SKIP_MOTIF"; then 10010 cppflags_save=$CPPFLAGS 10011 CPPFLAGS="$CPPFLAGS $X_CFLAGS" 10012 if test "$zOSUnix" = "yes"; then 10013 xmheader="Xm/Xm.h" 10014 else 10015 xmheader="Xm/Xm.h Xm/XpmP.h Xm/JoinSideT.h Xm/TraitP.h Xm/Manager.h 10016 Xm/UnhighlightT.h Xm/Notebook.h" 10017 fi 10018 for ac_header in $xmheader 10019do : 10020 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 10021ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 10022if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 10023 cat >>confdefs.h <<_ACEOF 10024#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 10025_ACEOF 10026 10027fi 10028 10029done 10030 10031 10032 if test "x$ac_cv_header_Xm_XpmP_h" = "xyes"; then 10033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmAttributes_21 in Xm/XpmP.h" >&5 10034$as_echo_n "checking for XpmAttributes_21 in Xm/XpmP.h... " >&6; } 10035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10036/* end confdefs.h. */ 10037#include <Xm/XpmP.h> 10038int 10039main () 10040{ 10041XpmAttributes_21 attr; 10042 ; 10043 return 0; 10044} 10045_ACEOF 10046if ac_fn_c_try_compile "$LINENO"; then : 10047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10048$as_echo "yes" >&6; }; $as_echo "#define XPMATTRIBUTES_TYPE XpmAttributes_21" >>confdefs.h 10049 10050else 10051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10052$as_echo "no" >&6; }; $as_echo "#define XPMATTRIBUTES_TYPE XpmAttributes" >>confdefs.h 10053 10054 10055fi 10056rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10057 else 10058 $as_echo "#define XPMATTRIBUTES_TYPE XpmAttributes" >>confdefs.h 10059 10060 fi 10061 CPPFLAGS=$cppflags_save 10062fi 10063 10064if test "x$GUITYPE" = "xNONE" -a "$enable_xim" = "yes"; then 10065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI selected; xim has been disabled" >&5 10066$as_echo "no GUI selected; xim has been disabled" >&6; } 10067 enable_xim="no" 10068fi 10069if test "x$GUITYPE" = "xNONE" -a "$enable_fontset" = "yes"; then 10070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI selected; fontset has been disabled" >&5 10071$as_echo "no GUI selected; fontset has been disabled" >&6; } 10072 enable_fontset="no" 10073fi 10074if test "x$GUITYPE:$enable_fontset" = "xGTK:yes"; then 10075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: GTK+ 2 GUI selected; fontset has been disabled" >&5 10076$as_echo "GTK+ 2 GUI selected; fontset has been disabled" >&6; } 10077 enable_fontset="no" 10078fi 10079 10080if test -z "$SKIP_PHOTON"; then 10081 GUITYPE=PHOTONGUI 10082fi 10083 10084 10085 10086 10087 10088 10089if test "$enable_workshop" = "yes" -a -n "$SKIP_MOTIF"; then 10090 as_fn_error $? "cannot use workshop without Motif" "$LINENO" 5 10091fi 10092 10093if test "$enable_xim" = "yes"; then 10094 $as_echo "#define FEAT_XIM 1" >>confdefs.h 10095 10096fi 10097if test "$enable_fontset" = "yes"; then 10098 $as_echo "#define FEAT_XFONTSET 1" >>confdefs.h 10099 10100fi 10101 10102 10103 10104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for /proc link to executable" >&5 10105$as_echo_n "checking for /proc link to executable... " >&6; } 10106if test -L "/proc/self/exe"; then 10107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: /proc/self/exe" >&5 10108$as_echo "/proc/self/exe" >&6; } 10109 $as_echo "#define PROC_EXE_LINK \"/proc/self/exe\"" >>confdefs.h 10110 10111elif test -L "/proc/self/path/a.out"; then 10112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: /proc/self/path/a.out" >&5 10113$as_echo "/proc/self/path/a.out" >&6; } 10114 $as_echo "#define PROC_EXE_LINK \"/proc/self/path/a.out\"" >>confdefs.h 10115 10116elif test -L "/proc/curproc/file"; then 10117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: /proc/curproc/file" >&5 10118$as_echo "/proc/curproc/file" >&6; } 10119 $as_echo "#define PROC_EXE_LINK \"/proc/curproc/file\"" >>confdefs.h 10120 10121else 10122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10123$as_echo "no" >&6; } 10124fi 10125 10126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGWIN or MSYS environment" >&5 10127$as_echo_n "checking for CYGWIN or MSYS environment... " >&6; } 10128case `uname` in 10129 CYGWIN*|MSYS*) CYGWIN=yes; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10130$as_echo "yes" >&6; } 10131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGWIN clipboard support" >&5 10132$as_echo_n "checking for CYGWIN clipboard support... " >&6; } 10133 if test "x$with_x" = "xno" ; then 10134 OS_EXTRA_SRC=winclip.c; OS_EXTRA_OBJ=objects/winclip.o 10135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10136$as_echo "yes" >&6; } 10137 $as_echo "#define FEAT_CYGWIN_WIN32_CLIPBOARD 1" >>confdefs.h 10138 10139 else 10140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - using X11" >&5 10141$as_echo "no - using X11" >&6; } 10142 fi ;; 10143 10144 *) CYGWIN=no; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10145$as_echo "no" >&6; };; 10146esac 10147 10148if test "$enable_hangulinput" = "yes"; then 10149 if test "x$GUITYPE" = "xNONE"; then 10150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no GUI selected; hangul input has been disabled" >&5 10151$as_echo "no GUI selected; hangul input has been disabled" >&6; } 10152 enable_hangulinput=no 10153 else 10154 $as_echo "#define FEAT_HANGULIN 1" >>confdefs.h 10155 10156 HANGULIN_SRC=hangulin.c 10157 10158 HANGULIN_OBJ=objects/hangulin.o 10159 10160 fi 10161fi 10162 10163 10164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether toupper is broken" >&5 10165$as_echo_n "checking whether toupper is broken... " >&6; } 10166if ${vim_cv_toupper_broken+:} false; then : 10167 $as_echo_n "(cached) " >&6 10168else 10169 10170 if test "$cross_compiling" = yes; then : 10171 10172 as_fn_error $? "cross-compiling: please set 'vim_cv_toupper_broken'" "$LINENO" 5 10173 10174else 10175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10176/* end confdefs.h. */ 10177 10178#include "confdefs.h" 10179#include <ctype.h> 10180#if STDC_HEADERS 10181# include <stdlib.h> 10182# include <stddef.h> 10183#endif 10184main() { exit(toupper('A') == 'A' && tolower('z') == 'z'); } 10185 10186_ACEOF 10187if ac_fn_c_try_run "$LINENO"; then : 10188 10189 vim_cv_toupper_broken=yes 10190 10191else 10192 10193 vim_cv_toupper_broken=no 10194 10195fi 10196rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 10197 conftest.$ac_objext conftest.beam conftest.$ac_ext 10198fi 10199 10200fi 10201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_toupper_broken" >&5 10202$as_echo "$vim_cv_toupper_broken" >&6; } 10203 10204if test "x$vim_cv_toupper_broken" = "xyes" ; then 10205 $as_echo "#define BROKEN_TOUPPER 1" >>confdefs.h 10206 10207fi 10208 10209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __DATE__ and __TIME__ work" >&5 10210$as_echo_n "checking whether __DATE__ and __TIME__ work... " >&6; } 10211cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10212/* end confdefs.h. */ 10213#include <stdio.h> 10214int 10215main () 10216{ 10217printf("(" __DATE__ " " __TIME__ ")"); 10218 ; 10219 return 0; 10220} 10221_ACEOF 10222if ac_fn_c_try_compile "$LINENO"; then : 10223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10224$as_echo "yes" >&6; }; $as_echo "#define HAVE_DATE_TIME 1" >>confdefs.h 10225 10226else 10227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10228$as_echo "no" >&6; } 10229fi 10230rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10231 10232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __attribute__((unused)) is allowed" >&5 10233$as_echo_n "checking whether __attribute__((unused)) is allowed... " >&6; } 10234cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10235/* end confdefs.h. */ 10236#include <stdio.h> 10237int 10238main () 10239{ 10240int x __attribute__((unused)); 10241 ; 10242 return 0; 10243} 10244_ACEOF 10245if ac_fn_c_try_compile "$LINENO"; then : 10246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10247$as_echo "yes" >&6; }; $as_echo "#define HAVE_ATTRIBUTE_UNUSED 1" >>confdefs.h 10248 10249else 10250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10251$as_echo "no" >&6; } 10252fi 10253rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10254 10255ac_fn_c_check_header_mongrel "$LINENO" "elf.h" "ac_cv_header_elf_h" "$ac_includes_default" 10256if test "x$ac_cv_header_elf_h" = xyes; then : 10257 HAS_ELF=1 10258fi 10259 10260 10261if test "$HAS_ELF" = 1; then 10262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lelf" >&5 10263$as_echo_n "checking for main in -lelf... " >&6; } 10264if ${ac_cv_lib_elf_main+:} false; then : 10265 $as_echo_n "(cached) " >&6 10266else 10267 ac_check_lib_save_LIBS=$LIBS 10268LIBS="-lelf $LIBS" 10269cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10270/* end confdefs.h. */ 10271 10272 10273int 10274main () 10275{ 10276return main (); 10277 ; 10278 return 0; 10279} 10280_ACEOF 10281if ac_fn_c_try_link "$LINENO"; then : 10282 ac_cv_lib_elf_main=yes 10283else 10284 ac_cv_lib_elf_main=no 10285fi 10286rm -f core conftest.err conftest.$ac_objext \ 10287 conftest$ac_exeext conftest.$ac_ext 10288LIBS=$ac_check_lib_save_LIBS 10289fi 10290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_main" >&5 10291$as_echo "$ac_cv_lib_elf_main" >&6; } 10292if test "x$ac_cv_lib_elf_main" = xyes; then : 10293 cat >>confdefs.h <<_ACEOF 10294#define HAVE_LIBELF 1 10295_ACEOF 10296 10297 LIBS="-lelf $LIBS" 10298 10299fi 10300 10301fi 10302 10303ac_header_dirent=no 10304for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do 10305 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` 10306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 10307$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } 10308if eval \${$as_ac_Header+:} false; then : 10309 $as_echo_n "(cached) " >&6 10310else 10311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10312/* end confdefs.h. */ 10313#include <sys/types.h> 10314#include <$ac_hdr> 10315 10316int 10317main () 10318{ 10319if ((DIR *) 0) 10320return 0; 10321 ; 10322 return 0; 10323} 10324_ACEOF 10325if ac_fn_c_try_compile "$LINENO"; then : 10326 eval "$as_ac_Header=yes" 10327else 10328 eval "$as_ac_Header=no" 10329fi 10330rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10331fi 10332eval ac_res=\$$as_ac_Header 10333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 10334$as_echo "$ac_res" >&6; } 10335if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 10336 cat >>confdefs.h <<_ACEOF 10337#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 10338_ACEOF 10339 10340ac_header_dirent=$ac_hdr; break 10341fi 10342 10343done 10344# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 10345if test $ac_header_dirent = dirent.h; then 10346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 10347$as_echo_n "checking for library containing opendir... " >&6; } 10348if ${ac_cv_search_opendir+:} false; then : 10349 $as_echo_n "(cached) " >&6 10350else 10351 ac_func_search_save_LIBS=$LIBS 10352cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10353/* end confdefs.h. */ 10354 10355/* Override any GCC internal prototype to avoid an error. 10356 Use char because int might match the return type of a GCC 10357 builtin and then its argument prototype would still apply. */ 10358#ifdef __cplusplus 10359extern "C" 10360#endif 10361char opendir (); 10362int 10363main () 10364{ 10365return opendir (); 10366 ; 10367 return 0; 10368} 10369_ACEOF 10370for ac_lib in '' dir; do 10371 if test -z "$ac_lib"; then 10372 ac_res="none required" 10373 else 10374 ac_res=-l$ac_lib 10375 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 10376 fi 10377 if ac_fn_c_try_link "$LINENO"; then : 10378 ac_cv_search_opendir=$ac_res 10379fi 10380rm -f core conftest.err conftest.$ac_objext \ 10381 conftest$ac_exeext 10382 if ${ac_cv_search_opendir+:} false; then : 10383 break 10384fi 10385done 10386if ${ac_cv_search_opendir+:} false; then : 10387 10388else 10389 ac_cv_search_opendir=no 10390fi 10391rm conftest.$ac_ext 10392LIBS=$ac_func_search_save_LIBS 10393fi 10394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 10395$as_echo "$ac_cv_search_opendir" >&6; } 10396ac_res=$ac_cv_search_opendir 10397if test "$ac_res" != no; then : 10398 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 10399 10400fi 10401 10402else 10403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 10404$as_echo_n "checking for library containing opendir... " >&6; } 10405if ${ac_cv_search_opendir+:} false; then : 10406 $as_echo_n "(cached) " >&6 10407else 10408 ac_func_search_save_LIBS=$LIBS 10409cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10410/* end confdefs.h. */ 10411 10412/* Override any GCC internal prototype to avoid an error. 10413 Use char because int might match the return type of a GCC 10414 builtin and then its argument prototype would still apply. */ 10415#ifdef __cplusplus 10416extern "C" 10417#endif 10418char opendir (); 10419int 10420main () 10421{ 10422return opendir (); 10423 ; 10424 return 0; 10425} 10426_ACEOF 10427for ac_lib in '' x; do 10428 if test -z "$ac_lib"; then 10429 ac_res="none required" 10430 else 10431 ac_res=-l$ac_lib 10432 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 10433 fi 10434 if ac_fn_c_try_link "$LINENO"; then : 10435 ac_cv_search_opendir=$ac_res 10436fi 10437rm -f core conftest.err conftest.$ac_objext \ 10438 conftest$ac_exeext 10439 if ${ac_cv_search_opendir+:} false; then : 10440 break 10441fi 10442done 10443if ${ac_cv_search_opendir+:} false; then : 10444 10445else 10446 ac_cv_search_opendir=no 10447fi 10448rm conftest.$ac_ext 10449LIBS=$ac_func_search_save_LIBS 10450fi 10451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 10452$as_echo "$ac_cv_search_opendir" >&6; } 10453ac_res=$ac_cv_search_opendir 10454if test "$ac_res" != no; then : 10455 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 10456 10457fi 10458 10459fi 10460 10461 10462if test $ac_cv_header_sys_wait_h = no; then 10463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that defines union wait" >&5 10464$as_echo_n "checking for sys/wait.h that defines union wait... " >&6; } 10465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10466/* end confdefs.h. */ 10467#include <sys/wait.h> 10468int 10469main () 10470{ 10471union wait xx, yy; xx = yy 10472 ; 10473 return 0; 10474} 10475_ACEOF 10476if ac_fn_c_try_compile "$LINENO"; then : 10477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10478$as_echo "yes" >&6; } 10479 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h 10480 10481 $as_echo "#define HAVE_UNION_WAIT 1" >>confdefs.h 10482 10483else 10484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10485$as_echo "no" >&6; } 10486fi 10487rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10488fi 10489 10490for ac_header in stdint.h stdlib.h string.h \ 10491 sys/select.h sys/utsname.h termcap.h fcntl.h \ 10492 sgtty.h sys/ioctl.h sys/time.h sys/types.h \ 10493 termio.h iconv.h inttypes.h langinfo.h math.h \ 10494 unistd.h stropts.h errno.h sys/resource.h \ 10495 sys/systeminfo.h locale.h sys/stream.h termios.h \ 10496 libc.h sys/statfs.h poll.h sys/poll.h pwd.h \ 10497 utime.h sys/param.h libintl.h libgen.h \ 10498 util/debug.h util/msg18n.h frame.h sys/acl.h \ 10499 sys/access.h sys/sysinfo.h wchar.h wctype.h 10500do : 10501 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 10502ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 10503if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 10504 cat >>confdefs.h <<_ACEOF 10505#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 10506_ACEOF 10507 10508fi 10509 10510done 10511 10512 10513for ac_header in sys/ptem.h 10514do : 10515 ac_fn_c_check_header_compile "$LINENO" "sys/ptem.h" "ac_cv_header_sys_ptem_h" "#if defined HAVE_SYS_STREAM_H 10516# include <sys/stream.h> 10517#endif 10518" 10519if test "x$ac_cv_header_sys_ptem_h" = xyes; then : 10520 cat >>confdefs.h <<_ACEOF 10521#define HAVE_SYS_PTEM_H 1 10522_ACEOF 10523 10524fi 10525 10526done 10527 10528 10529for ac_header in sys/sysctl.h 10530do : 10531 ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "#if defined HAVE_SYS_PARAM_H 10532# include <sys/param.h> 10533#endif 10534" 10535if test "x$ac_cv_header_sys_sysctl_h" = xyes; then : 10536 cat >>confdefs.h <<_ACEOF 10537#define HAVE_SYS_SYSCTL_H 1 10538_ACEOF 10539 10540fi 10541 10542done 10543 10544 10545 10546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_np.h" >&5 10547$as_echo_n "checking for pthread_np.h... " >&6; } 10548cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10549/* end confdefs.h. */ 10550 10551#include <pthread.h> 10552#include <pthread_np.h> 10553int 10554main () 10555{ 10556int i; i = 0; 10557 ; 10558 return 0; 10559} 10560_ACEOF 10561if ac_fn_c_try_compile "$LINENO"; then : 10562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10563$as_echo "yes" >&6; } 10564 $as_echo "#define HAVE_PTHREAD_NP_H 1" >>confdefs.h 10565 10566else 10567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10568$as_echo "no" >&6; } 10569fi 10570rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10571 10572for ac_header in strings.h 10573do : 10574 ac_fn_c_check_header_mongrel "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default" 10575if test "x$ac_cv_header_strings_h" = xyes; then : 10576 cat >>confdefs.h <<_ACEOF 10577#define HAVE_STRINGS_H 1 10578_ACEOF 10579 10580fi 10581 10582done 10583 10584if test "x$MACOSX" = "xyes"; then 10585 $as_echo "#define NO_STRINGS_WITH_STRING_H 1" >>confdefs.h 10586 10587else 10588 10589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if strings.h can be included after string.h" >&5 10590$as_echo_n "checking if strings.h can be included after string.h... " >&6; } 10591cppflags_save=$CPPFLAGS 10592CPPFLAGS="$CPPFLAGS $X_CFLAGS" 10593cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10594/* end confdefs.h. */ 10595 10596#if defined(_AIX) && !defined(_AIX51) && !defined(_NO_PROTO) 10597# define _NO_PROTO /* like in os_unix.h, causes conflict for AIX (Winn) */ 10598 /* but don't do it on AIX 5.1 (Uribarri) */ 10599#endif 10600#ifdef HAVE_XM_XM_H 10601# include <Xm/Xm.h> /* This breaks it for HP-UX 11 (Squassabia) */ 10602#endif 10603#ifdef HAVE_STRING_H 10604# include <string.h> 10605#endif 10606#if defined(HAVE_STRINGS_H) 10607# include <strings.h> 10608#endif 10609 10610int 10611main () 10612{ 10613int i; i = 0; 10614 ; 10615 return 0; 10616} 10617_ACEOF 10618if ac_fn_c_try_compile "$LINENO"; then : 10619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10620$as_echo "yes" >&6; } 10621else 10622 $as_echo "#define NO_STRINGS_WITH_STRING_H 1" >>confdefs.h 10623 10624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10625$as_echo "no" >&6; } 10626fi 10627rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10628CPPFLAGS=$cppflags_save 10629fi 10630 10631if test $ac_cv_c_compiler_gnu = yes; then 10632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5 10633$as_echo_n "checking whether $CC needs -traditional... " >&6; } 10634if ${ac_cv_prog_gcc_traditional+:} false; then : 10635 $as_echo_n "(cached) " >&6 10636else 10637 ac_pattern="Autoconf.*'x'" 10638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10639/* end confdefs.h. */ 10640#include <sgtty.h> 10641Autoconf TIOCGETP 10642_ACEOF 10643if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 10644 $EGREP "$ac_pattern" >/dev/null 2>&1; then : 10645 ac_cv_prog_gcc_traditional=yes 10646else 10647 ac_cv_prog_gcc_traditional=no 10648fi 10649rm -f conftest* 10650 10651 10652 if test $ac_cv_prog_gcc_traditional = no; then 10653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10654/* end confdefs.h. */ 10655#include <termio.h> 10656Autoconf TCGETA 10657_ACEOF 10658if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 10659 $EGREP "$ac_pattern" >/dev/null 2>&1; then : 10660 ac_cv_prog_gcc_traditional=yes 10661fi 10662rm -f conftest* 10663 10664 fi 10665fi 10666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5 10667$as_echo "$ac_cv_prog_gcc_traditional" >&6; } 10668 if test $ac_cv_prog_gcc_traditional = yes; then 10669 CC="$CC -traditional" 10670 fi 10671fi 10672 10673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 10674$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 10675if ${ac_cv_c_const+:} false; then : 10676 $as_echo_n "(cached) " >&6 10677else 10678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10679/* end confdefs.h. */ 10680 10681int 10682main () 10683{ 10684 10685#ifndef __cplusplus 10686 /* Ultrix mips cc rejects this sort of thing. */ 10687 typedef int charset[2]; 10688 const charset cs = { 0, 0 }; 10689 /* SunOS 4.1.1 cc rejects this. */ 10690 char const *const *pcpcc; 10691 char **ppc; 10692 /* NEC SVR4.0.2 mips cc rejects this. */ 10693 struct point {int x, y;}; 10694 static struct point const zero = {0,0}; 10695 /* AIX XL C 1.02.0.0 rejects this. 10696 It does not let you subtract one const X* pointer from another in 10697 an arm of an if-expression whose if-part is not a constant 10698 expression */ 10699 const char *g = "string"; 10700 pcpcc = &g + (g ? g-g : 0); 10701 /* HPUX 7.0 cc rejects these. */ 10702 ++pcpcc; 10703 ppc = (char**) pcpcc; 10704 pcpcc = (char const *const *) ppc; 10705 { /* SCO 3.2v4 cc rejects this sort of thing. */ 10706 char tx; 10707 char *t = &tx; 10708 char const *s = 0 ? (char *) 0 : (char const *) 0; 10709 10710 *t++ = 0; 10711 if (s) return 0; 10712 } 10713 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 10714 int x[] = {25, 17}; 10715 const int *foo = &x[0]; 10716 ++foo; 10717 } 10718 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 10719 typedef const int *iptr; 10720 iptr p = 0; 10721 ++p; 10722 } 10723 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying 10724 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 10725 struct s { int j; const int *ap[3]; } bx; 10726 struct s *b = &bx; b->j = 5; 10727 } 10728 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 10729 const int foo = 10; 10730 if (!foo) return 0; 10731 } 10732 return !cs[0] && !zero.x; 10733#endif 10734 10735 ; 10736 return 0; 10737} 10738_ACEOF 10739if ac_fn_c_try_compile "$LINENO"; then : 10740 ac_cv_c_const=yes 10741else 10742 ac_cv_c_const=no 10743fi 10744rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10745fi 10746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 10747$as_echo "$ac_cv_c_const" >&6; } 10748if test $ac_cv_c_const = no; then 10749 10750$as_echo "#define const /**/" >>confdefs.h 10751 10752fi 10753 10754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5 10755$as_echo_n "checking for working volatile... " >&6; } 10756if ${ac_cv_c_volatile+:} false; then : 10757 $as_echo_n "(cached) " >&6 10758else 10759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10760/* end confdefs.h. */ 10761 10762int 10763main () 10764{ 10765 10766volatile int x; 10767int * volatile y = (int *) 0; 10768return !x && !y; 10769 ; 10770 return 0; 10771} 10772_ACEOF 10773if ac_fn_c_try_compile "$LINENO"; then : 10774 ac_cv_c_volatile=yes 10775else 10776 ac_cv_c_volatile=no 10777fi 10778rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10779fi 10780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5 10781$as_echo "$ac_cv_c_volatile" >&6; } 10782if test $ac_cv_c_volatile = no; then 10783 10784$as_echo "#define volatile /**/" >>confdefs.h 10785 10786fi 10787 10788ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default" 10789if test "x$ac_cv_type_mode_t" = xyes; then : 10790 10791else 10792 10793cat >>confdefs.h <<_ACEOF 10794#define mode_t int 10795_ACEOF 10796 10797fi 10798 10799ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" 10800if test "x$ac_cv_type_off_t" = xyes; then : 10801 10802else 10803 10804cat >>confdefs.h <<_ACEOF 10805#define off_t long int 10806_ACEOF 10807 10808fi 10809 10810ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" 10811if test "x$ac_cv_type_pid_t" = xyes; then : 10812 10813else 10814 10815cat >>confdefs.h <<_ACEOF 10816#define pid_t int 10817_ACEOF 10818 10819fi 10820 10821ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 10822if test "x$ac_cv_type_size_t" = xyes; then : 10823 10824else 10825 10826cat >>confdefs.h <<_ACEOF 10827#define size_t unsigned int 10828_ACEOF 10829 10830fi 10831 10832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 10833$as_echo_n "checking for uid_t in sys/types.h... " >&6; } 10834if ${ac_cv_type_uid_t+:} false; then : 10835 $as_echo_n "(cached) " >&6 10836else 10837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10838/* end confdefs.h. */ 10839#include <sys/types.h> 10840 10841_ACEOF 10842if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 10843 $EGREP "uid_t" >/dev/null 2>&1; then : 10844 ac_cv_type_uid_t=yes 10845else 10846 ac_cv_type_uid_t=no 10847fi 10848rm -f conftest* 10849 10850fi 10851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 10852$as_echo "$ac_cv_type_uid_t" >&6; } 10853if test $ac_cv_type_uid_t = no; then 10854 10855$as_echo "#define uid_t int" >>confdefs.h 10856 10857 10858$as_echo "#define gid_t int" >>confdefs.h 10859 10860fi 10861 10862ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t" 10863case $ac_cv_c_uint32_t in #( 10864 no|yes) ;; #( 10865 *) 10866 10867$as_echo "#define _UINT32_T 1" >>confdefs.h 10868 10869 10870cat >>confdefs.h <<_ACEOF 10871#define uint32_t $ac_cv_c_uint32_t 10872_ACEOF 10873;; 10874 esac 10875 10876 10877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 10878$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } 10879if ${ac_cv_header_time+:} false; then : 10880 $as_echo_n "(cached) " >&6 10881else 10882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10883/* end confdefs.h. */ 10884#include <sys/types.h> 10885#include <sys/time.h> 10886#include <time.h> 10887 10888int 10889main () 10890{ 10891if ((struct tm *) 0) 10892return 0; 10893 ; 10894 return 0; 10895} 10896_ACEOF 10897if ac_fn_c_try_compile "$LINENO"; then : 10898 ac_cv_header_time=yes 10899else 10900 ac_cv_header_time=no 10901fi 10902rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10903fi 10904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 10905$as_echo "$ac_cv_header_time" >&6; } 10906if test $ac_cv_header_time = yes; then 10907 10908$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h 10909 10910fi 10911 10912ac_fn_c_check_type "$LINENO" "ino_t" "ac_cv_type_ino_t" "$ac_includes_default" 10913if test "x$ac_cv_type_ino_t" = xyes; then : 10914 10915else 10916 10917cat >>confdefs.h <<_ACEOF 10918#define ino_t long 10919_ACEOF 10920 10921fi 10922 10923ac_fn_c_check_type "$LINENO" "dev_t" "ac_cv_type_dev_t" "$ac_includes_default" 10924if test "x$ac_cv_type_dev_t" = xyes; then : 10925 10926else 10927 10928cat >>confdefs.h <<_ACEOF 10929#define dev_t unsigned 10930_ACEOF 10931 10932fi 10933 10934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 10935$as_echo_n "checking whether byte ordering is bigendian... " >&6; } 10936if ${ac_cv_c_bigendian+:} false; then : 10937 $as_echo_n "(cached) " >&6 10938else 10939 ac_cv_c_bigendian=unknown 10940 # See if we're dealing with a universal compiler. 10941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10942/* end confdefs.h. */ 10943#ifndef __APPLE_CC__ 10944 not a universal capable compiler 10945 #endif 10946 typedef int dummy; 10947 10948_ACEOF 10949if ac_fn_c_try_compile "$LINENO"; then : 10950 10951 # Check for potential -arch flags. It is not universal unless 10952 # there are at least two -arch flags with different values. 10953 ac_arch= 10954 ac_prev= 10955 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 10956 if test -n "$ac_prev"; then 10957 case $ac_word in 10958 i?86 | x86_64 | ppc | ppc64) 10959 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 10960 ac_arch=$ac_word 10961 else 10962 ac_cv_c_bigendian=universal 10963 break 10964 fi 10965 ;; 10966 esac 10967 ac_prev= 10968 elif test "x$ac_word" = "x-arch"; then 10969 ac_prev=arch 10970 fi 10971 done 10972fi 10973rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10974 if test $ac_cv_c_bigendian = unknown; then 10975 # See if sys/param.h defines the BYTE_ORDER macro. 10976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10977/* end confdefs.h. */ 10978#include <sys/types.h> 10979 #include <sys/param.h> 10980 10981int 10982main () 10983{ 10984#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 10985 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 10986 && LITTLE_ENDIAN) 10987 bogus endian macros 10988 #endif 10989 10990 ; 10991 return 0; 10992} 10993_ACEOF 10994if ac_fn_c_try_compile "$LINENO"; then : 10995 # It does; now see whether it defined to BIG_ENDIAN or not. 10996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10997/* end confdefs.h. */ 10998#include <sys/types.h> 10999 #include <sys/param.h> 11000 11001int 11002main () 11003{ 11004#if BYTE_ORDER != BIG_ENDIAN 11005 not big endian 11006 #endif 11007 11008 ; 11009 return 0; 11010} 11011_ACEOF 11012if ac_fn_c_try_compile "$LINENO"; then : 11013 ac_cv_c_bigendian=yes 11014else 11015 ac_cv_c_bigendian=no 11016fi 11017rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11018fi 11019rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11020 fi 11021 if test $ac_cv_c_bigendian = unknown; then 11022 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 11023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11024/* end confdefs.h. */ 11025#include <limits.h> 11026 11027int 11028main () 11029{ 11030#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 11031 bogus endian macros 11032 #endif 11033 11034 ; 11035 return 0; 11036} 11037_ACEOF 11038if ac_fn_c_try_compile "$LINENO"; then : 11039 # It does; now see whether it defined to _BIG_ENDIAN or not. 11040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11041/* end confdefs.h. */ 11042#include <limits.h> 11043 11044int 11045main () 11046{ 11047#ifndef _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 # Compile a test program. 11066 if test "$cross_compiling" = yes; then : 11067 # Try to guess by grepping values from an object file. 11068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11069/* end confdefs.h. */ 11070short int ascii_mm[] = 11071 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 11072 short int ascii_ii[] = 11073 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 11074 int use_ascii (int i) { 11075 return ascii_mm[i] + ascii_ii[i]; 11076 } 11077 short int ebcdic_ii[] = 11078 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 11079 short int ebcdic_mm[] = 11080 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 11081 int use_ebcdic (int i) { 11082 return ebcdic_mm[i] + ebcdic_ii[i]; 11083 } 11084 extern int foo; 11085 11086int 11087main () 11088{ 11089return use_ascii (foo) == use_ebcdic (foo); 11090 ; 11091 return 0; 11092} 11093_ACEOF 11094if ac_fn_c_try_compile "$LINENO"; then : 11095 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 11096 ac_cv_c_bigendian=yes 11097 fi 11098 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 11099 if test "$ac_cv_c_bigendian" = unknown; then 11100 ac_cv_c_bigendian=no 11101 else 11102 # finding both strings is unlikely to happen, but who knows? 11103 ac_cv_c_bigendian=unknown 11104 fi 11105 fi 11106fi 11107rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11108else 11109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11110/* end confdefs.h. */ 11111$ac_includes_default 11112int 11113main () 11114{ 11115 11116 /* Are we little or big endian? From Harbison&Steele. */ 11117 union 11118 { 11119 long int l; 11120 char c[sizeof (long int)]; 11121 } u; 11122 u.l = 1; 11123 return u.c[sizeof (long int) - 1] == 1; 11124 11125 ; 11126 return 0; 11127} 11128_ACEOF 11129if ac_fn_c_try_run "$LINENO"; then : 11130 ac_cv_c_bigendian=no 11131else 11132 ac_cv_c_bigendian=yes 11133fi 11134rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11135 conftest.$ac_objext conftest.beam conftest.$ac_ext 11136fi 11137 11138 fi 11139fi 11140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 11141$as_echo "$ac_cv_c_bigendian" >&6; } 11142 case $ac_cv_c_bigendian in #( 11143 yes) 11144 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h 11145;; #( 11146 no) 11147 ;; #( 11148 universal) 11149 11150$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h 11151 11152 ;; #( 11153 *) 11154 as_fn_error $? "unknown endianness 11155 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; 11156 esac 11157 11158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 11159$as_echo_n "checking for inline... " >&6; } 11160if ${ac_cv_c_inline+:} false; then : 11161 $as_echo_n "(cached) " >&6 11162else 11163 ac_cv_c_inline=no 11164for ac_kw in inline __inline__ __inline; do 11165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11166/* end confdefs.h. */ 11167#ifndef __cplusplus 11168typedef int foo_t; 11169static $ac_kw foo_t static_foo () {return 0; } 11170$ac_kw foo_t foo () {return 0; } 11171#endif 11172 11173_ACEOF 11174if ac_fn_c_try_compile "$LINENO"; then : 11175 ac_cv_c_inline=$ac_kw 11176fi 11177rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11178 test "$ac_cv_c_inline" != no && break 11179done 11180 11181fi 11182{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 11183$as_echo "$ac_cv_c_inline" >&6; } 11184 11185case $ac_cv_c_inline in 11186 inline | yes) ;; 11187 *) 11188 case $ac_cv_c_inline in 11189 no) ac_val=;; 11190 *) ac_val=$ac_cv_c_inline;; 11191 esac 11192 cat >>confdefs.h <<_ACEOF 11193#ifndef __cplusplus 11194#define inline $ac_val 11195#endif 11196_ACEOF 11197 ;; 11198esac 11199 11200 11201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for rlim_t" >&5 11202$as_echo_n "checking for rlim_t... " >&6; } 11203if eval "test \"`echo '$''{'ac_cv_type_rlim_t'+set}'`\" = set"; then 11204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (cached) $ac_cv_type_rlim_t" >&5 11205$as_echo "(cached) $ac_cv_type_rlim_t" >&6; } 11206else 11207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11208/* end confdefs.h. */ 11209 11210#include <sys/types.h> 11211#if STDC_HEADERS 11212# include <stdlib.h> 11213# include <stddef.h> 11214#endif 11215#ifdef HAVE_SYS_RESOURCE_H 11216# include <sys/resource.h> 11217#endif 11218 11219_ACEOF 11220if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11221 $EGREP "(^|[^a-zA-Z_0-9])rlim_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then : 11222 ac_cv_type_rlim_t=yes 11223else 11224 ac_cv_type_rlim_t=no 11225fi 11226rm -f conftest* 11227 11228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_rlim_t" >&5 11229$as_echo "$ac_cv_type_rlim_t" >&6; } 11230fi 11231if test $ac_cv_type_rlim_t = no; then 11232 cat >> confdefs.h <<\EOF 11233#define rlim_t unsigned long 11234EOF 11235fi 11236 11237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stack_t" >&5 11238$as_echo_n "checking for stack_t... " >&6; } 11239if eval "test \"`echo '$''{'ac_cv_type_stack_t'+set}'`\" = set"; then 11240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (cached) $ac_cv_type_stack_t" >&5 11241$as_echo "(cached) $ac_cv_type_stack_t" >&6; } 11242else 11243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11244/* end confdefs.h. */ 11245 11246#include <sys/types.h> 11247#if STDC_HEADERS 11248# include <stdlib.h> 11249# include <stddef.h> 11250#endif 11251#include <signal.h> 11252 11253_ACEOF 11254if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11255 $EGREP "stack_t" >/dev/null 2>&1; then : 11256 ac_cv_type_stack_t=yes 11257else 11258 ac_cv_type_stack_t=no 11259fi 11260rm -f conftest* 11261 11262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_stack_t" >&5 11263$as_echo "$ac_cv_type_stack_t" >&6; } 11264fi 11265if test $ac_cv_type_stack_t = no; then 11266 cat >> confdefs.h <<\EOF 11267#define stack_t struct sigaltstack 11268EOF 11269fi 11270 11271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stack_t has an ss_base field" >&5 11272$as_echo_n "checking whether stack_t has an ss_base field... " >&6; } 11273cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11274/* end confdefs.h. */ 11275 11276#include <sys/types.h> 11277#if STDC_HEADERS 11278# include <stdlib.h> 11279# include <stddef.h> 11280#endif 11281#include <signal.h> 11282#include "confdefs.h" 11283 11284int 11285main () 11286{ 11287stack_t sigstk; sigstk.ss_base = 0; 11288 ; 11289 return 0; 11290} 11291_ACEOF 11292if ac_fn_c_try_compile "$LINENO"; then : 11293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11294$as_echo "yes" >&6; }; $as_echo "#define HAVE_SS_BASE 1" >>confdefs.h 11295 11296else 11297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11298$as_echo "no" >&6; } 11299fi 11300rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11301 11302olibs="$LIBS" 11303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --with-tlib argument" >&5 11304$as_echo_n "checking --with-tlib argument... " >&6; } 11305 11306# Check whether --with-tlib was given. 11307if test "${with_tlib+set}" = set; then : 11308 withval=$with_tlib; 11309fi 11310 11311if test -n "$with_tlib"; then 11312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_tlib" >&5 11313$as_echo "$with_tlib" >&6; } 11314 LIBS="$LIBS -l$with_tlib" 11315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linking with $with_tlib library" >&5 11316$as_echo_n "checking for linking with $with_tlib library... " >&6; } 11317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11318/* end confdefs.h. */ 11319 11320int 11321main () 11322{ 11323 11324 ; 11325 return 0; 11326} 11327_ACEOF 11328if ac_fn_c_try_link "$LINENO"; then : 11329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK" >&5 11330$as_echo "OK" >&6; } 11331else 11332 as_fn_error $? "FAILED" "$LINENO" 5 11333fi 11334rm -f core conftest.err conftest.$ac_objext \ 11335 conftest$ac_exeext conftest.$ac_ext 11336 olibs="$LIBS" 11337else 11338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: empty: automatic terminal library selection" >&5 11339$as_echo "empty: automatic terminal library selection" >&6; } 11340 case "`uname -s 2>/dev/null`" in 11341 OSF1|SCO_SV) tlibs="tinfo ncurses curses termlib termcap";; 11342 *) tlibs="tinfo ncurses termlib termcap curses";; 11343 esac 11344 for libname in $tlibs; do 11345 as_ac_Lib=`$as_echo "ac_cv_lib_${libname}''_tgetent" | $as_tr_sh` 11346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -l${libname}" >&5 11347$as_echo_n "checking for tgetent in -l${libname}... " >&6; } 11348if eval \${$as_ac_Lib+:} false; then : 11349 $as_echo_n "(cached) " >&6 11350else 11351 ac_check_lib_save_LIBS=$LIBS 11352LIBS="-l${libname} $LIBS" 11353cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11354/* end confdefs.h. */ 11355 11356/* Override any GCC internal prototype to avoid an error. 11357 Use char because int might match the return type of a GCC 11358 builtin and then its argument prototype would still apply. */ 11359#ifdef __cplusplus 11360extern "C" 11361#endif 11362char tgetent (); 11363int 11364main () 11365{ 11366return tgetent (); 11367 ; 11368 return 0; 11369} 11370_ACEOF 11371if ac_fn_c_try_link "$LINENO"; then : 11372 eval "$as_ac_Lib=yes" 11373else 11374 eval "$as_ac_Lib=no" 11375fi 11376rm -f core conftest.err conftest.$ac_objext \ 11377 conftest$ac_exeext conftest.$ac_ext 11378LIBS=$ac_check_lib_save_LIBS 11379fi 11380eval ac_res=\$$as_ac_Lib 11381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 11382$as_echo "$ac_res" >&6; } 11383if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 11384 cat >>confdefs.h <<_ACEOF 11385#define `$as_echo "HAVE_LIB${libname}" | $as_tr_cpp` 1 11386_ACEOF 11387 11388 LIBS="-l${libname} $LIBS" 11389 11390fi 11391 11392 if test "x$olibs" != "x$LIBS"; then 11393 if test "$cross_compiling" = yes; then : 11394 res="FAIL" 11395else 11396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11397/* end confdefs.h. */ 11398 11399#ifdef HAVE_TERMCAP_H 11400# include <termcap.h> 11401#endif 11402#if STDC_HEADERS 11403# include <stdlib.h> 11404# include <stddef.h> 11405#endif 11406main() {char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(0); } 11407_ACEOF 11408if ac_fn_c_try_run "$LINENO"; then : 11409 res="OK" 11410else 11411 res="FAIL" 11412fi 11413rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11414 conftest.$ac_objext conftest.beam conftest.$ac_ext 11415fi 11416 11417 if test "$res" = "OK"; then 11418 break 11419 fi 11420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libname library is not usable" >&5 11421$as_echo "$libname library is not usable" >&6; } 11422 LIBS="$olibs" 11423 fi 11424 done 11425 if test "x$olibs" = "x$LIBS"; then 11426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no terminal library found" >&5 11427$as_echo "no terminal library found" >&6; } 11428 fi 11429fi 11430 11431if test "x$olibs" = "x$LIBS"; then 11432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent()" >&5 11433$as_echo_n "checking for tgetent()... " >&6; } 11434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11435/* end confdefs.h. */ 11436 11437int 11438main () 11439{ 11440char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist"); 11441 ; 11442 return 0; 11443} 11444_ACEOF 11445if ac_fn_c_try_link "$LINENO"; then : 11446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11447$as_echo "yes" >&6; } 11448else 11449 as_fn_error $? "NOT FOUND! 11450 You need to install a terminal library; for example ncurses. 11451 Or specify the name of the library with --with-tlib." "$LINENO" 5 11452fi 11453rm -f core conftest.err conftest.$ac_objext \ 11454 conftest$ac_exeext conftest.$ac_ext 11455fi 11456 11457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we talk terminfo" >&5 11458$as_echo_n "checking whether we talk terminfo... " >&6; } 11459if ${vim_cv_terminfo+:} false; then : 11460 $as_echo_n "(cached) " >&6 11461else 11462 11463 if test "$cross_compiling" = yes; then : 11464 11465 as_fn_error $? "cross-compiling: please set 'vim_cv_terminfo'" "$LINENO" 5 11466 11467else 11468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11469/* end confdefs.h. */ 11470 11471#include "confdefs.h" 11472#ifdef HAVE_TERMCAP_H 11473# include <termcap.h> 11474#endif 11475#ifdef HAVE_STRING_H 11476# include <string.h> 11477#endif 11478#if STDC_HEADERS 11479# include <stdlib.h> 11480# include <stddef.h> 11481#endif 11482main() 11483{char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(!strcmp(s==0 ? "" : s, "1")); } 11484 11485_ACEOF 11486if ac_fn_c_try_run "$LINENO"; then : 11487 11488 vim_cv_terminfo=no 11489 11490else 11491 11492 vim_cv_terminfo=yes 11493 11494fi 11495rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11496 conftest.$ac_objext conftest.beam conftest.$ac_ext 11497fi 11498 11499 11500fi 11501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_terminfo" >&5 11502$as_echo "$vim_cv_terminfo" >&6; } 11503 11504if test "x$vim_cv_terminfo" = "xyes" ; then 11505 $as_echo "#define TERMINFO 1" >>confdefs.h 11506 11507fi 11508 11509if test "x$olibs" != "x$LIBS"; then 11510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what tgetent() returns for an unknown terminal" >&5 11511$as_echo_n "checking what tgetent() returns for an unknown terminal... " >&6; } 11512if ${vim_cv_tgent+:} false; then : 11513 $as_echo_n "(cached) " >&6 11514else 11515 11516 if test "$cross_compiling" = yes; then : 11517 11518 as_fn_error $? "failed to compile test program." "$LINENO" 5 11519 11520else 11521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11522/* end confdefs.h. */ 11523 11524#include "confdefs.h" 11525#ifdef HAVE_TERMCAP_H 11526# include <termcap.h> 11527#endif 11528#if STDC_HEADERS 11529# include <stdlib.h> 11530# include <stddef.h> 11531#endif 11532main() 11533{char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist"); exit(res != 0); } 11534 11535_ACEOF 11536if ac_fn_c_try_run "$LINENO"; then : 11537 11538 vim_cv_tgent=zero 11539 11540else 11541 11542 vim_cv_tgent=non-zero 11543 11544fi 11545rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11546 conftest.$ac_objext conftest.beam conftest.$ac_ext 11547fi 11548 11549 11550fi 11551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_tgent" >&5 11552$as_echo "$vim_cv_tgent" >&6; } 11553 11554 if test "x$vim_cv_tgent" = "xzero" ; then 11555 $as_echo "#define TGETENT_ZERO_ERR 0" >>confdefs.h 11556 11557 fi 11558fi 11559 11560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termcap.h contains ospeed" >&5 11561$as_echo_n "checking whether termcap.h contains ospeed... " >&6; } 11562cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11563/* end confdefs.h. */ 11564 11565#ifdef HAVE_TERMCAP_H 11566# include <termcap.h> 11567#endif 11568 11569int 11570main () 11571{ 11572ospeed = 20000 11573 ; 11574 return 0; 11575} 11576_ACEOF 11577if ac_fn_c_try_link "$LINENO"; then : 11578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11579$as_echo "yes" >&6; }; $as_echo "#define HAVE_OSPEED 1" >>confdefs.h 11580 11581else 11582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11583$as_echo "no" >&6; } 11584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ospeed can be extern" >&5 11585$as_echo_n "checking whether ospeed can be extern... " >&6; } 11586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11587/* end confdefs.h. */ 11588 11589#ifdef HAVE_TERMCAP_H 11590# include <termcap.h> 11591#endif 11592extern short ospeed; 11593 11594int 11595main () 11596{ 11597ospeed = 20000 11598 ; 11599 return 0; 11600} 11601_ACEOF 11602if ac_fn_c_try_link "$LINENO"; then : 11603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11604$as_echo "yes" >&6; }; $as_echo "#define OSPEED_EXTERN 1" >>confdefs.h 11605 11606else 11607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11608$as_echo "no" >&6; } 11609fi 11610rm -f core conftest.err conftest.$ac_objext \ 11611 conftest$ac_exeext conftest.$ac_ext 11612 11613fi 11614rm -f core conftest.err conftest.$ac_objext \ 11615 conftest$ac_exeext conftest.$ac_ext 11616 11617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termcap.h contains UP, BC and PC" >&5 11618$as_echo_n "checking whether termcap.h contains UP, BC and PC... " >&6; } 11619cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11620/* end confdefs.h. */ 11621 11622#ifdef HAVE_TERMCAP_H 11623# include <termcap.h> 11624#endif 11625 11626int 11627main () 11628{ 11629if (UP == 0 && BC == 0) PC = 1 11630 ; 11631 return 0; 11632} 11633_ACEOF 11634if ac_fn_c_try_link "$LINENO"; then : 11635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11636$as_echo "yes" >&6; }; $as_echo "#define HAVE_UP_BC_PC 1" >>confdefs.h 11637 11638else 11639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11640$as_echo "no" >&6; } 11641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UP, BC and PC can be extern" >&5 11642$as_echo_n "checking whether UP, BC and PC can be extern... " >&6; } 11643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11644/* end confdefs.h. */ 11645 11646#ifdef HAVE_TERMCAP_H 11647# include <termcap.h> 11648#endif 11649extern char *UP, *BC, PC; 11650 11651int 11652main () 11653{ 11654if (UP == 0 && BC == 0) PC = 1 11655 ; 11656 return 0; 11657} 11658_ACEOF 11659if ac_fn_c_try_link "$LINENO"; then : 11660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11661$as_echo "yes" >&6; }; $as_echo "#define UP_BC_PC_EXTERN 1" >>confdefs.h 11662 11663else 11664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11665$as_echo "no" >&6; } 11666fi 11667rm -f core conftest.err conftest.$ac_objext \ 11668 conftest$ac_exeext conftest.$ac_ext 11669 11670fi 11671rm -f core conftest.err conftest.$ac_objext \ 11672 conftest$ac_exeext conftest.$ac_ext 11673 11674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether tputs() uses outfuntype" >&5 11675$as_echo_n "checking whether tputs() uses outfuntype... " >&6; } 11676cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11677/* end confdefs.h. */ 11678 11679#ifdef HAVE_TERMCAP_H 11680# include <termcap.h> 11681#endif 11682 11683int 11684main () 11685{ 11686extern int xx(); tputs("test", 1, (outfuntype)xx) 11687 ; 11688 return 0; 11689} 11690_ACEOF 11691if ac_fn_c_try_compile "$LINENO"; then : 11692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11693$as_echo "yes" >&6; }; $as_echo "#define HAVE_OUTFUNTYPE 1" >>confdefs.h 11694 11695else 11696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11697$as_echo "no" >&6; } 11698fi 11699rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11700 11701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/select.h and sys/time.h may both be included" >&5 11702$as_echo_n "checking whether sys/select.h and sys/time.h may both be included... " >&6; } 11703cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11704/* end confdefs.h. */ 11705 11706#include <sys/types.h> 11707#include <sys/time.h> 11708#include <sys/select.h> 11709int 11710main () 11711{ 11712 11713 ; 11714 return 0; 11715} 11716_ACEOF 11717if ac_fn_c_try_compile "$LINENO"; then : 11718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11719$as_echo "yes" >&6; } 11720 $as_echo "#define SYS_SELECT_WITH_SYS_TIME 1" >>confdefs.h 11721 11722else 11723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11724$as_echo "no" >&6; } 11725fi 11726rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11727 11728 11729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptc" >&5 11730$as_echo_n "checking for /dev/ptc... " >&6; } 11731if test -r /dev/ptc; then 11732 $as_echo "#define HAVE_DEV_PTC 1" >>confdefs.h 11733 11734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11735$as_echo "yes" >&6; } 11736else 11737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11738$as_echo "no" >&6; } 11739fi 11740 11741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SVR4 ptys" >&5 11742$as_echo_n "checking for SVR4 ptys... " >&6; } 11743if test -c /dev/ptmx ; then 11744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11745/* end confdefs.h. */ 11746 11747int 11748main () 11749{ 11750ptsname(0);grantpt(0);unlockpt(0); 11751 ; 11752 return 0; 11753} 11754_ACEOF 11755if ac_fn_c_try_link "$LINENO"; then : 11756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11757$as_echo "yes" >&6; }; $as_echo "#define HAVE_SVR4_PTYS 1" >>confdefs.h 11758 11759else 11760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11761$as_echo "no" >&6; } 11762fi 11763rm -f core conftest.err conftest.$ac_objext \ 11764 conftest$ac_exeext conftest.$ac_ext 11765else 11766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11767$as_echo "no" >&6; } 11768fi 11769 11770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ptyranges" >&5 11771$as_echo_n "checking for ptyranges... " >&6; } 11772if test -d /dev/ptym ; then 11773 pdir='/dev/ptym' 11774else 11775 pdir='/dev' 11776fi 11777cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11778/* end confdefs.h. */ 11779#ifdef M_UNIX 11780 yes; 11781#endif 11782 11783_ACEOF 11784if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11785 $EGREP "yes" >/dev/null 2>&1; then : 11786 ptys=`echo /dev/ptyp??` 11787else 11788 ptys=`echo $pdir/pty??` 11789fi 11790rm -f conftest* 11791 11792if test "$ptys" != "$pdir/pty??" ; then 11793 p0=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\).$/\1/g' | sort -u | tr -d '\012'` 11794 p1=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\)$/\1/g' | sort -u | tr -d '\012'` 11795 cat >>confdefs.h <<_ACEOF 11796#define PTYRANGE0 "$p0" 11797_ACEOF 11798 11799 cat >>confdefs.h <<_ACEOF 11800#define PTYRANGE1 "$p1" 11801_ACEOF 11802 11803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $p0 / $p1" >&5 11804$as_echo "$p0 / $p1" >&6; } 11805else 11806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: don't know" >&5 11807$as_echo "don't know" >&6; } 11808fi 11809 11810rm -f conftest_grp 11811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking default tty permissions/group" >&5 11812$as_echo_n "checking default tty permissions/group... " >&6; } 11813if ${vim_cv_tty_group+:} false; then : 11814 $as_echo_n "(cached) " >&6 11815else 11816 11817 if test "$cross_compiling" = yes; then : 11818 11819 as_fn_error $? "cross-compiling: please set 'vim_cv_tty_group' and 'vim_cv_tty_mode'" "$LINENO" 5 11820 11821else 11822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11823/* end confdefs.h. */ 11824 11825#include "confdefs.h" 11826#include <sys/types.h> 11827#if STDC_HEADERS 11828# include <stdlib.h> 11829# include <stddef.h> 11830#endif 11831#ifdef HAVE_UNISTD_H 11832#include <unistd.h> 11833#endif 11834#include <sys/stat.h> 11835#include <stdio.h> 11836main() 11837{ 11838 struct stat sb; 11839 char *x,*ttyname(); 11840 int om, m; 11841 FILE *fp; 11842 11843 if (!(x = ttyname(0))) exit(1); 11844 if (stat(x, &sb)) exit(1); 11845 om = sb.st_mode; 11846 if (om & 002) exit(0); 11847 m = system("mesg y"); 11848 if (m == -1 || m == 127) exit(1); 11849 if (stat(x, &sb)) exit(1); 11850 m = sb.st_mode; 11851 if (chmod(x, om)) exit(1); 11852 if (m & 002) exit(0); 11853 if (sb.st_gid == getgid()) exit(1); 11854 if (!(fp=fopen("conftest_grp", "w"))) 11855 exit(1); 11856 fprintf(fp, "%d\n", sb.st_gid); 11857 fclose(fp); 11858 exit(0); 11859} 11860 11861_ACEOF 11862if ac_fn_c_try_run "$LINENO"; then : 11863 11864 if test -f conftest_grp; then 11865 vim_cv_tty_group=`cat conftest_grp` 11866 if test "x$vim_cv_tty_mode" = "x" ; then 11867 vim_cv_tty_mode=0620 11868 fi 11869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pty mode: $vim_cv_tty_mode, group: $vim_cv_tty_group" >&5 11870$as_echo "pty mode: $vim_cv_tty_mode, group: $vim_cv_tty_group" >&6; } 11871 else 11872 vim_cv_tty_group=world 11873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ptys are world accessible" >&5 11874$as_echo "ptys are world accessible" >&6; } 11875 fi 11876 11877else 11878 11879 vim_cv_tty_group=world 11880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: can't determine - assume ptys are world accessible" >&5 11881$as_echo "can't determine - assume ptys are world accessible" >&6; } 11882 11883fi 11884rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11885 conftest.$ac_objext conftest.beam conftest.$ac_ext 11886fi 11887 11888 11889fi 11890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_tty_group" >&5 11891$as_echo "$vim_cv_tty_group" >&6; } 11892rm -f conftest_grp 11893 11894if test "x$vim_cv_tty_group" != "xworld" ; then 11895 cat >>confdefs.h <<_ACEOF 11896#define PTYGROUP $vim_cv_tty_group 11897_ACEOF 11898 11899 if test "x$vim_cv_tty_mode" = "x" ; then 11900 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 11901 else 11902 $as_echo "#define PTYMODE 0620" >>confdefs.h 11903 11904 fi 11905fi 11906 11907 11908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5 11909$as_echo_n "checking return type of signal handlers... " >&6; } 11910if ${ac_cv_type_signal+:} false; then : 11911 $as_echo_n "(cached) " >&6 11912else 11913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11914/* end confdefs.h. */ 11915#include <sys/types.h> 11916#include <signal.h> 11917 11918int 11919main () 11920{ 11921return *(signal (0, 0)) (0) == 1; 11922 ; 11923 return 0; 11924} 11925_ACEOF 11926if ac_fn_c_try_compile "$LINENO"; then : 11927 ac_cv_type_signal=int 11928else 11929 ac_cv_type_signal=void 11930fi 11931rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11932fi 11933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5 11934$as_echo "$ac_cv_type_signal" >&6; } 11935 11936cat >>confdefs.h <<_ACEOF 11937#define RETSIGTYPE $ac_cv_type_signal 11938_ACEOF 11939 11940 11941 11942if test $ac_cv_type_signal = void; then 11943 $as_echo "#define SIGRETURN return" >>confdefs.h 11944 11945else 11946 $as_echo "#define SIGRETURN return 0" >>confdefs.h 11947 11948fi 11949 11950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sigcontext" >&5 11951$as_echo_n "checking for struct sigcontext... " >&6; } 11952cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11953/* end confdefs.h. */ 11954 11955#include <signal.h> 11956test_sig() 11957{ 11958 struct sigcontext *scont; 11959 scont = (struct sigcontext *)0; 11960 return 1; 11961} 11962int 11963main () 11964{ 11965 11966 ; 11967 return 0; 11968} 11969_ACEOF 11970if ac_fn_c_try_compile "$LINENO"; then : 11971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11972$as_echo "yes" >&6; } 11973 $as_echo "#define HAVE_SIGCONTEXT 1" >>confdefs.h 11974 11975else 11976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11977$as_echo "no" >&6; } 11978fi 11979rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11980 11981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking getcwd implementation is broken" >&5 11982$as_echo_n "checking getcwd implementation is broken... " >&6; } 11983if ${vim_cv_getcwd_broken+:} false; then : 11984 $as_echo_n "(cached) " >&6 11985else 11986 11987 if test "$cross_compiling" = yes; then : 11988 11989 as_fn_error $? "cross-compiling: please set 'vim_cv_getcwd_broken'" "$LINENO" 5 11990 11991else 11992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11993/* end confdefs.h. */ 11994 11995#include "confdefs.h" 11996#ifdef HAVE_UNISTD_H 11997#include <unistd.h> 11998#endif 11999char *dagger[] = { "IFS=pwd", 0 }; 12000main() 12001{ 12002 char buffer[500]; 12003 extern char **environ; 12004 environ = dagger; 12005 return getcwd(buffer, 500) ? 0 : 1; 12006} 12007 12008_ACEOF 12009if ac_fn_c_try_run "$LINENO"; then : 12010 12011 vim_cv_getcwd_broken=no 12012 12013else 12014 12015 vim_cv_getcwd_broken=yes 12016 12017fi 12018rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12019 conftest.$ac_objext conftest.beam conftest.$ac_ext 12020fi 12021 12022 12023fi 12024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_getcwd_broken" >&5 12025$as_echo "$vim_cv_getcwd_broken" >&6; } 12026 12027if test "x$vim_cv_getcwd_broken" = "xyes" ; then 12028 $as_echo "#define BAD_GETCWD 1" >>confdefs.h 12029 12030fi 12031 12032for ac_func in fchdir fchown fsync getcwd getpseudotty \ 12033 getpwent getpwnam getpwuid getrlimit gettimeofday getwd lstat \ 12034 memset mkdtemp nanosleep opendir putenv qsort readlink select setenv \ 12035 getpgid setpgid setsid sigaltstack sigstack sigset sigsetjmp sigaction \ 12036 sigprocmask sigvec strcasecmp strerror strftime stricmp strncasecmp \ 12037 strnicmp strpbrk strtol tgetent towlower towupper iswupper \ 12038 usleep utime utimes 12039do : 12040 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 12041ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 12042if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 12043 cat >>confdefs.h <<_ACEOF 12044#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 12045_ACEOF 12046 12047fi 12048done 12049 12050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5 12051$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; } 12052if ${ac_cv_sys_largefile_source+:} false; then : 12053 $as_echo_n "(cached) " >&6 12054else 12055 while :; do 12056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12057/* end confdefs.h. */ 12058#include <sys/types.h> /* for off_t */ 12059 #include <stdio.h> 12060int 12061main () 12062{ 12063int (*fp) (FILE *, off_t, int) = fseeko; 12064 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); 12065 ; 12066 return 0; 12067} 12068_ACEOF 12069if ac_fn_c_try_link "$LINENO"; then : 12070 ac_cv_sys_largefile_source=no; break 12071fi 12072rm -f core conftest.err conftest.$ac_objext \ 12073 conftest$ac_exeext conftest.$ac_ext 12074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12075/* end confdefs.h. */ 12076#define _LARGEFILE_SOURCE 1 12077#include <sys/types.h> /* for off_t */ 12078 #include <stdio.h> 12079int 12080main () 12081{ 12082int (*fp) (FILE *, off_t, int) = fseeko; 12083 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); 12084 ; 12085 return 0; 12086} 12087_ACEOF 12088if ac_fn_c_try_link "$LINENO"; then : 12089 ac_cv_sys_largefile_source=1; break 12090fi 12091rm -f core conftest.err conftest.$ac_objext \ 12092 conftest$ac_exeext conftest.$ac_ext 12093 ac_cv_sys_largefile_source=unknown 12094 break 12095done 12096fi 12097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5 12098$as_echo "$ac_cv_sys_largefile_source" >&6; } 12099case $ac_cv_sys_largefile_source in #( 12100 no | unknown) ;; 12101 *) 12102cat >>confdefs.h <<_ACEOF 12103#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source 12104_ACEOF 12105;; 12106esac 12107rm -rf conftest* 12108 12109# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug 12110# in glibc 2.1.3, but that breaks too many other things. 12111# If you want fseeko and ftello with glibc, upgrade to a fixed glibc. 12112if test $ac_cv_sys_largefile_source != unknown; then 12113 12114$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h 12115 12116fi 12117 12118 12119# Check whether --enable-largefile was given. 12120if test "${enable_largefile+set}" = set; then : 12121 enableval=$enable_largefile; 12122fi 12123 12124if test "$enable_largefile" != no; then 12125 12126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 12127$as_echo_n "checking for special C compiler options needed for large files... " >&6; } 12128if ${ac_cv_sys_largefile_CC+:} false; then : 12129 $as_echo_n "(cached) " >&6 12130else 12131 ac_cv_sys_largefile_CC=no 12132 if test "$GCC" != yes; then 12133 ac_save_CC=$CC 12134 while :; do 12135 # IRIX 6.2 and later do not support large files by default, 12136 # so use the C compiler's -n32 option if that helps. 12137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12138/* end confdefs.h. */ 12139#include <sys/types.h> 12140 /* Check that off_t can represent 2**63 - 1 correctly. 12141 We can't simply define LARGE_OFF_T to be 9223372036854775807, 12142 since some C++ compilers masquerading as C compilers 12143 incorrectly reject 9223372036854775807. */ 12144#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) 12145 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 12146 && LARGE_OFF_T % 2147483647 == 1) 12147 ? 1 : -1]; 12148int 12149main () 12150{ 12151 12152 ; 12153 return 0; 12154} 12155_ACEOF 12156 if ac_fn_c_try_compile "$LINENO"; then : 12157 break 12158fi 12159rm -f core conftest.err conftest.$ac_objext 12160 CC="$CC -n32" 12161 if ac_fn_c_try_compile "$LINENO"; then : 12162 ac_cv_sys_largefile_CC=' -n32'; break 12163fi 12164rm -f core conftest.err conftest.$ac_objext 12165 break 12166 done 12167 CC=$ac_save_CC 12168 rm -f conftest.$ac_ext 12169 fi 12170fi 12171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 12172$as_echo "$ac_cv_sys_largefile_CC" >&6; } 12173 if test "$ac_cv_sys_largefile_CC" != no; then 12174 CC=$CC$ac_cv_sys_largefile_CC 12175 fi 12176 12177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 12178$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 12179if ${ac_cv_sys_file_offset_bits+:} false; then : 12180 $as_echo_n "(cached) " >&6 12181else 12182 while :; do 12183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12184/* end confdefs.h. */ 12185#include <sys/types.h> 12186 /* Check that off_t can represent 2**63 - 1 correctly. 12187 We can't simply define LARGE_OFF_T to be 9223372036854775807, 12188 since some C++ compilers masquerading as C compilers 12189 incorrectly reject 9223372036854775807. */ 12190#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) 12191 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 12192 && LARGE_OFF_T % 2147483647 == 1) 12193 ? 1 : -1]; 12194int 12195main () 12196{ 12197 12198 ; 12199 return 0; 12200} 12201_ACEOF 12202if ac_fn_c_try_compile "$LINENO"; then : 12203 ac_cv_sys_file_offset_bits=no; break 12204fi 12205rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12207/* end confdefs.h. */ 12208#define _FILE_OFFSET_BITS 64 12209#include <sys/types.h> 12210 /* Check that off_t can represent 2**63 - 1 correctly. 12211 We can't simply define LARGE_OFF_T to be 9223372036854775807, 12212 since some C++ compilers masquerading as C compilers 12213 incorrectly reject 9223372036854775807. */ 12214#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) 12215 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 12216 && LARGE_OFF_T % 2147483647 == 1) 12217 ? 1 : -1]; 12218int 12219main () 12220{ 12221 12222 ; 12223 return 0; 12224} 12225_ACEOF 12226if ac_fn_c_try_compile "$LINENO"; then : 12227 ac_cv_sys_file_offset_bits=64; break 12228fi 12229rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12230 ac_cv_sys_file_offset_bits=unknown 12231 break 12232done 12233fi 12234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 12235$as_echo "$ac_cv_sys_file_offset_bits" >&6; } 12236case $ac_cv_sys_file_offset_bits in #( 12237 no | unknown) ;; 12238 *) 12239cat >>confdefs.h <<_ACEOF 12240#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 12241_ACEOF 12242;; 12243esac 12244rm -rf conftest* 12245 if test $ac_cv_sys_file_offset_bits = unknown; then 12246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 12247$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 12248if ${ac_cv_sys_large_files+:} false; then : 12249 $as_echo_n "(cached) " >&6 12250else 12251 while :; do 12252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12253/* end confdefs.h. */ 12254#include <sys/types.h> 12255 /* Check that off_t can represent 2**63 - 1 correctly. 12256 We can't simply define LARGE_OFF_T to be 9223372036854775807, 12257 since some C++ compilers masquerading as C compilers 12258 incorrectly reject 9223372036854775807. */ 12259#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) 12260 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 12261 && LARGE_OFF_T % 2147483647 == 1) 12262 ? 1 : -1]; 12263int 12264main () 12265{ 12266 12267 ; 12268 return 0; 12269} 12270_ACEOF 12271if ac_fn_c_try_compile "$LINENO"; then : 12272 ac_cv_sys_large_files=no; break 12273fi 12274rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12276/* end confdefs.h. */ 12277#define _LARGE_FILES 1 12278#include <sys/types.h> 12279 /* Check that off_t can represent 2**63 - 1 correctly. 12280 We can't simply define LARGE_OFF_T to be 9223372036854775807, 12281 since some C++ compilers masquerading as C compilers 12282 incorrectly reject 9223372036854775807. */ 12283#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31)) 12284 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 12285 && LARGE_OFF_T % 2147483647 == 1) 12286 ? 1 : -1]; 12287int 12288main () 12289{ 12290 12291 ; 12292 return 0; 12293} 12294_ACEOF 12295if ac_fn_c_try_compile "$LINENO"; then : 12296 ac_cv_sys_large_files=1; break 12297fi 12298rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12299 ac_cv_sys_large_files=unknown 12300 break 12301done 12302fi 12303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 12304$as_echo "$ac_cv_sys_large_files" >&6; } 12305case $ac_cv_sys_large_files in #( 12306 no | unknown) ;; 12307 *) 12308cat >>confdefs.h <<_ACEOF 12309#define _LARGE_FILES $ac_cv_sys_large_files 12310_ACEOF 12311;; 12312esac 12313rm -rf conftest* 12314 fi 12315 12316 12317fi 12318 12319 12320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_blksize" >&5 12321$as_echo_n "checking for st_blksize... " >&6; } 12322cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12323/* end confdefs.h. */ 12324#include <sys/types.h> 12325#include <sys/stat.h> 12326int 12327main () 12328{ 12329 struct stat st; 12330 int n; 12331 12332 stat("/", &st); 12333 n = (int)st.st_blksize; 12334 ; 12335 return 0; 12336} 12337_ACEOF 12338if ac_fn_c_try_compile "$LINENO"; then : 12339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12340$as_echo "yes" >&6; }; $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h 12341 12342else 12343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12344$as_echo "no" >&6; } 12345fi 12346rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12347 12348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat() ignores a trailing slash" >&5 12349$as_echo_n "checking whether stat() ignores a trailing slash... " >&6; } 12350if ${vim_cv_stat_ignores_slash+:} false; then : 12351 $as_echo_n "(cached) " >&6 12352else 12353 12354 if test "$cross_compiling" = yes; then : 12355 12356 as_fn_error $? "cross-compiling: please set 'vim_cv_stat_ignores_slash'" "$LINENO" 5 12357 12358else 12359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12360/* end confdefs.h. */ 12361 12362#include "confdefs.h" 12363#if STDC_HEADERS 12364# include <stdlib.h> 12365# include <stddef.h> 12366#endif 12367#include <sys/types.h> 12368#include <sys/stat.h> 12369main() {struct stat st; exit(stat("configure/", &st) != 0); } 12370 12371_ACEOF 12372if ac_fn_c_try_run "$LINENO"; then : 12373 12374 vim_cv_stat_ignores_slash=yes 12375 12376else 12377 12378 vim_cv_stat_ignores_slash=no 12379 12380fi 12381rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12382 conftest.$ac_objext conftest.beam conftest.$ac_ext 12383fi 12384 12385 12386fi 12387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_stat_ignores_slash" >&5 12388$as_echo "$vim_cv_stat_ignores_slash" >&6; } 12389 12390if test "x$vim_cv_stat_ignores_slash" = "xyes" ; then 12391 $as_echo "#define STAT_IGNORES_SLASH 1" >>confdefs.h 12392 12393fi 12394 12395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv_open()" >&5 12396$as_echo_n "checking for iconv_open()... " >&6; } 12397save_LIBS="$LIBS" 12398LIBS="$LIBS -liconv" 12399cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12400/* end confdefs.h. */ 12401 12402#ifdef HAVE_ICONV_H 12403# include <iconv.h> 12404#endif 12405 12406int 12407main () 12408{ 12409iconv_open("fr", "to"); 12410 ; 12411 return 0; 12412} 12413_ACEOF 12414if ac_fn_c_try_link "$LINENO"; then : 12415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; with -liconv" >&5 12416$as_echo "yes; with -liconv" >&6; }; $as_echo "#define HAVE_ICONV 1" >>confdefs.h 12417 12418else 12419 LIBS="$save_LIBS" 12420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12421/* end confdefs.h. */ 12422 12423#ifdef HAVE_ICONV_H 12424# include <iconv.h> 12425#endif 12426 12427int 12428main () 12429{ 12430iconv_open("fr", "to"); 12431 ; 12432 return 0; 12433} 12434_ACEOF 12435if ac_fn_c_try_link "$LINENO"; then : 12436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12437$as_echo "yes" >&6; }; $as_echo "#define HAVE_ICONV 1" >>confdefs.h 12438 12439else 12440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12441$as_echo "no" >&6; } 12442fi 12443rm -f core conftest.err conftest.$ac_objext \ 12444 conftest$ac_exeext conftest.$ac_ext 12445fi 12446rm -f core conftest.err conftest.$ac_objext \ 12447 conftest$ac_exeext conftest.$ac_ext 12448 12449 12450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo(CODESET)" >&5 12451$as_echo_n "checking for nl_langinfo(CODESET)... " >&6; } 12452cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12453/* end confdefs.h. */ 12454 12455#ifdef HAVE_LANGINFO_H 12456# include <langinfo.h> 12457#endif 12458 12459int 12460main () 12461{ 12462char *cs = nl_langinfo(CODESET); 12463 ; 12464 return 0; 12465} 12466_ACEOF 12467if ac_fn_c_try_link "$LINENO"; then : 12468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12469$as_echo "yes" >&6; }; $as_echo "#define HAVE_NL_LANGINFO_CODESET 1" >>confdefs.h 12470 12471else 12472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12473$as_echo "no" >&6; } 12474fi 12475rm -f core conftest.err conftest.$ac_objext \ 12476 conftest$ac_exeext conftest.$ac_ext 12477 12478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strtod in -lm" >&5 12479$as_echo_n "checking for strtod in -lm... " >&6; } 12480if ${ac_cv_lib_m_strtod+:} false; then : 12481 $as_echo_n "(cached) " >&6 12482else 12483 ac_check_lib_save_LIBS=$LIBS 12484LIBS="-lm $LIBS" 12485cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12486/* end confdefs.h. */ 12487 12488/* Override any GCC internal prototype to avoid an error. 12489 Use char because int might match the return type of a GCC 12490 builtin and then its argument prototype would still apply. */ 12491#ifdef __cplusplus 12492extern "C" 12493#endif 12494char strtod (); 12495int 12496main () 12497{ 12498return strtod (); 12499 ; 12500 return 0; 12501} 12502_ACEOF 12503if ac_fn_c_try_link "$LINENO"; then : 12504 ac_cv_lib_m_strtod=yes 12505else 12506 ac_cv_lib_m_strtod=no 12507fi 12508rm -f core conftest.err conftest.$ac_objext \ 12509 conftest$ac_exeext conftest.$ac_ext 12510LIBS=$ac_check_lib_save_LIBS 12511fi 12512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_strtod" >&5 12513$as_echo "$ac_cv_lib_m_strtod" >&6; } 12514if test "x$ac_cv_lib_m_strtod" = xyes; then : 12515 cat >>confdefs.h <<_ACEOF 12516#define HAVE_LIBM 1 12517_ACEOF 12518 12519 LIBS="-lm $LIBS" 12520 12521fi 12522 12523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strtod() and other floating point functions" >&5 12524$as_echo_n "checking for strtod() and other floating point functions... " >&6; } 12525cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12526/* end confdefs.h. */ 12527 12528#ifdef HAVE_MATH_H 12529# include <math.h> 12530#endif 12531#if STDC_HEADERS 12532# include <stdlib.h> 12533# include <stddef.h> 12534#endif 12535 12536int 12537main () 12538{ 12539char *s; double d; 12540 d = strtod("1.1", &s); 12541 d = fabs(1.11); 12542 d = ceil(1.11); 12543 d = floor(1.11); 12544 d = log10(1.11); 12545 d = pow(1.11, 2.22); 12546 d = sqrt(1.11); 12547 d = sin(1.11); 12548 d = cos(1.11); 12549 d = atan(1.11); 12550 12551 ; 12552 return 0; 12553} 12554_ACEOF 12555if ac_fn_c_try_link "$LINENO"; then : 12556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12557$as_echo "yes" >&6; }; $as_echo "#define HAVE_FLOAT_FUNCS 1" >>confdefs.h 12558 12559else 12560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12561$as_echo "no" >&6; } 12562fi 12563rm -f core conftest.err conftest.$ac_objext \ 12564 conftest$ac_exeext conftest.$ac_ext 12565 12566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinf()" >&5 12567$as_echo_n "checking for isinf()... " >&6; } 12568cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12569/* end confdefs.h. */ 12570 12571#ifdef HAVE_MATH_H 12572# include <math.h> 12573#endif 12574#if STDC_HEADERS 12575# include <stdlib.h> 12576# include <stddef.h> 12577#endif 12578 12579int 12580main () 12581{ 12582int r = isinf(1.11); 12583 ; 12584 return 0; 12585} 12586_ACEOF 12587if ac_fn_c_try_link "$LINENO"; then : 12588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12589$as_echo "yes" >&6; }; $as_echo "#define HAVE_ISINF 1" >>confdefs.h 12590 12591else 12592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12593$as_echo "no" >&6; } 12594fi 12595rm -f core conftest.err conftest.$ac_objext \ 12596 conftest$ac_exeext conftest.$ac_ext 12597 12598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnan()" >&5 12599$as_echo_n "checking for isnan()... " >&6; } 12600cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12601/* end confdefs.h. */ 12602 12603#ifdef HAVE_MATH_H 12604# include <math.h> 12605#endif 12606#if STDC_HEADERS 12607# include <stdlib.h> 12608# include <stddef.h> 12609#endif 12610 12611int 12612main () 12613{ 12614int r = isnan(1.11); 12615 ; 12616 return 0; 12617} 12618_ACEOF 12619if ac_fn_c_try_link "$LINENO"; then : 12620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12621$as_echo "yes" >&6; }; $as_echo "#define HAVE_ISNAN 1" >>confdefs.h 12622 12623else 12624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12625$as_echo "no" >&6; } 12626fi 12627rm -f core conftest.err conftest.$ac_objext \ 12628 conftest$ac_exeext conftest.$ac_ext 12629 12630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-acl argument" >&5 12631$as_echo_n "checking --disable-acl argument... " >&6; } 12632# Check whether --enable-acl was given. 12633if test "${enable_acl+set}" = set; then : 12634 enableval=$enable_acl; 12635else 12636 enable_acl="yes" 12637fi 12638 12639if test "$enable_acl" = "yes"; then 12640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12641$as_echo "no" >&6; } 12642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lposix1e" >&5 12643$as_echo_n "checking for acl_get_file in -lposix1e... " >&6; } 12644if ${ac_cv_lib_posix1e_acl_get_file+:} false; then : 12645 $as_echo_n "(cached) " >&6 12646else 12647 ac_check_lib_save_LIBS=$LIBS 12648LIBS="-lposix1e $LIBS" 12649cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12650/* end confdefs.h. */ 12651 12652/* Override any GCC internal prototype to avoid an error. 12653 Use char because int might match the return type of a GCC 12654 builtin and then its argument prototype would still apply. */ 12655#ifdef __cplusplus 12656extern "C" 12657#endif 12658char acl_get_file (); 12659int 12660main () 12661{ 12662return acl_get_file (); 12663 ; 12664 return 0; 12665} 12666_ACEOF 12667if ac_fn_c_try_link "$LINENO"; then : 12668 ac_cv_lib_posix1e_acl_get_file=yes 12669else 12670 ac_cv_lib_posix1e_acl_get_file=no 12671fi 12672rm -f core conftest.err conftest.$ac_objext \ 12673 conftest$ac_exeext conftest.$ac_ext 12674LIBS=$ac_check_lib_save_LIBS 12675fi 12676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix1e_acl_get_file" >&5 12677$as_echo "$ac_cv_lib_posix1e_acl_get_file" >&6; } 12678if test "x$ac_cv_lib_posix1e_acl_get_file" = xyes; then : 12679 LIBS="$LIBS -lposix1e" 12680else 12681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lacl" >&5 12682$as_echo_n "checking for acl_get_file in -lacl... " >&6; } 12683if ${ac_cv_lib_acl_acl_get_file+:} false; then : 12684 $as_echo_n "(cached) " >&6 12685else 12686 ac_check_lib_save_LIBS=$LIBS 12687LIBS="-lacl $LIBS" 12688cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12689/* end confdefs.h. */ 12690 12691/* Override any GCC internal prototype to avoid an error. 12692 Use char because int might match the return type of a GCC 12693 builtin and then its argument prototype would still apply. */ 12694#ifdef __cplusplus 12695extern "C" 12696#endif 12697char acl_get_file (); 12698int 12699main () 12700{ 12701return acl_get_file (); 12702 ; 12703 return 0; 12704} 12705_ACEOF 12706if ac_fn_c_try_link "$LINENO"; then : 12707 ac_cv_lib_acl_acl_get_file=yes 12708else 12709 ac_cv_lib_acl_acl_get_file=no 12710fi 12711rm -f core conftest.err conftest.$ac_objext \ 12712 conftest$ac_exeext conftest.$ac_ext 12713LIBS=$ac_check_lib_save_LIBS 12714fi 12715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_acl_acl_get_file" >&5 12716$as_echo "$ac_cv_lib_acl_acl_get_file" >&6; } 12717if test "x$ac_cv_lib_acl_acl_get_file" = xyes; then : 12718 LIBS="$LIBS -lacl" 12719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgetxattr in -lattr" >&5 12720$as_echo_n "checking for fgetxattr in -lattr... " >&6; } 12721if ${ac_cv_lib_attr_fgetxattr+:} false; then : 12722 $as_echo_n "(cached) " >&6 12723else 12724 ac_check_lib_save_LIBS=$LIBS 12725LIBS="-lattr $LIBS" 12726cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12727/* end confdefs.h. */ 12728 12729/* Override any GCC internal prototype to avoid an error. 12730 Use char because int might match the return type of a GCC 12731 builtin and then its argument prototype would still apply. */ 12732#ifdef __cplusplus 12733extern "C" 12734#endif 12735char fgetxattr (); 12736int 12737main () 12738{ 12739return fgetxattr (); 12740 ; 12741 return 0; 12742} 12743_ACEOF 12744if ac_fn_c_try_link "$LINENO"; then : 12745 ac_cv_lib_attr_fgetxattr=yes 12746else 12747 ac_cv_lib_attr_fgetxattr=no 12748fi 12749rm -f core conftest.err conftest.$ac_objext \ 12750 conftest$ac_exeext conftest.$ac_ext 12751LIBS=$ac_check_lib_save_LIBS 12752fi 12753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_attr_fgetxattr" >&5 12754$as_echo "$ac_cv_lib_attr_fgetxattr" >&6; } 12755if test "x$ac_cv_lib_attr_fgetxattr" = xyes; then : 12756 LIBS="$LIBS -lattr" 12757fi 12758 12759fi 12760 12761fi 12762 12763 12764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for POSIX ACL support" >&5 12765$as_echo_n "checking for POSIX ACL support... " >&6; } 12766cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12767/* end confdefs.h. */ 12768 12769#include <sys/types.h> 12770#ifdef HAVE_SYS_ACL_H 12771# include <sys/acl.h> 12772#endif 12773acl_t acl; 12774int 12775main () 12776{ 12777acl = acl_get_file("foo", ACL_TYPE_ACCESS); 12778 acl_set_file("foo", ACL_TYPE_ACCESS, acl); 12779 acl_free(acl); 12780 ; 12781 return 0; 12782} 12783_ACEOF 12784if ac_fn_c_try_link "$LINENO"; then : 12785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12786$as_echo "yes" >&6; }; $as_echo "#define HAVE_POSIX_ACL 1" >>confdefs.h 12787 12788else 12789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12790$as_echo "no" >&6; } 12791fi 12792rm -f core conftest.err conftest.$ac_objext \ 12793 conftest$ac_exeext conftest.$ac_ext 12794 12795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get in -lsec" >&5 12796$as_echo_n "checking for acl_get in -lsec... " >&6; } 12797if ${ac_cv_lib_sec_acl_get+:} false; then : 12798 $as_echo_n "(cached) " >&6 12799else 12800 ac_check_lib_save_LIBS=$LIBS 12801LIBS="-lsec $LIBS" 12802cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12803/* end confdefs.h. */ 12804 12805/* Override any GCC internal prototype to avoid an error. 12806 Use char because int might match the return type of a GCC 12807 builtin and then its argument prototype would still apply. */ 12808#ifdef __cplusplus 12809extern "C" 12810#endif 12811char acl_get (); 12812int 12813main () 12814{ 12815return acl_get (); 12816 ; 12817 return 0; 12818} 12819_ACEOF 12820if ac_fn_c_try_link "$LINENO"; then : 12821 ac_cv_lib_sec_acl_get=yes 12822else 12823 ac_cv_lib_sec_acl_get=no 12824fi 12825rm -f core conftest.err conftest.$ac_objext \ 12826 conftest$ac_exeext conftest.$ac_ext 12827LIBS=$ac_check_lib_save_LIBS 12828fi 12829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sec_acl_get" >&5 12830$as_echo "$ac_cv_lib_sec_acl_get" >&6; } 12831if test "x$ac_cv_lib_sec_acl_get" = xyes; then : 12832 LIBS="$LIBS -lsec"; $as_echo "#define HAVE_SOLARIS_ZFS_ACL 1" >>confdefs.h 12833 12834else 12835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solaris ACL support" >&5 12836$as_echo_n "checking for Solaris ACL support... " >&6; } 12837cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12838/* end confdefs.h. */ 12839 12840#ifdef HAVE_SYS_ACL_H 12841# include <sys/acl.h> 12842#endif 12843int 12844main () 12845{ 12846acl("foo", GETACLCNT, 0, NULL); 12847 12848 ; 12849 return 0; 12850} 12851_ACEOF 12852if ac_fn_c_try_link "$LINENO"; then : 12853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12854$as_echo "yes" >&6; }; $as_echo "#define HAVE_SOLARIS_ACL 1" >>confdefs.h 12855 12856else 12857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12858$as_echo "no" >&6; } 12859fi 12860rm -f core conftest.err conftest.$ac_objext \ 12861 conftest$ac_exeext conftest.$ac_ext 12862fi 12863 12864 12865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AIX ACL support" >&5 12866$as_echo_n "checking for AIX ACL support... " >&6; } 12867cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12868/* end confdefs.h. */ 12869 12870#if STDC_HEADERS 12871# include <stdlib.h> 12872# include <stddef.h> 12873#endif 12874#ifdef HAVE_SYS_ACL_H 12875# include <sys/acl.h> 12876#endif 12877#ifdef HAVE_SYS_ACCESS_H 12878# include <sys/access.h> 12879#endif 12880#define _ALL_SOURCE 12881 12882#include <sys/stat.h> 12883 12884int aclsize; 12885struct acl *aclent; 12886int 12887main () 12888{ 12889aclsize = sizeof(struct acl); 12890 aclent = (void *)malloc(aclsize); 12891 statacl("foo", STX_NORMAL, aclent, aclsize); 12892 12893 ; 12894 return 0; 12895} 12896_ACEOF 12897if ac_fn_c_try_link "$LINENO"; then : 12898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12899$as_echo "yes" >&6; }; $as_echo "#define HAVE_AIX_ACL 1" >>confdefs.h 12900 12901else 12902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12903$as_echo "no" >&6; } 12904fi 12905rm -f core conftest.err conftest.$ac_objext \ 12906 conftest$ac_exeext conftest.$ac_ext 12907else 12908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12909$as_echo "yes" >&6; } 12910fi 12911 12912if test "x$GTK_CFLAGS" != "x"; then 12913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pango_shape_full" >&5 12914$as_echo_n "checking for pango_shape_full... " >&6; } 12915 ac_save_CFLAGS="$CFLAGS" 12916 ac_save_LIBS="$LIBS" 12917 CFLAGS="$CFLAGS $GTK_CFLAGS" 12918 LIBS="$LIBS $GTK_LIBS" 12919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12920/* end confdefs.h. */ 12921#include <gtk/gtk.h> 12922int 12923main () 12924{ 12925 pango_shape_full(NULL, 0, NULL, 0, NULL, NULL); 12926 ; 12927 return 0; 12928} 12929_ACEOF 12930if ac_fn_c_try_link "$LINENO"; then : 12931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12932$as_echo "yes" >&6; }; $as_echo "#define HAVE_PANGO_SHAPE_FULL 1" >>confdefs.h 12933 12934else 12935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12936$as_echo "no" >&6; } 12937fi 12938rm -f core conftest.err conftest.$ac_objext \ 12939 conftest$ac_exeext conftest.$ac_ext 12940 CFLAGS="$ac_save_CFLAGS" 12941 LIBS="$ac_save_LIBS" 12942fi 12943 12944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-gpm argument" >&5 12945$as_echo_n "checking --disable-gpm argument... " >&6; } 12946# Check whether --enable-gpm was given. 12947if test "${enable_gpm+set}" = set; then : 12948 enableval=$enable_gpm; 12949else 12950 enable_gpm="yes" 12951fi 12952 12953 12954if test "$enable_gpm" = "yes"; then 12955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12956$as_echo "no" >&6; } 12957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gpm" >&5 12958$as_echo_n "checking for gpm... " >&6; } 12959if ${vi_cv_have_gpm+:} false; then : 12960 $as_echo_n "(cached) " >&6 12961else 12962 olibs="$LIBS" ; LIBS="-lgpm" 12963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12964/* end confdefs.h. */ 12965#include <gpm.h> 12966 #include <linux/keyboard.h> 12967int 12968main () 12969{ 12970Gpm_GetLibVersion(NULL); 12971 ; 12972 return 0; 12973} 12974_ACEOF 12975if ac_fn_c_try_link "$LINENO"; then : 12976 vi_cv_have_gpm=yes 12977else 12978 vi_cv_have_gpm=no 12979fi 12980rm -f core conftest.err conftest.$ac_objext \ 12981 conftest$ac_exeext conftest.$ac_ext 12982 LIBS="$olibs" 12983 12984fi 12985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_have_gpm" >&5 12986$as_echo "$vi_cv_have_gpm" >&6; } 12987 if test $vi_cv_have_gpm = yes; then 12988 LIBS="$LIBS -lgpm" 12989 $as_echo "#define HAVE_GPM 1" >>confdefs.h 12990 12991 fi 12992else 12993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12994$as_echo "yes" >&6; } 12995fi 12996 12997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-sysmouse argument" >&5 12998$as_echo_n "checking --disable-sysmouse argument... " >&6; } 12999# Check whether --enable-sysmouse was given. 13000if test "${enable_sysmouse+set}" = set; then : 13001 enableval=$enable_sysmouse; 13002else 13003 enable_sysmouse="yes" 13004fi 13005 13006 13007if test "$enable_sysmouse" = "yes"; then 13008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13009$as_echo "no" >&6; } 13010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysmouse" >&5 13011$as_echo_n "checking for sysmouse... " >&6; } 13012if ${vi_cv_have_sysmouse+:} false; then : 13013 $as_echo_n "(cached) " >&6 13014else 13015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13016/* end confdefs.h. */ 13017#include <sys/consio.h> 13018 #include <signal.h> 13019 #include <sys/fbio.h> 13020int 13021main () 13022{ 13023struct mouse_info mouse; 13024 mouse.operation = MOUSE_MODE; 13025 mouse.operation = MOUSE_SHOW; 13026 mouse.u.mode.mode = 0; 13027 mouse.u.mode.signal = SIGUSR2; 13028 ; 13029 return 0; 13030} 13031_ACEOF 13032if ac_fn_c_try_link "$LINENO"; then : 13033 vi_cv_have_sysmouse=yes 13034else 13035 vi_cv_have_sysmouse=no 13036fi 13037rm -f core conftest.err conftest.$ac_objext \ 13038 conftest$ac_exeext conftest.$ac_ext 13039 13040fi 13041{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vi_cv_have_sysmouse" >&5 13042$as_echo "$vi_cv_have_sysmouse" >&6; } 13043 if test $vi_cv_have_sysmouse = yes; then 13044 $as_echo "#define HAVE_SYSMOUSE 1" >>confdefs.h 13045 13046 fi 13047else 13048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13049$as_echo "yes" >&6; } 13050fi 13051 13052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FD_CLOEXEC" >&5 13053$as_echo_n "checking for FD_CLOEXEC... " >&6; } 13054cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13055/* end confdefs.h. */ 13056#if HAVE_FCNTL_H 13057# include <fcntl.h> 13058#endif 13059int 13060main () 13061{ 13062 int flag = FD_CLOEXEC; 13063 ; 13064 return 0; 13065} 13066_ACEOF 13067if ac_fn_c_try_compile "$LINENO"; then : 13068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13069$as_echo "yes" >&6; }; $as_echo "#define HAVE_FD_CLOEXEC 1" >>confdefs.h 13070 13071else 13072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not usable" >&5 13073$as_echo "not usable" >&6; } 13074fi 13075rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13076 13077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for rename" >&5 13078$as_echo_n "checking for rename... " >&6; } 13079cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13080/* end confdefs.h. */ 13081#include <stdio.h> 13082int 13083main () 13084{ 13085rename("this", "that") 13086 ; 13087 return 0; 13088} 13089_ACEOF 13090if ac_fn_c_try_link "$LINENO"; then : 13091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13092$as_echo "yes" >&6; }; $as_echo "#define HAVE_RENAME 1" >>confdefs.h 13093 13094else 13095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13096$as_echo "no" >&6; } 13097fi 13098rm -f core conftest.err conftest.$ac_objext \ 13099 conftest$ac_exeext conftest.$ac_ext 13100 13101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysctl" >&5 13102$as_echo_n "checking for sysctl... " >&6; } 13103cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13104/* end confdefs.h. */ 13105#include <sys/types.h> 13106#include <sys/sysctl.h> 13107int 13108main () 13109{ 13110 int mib[2], r; 13111 size_t len; 13112 13113 mib[0] = CTL_HW; 13114 mib[1] = HW_USERMEM; 13115 len = sizeof(r); 13116 (void)sysctl(mib, 2, &r, &len, (void *)0, (size_t)0); 13117 13118 ; 13119 return 0; 13120} 13121_ACEOF 13122if ac_fn_c_try_compile "$LINENO"; then : 13123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13124$as_echo "yes" >&6; }; $as_echo "#define HAVE_SYSCTL 1" >>confdefs.h 13125 13126else 13127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not usable" >&5 13128$as_echo "not usable" >&6; } 13129fi 13130rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13131 13132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysinfo" >&5 13133$as_echo_n "checking for sysinfo... " >&6; } 13134cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13135/* end confdefs.h. */ 13136#include <sys/types.h> 13137#include <sys/sysinfo.h> 13138int 13139main () 13140{ 13141 struct sysinfo sinfo; 13142 int t; 13143 13144 (void)sysinfo(&sinfo); 13145 t = sinfo.totalram; 13146 13147 ; 13148 return 0; 13149} 13150_ACEOF 13151if ac_fn_c_try_compile "$LINENO"; then : 13152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13153$as_echo "yes" >&6; }; $as_echo "#define HAVE_SYSINFO 1" >>confdefs.h 13154 13155else 13156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not usable" >&5 13157$as_echo "not usable" >&6; } 13158fi 13159rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13160 13161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysinfo.mem_unit" >&5 13162$as_echo_n "checking for sysinfo.mem_unit... " >&6; } 13163cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13164/* end confdefs.h. */ 13165#include <sys/types.h> 13166#include <sys/sysinfo.h> 13167int 13168main () 13169{ 13170 struct sysinfo sinfo; 13171 sinfo.mem_unit = 1; 13172 13173 ; 13174 return 0; 13175} 13176_ACEOF 13177if ac_fn_c_try_compile "$LINENO"; then : 13178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13179$as_echo "yes" >&6; }; $as_echo "#define HAVE_SYSINFO_MEM_UNIT 1" >>confdefs.h 13180 13181else 13182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13183$as_echo "no" >&6; } 13184fi 13185rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13186 13187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysconf" >&5 13188$as_echo_n "checking for sysconf... " >&6; } 13189cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13190/* end confdefs.h. */ 13191#include <unistd.h> 13192int 13193main () 13194{ 13195 (void)sysconf(_SC_PAGESIZE); 13196 (void)sysconf(_SC_PHYS_PAGES); 13197 13198 ; 13199 return 0; 13200} 13201_ACEOF 13202if ac_fn_c_try_compile "$LINENO"; then : 13203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13204$as_echo "yes" >&6; }; $as_echo "#define HAVE_SYSCONF 1" >>confdefs.h 13205 13206else 13207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not usable" >&5 13208$as_echo "not usable" >&6; } 13209fi 13210rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13211 13212# The cast to long int works around a bug in the HP C Compiler 13213# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 13214# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 13215# This bug is HP SR number 8606223364. 13216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 13217$as_echo_n "checking size of int... " >&6; } 13218if ${ac_cv_sizeof_int+:} false; then : 13219 $as_echo_n "(cached) " >&6 13220else 13221 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : 13222 13223else 13224 if test "$ac_cv_type_int" = yes; then 13225 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 13226$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 13227as_fn_error 77 "cannot compute sizeof (int) 13228See \`config.log' for more details" "$LINENO" 5; } 13229 else 13230 ac_cv_sizeof_int=0 13231 fi 13232fi 13233 13234fi 13235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 13236$as_echo "$ac_cv_sizeof_int" >&6; } 13237 13238 13239 13240cat >>confdefs.h <<_ACEOF 13241#define SIZEOF_INT $ac_cv_sizeof_int 13242_ACEOF 13243 13244 13245# The cast to long int works around a bug in the HP C Compiler 13246# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 13247# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 13248# This bug is HP SR number 8606223364. 13249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 13250$as_echo_n "checking size of long... " >&6; } 13251if ${ac_cv_sizeof_long+:} false; then : 13252 $as_echo_n "(cached) " >&6 13253else 13254 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : 13255 13256else 13257 if test "$ac_cv_type_long" = yes; then 13258 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 13259$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 13260as_fn_error 77 "cannot compute sizeof (long) 13261See \`config.log' for more details" "$LINENO" 5; } 13262 else 13263 ac_cv_sizeof_long=0 13264 fi 13265fi 13266 13267fi 13268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 13269$as_echo "$ac_cv_sizeof_long" >&6; } 13270 13271 13272 13273cat >>confdefs.h <<_ACEOF 13274#define SIZEOF_LONG $ac_cv_sizeof_long 13275_ACEOF 13276 13277 13278# The cast to long int works around a bug in the HP C Compiler 13279# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 13280# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 13281# This bug is HP SR number 8606223364. 13282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5 13283$as_echo_n "checking size of time_t... " >&6; } 13284if ${ac_cv_sizeof_time_t+:} false; then : 13285 $as_echo_n "(cached) " >&6 13286else 13287 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "$ac_includes_default"; then : 13288 13289else 13290 if test "$ac_cv_type_time_t" = yes; then 13291 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 13292$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 13293as_fn_error 77 "cannot compute sizeof (time_t) 13294See \`config.log' for more details" "$LINENO" 5; } 13295 else 13296 ac_cv_sizeof_time_t=0 13297 fi 13298fi 13299 13300fi 13301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5 13302$as_echo "$ac_cv_sizeof_time_t" >&6; } 13303 13304 13305 13306cat >>confdefs.h <<_ACEOF 13307#define SIZEOF_TIME_T $ac_cv_sizeof_time_t 13308_ACEOF 13309 13310 13311# The cast to long int works around a bug in the HP C Compiler 13312# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 13313# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 13314# This bug is HP SR number 8606223364. 13315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5 13316$as_echo_n "checking size of off_t... " >&6; } 13317if ${ac_cv_sizeof_off_t+:} false; then : 13318 $as_echo_n "(cached) " >&6 13319else 13320 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then : 13321 13322else 13323 if test "$ac_cv_type_off_t" = yes; then 13324 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 13325$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 13326as_fn_error 77 "cannot compute sizeof (off_t) 13327See \`config.log' for more details" "$LINENO" 5; } 13328 else 13329 ac_cv_sizeof_off_t=0 13330 fi 13331fi 13332 13333fi 13334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5 13335$as_echo "$ac_cv_sizeof_off_t" >&6; } 13336 13337 13338 13339cat >>confdefs.h <<_ACEOF 13340#define SIZEOF_OFF_T $ac_cv_sizeof_off_t 13341_ACEOF 13342 13343 13344 13345cat >>confdefs.h <<_ACEOF 13346#define VIM_SIZEOF_INT $ac_cv_sizeof_int 13347_ACEOF 13348 13349cat >>confdefs.h <<_ACEOF 13350#define VIM_SIZEOF_LONG $ac_cv_sizeof_long 13351_ACEOF 13352 13353 13354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking uint32_t is 32 bits" >&5 13355$as_echo_n "checking uint32_t is 32 bits... " >&6; } 13356if test "$cross_compiling" = yes; then : 13357 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check uint32_t when cross-compiling." >&5 13358$as_echo "$as_me: WARNING: cannot check uint32_t when cross-compiling." >&2;} 13359else 13360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13361/* end confdefs.h. */ 13362 13363#ifdef HAVE_STDINT_H 13364# include <stdint.h> 13365#endif 13366#ifdef HAVE_INTTYPES_H 13367# include <inttypes.h> 13368#endif 13369main() { 13370 uint32_t nr1 = (uint32_t)-1; 13371 uint32_t nr2 = (uint32_t)0xffffffffUL; 13372 if (sizeof(uint32_t) != 4 || nr1 != 0xffffffffUL || nr2 + 1 != 0) exit(1); 13373 exit(0); 13374} 13375_ACEOF 13376if ac_fn_c_try_run "$LINENO"; then : 13377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 13378$as_echo "ok" >&6; } 13379else 13380 as_fn_error $? "WRONG! uint32_t not defined correctly." "$LINENO" 5 13381fi 13382rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13383 conftest.$ac_objext conftest.beam conftest.$ac_ext 13384fi 13385 13386 13387 13388bcopy_test_prog=' 13389#include "confdefs.h" 13390#ifdef HAVE_STRING_H 13391# include <string.h> 13392#endif 13393#if STDC_HEADERS 13394# include <stdlib.h> 13395# include <stddef.h> 13396#endif 13397main() { 13398 char buf[10]; 13399 strcpy(buf, "abcdefghi"); 13400 mch_memmove(buf, buf + 2, 3); 13401 if (strncmp(buf, "ababcf", 6)) 13402 exit(1); 13403 strcpy(buf, "abcdefghi"); 13404 mch_memmove(buf + 2, buf, 3); 13405 if (strncmp(buf, "cdedef", 6)) 13406 exit(1); 13407 exit(0); /* libc version works properly. */ 13408}' 13409 13410{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmove handles overlaps" >&5 13411$as_echo_n "checking whether memmove handles overlaps... " >&6; } 13412if ${vim_cv_memmove_handles_overlap+:} false; then : 13413 $as_echo_n "(cached) " >&6 13414else 13415 13416 if test "$cross_compiling" = yes; then : 13417 13418 as_fn_error $? "cross-compiling: please set 'vim_cv_memmove_handles_overlap'" "$LINENO" 5 13419 13420else 13421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13422/* end confdefs.h. */ 13423#define mch_memmove(s,d,l) memmove(d,s,l) $bcopy_test_prog 13424_ACEOF 13425if ac_fn_c_try_run "$LINENO"; then : 13426 13427 vim_cv_memmove_handles_overlap=yes 13428 13429else 13430 13431 vim_cv_memmove_handles_overlap=no 13432 13433fi 13434rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13435 conftest.$ac_objext conftest.beam conftest.$ac_ext 13436fi 13437 13438 13439fi 13440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_memmove_handles_overlap" >&5 13441$as_echo "$vim_cv_memmove_handles_overlap" >&6; } 13442 13443if test "x$vim_cv_memmove_handles_overlap" = "xyes" ; then 13444 $as_echo "#define USEMEMMOVE 1" >>confdefs.h 13445 13446else 13447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bcopy handles overlaps" >&5 13448$as_echo_n "checking whether bcopy handles overlaps... " >&6; } 13449if ${vim_cv_bcopy_handles_overlap+:} false; then : 13450 $as_echo_n "(cached) " >&6 13451else 13452 13453 if test "$cross_compiling" = yes; then : 13454 13455 as_fn_error $? "cross-compiling: please set 'vim_cv_bcopy_handles_overlap'" "$LINENO" 5 13456 13457else 13458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13459/* end confdefs.h. */ 13460#define mch_bcopy(s,d,l) bcopy(d,s,l) $bcopy_test_prog 13461_ACEOF 13462if ac_fn_c_try_run "$LINENO"; then : 13463 13464 vim_cv_bcopy_handles_overlap=yes 13465 13466else 13467 13468 vim_cv_bcopy_handles_overlap=no 13469 13470fi 13471rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13472 conftest.$ac_objext conftest.beam conftest.$ac_ext 13473fi 13474 13475 13476fi 13477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_bcopy_handles_overlap" >&5 13478$as_echo "$vim_cv_bcopy_handles_overlap" >&6; } 13479 13480 if test "x$vim_cv_bcopy_handles_overlap" = "xyes" ; then 13481 $as_echo "#define USEBCOPY 1" >>confdefs.h 13482 13483 else 13484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memcpy handles overlaps" >&5 13485$as_echo_n "checking whether memcpy handles overlaps... " >&6; } 13486if ${vim_cv_memcpy_handles_overlap+:} false; then : 13487 $as_echo_n "(cached) " >&6 13488else 13489 13490 if test "$cross_compiling" = yes; then : 13491 13492 as_fn_error $? "cross-compiling: please set 'vim_cv_memcpy_handles_overlap'" "$LINENO" 5 13493 13494else 13495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13496/* end confdefs.h. */ 13497#define mch_memcpy(s,d,l) memcpy(d,s,l) $bcopy_test_prog 13498_ACEOF 13499if ac_fn_c_try_run "$LINENO"; then : 13500 13501 vim_cv_memcpy_handles_overlap=yes 13502 13503else 13504 13505 vim_cv_memcpy_handles_overlap=no 13506 13507fi 13508rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13509 conftest.$ac_objext conftest.beam conftest.$ac_ext 13510fi 13511 13512 13513fi 13514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vim_cv_memcpy_handles_overlap" >&5 13515$as_echo "$vim_cv_memcpy_handles_overlap" >&6; } 13516 13517 if test "x$vim_cv_memcpy_handles_overlap" = "xyes" ; then 13518 $as_echo "#define USEMEMCPY 1" >>confdefs.h 13519 13520 fi 13521 fi 13522fi 13523 13524 13525if test "x$with_x" = "xyes"; then 13526 cflags_save=$CFLAGS 13527 libs_save=$LIBS 13528 LIBS="$LIBS $X_LIBS $GUI_LIB_LOC $GUI_X_LIBS $X_PRE_LIBS $X_LIB $X_EXTRA_LIBS" 13529 CFLAGS="$CFLAGS $X_CFLAGS" 13530 13531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X_LOCALE needed" >&5 13532$as_echo_n "checking whether X_LOCALE needed... " >&6; } 13533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13534/* end confdefs.h. */ 13535#include <X11/Xlocale.h> 13536int 13537main () 13538{ 13539 13540 ; 13541 return 0; 13542} 13543_ACEOF 13544if ac_fn_c_try_compile "$LINENO"; then : 13545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13546/* end confdefs.h. */ 13547 13548/* Override any GCC internal prototype to avoid an error. 13549 Use char because int might match the return type of a GCC 13550 builtin and then its argument prototype would still apply. */ 13551#ifdef __cplusplus 13552extern "C" 13553#endif 13554char _Xsetlocale (); 13555int 13556main () 13557{ 13558return _Xsetlocale (); 13559 ; 13560 return 0; 13561} 13562_ACEOF 13563if ac_fn_c_try_link "$LINENO"; then : 13564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13565$as_echo "yes" >&6; } 13566 $as_echo "#define X_LOCALE 1" >>confdefs.h 13567 13568else 13569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13570$as_echo "no" >&6; } 13571fi 13572rm -f core conftest.err conftest.$ac_objext \ 13573 conftest$ac_exeext conftest.$ac_ext 13574else 13575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13576$as_echo "no" >&6; } 13577fi 13578rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13579 13580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Xutf8SetWMProperties() can be used" >&5 13581$as_echo_n "checking whether Xutf8SetWMProperties() can be used... " >&6; } 13582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13583/* end confdefs.h. */ 13584 13585/* Override any GCC internal prototype to avoid an error. 13586 Use char because int might match the return type of a GCC 13587 builtin and then its argument prototype would still apply. */ 13588#ifdef __cplusplus 13589extern "C" 13590#endif 13591char Xutf8SetWMProperties (); 13592int 13593main () 13594{ 13595return Xutf8SetWMProperties (); 13596 ; 13597 return 0; 13598} 13599_ACEOF 13600if ac_fn_c_try_link "$LINENO"; then : 13601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13602$as_echo "yes" >&6; } 13603 $as_echo "#define HAVE_XUTF8SETWMPROPERTIES 1" >>confdefs.h 13604 13605else 13606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13607$as_echo "no" >&6; } 13608fi 13609rm -f core conftest.err conftest.$ac_objext \ 13610 conftest$ac_exeext conftest.$ac_ext 13611 13612 CFLAGS=$cflags_save 13613 LIBS=$libs_save 13614fi 13615 13616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xpg4_setrunelocale in -lxpg4" >&5 13617$as_echo_n "checking for _xpg4_setrunelocale in -lxpg4... " >&6; } 13618if ${ac_cv_lib_xpg4__xpg4_setrunelocale+:} false; then : 13619 $as_echo_n "(cached) " >&6 13620else 13621 ac_check_lib_save_LIBS=$LIBS 13622LIBS="-lxpg4 $LIBS" 13623cat 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 _xpg4_setrunelocale (); 13633int 13634main () 13635{ 13636return _xpg4_setrunelocale (); 13637 ; 13638 return 0; 13639} 13640_ACEOF 13641if ac_fn_c_try_link "$LINENO"; then : 13642 ac_cv_lib_xpg4__xpg4_setrunelocale=yes 13643else 13644 ac_cv_lib_xpg4__xpg4_setrunelocale=no 13645fi 13646rm -f core conftest.err conftest.$ac_objext \ 13647 conftest$ac_exeext conftest.$ac_ext 13648LIBS=$ac_check_lib_save_LIBS 13649fi 13650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5 13651$as_echo "$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6; } 13652if test "x$ac_cv_lib_xpg4__xpg4_setrunelocale" = xyes; then : 13653 LIBS="$LIBS -lxpg4" 13654fi 13655 13656 13657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create tags" >&5 13658$as_echo_n "checking how to create tags... " >&6; } 13659test -f tags && mv tags tags.save 13660if (eval ctags --version /dev/null | grep Exuberant) < /dev/null 1>&5 2>&1; then 13661 TAGPRG="ctags -I INIT+ --fields=+S" 13662elif (eval exctags --version /dev/null | grep Exuberant) < /dev/null 1>&5 2>&1; then 13663 TAGPRG="exctags -I INIT+ --fields=+S" 13664elif (eval exuberant-ctags --version /dev/null | grep Exuberant) < /dev/null 1>&5 2>&1; then 13665 TAGPRG="exuberant-ctags -I INIT+ --fields=+S" 13666else 13667 TAGPRG="ctags" 13668 (eval etags /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags" 13669 (eval etags -c /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags -c" 13670 (eval ctags /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags" 13671 (eval ctags -t /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -t" 13672 (eval ctags -ts /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -ts" 13673 (eval ctags -tvs /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -tvs" 13674 (eval ctags -i+m /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -i+m" 13675fi 13676test -f tags.save && mv tags.save tags 13677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAGPRG" >&5 13678$as_echo "$TAGPRG" >&6; } 13679 13680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run man with a section nr" >&5 13681$as_echo_n "checking how to run man with a section nr... " >&6; } 13682MANDEF="man" 13683(eval MANPAGER=cat PAGER=cat man -s 2 read) < /dev/null > /dev/null 2>&5 && MANDEF="man -s" 13684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDEF" >&5 13685$as_echo "$MANDEF" >&6; } 13686if test "$MANDEF" = "man -s"; then 13687 $as_echo "#define USEMAN_S 1" >>confdefs.h 13688 13689fi 13690 13691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-nls argument" >&5 13692$as_echo_n "checking --disable-nls argument... " >&6; } 13693# Check whether --enable-nls was given. 13694if test "${enable_nls+set}" = set; then : 13695 enableval=$enable_nls; 13696else 13697 enable_nls="yes" 13698fi 13699 13700 13701if test "$enable_nls" = "yes"; then 13702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13703$as_echo "no" >&6; } 13704 13705 INSTALL_LANGS=install-languages 13706 13707 INSTALL_TOOL_LANGS=install-tool-languages 13708 13709 13710 # Extract the first word of "msgfmt", so it can be a program name with args. 13711set dummy msgfmt; ac_word=$2 13712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13713$as_echo_n "checking for $ac_word... " >&6; } 13714if ${ac_cv_prog_MSGFMT+:} false; then : 13715 $as_echo_n "(cached) " >&6 13716else 13717 if test -n "$MSGFMT"; then 13718 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test. 13719else 13720as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13721for as_dir in $PATH 13722do 13723 IFS=$as_save_IFS 13724 test -z "$as_dir" && as_dir=. 13725 for ac_exec_ext in '' $ac_executable_extensions; do 13726 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13727 ac_cv_prog_MSGFMT="msgfmt" 13728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13729 break 2 13730 fi 13731done 13732 done 13733IFS=$as_save_IFS 13734 13735fi 13736fi 13737MSGFMT=$ac_cv_prog_MSGFMT 13738if test -n "$MSGFMT"; then 13739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 13740$as_echo "$MSGFMT" >&6; } 13741else 13742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13743$as_echo "no" >&6; } 13744fi 13745 13746 13747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NLS" >&5 13748$as_echo_n "checking for NLS... " >&6; } 13749 if test -f po/Makefile; then 13750 have_gettext="no" 13751 if test -n "$MSGFMT"; then 13752 olibs=$LIBS 13753 LIBS="" 13754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13755/* end confdefs.h. */ 13756#include <libintl.h> 13757int 13758main () 13759{ 13760gettext("Test"); 13761 ; 13762 return 0; 13763} 13764_ACEOF 13765if ac_fn_c_try_link "$LINENO"; then : 13766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: gettext() works" >&5 13767$as_echo "gettext() works" >&6; }; have_gettext="yes"; LIBS=$olibs 13768else 13769 LIBS="-lintl" 13770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13771/* end confdefs.h. */ 13772#include <libintl.h> 13773int 13774main () 13775{ 13776gettext("Test"); 13777 ; 13778 return 0; 13779} 13780_ACEOF 13781if ac_fn_c_try_link "$LINENO"; then : 13782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: gettext() works with -lintl" >&5 13783$as_echo "gettext() works with -lintl" >&6; }; have_gettext="yes"; 13784 LIBS="$olibs -lintl" 13785else 13786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: gettext() doesn't work" >&5 13787$as_echo "gettext() doesn't work" >&6; }; 13788 LIBS=$olibs 13789fi 13790rm -f core conftest.err conftest.$ac_objext \ 13791 conftest$ac_exeext conftest.$ac_ext 13792fi 13793rm -f core conftest.err conftest.$ac_objext \ 13794 conftest$ac_exeext conftest.$ac_ext 13795 else 13796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: msgfmt not found - disabled" >&5 13797$as_echo "msgfmt not found - disabled" >&6; }; 13798 fi 13799 if test $have_gettext = "yes" -a "x$features" != "xtiny" -a "x$features" != "xsmall"; then 13800 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h 13801 13802 MAKEMO=yes 13803 13804 for ac_func in bind_textdomain_codeset 13805do : 13806 ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset" 13807if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then : 13808 cat >>confdefs.h <<_ACEOF 13809#define HAVE_BIND_TEXTDOMAIN_CODESET 1 13810_ACEOF 13811 13812fi 13813done 13814 13815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _nl_msg_cat_cntr" >&5 13816$as_echo_n "checking for _nl_msg_cat_cntr... " >&6; } 13817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13818/* end confdefs.h. */ 13819#include <libintl.h> 13820 extern int _nl_msg_cat_cntr; 13821int 13822main () 13823{ 13824++_nl_msg_cat_cntr; 13825 ; 13826 return 0; 13827} 13828_ACEOF 13829if ac_fn_c_try_link "$LINENO"; then : 13830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13831$as_echo "yes" >&6; }; $as_echo "#define HAVE_NL_MSG_CAT_CNTR 1" >>confdefs.h 13832 13833else 13834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13835$as_echo "no" >&6; } 13836fi 13837rm -f core conftest.err conftest.$ac_objext \ 13838 conftest$ac_exeext conftest.$ac_ext 13839 fi 13840 else 13841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no \"po/Makefile\" - disabled" >&5 13842$as_echo "no \"po/Makefile\" - disabled" >&6; }; 13843 fi 13844else 13845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13846$as_echo "yes" >&6; } 13847fi 13848 13849ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default" 13850if test "x$ac_cv_header_dlfcn_h" = xyes; then : 13851 DLL=dlfcn.h 13852else 13853 ac_fn_c_check_header_mongrel "$LINENO" "dl.h" "ac_cv_header_dl_h" "$ac_includes_default" 13854if test "x$ac_cv_header_dl_h" = xyes; then : 13855 DLL=dl.h 13856fi 13857 13858 13859fi 13860 13861 13862if test x${DLL} = xdlfcn.h; then 13863 13864$as_echo "#define HAVE_DLFCN_H 1" >>confdefs.h 13865 13866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen()" >&5 13867$as_echo_n "checking for dlopen()... " >&6; } 13868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13869/* end confdefs.h. */ 13870 13871int 13872main () 13873{ 13874 13875 extern void* dlopen(); 13876 dlopen(); 13877 13878 ; 13879 return 0; 13880} 13881_ACEOF 13882if ac_fn_c_try_link "$LINENO"; then : 13883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13884$as_echo "yes" >&6; }; 13885 13886$as_echo "#define HAVE_DLOPEN 1" >>confdefs.h 13887 13888else 13889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13890$as_echo "no" >&6; }; 13891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen() in -ldl" >&5 13892$as_echo_n "checking for dlopen() in -ldl... " >&6; } 13893 olibs=$LIBS 13894 LIBS="$LIBS -ldl" 13895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13896/* end confdefs.h. */ 13897 13898int 13899main () 13900{ 13901 13902 extern void* dlopen(); 13903 dlopen(); 13904 13905 ; 13906 return 0; 13907} 13908_ACEOF 13909if ac_fn_c_try_link "$LINENO"; then : 13910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13911$as_echo "yes" >&6; }; 13912 13913$as_echo "#define HAVE_DLOPEN 1" >>confdefs.h 13914 13915else 13916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13917$as_echo "no" >&6; }; 13918 LIBS=$olibs 13919fi 13920rm -f core conftest.err conftest.$ac_objext \ 13921 conftest$ac_exeext conftest.$ac_ext 13922fi 13923rm -f core conftest.err conftest.$ac_objext \ 13924 conftest$ac_exeext conftest.$ac_ext 13925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym()" >&5 13926$as_echo_n "checking for dlsym()... " >&6; } 13927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13928/* end confdefs.h. */ 13929 13930int 13931main () 13932{ 13933 13934 extern void* dlsym(); 13935 dlsym(); 13936 13937 ; 13938 return 0; 13939} 13940_ACEOF 13941if ac_fn_c_try_link "$LINENO"; then : 13942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13943$as_echo "yes" >&6; }; 13944 13945$as_echo "#define HAVE_DLSYM 1" >>confdefs.h 13946 13947else 13948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13949$as_echo "no" >&6; }; 13950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym() in -ldl" >&5 13951$as_echo_n "checking for dlsym() in -ldl... " >&6; } 13952 olibs=$LIBS 13953 LIBS="$LIBS -ldl" 13954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13955/* end confdefs.h. */ 13956 13957int 13958main () 13959{ 13960 13961 extern void* dlsym(); 13962 dlsym(); 13963 13964 ; 13965 return 0; 13966} 13967_ACEOF 13968if ac_fn_c_try_link "$LINENO"; then : 13969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13970$as_echo "yes" >&6; }; 13971 13972$as_echo "#define HAVE_DLSYM 1" >>confdefs.h 13973 13974else 13975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13976$as_echo "no" >&6; }; 13977 LIBS=$olibs 13978fi 13979rm -f core conftest.err conftest.$ac_objext \ 13980 conftest$ac_exeext conftest.$ac_ext 13981fi 13982rm -f core conftest.err conftest.$ac_objext \ 13983 conftest$ac_exeext conftest.$ac_ext 13984elif test x${DLL} = xdl.h; then 13985 13986$as_echo "#define HAVE_DL_H 1" >>confdefs.h 13987 13988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load()" >&5 13989$as_echo_n "checking for shl_load()... " >&6; } 13990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13991/* end confdefs.h. */ 13992 13993int 13994main () 13995{ 13996 13997 extern void* shl_load(); 13998 shl_load(); 13999 14000 ; 14001 return 0; 14002} 14003_ACEOF 14004if ac_fn_c_try_link "$LINENO"; then : 14005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14006$as_echo "yes" >&6; }; 14007 14008$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h 14009 14010else 14011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14012$as_echo "no" >&6; }; 14013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load() in -ldld" >&5 14014$as_echo_n "checking for shl_load() in -ldld... " >&6; } 14015 olibs=$LIBS 14016 LIBS="$LIBS -ldld" 14017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14018/* end confdefs.h. */ 14019 14020int 14021main () 14022{ 14023 14024 extern void* shl_load(); 14025 shl_load(); 14026 14027 ; 14028 return 0; 14029} 14030_ACEOF 14031if ac_fn_c_try_link "$LINENO"; then : 14032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14033$as_echo "yes" >&6; }; 14034 14035$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h 14036 14037else 14038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14039$as_echo "no" >&6; }; 14040 LIBS=$olibs 14041fi 14042rm -f core conftest.err conftest.$ac_objext \ 14043 conftest$ac_exeext conftest.$ac_ext 14044fi 14045rm -f core conftest.err conftest.$ac_objext \ 14046 conftest$ac_exeext conftest.$ac_ext 14047fi 14048for ac_header in setjmp.h 14049do : 14050 ac_fn_c_check_header_mongrel "$LINENO" "setjmp.h" "ac_cv_header_setjmp_h" "$ac_includes_default" 14051if test "x$ac_cv_header_setjmp_h" = xyes; then : 14052 cat >>confdefs.h <<_ACEOF 14053#define HAVE_SETJMP_H 1 14054_ACEOF 14055 14056fi 14057 14058done 14059 14060 14061if test "x$MACOSX" = "xyes" -a -n "$PERL"; then 14062 if echo $LIBS | grep -e '-ldl' >/dev/null; then 14063 LIBS=`echo $LIBS | sed s/-ldl//` 14064 PERL_LIBS="$PERL_LIBS -ldl" 14065 fi 14066fi 14067 14068if test "x$MACOSX" = "xyes"; then 14069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -framework Cocoa" >&5 14070$as_echo_n "checking whether we need -framework Cocoa... " >&6; } 14071 if test "x$features" != "xtiny" || test "x$enable_multibyte" = "xyes"; then 14072 LIBS=$"$LIBS -framework Cocoa" 14073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14074$as_echo "yes" >&6; } 14075 else 14076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14077$as_echo "no" >&6; } 14078 fi 14079 if test "x$features" = "xtiny"; then 14080 OS_EXTRA_SRC=`echo "$OS_EXTRA_SRC" | sed -e 's+os_macosx.m++'` 14081 OS_EXTRA_OBJ=`echo "$OS_EXTRA_OBJ" | sed -e 's+objects/os_macosx.o++'` 14082 fi 14083fi 14084if test "x$MACARCH" = "xboth" && test "x$GUITYPE" = "xCARBONGUI"; then 14085 LDFLAGS="$LDFLAGS -isysroot $DEVELOPER_DIR/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc" 14086fi 14087 14088DEPEND_CFLAGS_FILTER= 14089if test "$GCC" = yes; then 14090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC 3 or later" >&5 14091$as_echo_n "checking for GCC 3 or later... " >&6; } 14092 gccmajor=`echo "$gccversion" | sed -e 's/^\([1-9]\)\..*$/\1/g'` 14093 if test "$gccmajor" -gt "2"; then 14094 DEPEND_CFLAGS_FILTER="| sed 's+-I */+-isystem /+g'" 14095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14096$as_echo "yes" >&6; } 14097 else 14098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14099$as_echo "no" >&6; } 14100 fi 14101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need -D_FORTIFY_SOURCE=1" >&5 14102$as_echo_n "checking whether we need -D_FORTIFY_SOURCE=1... " >&6; } 14103 if test "$gccmajor" -gt "3"; then 14104 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/'` 14105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14106$as_echo "yes" >&6; } 14107 else 14108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14109$as_echo "no" >&6; } 14110 fi 14111fi 14112 14113 14114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5 14115$as_echo_n "checking linker --as-needed support... " >&6; } 14116LINK_AS_NEEDED= 14117# Check if linker supports --as-needed and --no-as-needed options 14118if $CC -Wl,--help 2>/dev/null | grep as-needed > /dev/null; then 14119 LDFLAGS=`echo "$LDFLAGS" | sed -e 's/ *-Wl,--as-needed//g' | sed -e 's/$/ -Wl,--as-needed/'` 14120 LINK_AS_NEEDED=yes 14121fi 14122if test "$LINK_AS_NEEDED" = yes; then 14123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14124$as_echo "yes" >&6; } 14125else 14126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14127$as_echo "no" >&6; } 14128fi 14129 14130 14131# IBM z/OS reset CFLAGS for config.mk 14132if test "$zOSUnix" = "yes"; then 14133 CFLAGS="-D_ALL_SOURCE -Wc,float\(ieee\),dll" 14134fi 14135 14136ac_config_files="$ac_config_files auto/config.mk:config.mk.in" 14137 14138cat >confcache <<\_ACEOF 14139# This file is a shell script that caches the results of configure 14140# tests run on this system so they can be shared between configure 14141# scripts and configure runs, see configure's option --config-cache. 14142# It is not useful on other systems. If it contains results you don't 14143# want to keep, you may remove or edit it. 14144# 14145# config.status only pays attention to the cache file if you give it 14146# the --recheck option to rerun configure. 14147# 14148# `ac_cv_env_foo' variables (set or unset) will be overridden when 14149# loading this file, other *unset* `ac_cv_foo' will be assigned the 14150# following values. 14151 14152_ACEOF 14153 14154# The following way of writing the cache mishandles newlines in values, 14155# but we know of no workaround that is simple, portable, and efficient. 14156# So, we kill variables containing newlines. 14157# Ultrix sh set writes to stderr and can't be redirected directly, 14158# and sets the high bit in the cache file unless we assign to the vars. 14159( 14160 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 14161 eval ac_val=\$$ac_var 14162 case $ac_val in #( 14163 *${as_nl}*) 14164 case $ac_var in #( 14165 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 14166$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 14167 esac 14168 case $ac_var in #( 14169 _ | IFS | as_nl) ;; #( 14170 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 14171 *) { eval $ac_var=; unset $ac_var;} ;; 14172 esac ;; 14173 esac 14174 done 14175 14176 (set) 2>&1 | 14177 case $as_nl`(ac_space=' '; set) 2>&1` in #( 14178 *${as_nl}ac_space=\ *) 14179 # `set' does not quote correctly, so add quotes: double-quote 14180 # substitution turns \\\\ into \\, and sed turns \\ into \. 14181 sed -n \ 14182 "s/'/'\\\\''/g; 14183 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 14184 ;; #( 14185 *) 14186 # `set' quotes correctly as required by POSIX, so do not add quotes. 14187 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 14188 ;; 14189 esac | 14190 sort 14191) | 14192 sed ' 14193 /^ac_cv_env_/b end 14194 t clear 14195 :clear 14196 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 14197 t end 14198 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 14199 :end' >>confcache 14200if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 14201 if test -w "$cache_file"; then 14202 if test "x$cache_file" != "x/dev/null"; then 14203 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 14204$as_echo "$as_me: updating cache $cache_file" >&6;} 14205 if test ! -f "$cache_file" || test -h "$cache_file"; then 14206 cat confcache >"$cache_file" 14207 else 14208 case $cache_file in #( 14209 */* | ?:*) 14210 mv -f confcache "$cache_file"$$ && 14211 mv -f "$cache_file"$$ "$cache_file" ;; #( 14212 *) 14213 mv -f confcache "$cache_file" ;; 14214 esac 14215 fi 14216 fi 14217 else 14218 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 14219$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 14220 fi 14221fi 14222rm -f confcache 14223 14224test "x$prefix" = xNONE && prefix=$ac_default_prefix 14225# Let make expand exec_prefix. 14226test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 14227 14228DEFS=-DHAVE_CONFIG_H 14229 14230ac_libobjs= 14231ac_ltlibobjs= 14232U= 14233for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 14234 # 1. Remove the extension, and $U if already installed. 14235 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 14236 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 14237 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 14238 # will be set to the directory where LIBOBJS objects are built. 14239 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 14240 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 14241done 14242LIBOBJS=$ac_libobjs 14243 14244LTLIBOBJS=$ac_ltlibobjs 14245 14246 14247 14248 14249: "${CONFIG_STATUS=./config.status}" 14250ac_write_fail=0 14251ac_clean_files_save=$ac_clean_files 14252ac_clean_files="$ac_clean_files $CONFIG_STATUS" 14253{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 14254$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 14255as_write_fail=0 14256cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 14257#! $SHELL 14258# Generated by $as_me. 14259# Run this file to recreate the current configuration. 14260# Compiler output produced by configure, useful for debugging 14261# configure, is in config.log if it exists. 14262 14263debug=false 14264ac_cs_recheck=false 14265ac_cs_silent=false 14266 14267SHELL=\${CONFIG_SHELL-$SHELL} 14268export SHELL 14269_ASEOF 14270cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 14271## -------------------- ## 14272## M4sh Initialization. ## 14273## -------------------- ## 14274 14275# Be more Bourne compatible 14276DUALCASE=1; export DUALCASE # for MKS sh 14277if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 14278 emulate sh 14279 NULLCMD=: 14280 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 14281 # is contrary to our usage. Disable this feature. 14282 alias -g '${1+"$@"}'='"$@"' 14283 setopt NO_GLOB_SUBST 14284else 14285 case `(set -o) 2>/dev/null` in #( 14286 *posix*) : 14287 set -o posix ;; #( 14288 *) : 14289 ;; 14290esac 14291fi 14292 14293 14294as_nl=' 14295' 14296export as_nl 14297# Printing a long string crashes Solaris 7 /usr/bin/printf. 14298as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 14299as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 14300as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 14301# Prefer a ksh shell builtin over an external printf program on Solaris, 14302# but without wasting forks for bash or zsh. 14303if test -z "$BASH_VERSION$ZSH_VERSION" \ 14304 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 14305 as_echo='print -r --' 14306 as_echo_n='print -rn --' 14307elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 14308 as_echo='printf %s\n' 14309 as_echo_n='printf %s' 14310else 14311 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 14312 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 14313 as_echo_n='/usr/ucb/echo -n' 14314 else 14315 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 14316 as_echo_n_body='eval 14317 arg=$1; 14318 case $arg in #( 14319 *"$as_nl"*) 14320 expr "X$arg" : "X\\(.*\\)$as_nl"; 14321 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 14322 esac; 14323 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 14324 ' 14325 export as_echo_n_body 14326 as_echo_n='sh -c $as_echo_n_body as_echo' 14327 fi 14328 export as_echo_body 14329 as_echo='sh -c $as_echo_body as_echo' 14330fi 14331 14332# The user is always right. 14333if test "${PATH_SEPARATOR+set}" != set; then 14334 PATH_SEPARATOR=: 14335 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 14336 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 14337 PATH_SEPARATOR=';' 14338 } 14339fi 14340 14341 14342# IFS 14343# We need space, tab and new line, in precisely that order. Quoting is 14344# there to prevent editors from complaining about space-tab. 14345# (If _AS_PATH_WALK were called with IFS unset, it would disable word 14346# splitting by setting IFS to empty value.) 14347IFS=" "" $as_nl" 14348 14349# Find who we are. Look in the path if we contain no directory separator. 14350as_myself= 14351case $0 in #(( 14352 *[\\/]* ) as_myself=$0 ;; 14353 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14354for as_dir in $PATH 14355do 14356 IFS=$as_save_IFS 14357 test -z "$as_dir" && as_dir=. 14358 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 14359 done 14360IFS=$as_save_IFS 14361 14362 ;; 14363esac 14364# We did not find ourselves, most probably we were run as `sh COMMAND' 14365# in which case we are not to be found in the path. 14366if test "x$as_myself" = x; then 14367 as_myself=$0 14368fi 14369if test ! -f "$as_myself"; then 14370 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 14371 exit 1 14372fi 14373 14374# Unset variables that we do not need and which cause bugs (e.g. in 14375# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 14376# suppresses any "Segmentation fault" message there. '((' could 14377# trigger a bug in pdksh 5.2.14. 14378for as_var in BASH_ENV ENV MAIL MAILPATH 14379do eval test x\${$as_var+set} = xset \ 14380 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 14381done 14382PS1='$ ' 14383PS2='> ' 14384PS4='+ ' 14385 14386# NLS nuisances. 14387LC_ALL=C 14388export LC_ALL 14389LANGUAGE=C 14390export LANGUAGE 14391 14392# CDPATH. 14393(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 14394 14395 14396# as_fn_error STATUS ERROR [LINENO LOG_FD] 14397# ---------------------------------------- 14398# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 14399# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 14400# script with STATUS, using 1 if that was 0. 14401as_fn_error () 14402{ 14403 as_status=$1; test $as_status -eq 0 && as_status=1 14404 if test "$4"; then 14405 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 14406 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 14407 fi 14408 $as_echo "$as_me: error: $2" >&2 14409 as_fn_exit $as_status 14410} # as_fn_error 14411 14412 14413# as_fn_set_status STATUS 14414# ----------------------- 14415# Set $? to STATUS, without forking. 14416as_fn_set_status () 14417{ 14418 return $1 14419} # as_fn_set_status 14420 14421# as_fn_exit STATUS 14422# ----------------- 14423# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 14424as_fn_exit () 14425{ 14426 set +e 14427 as_fn_set_status $1 14428 exit $1 14429} # as_fn_exit 14430 14431# as_fn_unset VAR 14432# --------------- 14433# Portably unset VAR. 14434as_fn_unset () 14435{ 14436 { eval $1=; unset $1;} 14437} 14438as_unset=as_fn_unset 14439# as_fn_append VAR VALUE 14440# ---------------------- 14441# Append the text in VALUE to the end of the definition contained in VAR. Take 14442# advantage of any shell optimizations that allow amortized linear growth over 14443# repeated appends, instead of the typical quadratic growth present in naive 14444# implementations. 14445if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 14446 eval 'as_fn_append () 14447 { 14448 eval $1+=\$2 14449 }' 14450else 14451 as_fn_append () 14452 { 14453 eval $1=\$$1\$2 14454 } 14455fi # as_fn_append 14456 14457# as_fn_arith ARG... 14458# ------------------ 14459# Perform arithmetic evaluation on the ARGs, and store the result in the 14460# global $as_val. Take advantage of shells that can avoid forks. The arguments 14461# must be portable across $(()) and expr. 14462if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 14463 eval 'as_fn_arith () 14464 { 14465 as_val=$(( $* )) 14466 }' 14467else 14468 as_fn_arith () 14469 { 14470 as_val=`expr "$@" || test $? -eq 1` 14471 } 14472fi # as_fn_arith 14473 14474 14475if expr a : '\(a\)' >/dev/null 2>&1 && 14476 test "X`expr 00001 : '.*\(...\)'`" = X001; then 14477 as_expr=expr 14478else 14479 as_expr=false 14480fi 14481 14482if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 14483 as_basename=basename 14484else 14485 as_basename=false 14486fi 14487 14488if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 14489 as_dirname=dirname 14490else 14491 as_dirname=false 14492fi 14493 14494as_me=`$as_basename -- "$0" || 14495$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 14496 X"$0" : 'X\(//\)$' \| \ 14497 X"$0" : 'X\(/\)' \| . 2>/dev/null || 14498$as_echo X/"$0" | 14499 sed '/^.*\/\([^/][^/]*\)\/*$/{ 14500 s//\1/ 14501 q 14502 } 14503 /^X\/\(\/\/\)$/{ 14504 s//\1/ 14505 q 14506 } 14507 /^X\/\(\/\).*/{ 14508 s//\1/ 14509 q 14510 } 14511 s/.*/./; q'` 14512 14513# Avoid depending upon Character Ranges. 14514as_cr_letters='abcdefghijklmnopqrstuvwxyz' 14515as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 14516as_cr_Letters=$as_cr_letters$as_cr_LETTERS 14517as_cr_digits='0123456789' 14518as_cr_alnum=$as_cr_Letters$as_cr_digits 14519 14520ECHO_C= ECHO_N= ECHO_T= 14521case `echo -n x` in #((((( 14522-n*) 14523 case `echo 'xy\c'` in 14524 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 14525 xy) ECHO_C='\c';; 14526 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 14527 ECHO_T=' ';; 14528 esac;; 14529*) 14530 ECHO_N='-n';; 14531esac 14532 14533rm -f conf$$ conf$$.exe conf$$.file 14534if test -d conf$$.dir; then 14535 rm -f conf$$.dir/conf$$.file 14536else 14537 rm -f conf$$.dir 14538 mkdir conf$$.dir 2>/dev/null 14539fi 14540if (echo >conf$$.file) 2>/dev/null; then 14541 if ln -s conf$$.file conf$$ 2>/dev/null; then 14542 as_ln_s='ln -s' 14543 # ... but there are two gotchas: 14544 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 14545 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 14546 # In both cases, we have to default to `cp -pR'. 14547 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 14548 as_ln_s='cp -pR' 14549 elif ln conf$$.file conf$$ 2>/dev/null; then 14550 as_ln_s=ln 14551 else 14552 as_ln_s='cp -pR' 14553 fi 14554else 14555 as_ln_s='cp -pR' 14556fi 14557rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 14558rmdir conf$$.dir 2>/dev/null 14559 14560 14561# as_fn_mkdir_p 14562# ------------- 14563# Create "$as_dir" as a directory, including parents if necessary. 14564as_fn_mkdir_p () 14565{ 14566 14567 case $as_dir in #( 14568 -*) as_dir=./$as_dir;; 14569 esac 14570 test -d "$as_dir" || eval $as_mkdir_p || { 14571 as_dirs= 14572 while :; do 14573 case $as_dir in #( 14574 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 14575 *) as_qdir=$as_dir;; 14576 esac 14577 as_dirs="'$as_qdir' $as_dirs" 14578 as_dir=`$as_dirname -- "$as_dir" || 14579$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14580 X"$as_dir" : 'X\(//\)[^/]' \| \ 14581 X"$as_dir" : 'X\(//\)$' \| \ 14582 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 14583$as_echo X"$as_dir" | 14584 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14585 s//\1/ 14586 q 14587 } 14588 /^X\(\/\/\)[^/].*/{ 14589 s//\1/ 14590 q 14591 } 14592 /^X\(\/\/\)$/{ 14593 s//\1/ 14594 q 14595 } 14596 /^X\(\/\).*/{ 14597 s//\1/ 14598 q 14599 } 14600 s/.*/./; q'` 14601 test -d "$as_dir" && break 14602 done 14603 test -z "$as_dirs" || eval "mkdir $as_dirs" 14604 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 14605 14606 14607} # as_fn_mkdir_p 14608if mkdir -p . 2>/dev/null; then 14609 as_mkdir_p='mkdir -p "$as_dir"' 14610else 14611 test -d ./-p && rmdir ./-p 14612 as_mkdir_p=false 14613fi 14614 14615 14616# as_fn_executable_p FILE 14617# ----------------------- 14618# Test if FILE is an executable regular file. 14619as_fn_executable_p () 14620{ 14621 test -f "$1" && test -x "$1" 14622} # as_fn_executable_p 14623as_test_x='test -x' 14624as_executable_p=as_fn_executable_p 14625 14626# Sed expression to map a string onto a valid CPP name. 14627as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 14628 14629# Sed expression to map a string onto a valid variable name. 14630as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 14631 14632 14633exec 6>&1 14634## ----------------------------------- ## 14635## Main body of $CONFIG_STATUS script. ## 14636## ----------------------------------- ## 14637_ASEOF 14638test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 14639 14640cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14641# Save the log message, to keep $0 and so on meaningful, and to 14642# report actual input values of CONFIG_FILES etc. instead of their 14643# values after options handling. 14644ac_log=" 14645This file was extended by $as_me, which was 14646generated by GNU Autoconf 2.69. Invocation command line was 14647 14648 CONFIG_FILES = $CONFIG_FILES 14649 CONFIG_HEADERS = $CONFIG_HEADERS 14650 CONFIG_LINKS = $CONFIG_LINKS 14651 CONFIG_COMMANDS = $CONFIG_COMMANDS 14652 $ $0 $@ 14653 14654on `(hostname || uname -n) 2>/dev/null | sed 1q` 14655" 14656 14657_ACEOF 14658 14659case $ac_config_files in *" 14660"*) set x $ac_config_files; shift; ac_config_files=$*;; 14661esac 14662 14663case $ac_config_headers in *" 14664"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 14665esac 14666 14667 14668cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14669# Files that config.status was made for. 14670config_files="$ac_config_files" 14671config_headers="$ac_config_headers" 14672 14673_ACEOF 14674 14675cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14676ac_cs_usage="\ 14677\`$as_me' instantiates files and other configuration actions 14678from templates according to the current configuration. Unless the files 14679and actions are specified as TAGs, all are instantiated by default. 14680 14681Usage: $0 [OPTION]... [TAG]... 14682 14683 -h, --help print this help, then exit 14684 -V, --version print version number and configuration settings, then exit 14685 --config print configuration, then exit 14686 -q, --quiet, --silent 14687 do not print progress messages 14688 -d, --debug don't remove temporary files 14689 --recheck update $as_me by reconfiguring in the same conditions 14690 --file=FILE[:TEMPLATE] 14691 instantiate the configuration file FILE 14692 --header=FILE[:TEMPLATE] 14693 instantiate the configuration header FILE 14694 14695Configuration files: 14696$config_files 14697 14698Configuration headers: 14699$config_headers 14700 14701Report bugs to the package provider." 14702 14703_ACEOF 14704cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14705ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 14706ac_cs_version="\\ 14707config.status 14708configured by $0, generated by GNU Autoconf 2.69, 14709 with options \\"\$ac_cs_config\\" 14710 14711Copyright (C) 2012 Free Software Foundation, Inc. 14712This config.status script is free software; the Free Software Foundation 14713gives unlimited permission to copy, distribute and modify it." 14714 14715ac_pwd='$ac_pwd' 14716srcdir='$srcdir' 14717AWK='$AWK' 14718test -n "\$AWK" || AWK=awk 14719_ACEOF 14720 14721cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14722# The default lists apply if the user does not specify any file. 14723ac_need_defaults=: 14724while test $# != 0 14725do 14726 case $1 in 14727 --*=?*) 14728 ac_option=`expr "X$1" : 'X\([^=]*\)='` 14729 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 14730 ac_shift=: 14731 ;; 14732 --*=) 14733 ac_option=`expr "X$1" : 'X\([^=]*\)='` 14734 ac_optarg= 14735 ac_shift=: 14736 ;; 14737 *) 14738 ac_option=$1 14739 ac_optarg=$2 14740 ac_shift=shift 14741 ;; 14742 esac 14743 14744 case $ac_option in 14745 # Handling of the options. 14746 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 14747 ac_cs_recheck=: ;; 14748 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 14749 $as_echo "$ac_cs_version"; exit ;; 14750 --config | --confi | --conf | --con | --co | --c ) 14751 $as_echo "$ac_cs_config"; exit ;; 14752 --debug | --debu | --deb | --de | --d | -d ) 14753 debug=: ;; 14754 --file | --fil | --fi | --f ) 14755 $ac_shift 14756 case $ac_optarg in 14757 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 14758 '') as_fn_error $? "missing file argument" ;; 14759 esac 14760 as_fn_append CONFIG_FILES " '$ac_optarg'" 14761 ac_need_defaults=false;; 14762 --header | --heade | --head | --hea ) 14763 $ac_shift 14764 case $ac_optarg in 14765 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 14766 esac 14767 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 14768 ac_need_defaults=false;; 14769 --he | --h) 14770 # Conflict between --help and --header 14771 as_fn_error $? "ambiguous option: \`$1' 14772Try \`$0 --help' for more information.";; 14773 --help | --hel | -h ) 14774 $as_echo "$ac_cs_usage"; exit ;; 14775 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 14776 | -silent | --silent | --silen | --sile | --sil | --si | --s) 14777 ac_cs_silent=: ;; 14778 14779 # This is an error. 14780 -*) as_fn_error $? "unrecognized option: \`$1' 14781Try \`$0 --help' for more information." ;; 14782 14783 *) as_fn_append ac_config_targets " $1" 14784 ac_need_defaults=false ;; 14785 14786 esac 14787 shift 14788done 14789 14790ac_configure_extra_args= 14791 14792if $ac_cs_silent; then 14793 exec 6>/dev/null 14794 ac_configure_extra_args="$ac_configure_extra_args --silent" 14795fi 14796 14797_ACEOF 14798cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14799if \$ac_cs_recheck; then 14800 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 14801 shift 14802 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 14803 CONFIG_SHELL='$SHELL' 14804 export CONFIG_SHELL 14805 exec "\$@" 14806fi 14807 14808_ACEOF 14809cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14810exec 5>>auto/config.log 14811{ 14812 echo 14813 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 14814## Running $as_me. ## 14815_ASBOX 14816 $as_echo "$ac_log" 14817} >&5 14818 14819_ACEOF 14820cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14821_ACEOF 14822 14823cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14824 14825# Handling of arguments. 14826for ac_config_target in $ac_config_targets 14827do 14828 case $ac_config_target in 14829 "auto/config.h") CONFIG_HEADERS="$CONFIG_HEADERS auto/config.h:config.h.in" ;; 14830 "auto/config.mk") CONFIG_FILES="$CONFIG_FILES auto/config.mk:config.mk.in" ;; 14831 14832 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 14833 esac 14834done 14835 14836 14837# If the user did not use the arguments to specify the items to instantiate, 14838# then the envvar interface is used. Set only those that are not. 14839# We use the long form for the default assignment because of an extremely 14840# bizarre bug on SunOS 4.1.3. 14841if $ac_need_defaults; then 14842 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 14843 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 14844fi 14845 14846# Have a temporary directory for convenience. Make it in the build tree 14847# simply because there is no reason against having it here, and in addition, 14848# creating and moving files from /tmp can sometimes cause problems. 14849# Hook for its removal unless debugging. 14850# Note that there is a small window in which the directory will not be cleaned: 14851# after its creation but before its name has been assigned to `$tmp'. 14852$debug || 14853{ 14854 tmp= ac_tmp= 14855 trap 'exit_status=$? 14856 : "${ac_tmp:=$tmp}" 14857 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 14858' 0 14859 trap 'as_fn_exit 1' 1 2 13 15 14860} 14861# Create a (secure) tmp directory for tmp files. 14862 14863{ 14864 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 14865 test -d "$tmp" 14866} || 14867{ 14868 tmp=./conf$$-$RANDOM 14869 (umask 077 && mkdir "$tmp") 14870} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 14871ac_tmp=$tmp 14872 14873# Set up the scripts for CONFIG_FILES section. 14874# No need to generate them if there are no CONFIG_FILES. 14875# This happens for instance with `./config.status config.h'. 14876if test -n "$CONFIG_FILES"; then 14877 14878 14879ac_cr=`echo X | tr X '\015'` 14880# On cygwin, bash can eat \r inside `` if the user requested igncr. 14881# But we know of no other shell where ac_cr would be empty at this 14882# point, so we can use a bashism as a fallback. 14883if test "x$ac_cr" = x; then 14884 eval ac_cr=\$\'\\r\' 14885fi 14886ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 14887if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 14888 ac_cs_awk_cr='\\r' 14889else 14890 ac_cs_awk_cr=$ac_cr 14891fi 14892 14893echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 14894_ACEOF 14895 14896 14897{ 14898 echo "cat >conf$$subs.awk <<_ACEOF" && 14899 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 14900 echo "_ACEOF" 14901} >conf$$subs.sh || 14902 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 14903ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 14904ac_delim='%!_!# ' 14905for ac_last_try in false false false false false :; do 14906 . ./conf$$subs.sh || 14907 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 14908 14909 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 14910 if test $ac_delim_n = $ac_delim_num; then 14911 break 14912 elif $ac_last_try; then 14913 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 14914 else 14915 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 14916 fi 14917done 14918rm -f conf$$subs.sh 14919 14920cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14921cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 14922_ACEOF 14923sed -n ' 14924h 14925s/^/S["/; s/!.*/"]=/ 14926p 14927g 14928s/^[^!]*!// 14929:repl 14930t repl 14931s/'"$ac_delim"'$// 14932t delim 14933:nl 14934h 14935s/\(.\{148\}\)..*/\1/ 14936t more1 14937s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 14938p 14939n 14940b repl 14941:more1 14942s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 14943p 14944g 14945s/.\{148\}// 14946t nl 14947:delim 14948h 14949s/\(.\{148\}\)..*/\1/ 14950t more2 14951s/["\\]/\\&/g; s/^/"/; s/$/"/ 14952p 14953b 14954:more2 14955s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 14956p 14957g 14958s/.\{148\}// 14959t delim 14960' <conf$$subs.awk | sed ' 14961/^[^""]/{ 14962 N 14963 s/\n// 14964} 14965' >>$CONFIG_STATUS || ac_write_fail=1 14966rm -f conf$$subs.awk 14967cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14968_ACAWK 14969cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 14970 for (key in S) S_is_set[key] = 1 14971 FS = "" 14972 14973} 14974{ 14975 line = $ 0 14976 nfields = split(line, field, "@") 14977 substed = 0 14978 len = length(field[1]) 14979 for (i = 2; i < nfields; i++) { 14980 key = field[i] 14981 keylen = length(key) 14982 if (S_is_set[key]) { 14983 value = S[key] 14984 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 14985 len += length(value) + length(field[++i]) 14986 substed = 1 14987 } else 14988 len += 1 + keylen 14989 } 14990 14991 print line 14992} 14993 14994_ACAWK 14995_ACEOF 14996cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14997if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 14998 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 14999else 15000 cat 15001fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 15002 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 15003_ACEOF 15004 15005# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 15006# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 15007# trailing colons and then remove the whole line if VPATH becomes empty 15008# (actually we leave an empty line to preserve line numbers). 15009if test "x$srcdir" = x.; then 15010 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 15011h 15012s/// 15013s/^/:/ 15014s/[ ]*$/:/ 15015s/:\$(srcdir):/:/g 15016s/:\${srcdir}:/:/g 15017s/:@srcdir@:/:/g 15018s/^:*// 15019s/:*$// 15020x 15021s/\(=[ ]*\).*/\1/ 15022G 15023s/\n// 15024s/^[^=]*=[ ]*$// 15025}' 15026fi 15027 15028cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15029fi # test -n "$CONFIG_FILES" 15030 15031# Set up the scripts for CONFIG_HEADERS section. 15032# No need to generate them if there are no CONFIG_HEADERS. 15033# This happens for instance with `./config.status Makefile'. 15034if test -n "$CONFIG_HEADERS"; then 15035cat >"$ac_tmp/defines.awk" <<\_ACAWK || 15036BEGIN { 15037_ACEOF 15038 15039# Transform confdefs.h into an awk script `defines.awk', embedded as 15040# here-document in config.status, that substitutes the proper values into 15041# config.h.in to produce config.h. 15042 15043# Create a delimiter string that does not exist in confdefs.h, to ease 15044# handling of long lines. 15045ac_delim='%!_!# ' 15046for ac_last_try in false false :; do 15047 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 15048 if test -z "$ac_tt"; then 15049 break 15050 elif $ac_last_try; then 15051 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 15052 else 15053 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 15054 fi 15055done 15056 15057# For the awk script, D is an array of macro values keyed by name, 15058# likewise P contains macro parameters if any. Preserve backslash 15059# newline sequences. 15060 15061ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 15062sed -n ' 15063s/.\{148\}/&'"$ac_delim"'/g 15064t rset 15065:rset 15066s/^[ ]*#[ ]*define[ ][ ]*/ / 15067t def 15068d 15069:def 15070s/\\$// 15071t bsnl 15072s/["\\]/\\&/g 15073s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 15074D["\1"]=" \3"/p 15075s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 15076d 15077:bsnl 15078s/["\\]/\\&/g 15079s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 15080D["\1"]=" \3\\\\\\n"\\/p 15081t cont 15082s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 15083t cont 15084d 15085:cont 15086n 15087s/.\{148\}/&'"$ac_delim"'/g 15088t clear 15089:clear 15090s/\\$// 15091t bsnlc 15092s/["\\]/\\&/g; s/^/"/; s/$/"/p 15093d 15094:bsnlc 15095s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 15096b cont 15097' <confdefs.h | sed ' 15098s/'"$ac_delim"'/"\\\ 15099"/g' >>$CONFIG_STATUS || ac_write_fail=1 15100 15101cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15102 for (key in D) D_is_set[key] = 1 15103 FS = "" 15104} 15105/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 15106 line = \$ 0 15107 split(line, arg, " ") 15108 if (arg[1] == "#") { 15109 defundef = arg[2] 15110 mac1 = arg[3] 15111 } else { 15112 defundef = substr(arg[1], 2) 15113 mac1 = arg[2] 15114 } 15115 split(mac1, mac2, "(") #) 15116 macro = mac2[1] 15117 prefix = substr(line, 1, index(line, defundef) - 1) 15118 if (D_is_set[macro]) { 15119 # Preserve the white space surrounding the "#". 15120 print prefix "define", macro P[macro] D[macro] 15121 next 15122 } else { 15123 # Replace #undef with comments. This is necessary, for example, 15124 # in the case of _POSIX_SOURCE, which is predefined and required 15125 # on some systems where configure will not decide to define it. 15126 if (defundef == "undef") { 15127 print "/*", prefix defundef, macro, "*/" 15128 next 15129 } 15130 } 15131} 15132{ print } 15133_ACAWK 15134_ACEOF 15135cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15136 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 15137fi # test -n "$CONFIG_HEADERS" 15138 15139 15140eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " 15141shift 15142for ac_tag 15143do 15144 case $ac_tag in 15145 :[FHLC]) ac_mode=$ac_tag; continue;; 15146 esac 15147 case $ac_mode$ac_tag in 15148 :[FHL]*:*);; 15149 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 15150 :[FH]-) ac_tag=-:-;; 15151 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 15152 esac 15153 ac_save_IFS=$IFS 15154 IFS=: 15155 set x $ac_tag 15156 IFS=$ac_save_IFS 15157 shift 15158 ac_file=$1 15159 shift 15160 15161 case $ac_mode in 15162 :L) ac_source=$1;; 15163 :[FH]) 15164 ac_file_inputs= 15165 for ac_f 15166 do 15167 case $ac_f in 15168 -) ac_f="$ac_tmp/stdin";; 15169 *) # Look for the file first in the build tree, then in the source tree 15170 # (if the path is not absolute). The absolute path cannot be DOS-style, 15171 # because $ac_f cannot contain `:'. 15172 test -f "$ac_f" || 15173 case $ac_f in 15174 [\\/$]*) false;; 15175 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 15176 esac || 15177 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 15178 esac 15179 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 15180 as_fn_append ac_file_inputs " '$ac_f'" 15181 done 15182 15183 # Let's still pretend it is `configure' which instantiates (i.e., don't 15184 # use $as_me), people would be surprised to read: 15185 # /* config.h. Generated by config.status. */ 15186 configure_input='Generated from '` 15187 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 15188 `' by configure.' 15189 if test x"$ac_file" != x-; then 15190 configure_input="$ac_file. $configure_input" 15191 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 15192$as_echo "$as_me: creating $ac_file" >&6;} 15193 fi 15194 # Neutralize special characters interpreted by sed in replacement strings. 15195 case $configure_input in #( 15196 *\&* | *\|* | *\\* ) 15197 ac_sed_conf_input=`$as_echo "$configure_input" | 15198 sed 's/[\\\\&|]/\\\\&/g'`;; #( 15199 *) ac_sed_conf_input=$configure_input;; 15200 esac 15201 15202 case $ac_tag in 15203 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 15204 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 15205 esac 15206 ;; 15207 esac 15208 15209 ac_dir=`$as_dirname -- "$ac_file" || 15210$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15211 X"$ac_file" : 'X\(//\)[^/]' \| \ 15212 X"$ac_file" : 'X\(//\)$' \| \ 15213 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 15214$as_echo X"$ac_file" | 15215 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15216 s//\1/ 15217 q 15218 } 15219 /^X\(\/\/\)[^/].*/{ 15220 s//\1/ 15221 q 15222 } 15223 /^X\(\/\/\)$/{ 15224 s//\1/ 15225 q 15226 } 15227 /^X\(\/\).*/{ 15228 s//\1/ 15229 q 15230 } 15231 s/.*/./; q'` 15232 as_dir="$ac_dir"; as_fn_mkdir_p 15233 ac_builddir=. 15234 15235case "$ac_dir" in 15236.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 15237*) 15238 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 15239 # A ".." for each directory in $ac_dir_suffix. 15240 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 15241 case $ac_top_builddir_sub in 15242 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 15243 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 15244 esac ;; 15245esac 15246ac_abs_top_builddir=$ac_pwd 15247ac_abs_builddir=$ac_pwd$ac_dir_suffix 15248# for backward compatibility: 15249ac_top_builddir=$ac_top_build_prefix 15250 15251case $srcdir in 15252 .) # We are building in place. 15253 ac_srcdir=. 15254 ac_top_srcdir=$ac_top_builddir_sub 15255 ac_abs_top_srcdir=$ac_pwd ;; 15256 [\\/]* | ?:[\\/]* ) # Absolute name. 15257 ac_srcdir=$srcdir$ac_dir_suffix; 15258 ac_top_srcdir=$srcdir 15259 ac_abs_top_srcdir=$srcdir ;; 15260 *) # Relative name. 15261 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 15262 ac_top_srcdir=$ac_top_build_prefix$srcdir 15263 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 15264esac 15265ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 15266 15267 15268 case $ac_mode in 15269 :F) 15270 # 15271 # CONFIG_FILE 15272 # 15273 15274_ACEOF 15275 15276cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15277# If the template does not know about datarootdir, expand it. 15278# FIXME: This hack should be removed a few years after 2.60. 15279ac_datarootdir_hack=; ac_datarootdir_seen= 15280ac_sed_dataroot=' 15281/datarootdir/ { 15282 p 15283 q 15284} 15285/@datadir@/p 15286/@docdir@/p 15287/@infodir@/p 15288/@localedir@/p 15289/@mandir@/p' 15290case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 15291*datarootdir*) ac_datarootdir_seen=yes;; 15292*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 15293 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 15294$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 15295_ACEOF 15296cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15297 ac_datarootdir_hack=' 15298 s&@datadir@&$datadir&g 15299 s&@docdir@&$docdir&g 15300 s&@infodir@&$infodir&g 15301 s&@localedir@&$localedir&g 15302 s&@mandir@&$mandir&g 15303 s&\\\${datarootdir}&$datarootdir&g' ;; 15304esac 15305_ACEOF 15306 15307# Neutralize VPATH when `$srcdir' = `.'. 15308# Shell code in configure.ac might set extrasub. 15309# FIXME: do we really want to maintain this feature? 15310cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15311ac_sed_extra="$ac_vpsub 15312$extrasub 15313_ACEOF 15314cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15315:t 15316/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 15317s|@configure_input@|$ac_sed_conf_input|;t t 15318s&@top_builddir@&$ac_top_builddir_sub&;t t 15319s&@top_build_prefix@&$ac_top_build_prefix&;t t 15320s&@srcdir@&$ac_srcdir&;t t 15321s&@abs_srcdir@&$ac_abs_srcdir&;t t 15322s&@top_srcdir@&$ac_top_srcdir&;t t 15323s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 15324s&@builddir@&$ac_builddir&;t t 15325s&@abs_builddir@&$ac_abs_builddir&;t t 15326s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 15327$ac_datarootdir_hack 15328" 15329eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 15330 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 15331 15332test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 15333 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 15334 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 15335 "$ac_tmp/out"`; test -z "$ac_out"; } && 15336 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 15337which seems to be undefined. Please make sure it is defined" >&5 15338$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 15339which seems to be undefined. Please make sure it is defined" >&2;} 15340 15341 rm -f "$ac_tmp/stdin" 15342 case $ac_file in 15343 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 15344 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 15345 esac \ 15346 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 15347 ;; 15348 :H) 15349 # 15350 # CONFIG_HEADER 15351 # 15352 if test x"$ac_file" != x-; then 15353 { 15354 $as_echo "/* $configure_input */" \ 15355 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 15356 } >"$ac_tmp/config.h" \ 15357 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 15358 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 15359 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 15360$as_echo "$as_me: $ac_file is unchanged" >&6;} 15361 else 15362 rm -f "$ac_file" 15363 mv "$ac_tmp/config.h" "$ac_file" \ 15364 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 15365 fi 15366 else 15367 $as_echo "/* $configure_input */" \ 15368 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 15369 || as_fn_error $? "could not create -" "$LINENO" 5 15370 fi 15371 ;; 15372 15373 15374 esac 15375 15376done # for ac_tag 15377 15378 15379as_fn_exit 0 15380_ACEOF 15381ac_clean_files=$ac_clean_files_save 15382 15383test $ac_write_fail = 0 || 15384 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 15385 15386 15387# configure is writing to config.log, and then calls config.status. 15388# config.status does its own redirection, appending to config.log. 15389# Unfortunately, on DOS this fails, as config.log is still kept open 15390# by configure, so config.status won't be able to write to it; its 15391# output is simply discarded. So we exec the FD to /dev/null, 15392# effectively closing config.log, so it can be properly (re)opened and 15393# appended to by config.status. When coming back to configure, we 15394# need to make the FD available again. 15395if test "$no_create" != yes; then 15396 ac_cs_success=: 15397 ac_config_status_args= 15398 test "$silent" = yes && 15399 ac_config_status_args="$ac_config_status_args --quiet" 15400 exec 5>/dev/null 15401 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 15402 exec 5>>auto/config.log 15403 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 15404 # would make configure fail if this is the last instruction. 15405 $ac_cs_success || as_fn_exit 1 15406fi 15407if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 15408 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 15409$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 15410fi 15411 15412 15413