1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.59. 4# 5# Copyright (C) 2003 Free Software Foundation, Inc. 6# This configure script is free software; the Free Software Foundation 7# gives unlimited permission to copy, distribute and modify it. 8## --------------------- ## 9## M4sh Initialization. ## 10## --------------------- ## 11 12# Be Bourne compatible 13if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 14 emulate sh 15 NULLCMD=: 16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 17 # is contrary to our usage. Disable this feature. 18 alias -g '${1+"$@"}'='"$@"' 19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 20 set -o posix 21fi 22DUALCASE=1; export DUALCASE # for MKS sh 23 24# Support unset when possible. 25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 26 as_unset=unset 27else 28 as_unset=false 29fi 30 31 32# Work around bugs in pre-3.0 UWIN ksh. 33$as_unset ENV MAIL MAILPATH 34PS1='$ ' 35PS2='> ' 36PS4='+ ' 37 38# NLS nuisances. 39for as_var in \ 40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 42 LC_TELEPHONE LC_TIME 43do 44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 45 eval $as_var=C; export $as_var 46 else 47 $as_unset $as_var 48 fi 49done 50 51# Required to use basename. 52if expr a : '\(a\)' >/dev/null 2>&1; then 53 as_expr=expr 54else 55 as_expr=false 56fi 57 58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 59 as_basename=basename 60else 61 as_basename=false 62fi 63 64 65# Name of the executable. 66as_me=`$as_basename "$0" || 67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 68 X"$0" : 'X\(//\)$' \| \ 69 X"$0" : 'X\(/\)$' \| \ 70 . : '\(.\)' 2>/dev/null || 71echo X/"$0" | 72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 73 /^X\/\(\/\/\)$/{ s//\1/; q; } 74 /^X\/\(\/\).*/{ s//\1/; q; } 75 s/.*/./; q'` 76 77 78# PATH needs CR, and LINENO needs CR and PATH. 79# Avoid depending upon Character Ranges. 80as_cr_letters='abcdefghijklmnopqrstuvwxyz' 81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 82as_cr_Letters=$as_cr_letters$as_cr_LETTERS 83as_cr_digits='0123456789' 84as_cr_alnum=$as_cr_Letters$as_cr_digits 85 86# The user is always right. 87if test "${PATH_SEPARATOR+set}" != set; then 88 echo "#! /bin/sh" >conf$$.sh 89 echo "exit 0" >>conf$$.sh 90 chmod +x conf$$.sh 91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 92 PATH_SEPARATOR=';' 93 else 94 PATH_SEPARATOR=: 95 fi 96 rm -f conf$$.sh 97fi 98 99 100 as_lineno_1=$LINENO 101 as_lineno_2=$LINENO 102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 103 test "x$as_lineno_1" != "x$as_lineno_2" && 104 test "x$as_lineno_3" = "x$as_lineno_2" || { 105 # Find who we are. Look in the path if we contain no path at all 106 # relative or not. 107 case $0 in 108 *[\\/]* ) as_myself=$0 ;; 109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 110for as_dir in $PATH 111do 112 IFS=$as_save_IFS 113 test -z "$as_dir" && as_dir=. 114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 115done 116 117 ;; 118 esac 119 # We did not find ourselves, most probably we were run as `sh COMMAND' 120 # in which case we are not to be found in the path. 121 if test "x$as_myself" = x; then 122 as_myself=$0 123 fi 124 if test ! -f "$as_myself"; then 125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 126 { (exit 1); exit 1; }; } 127 fi 128 case $CONFIG_SHELL in 129 '') 130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 132do 133 IFS=$as_save_IFS 134 test -z "$as_dir" && as_dir=. 135 for as_base in sh bash ksh sh5; do 136 case $as_dir in 137 /*) 138 if ("$as_dir/$as_base" -c ' 139 as_lineno_1=$LINENO 140 as_lineno_2=$LINENO 141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 142 test "x$as_lineno_1" != "x$as_lineno_2" && 143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 146 CONFIG_SHELL=$as_dir/$as_base 147 export CONFIG_SHELL 148 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 149 fi;; 150 esac 151 done 152done 153;; 154 esac 155 156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 157 # uniformly replaced by the line number. The first 'sed' inserts a 158 # line-number line before each line; the second 'sed' does the real 159 # work. The second script uses 'N' to pair each line-number line 160 # with the numbered line, and appends trailing '-' during 161 # substitution so that $LINENO is not a special case at line end. 162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 164 sed '=' <$as_myself | 165 sed ' 166 N 167 s,$,-, 168 : loop 169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 170 t loop 171 s,-$,, 172 s,^['$as_cr_digits']*\n,, 173 ' >$as_me.lineno && 174 chmod +x $as_me.lineno || 175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 176 { (exit 1); exit 1; }; } 177 178 # Don't try to exec as it changes $[0], causing all sort of problems 179 # (the dirname of $[0] is not the place where we might find the 180 # original and so on. Autoconf is especially sensible to this). 181 . ./$as_me.lineno 182 # Exit status is that of the last command. 183 exit 184} 185 186 187case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 188 *c*,-n*) ECHO_N= ECHO_C=' 189' ECHO_T=' ' ;; 190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 192esac 193 194if expr a : '\(a\)' >/dev/null 2>&1; then 195 as_expr=expr 196else 197 as_expr=false 198fi 199 200rm -f conf$$ conf$$.exe conf$$.file 201echo >conf$$.file 202if ln -s conf$$.file conf$$ 2>/dev/null; then 203 # We could just check for DJGPP; but this test a) works b) is more generic 204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 205 if test -f conf$$.exe; then 206 # Don't use ln at all; we don't have any links 207 as_ln_s='cp -p' 208 else 209 as_ln_s='ln -s' 210 fi 211elif ln conf$$.file conf$$ 2>/dev/null; then 212 as_ln_s=ln 213else 214 as_ln_s='cp -p' 215fi 216rm -f conf$$ conf$$.exe conf$$.file 217 218if mkdir -p . 2>/dev/null; then 219 as_mkdir_p=: 220else 221 test -d ./-p && rmdir ./-p 222 as_mkdir_p=false 223fi 224 225as_executable_p="test -f" 226 227# Sed expression to map a string onto a valid CPP name. 228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 229 230# Sed expression to map a string onto a valid variable name. 231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 232 233 234# IFS 235# We need space, tab and new line, in precisely that order. 236as_nl=' 237' 238IFS=" $as_nl" 239 240# CDPATH. 241$as_unset CDPATH 242 243 244# Name of the host. 245# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 246# so uname gets run too. 247ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 248 249exec 6>&1 250 251# 252# Initializations. 253# 254ac_default_prefix=/usr/local 255ac_config_libobj_dir=. 256cross_compiling=no 257subdirs= 258MFLAGS= 259MAKEFLAGS= 260SHELL=${CONFIG_SHELL-/bin/sh} 261 262# Maximum number of lines to put in a shell here document. 263# This variable seems obsolete. It should probably be removed, and 264# only ac_max_sed_lines should be used. 265: ${ac_max_here_lines=38} 266 267# Identity of this package. 268PACKAGE_NAME= 269PACKAGE_TARNAME= 270PACKAGE_VERSION= 271PACKAGE_STRING= 272PACKAGE_BUGREPORT= 273 274ac_unique_file="vim.h" 275# Factoring default headers for most tests. 276ac_includes_default="\ 277#include <stdio.h> 278#if HAVE_SYS_TYPES_H 279# include <sys/types.h> 280#endif 281#if HAVE_SYS_STAT_H 282# include <sys/stat.h> 283#endif 284#if STDC_HEADERS 285# include <stdlib.h> 286# include <stddef.h> 287#else 288# if HAVE_STDLIB_H 289# include <stdlib.h> 290# endif 291#endif 292#if HAVE_STRING_H 293# if !STDC_HEADERS && HAVE_MEMORY_H 294# include <memory.h> 295# endif 296# include <string.h> 297#endif 298#if HAVE_STRINGS_H 299# include <strings.h> 300#endif 301#if HAVE_INTTYPES_H 302# include <inttypes.h> 303#else 304# if HAVE_STDINT_H 305# include <stdint.h> 306# endif 307#endif 308#if HAVE_UNISTD_H 309# include <unistd.h> 310#endif" 311 312ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS SET_MAKE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP AWK STRIP CPP_MM OS_EXTRA_SRC OS_EXTRA_OBJ VIMNAME EXNAME VIEWNAME line_break dovimdiff dogvimdiff compiledby vi_cv_path_mzscheme MZSCHEME_SRC MZSCHEME_OBJ MZSCHEME_PRO MZSCHEME_LIBS MZSCHEME_CFLAGS vi_cv_path_perl vi_cv_perllib shrpenv PERL_SRC PERL_OBJ PERL_PRO PERL_CFLAGS PERL_LIBS vi_cv_path_python PYTHON_CONFDIR PYTHON_LIBS PYTHON_GETPATH_CFLAGS PYTHON_CFLAGS PYTHON_SRC PYTHON_OBJ vi_cv_path_tcl TCL_SRC TCL_OBJ TCL_PRO TCL_CFLAGS TCL_LIBS vi_cv_path_ruby RUBY_SRC RUBY_OBJ RUBY_PRO RUBY_CFLAGS RUBY_LIBS WORKSHOP_SRC WORKSHOP_OBJ NETBEANS_SRC NETBEANS_OBJ SNIFF_SRC SNIFF_OBJ xmkmfpath X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS X_LIB MOC KDE_CONFIG KDE_LIBS KDE_INCLUDES KDE_PREFIX CXX CXXFLAGS ac_ct_CXX QT_LIBS QT_INCLUDES ROOTQT GTK_CONFIG GTK12_CONFIG PKG_CONFIG GTK_CFLAGS GTK_LIBS GTK_LIBNAME GNOME_LIBS GNOME_LIBDIR GNOME_INCLUDEDIR GNOME_CONFIG MOTIF_LIBNAME NARROW_PROTO GUI_INC_LOC GUI_LIB_LOC GUITYPE GUI_X_LIBS HANGULIN_SRC HANGULIN_OBJ TAGPRG INSTALL_LANGS INSTALL_TOOL_LANGS MSGFMT MAKEMO DEPEND_CFLAGS_FILTER LIBOBJS LTLIBOBJS' 313ac_subst_files='' 314 315# Initialize some variables set by options. 316ac_init_help= 317ac_init_version=false 318# The variables have the same names as the options, with 319# dashes changed to underlines. 320cache_file=/dev/null 321exec_prefix=NONE 322no_create= 323no_recursion= 324prefix=NONE 325program_prefix=NONE 326program_suffix=NONE 327program_transform_name=s,x,x, 328silent= 329site= 330srcdir= 331verbose= 332x_includes=NONE 333x_libraries=NONE 334 335# Installation directory options. 336# These are left unexpanded so users can "make install exec_prefix=/foo" 337# and all the variables that are supposed to be based on exec_prefix 338# by default will actually change. 339# Use braces instead of parens because sh, perl, etc. also accept them. 340bindir='${exec_prefix}/bin' 341sbindir='${exec_prefix}/sbin' 342libexecdir='${exec_prefix}/libexec' 343datadir='${prefix}/share' 344sysconfdir='${prefix}/etc' 345sharedstatedir='${prefix}/com' 346localstatedir='${prefix}/var' 347libdir='${exec_prefix}/lib' 348includedir='${prefix}/include' 349oldincludedir='/usr/include' 350infodir='${prefix}/info' 351mandir='${prefix}/man' 352 353ac_prev= 354for ac_option 355do 356 # If the previous option needs an argument, assign it. 357 if test -n "$ac_prev"; then 358 eval "$ac_prev=\$ac_option" 359 ac_prev= 360 continue 361 fi 362 363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` 364 365 # Accept the important Cygnus configure options, so we can diagnose typos. 366 367 case $ac_option in 368 369 -bindir | --bindir | --bindi | --bind | --bin | --bi) 370 ac_prev=bindir ;; 371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 372 bindir=$ac_optarg ;; 373 374 -build | --build | --buil | --bui | --bu) 375 ac_prev=build_alias ;; 376 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 377 build_alias=$ac_optarg ;; 378 379 -cache-file | --cache-file | --cache-fil | --cache-fi \ 380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 381 ac_prev=cache_file ;; 382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 384 cache_file=$ac_optarg ;; 385 386 --config-cache | -C) 387 cache_file=config.cache ;; 388 389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) 390 ac_prev=datadir ;; 391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 392 | --da=*) 393 datadir=$ac_optarg ;; 394 395 -disable-* | --disable-*) 396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 397 # Reject names that are not valid shell variable names. 398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 400 { (exit 1); exit 1; }; } 401 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 402 eval "enable_$ac_feature=no" ;; 403 404 -enable-* | --enable-*) 405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 406 # Reject names that are not valid shell variable names. 407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 409 { (exit 1); exit 1; }; } 410 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 411 case $ac_option in 412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 413 *) ac_optarg=yes ;; 414 esac 415 eval "enable_$ac_feature='$ac_optarg'" ;; 416 417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 419 | --exec | --exe | --ex) 420 ac_prev=exec_prefix ;; 421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 423 | --exec=* | --exe=* | --ex=*) 424 exec_prefix=$ac_optarg ;; 425 426 -gas | --gas | --ga | --g) 427 # Obsolete; use --with-gas. 428 with_gas=yes ;; 429 430 -help | --help | --hel | --he | -h) 431 ac_init_help=long ;; 432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 433 ac_init_help=recursive ;; 434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 435 ac_init_help=short ;; 436 437 -host | --host | --hos | --ho) 438 ac_prev=host_alias ;; 439 -host=* | --host=* | --hos=* | --ho=*) 440 host_alias=$ac_optarg ;; 441 442 -includedir | --includedir | --includedi | --included | --include \ 443 | --includ | --inclu | --incl | --inc) 444 ac_prev=includedir ;; 445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 446 | --includ=* | --inclu=* | --incl=* | --inc=*) 447 includedir=$ac_optarg ;; 448 449 -infodir | --infodir | --infodi | --infod | --info | --inf) 450 ac_prev=infodir ;; 451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 452 infodir=$ac_optarg ;; 453 454 -libdir | --libdir | --libdi | --libd) 455 ac_prev=libdir ;; 456 -libdir=* | --libdir=* | --libdi=* | --libd=*) 457 libdir=$ac_optarg ;; 458 459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 460 | --libexe | --libex | --libe) 461 ac_prev=libexecdir ;; 462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 463 | --libexe=* | --libex=* | --libe=*) 464 libexecdir=$ac_optarg ;; 465 466 -localstatedir | --localstatedir | --localstatedi | --localstated \ 467 | --localstate | --localstat | --localsta | --localst \ 468 | --locals | --local | --loca | --loc | --lo) 469 ac_prev=localstatedir ;; 470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 473 localstatedir=$ac_optarg ;; 474 475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 476 ac_prev=mandir ;; 477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 478 mandir=$ac_optarg ;; 479 480 -nfp | --nfp | --nf) 481 # Obsolete; use --without-fp. 482 with_fp=no ;; 483 484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 485 | --no-cr | --no-c | -n) 486 no_create=yes ;; 487 488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 490 no_recursion=yes ;; 491 492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 494 | --oldin | --oldi | --old | --ol | --o) 495 ac_prev=oldincludedir ;; 496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 499 oldincludedir=$ac_optarg ;; 500 501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 502 ac_prev=prefix ;; 503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 504 prefix=$ac_optarg ;; 505 506 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 507 | --program-pre | --program-pr | --program-p) 508 ac_prev=program_prefix ;; 509 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 511 program_prefix=$ac_optarg ;; 512 513 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 514 | --program-suf | --program-su | --program-s) 515 ac_prev=program_suffix ;; 516 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 518 program_suffix=$ac_optarg ;; 519 520 -program-transform-name | --program-transform-name \ 521 | --program-transform-nam | --program-transform-na \ 522 | --program-transform-n | --program-transform- \ 523 | --program-transform | --program-transfor \ 524 | --program-transfo | --program-transf \ 525 | --program-trans | --program-tran \ 526 | --progr-tra | --program-tr | --program-t) 527 ac_prev=program_transform_name ;; 528 -program-transform-name=* | --program-transform-name=* \ 529 | --program-transform-nam=* | --program-transform-na=* \ 530 | --program-transform-n=* | --program-transform-=* \ 531 | --program-transform=* | --program-transfor=* \ 532 | --program-transfo=* | --program-transf=* \ 533 | --program-trans=* | --program-tran=* \ 534 | --progr-tra=* | --program-tr=* | --program-t=*) 535 program_transform_name=$ac_optarg ;; 536 537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 538 | -silent | --silent | --silen | --sile | --sil) 539 silent=yes ;; 540 541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 542 ac_prev=sbindir ;; 543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 544 | --sbi=* | --sb=*) 545 sbindir=$ac_optarg ;; 546 547 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 549 | --sharedst | --shareds | --shared | --share | --shar \ 550 | --sha | --sh) 551 ac_prev=sharedstatedir ;; 552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 555 | --sha=* | --sh=*) 556 sharedstatedir=$ac_optarg ;; 557 558 -site | --site | --sit) 559 ac_prev=site ;; 560 -site=* | --site=* | --sit=*) 561 site=$ac_optarg ;; 562 563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 564 ac_prev=srcdir ;; 565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 566 srcdir=$ac_optarg ;; 567 568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 569 | --syscon | --sysco | --sysc | --sys | --sy) 570 ac_prev=sysconfdir ;; 571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 573 sysconfdir=$ac_optarg ;; 574 575 -target | --target | --targe | --targ | --tar | --ta | --t) 576 ac_prev=target_alias ;; 577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 578 target_alias=$ac_optarg ;; 579 580 -v | -verbose | --verbose | --verbos | --verbo | --verb) 581 verbose=yes ;; 582 583 -version | --version | --versio | --versi | --vers | -V) 584 ac_init_version=: ;; 585 586 -with-* | --with-*) 587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 588 # Reject names that are not valid shell variable names. 589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 590 { echo "$as_me: error: invalid package name: $ac_package" >&2 591 { (exit 1); exit 1; }; } 592 ac_package=`echo $ac_package| sed 's/-/_/g'` 593 case $ac_option in 594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 595 *) ac_optarg=yes ;; 596 esac 597 eval "with_$ac_package='$ac_optarg'" ;; 598 599 -without-* | --without-*) 600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 601 # Reject names that are not valid shell variable names. 602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 603 { echo "$as_me: error: invalid package name: $ac_package" >&2 604 { (exit 1); exit 1; }; } 605 ac_package=`echo $ac_package | sed 's/-/_/g'` 606 eval "with_$ac_package=no" ;; 607 608 --x) 609 # Obsolete; use --with-x. 610 with_x=yes ;; 611 612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 613 | --x-incl | --x-inc | --x-in | --x-i) 614 ac_prev=x_includes ;; 615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 617 x_includes=$ac_optarg ;; 618 619 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 621 ac_prev=x_libraries ;; 622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 624 x_libraries=$ac_optarg ;; 625 626 -*) { echo "$as_me: error: unrecognized option: $ac_option 627Try \`$0 --help' for more information." >&2 628 { (exit 1); exit 1; }; } 629 ;; 630 631 *=*) 632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 633 # Reject names that are not valid shell variable names. 634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 636 { (exit 1); exit 1; }; } 637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` 638 eval "$ac_envvar='$ac_optarg'" 639 export $ac_envvar ;; 640 641 *) 642 # FIXME: should be removed in autoconf 3.0. 643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 647 ;; 648 649 esac 650done 651 652if test -n "$ac_prev"; then 653 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 654 { echo "$as_me: error: missing argument to $ac_option" >&2 655 { (exit 1); exit 1; }; } 656fi 657 658# Be sure to have absolute paths. 659for ac_var in exec_prefix prefix 660do 661 eval ac_val=$`echo $ac_var` 662 case $ac_val in 663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;; 664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 665 { (exit 1); exit 1; }; };; 666 esac 667done 668 669# Be sure to have absolute paths. 670for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ 671 localstatedir libdir includedir oldincludedir infodir mandir 672do 673 eval ac_val=$`echo $ac_var` 674 case $ac_val in 675 [\\/$]* | ?:[\\/]* ) ;; 676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 677 { (exit 1); exit 1; }; };; 678 esac 679done 680 681# There might be people who depend on the old broken behavior: `$host' 682# used to hold the argument of --host etc. 683# FIXME: To remove some day. 684build=$build_alias 685host=$host_alias 686target=$target_alias 687 688# FIXME: To remove some day. 689if test "x$host_alias" != x; then 690 if test "x$build_alias" = x; then 691 cross_compiling=maybe 692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 693 If a cross compiler is detected then cross compile mode will be used." >&2 694 elif test "x$build_alias" != "x$host_alias"; then 695 cross_compiling=yes 696 fi 697fi 698 699ac_tool_prefix= 700test -n "$host_alias" && ac_tool_prefix=$host_alias- 701 702test "$silent" = yes && exec 6>/dev/null 703 704 705# Find the source files, if location was not specified. 706if test -z "$srcdir"; then 707 ac_srcdir_defaulted=yes 708 # Try the directory containing this script, then its parent. 709 ac_confdir=`(dirname "$0") 2>/dev/null || 710$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 711 X"$0" : 'X\(//\)[^/]' \| \ 712 X"$0" : 'X\(//\)$' \| \ 713 X"$0" : 'X\(/\)' \| \ 714 . : '\(.\)' 2>/dev/null || 715echo X"$0" | 716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 717 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 718 /^X\(\/\/\)$/{ s//\1/; q; } 719 /^X\(\/\).*/{ s//\1/; q; } 720 s/.*/./; q'` 721 srcdir=$ac_confdir 722 if test ! -r $srcdir/$ac_unique_file; then 723 srcdir=.. 724 fi 725else 726 ac_srcdir_defaulted=no 727fi 728if test ! -r $srcdir/$ac_unique_file; then 729 if test "$ac_srcdir_defaulted" = yes; then 730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 731 { (exit 1); exit 1; }; } 732 else 733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 734 { (exit 1); exit 1; }; } 735 fi 736fi 737(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || 738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 739 { (exit 1); exit 1; }; } 740srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` 741ac_env_build_alias_set=${build_alias+set} 742ac_env_build_alias_value=$build_alias 743ac_cv_env_build_alias_set=${build_alias+set} 744ac_cv_env_build_alias_value=$build_alias 745ac_env_host_alias_set=${host_alias+set} 746ac_env_host_alias_value=$host_alias 747ac_cv_env_host_alias_set=${host_alias+set} 748ac_cv_env_host_alias_value=$host_alias 749ac_env_target_alias_set=${target_alias+set} 750ac_env_target_alias_value=$target_alias 751ac_cv_env_target_alias_set=${target_alias+set} 752ac_cv_env_target_alias_value=$target_alias 753ac_env_CC_set=${CC+set} 754ac_env_CC_value=$CC 755ac_cv_env_CC_set=${CC+set} 756ac_cv_env_CC_value=$CC 757ac_env_CFLAGS_set=${CFLAGS+set} 758ac_env_CFLAGS_value=$CFLAGS 759ac_cv_env_CFLAGS_set=${CFLAGS+set} 760ac_cv_env_CFLAGS_value=$CFLAGS 761ac_env_LDFLAGS_set=${LDFLAGS+set} 762ac_env_LDFLAGS_value=$LDFLAGS 763ac_cv_env_LDFLAGS_set=${LDFLAGS+set} 764ac_cv_env_LDFLAGS_value=$LDFLAGS 765ac_env_CPPFLAGS_set=${CPPFLAGS+set} 766ac_env_CPPFLAGS_value=$CPPFLAGS 767ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} 768ac_cv_env_CPPFLAGS_value=$CPPFLAGS 769ac_env_CPP_set=${CPP+set} 770ac_env_CPP_value=$CPP 771ac_cv_env_CPP_set=${CPP+set} 772ac_cv_env_CPP_value=$CPP 773ac_env_CXX_set=${CXX+set} 774ac_env_CXX_value=$CXX 775ac_cv_env_CXX_set=${CXX+set} 776ac_cv_env_CXX_value=$CXX 777ac_env_CXXFLAGS_set=${CXXFLAGS+set} 778ac_env_CXXFLAGS_value=$CXXFLAGS 779ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} 780ac_cv_env_CXXFLAGS_value=$CXXFLAGS 781 782# 783# Report the --help message. 784# 785if test "$ac_init_help" = "long"; then 786 # Omit some internal or obsolete options to make the list less imposing. 787 # This message is too long to be a string in the A/UX 3.1 sh. 788 cat <<_ACEOF 789\`configure' configures this package to adapt to many kinds of systems. 790 791Usage: $0 [OPTION]... [VAR=VALUE]... 792 793To assign environment variables (e.g., CC, CFLAGS...), specify them as 794VAR=VALUE. See below for descriptions of some of the useful variables. 795 796Defaults for the options are specified in brackets. 797 798Configuration: 799 -h, --help display this help and exit 800 --help=short display options specific to this package 801 --help=recursive display the short help of all the included packages 802 -V, --version display version information and exit 803 -q, --quiet, --silent do not print \`checking...' messages 804 --cache-file=FILE cache test results in FILE [disabled] 805 -C, --config-cache alias for \`--cache-file=config.cache' 806 -n, --no-create do not create output files 807 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 808 809_ACEOF 810 811 cat <<_ACEOF 812Installation directories: 813 --prefix=PREFIX install architecture-independent files in PREFIX 814 [$ac_default_prefix] 815 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 816 [PREFIX] 817 818By default, \`make install' will install all the files in 819\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 820an installation prefix other than \`$ac_default_prefix' using \`--prefix', 821for instance \`--prefix=\$HOME'. 822 823For better control, use the options below. 824 825Fine tuning of the installation directories: 826 --bindir=DIR user executables [EPREFIX/bin] 827 --sbindir=DIR system admin executables [EPREFIX/sbin] 828 --libexecdir=DIR program executables [EPREFIX/libexec] 829 --datadir=DIR read-only architecture-independent data [PREFIX/share] 830 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 831 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 832 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 833 --libdir=DIR object code libraries [EPREFIX/lib] 834 --includedir=DIR C header files [PREFIX/include] 835 --oldincludedir=DIR C header files for non-gcc [/usr/include] 836 --infodir=DIR info documentation [PREFIX/info] 837 --mandir=DIR man documentation [PREFIX/man] 838_ACEOF 839 840 cat <<\_ACEOF 841 842X features: 843 --x-includes=DIR X include files are in DIR 844 --x-libraries=DIR X library files are in DIR 845_ACEOF 846fi 847 848if test -n "$ac_init_help"; then 849 850 cat <<\_ACEOF 851 852Optional Features: 853 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 854 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 855 --disable-darwin Disable Darwin (Mac OS X) support. 856 --disable-xsmp Disable XSMP session management 857 --disable-xsmp-interact Disable XSMP interaction 858 --enable-mzschemeinterp Include MzScheme interpreter. 859 --enable-perlinterp Include Perl interpreter. 860 --enable-pythoninterp Include Python interpreter. 861 --enable-tclinterp Include Tcl interpreter. 862 --enable-rubyinterp Include Ruby interpreter. 863 --enable-cscope Include cscope interface. 864 --enable-workshop Include Sun Visual Workshop support. 865 --disable-netbeans Disable NetBeans integration support. 866 --enable-sniff Include Sniff interface. 867 --enable-multibyte Include multibyte editing support. 868 --enable-hangulinput Include Hangul input support. 869 --enable-xim Include XIM input support. 870 --enable-fontset Include X fontset output support. 871 --enable-gui=OPTS X11 GUI default=auto OPTS=auto/no/gtk/gtk2/gnome/gnome2/kde/motif/athena/neXtaw/photon/carbon 872 --enable-kde-check If auto-select GUI, check for KDE default=no 873 --enable-gtk-check If auto-select GUI, check for GTK default=yes 874 --enable-gtk2-check If GTK GUI, check for GTK+ 2 default=yes 875 --enable-gnome-check If GTK GUI, check for GNOME default=no 876 --enable-motif-check If auto-select GUI, check for Motif default=yes 877 --enable-athena-check If auto-select GUI, check for Athena default=yes 878 --enable-nextaw-check If auto-select GUI, check for neXtaw default=yes 879 --enable-carbon-check If auto-select GUI, check for Carbon default=yes 880 --enable-kde-toolbar if KDE GUI is selected, enable a KDE-look toolbar default=no 881 --disable-rpath Disable rpath. 882 --disable-kdetest Do not try to compile and run a test KDE program 883 --disable-gtktest Do not try to compile and run a test GTK program 884 --disable-acl Don't check for ACL support. 885 --disable-gpm Don't use gpm (Linux mouse daemon). 886 --disable-nls Don't support NLS (gettext()). 887 888Optional Packages: 889 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 890 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 891 --with-vim-name=NAME what to call the Vim executable 892 --with-ex-name=NAME what to call the Ex executable 893 --with-view-name=NAME what to call the View executable 894 --with-global-runtime=DIR global runtime directory in 'runtimepath' 895 --with-modified-by=NAME name of who modified a release version 896 --with-features=TYPE tiny, small, normal, big or huge (default: normal) 897 --with-compiledby=NAME name to show in :version message 898 --with-plthome=PLTHOME Use PLTHOME. 899 --with-python-config-dir=PATH Python's config directory 900 --with-tclsh=PATH which tclsh to use (default: tclsh8.0) 901 --with-x use the X Window System 902 --with-qt-dir=DIR Specify prefix of QT files 903 --with-qt-includes=DIR Specify location of Qt headers 904 --with-qt-libs=DIR Specify location of Qt libraries 905 --with-kde-prefix=PFX Prefix where KDE is installed (optional) 906 --with-kde-includes=DIR Specify location of KDE headers 907 --with-kde-libs=DIR Specify location of KDE libraries 908 --with-gtk-prefix=PFX Prefix where GTK is installed (optional) 909 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional) 910 --with-gnome-includes=DIR Specify location of GNOME headers 911 --with-gnome-libs=DIR Specify location of GNOME libs 912 --with-gnome Specify prefix for GNOME files 913 --with-motif-lib=STRING Library for Motif 914 --with-tlib=library terminal library to be used 915 916Some influential environment variables: 917 CC C compiler command 918 CFLAGS C compiler flags 919 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 920 nonstandard directory <lib dir> 921 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have 922 headers in a nonstandard directory <include dir> 923 CPP C preprocessor 924 CXX C++ compiler command 925 CXXFLAGS C++ compiler flags 926 927Use these variables to override the choices made by `configure' or to help 928it to find libraries and programs with nonstandard names/locations. 929 930_ACEOF 931fi 932 933if test "$ac_init_help" = "recursive"; then 934 # If there are subdirs, report their specific --help. 935 ac_popdir=`pwd` 936 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 937 test -d $ac_dir || continue 938 ac_builddir=. 939 940if test "$ac_dir" != .; then 941 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 942 # A "../" for each directory in $ac_dir_suffix. 943 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 944else 945 ac_dir_suffix= ac_top_builddir= 946fi 947 948case $srcdir in 949 .) # No --srcdir option. We are building in place. 950 ac_srcdir=. 951 if test -z "$ac_top_builddir"; then 952 ac_top_srcdir=. 953 else 954 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 955 fi ;; 956 [\\/]* | ?:[\\/]* ) # Absolute path. 957 ac_srcdir=$srcdir$ac_dir_suffix; 958 ac_top_srcdir=$srcdir ;; 959 *) # Relative path. 960 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 961 ac_top_srcdir=$ac_top_builddir$srcdir ;; 962esac 963 964# Do not use `cd foo && pwd` to compute absolute paths, because 965# the directories may not exist. 966case `pwd` in 967.) ac_abs_builddir="$ac_dir";; 968*) 969 case "$ac_dir" in 970 .) ac_abs_builddir=`pwd`;; 971 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 972 *) ac_abs_builddir=`pwd`/"$ac_dir";; 973 esac;; 974esac 975case $ac_abs_builddir in 976.) ac_abs_top_builddir=${ac_top_builddir}.;; 977*) 978 case ${ac_top_builddir}. in 979 .) ac_abs_top_builddir=$ac_abs_builddir;; 980 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 981 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 982 esac;; 983esac 984case $ac_abs_builddir in 985.) ac_abs_srcdir=$ac_srcdir;; 986*) 987 case $ac_srcdir in 988 .) ac_abs_srcdir=$ac_abs_builddir;; 989 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 990 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 991 esac;; 992esac 993case $ac_abs_builddir in 994.) ac_abs_top_srcdir=$ac_top_srcdir;; 995*) 996 case $ac_top_srcdir in 997 .) ac_abs_top_srcdir=$ac_abs_builddir;; 998 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 999 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 1000 esac;; 1001esac 1002 1003 cd $ac_dir 1004 # Check for guested configure; otherwise get Cygnus style configure. 1005 if test -f $ac_srcdir/configure.gnu; then 1006 echo 1007 $SHELL $ac_srcdir/configure.gnu --help=recursive 1008 elif test -f $ac_srcdir/configure; then 1009 echo 1010 $SHELL $ac_srcdir/configure --help=recursive 1011 elif test -f $ac_srcdir/configure.ac || 1012 test -f $ac_srcdir/configure.in; then 1013 echo 1014 $ac_configure --help 1015 else 1016 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1017 fi 1018 cd $ac_popdir 1019 done 1020fi 1021 1022test -n "$ac_init_help" && exit 0 1023if $ac_init_version; then 1024 cat <<\_ACEOF 1025 1026Copyright (C) 2003 Free Software Foundation, Inc. 1027This configure script is free software; the Free Software Foundation 1028gives unlimited permission to copy, distribute and modify it. 1029_ACEOF 1030 exit 0 1031fi 1032exec 5>auto/config.log 1033cat >&5 <<_ACEOF 1034This file contains any messages produced by compilers while 1035running configure, to aid debugging if configure makes a mistake. 1036 1037It was created by $as_me, which was 1038generated by GNU Autoconf 2.59. Invocation command line was 1039 1040 $ $0 $@ 1041 1042_ACEOF 1043{ 1044cat <<_ASUNAME 1045## --------- ## 1046## Platform. ## 1047## --------- ## 1048 1049hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1050uname -m = `(uname -m) 2>/dev/null || echo unknown` 1051uname -r = `(uname -r) 2>/dev/null || echo unknown` 1052uname -s = `(uname -s) 2>/dev/null || echo unknown` 1053uname -v = `(uname -v) 2>/dev/null || echo unknown` 1054 1055/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1056/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1057 1058/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1059/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1060/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1061hostinfo = `(hostinfo) 2>/dev/null || echo unknown` 1062/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1063/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1064/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1065 1066_ASUNAME 1067 1068as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1069for as_dir in $PATH 1070do 1071 IFS=$as_save_IFS 1072 test -z "$as_dir" && as_dir=. 1073 echo "PATH: $as_dir" 1074done 1075 1076} >&5 1077 1078cat >&5 <<_ACEOF 1079 1080 1081## ----------- ## 1082## Core tests. ## 1083## ----------- ## 1084 1085_ACEOF 1086 1087 1088# Keep a trace of the command line. 1089# Strip out --no-create and --no-recursion so they do not pile up. 1090# Strip out --silent because we don't want to record it for future runs. 1091# Also quote any args containing shell meta-characters. 1092# Make two passes to allow for proper duplicate-argument suppression. 1093ac_configure_args= 1094ac_configure_args0= 1095ac_configure_args1= 1096ac_sep= 1097ac_must_keep_next=false 1098for ac_pass in 1 2 1099do 1100 for ac_arg 1101 do 1102 case $ac_arg in 1103 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1104 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1105 | -silent | --silent | --silen | --sile | --sil) 1106 continue ;; 1107 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1108 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1109 esac 1110 case $ac_pass in 1111 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1112 2) 1113 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1114 if test $ac_must_keep_next = true; then 1115 ac_must_keep_next=false # Got value, back to normal. 1116 else 1117 case $ac_arg in 1118 *=* | --config-cache | -C | -disable-* | --disable-* \ 1119 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1120 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1121 | -with-* | --with-* | -without-* | --without-* | --x) 1122 case "$ac_configure_args0 " in 1123 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1124 esac 1125 ;; 1126 -* ) ac_must_keep_next=true ;; 1127 esac 1128 fi 1129 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" 1130 # Get rid of the leading space. 1131 ac_sep=" " 1132 ;; 1133 esac 1134 done 1135done 1136$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1137$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1138 1139# When interrupted or exit'd, cleanup temporary files, and complete 1140# config.log. We remove comments because anyway the quotes in there 1141# would cause problems or look ugly. 1142# WARNING: Be sure not to use single quotes in there, as some shells, 1143# such as our DU 5.0 friend, will then `close' the trap. 1144trap 'exit_status=$? 1145 # Save into config.log some information that might help in debugging. 1146 { 1147 echo 1148 1149 cat <<\_ASBOX 1150## ---------------- ## 1151## Cache variables. ## 1152## ---------------- ## 1153_ASBOX 1154 echo 1155 # The following way of writing the cache mishandles newlines in values, 1156{ 1157 (set) 2>&1 | 1158 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in 1159 *ac_space=\ *) 1160 sed -n \ 1161 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; 1162 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" 1163 ;; 1164 *) 1165 sed -n \ 1166 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 1167 ;; 1168 esac; 1169} 1170 echo 1171 1172 cat <<\_ASBOX 1173## ----------------- ## 1174## Output variables. ## 1175## ----------------- ## 1176_ASBOX 1177 echo 1178 for ac_var in $ac_subst_vars 1179 do 1180 eval ac_val=$`echo $ac_var` 1181 echo "$ac_var='"'"'$ac_val'"'"'" 1182 done | sort 1183 echo 1184 1185 if test -n "$ac_subst_files"; then 1186 cat <<\_ASBOX 1187## ------------- ## 1188## Output files. ## 1189## ------------- ## 1190_ASBOX 1191 echo 1192 for ac_var in $ac_subst_files 1193 do 1194 eval ac_val=$`echo $ac_var` 1195 echo "$ac_var='"'"'$ac_val'"'"'" 1196 done | sort 1197 echo 1198 fi 1199 1200 if test -s confdefs.h; then 1201 cat <<\_ASBOX 1202## ----------- ## 1203## confdefs.h. ## 1204## ----------- ## 1205_ASBOX 1206 echo 1207 sed "/^$/d" confdefs.h | sort 1208 echo 1209 fi 1210 test "$ac_signal" != 0 && 1211 echo "$as_me: caught signal $ac_signal" 1212 echo "$as_me: exit $exit_status" 1213 } >&5 1214 rm -f core *.core && 1215 rm -rf conftest* confdefs* conf$$* $ac_clean_files && 1216 exit $exit_status 1217 ' 0 1218for ac_signal in 1 2 13 15; do 1219 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1220done 1221ac_signal=0 1222 1223# confdefs.h avoids OS command line length limits that DEFS can exceed. 1224rm -rf conftest* confdefs.h 1225# AIX cpp loses on an empty file, so make sure it contains at least a newline. 1226echo >confdefs.h 1227 1228# Predefined preprocessor variables. 1229 1230cat >>confdefs.h <<_ACEOF 1231#define PACKAGE_NAME "$PACKAGE_NAME" 1232_ACEOF 1233 1234 1235cat >>confdefs.h <<_ACEOF 1236#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1237_ACEOF 1238 1239 1240cat >>confdefs.h <<_ACEOF 1241#define PACKAGE_VERSION "$PACKAGE_VERSION" 1242_ACEOF 1243 1244 1245cat >>confdefs.h <<_ACEOF 1246#define PACKAGE_STRING "$PACKAGE_STRING" 1247_ACEOF 1248 1249 1250cat >>confdefs.h <<_ACEOF 1251#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1252_ACEOF 1253 1254 1255# Let the site file select an alternate cache file if it wants to. 1256# Prefer explicitly selected file to automatically selected ones. 1257if test -z "$CONFIG_SITE"; then 1258 if test "x$prefix" != xNONE; then 1259 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 1260 else 1261 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 1262 fi 1263fi 1264for ac_site_file in $CONFIG_SITE; do 1265 if test -r "$ac_site_file"; then 1266 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1267echo "$as_me: loading site script $ac_site_file" >&6;} 1268 sed 's/^/| /' "$ac_site_file" >&5 1269 . "$ac_site_file" 1270 fi 1271done 1272 1273if test -r "$cache_file"; then 1274 # Some versions of bash will fail to source /dev/null (special 1275 # files actually), so we avoid doing that. 1276 if test -f "$cache_file"; then 1277 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1278echo "$as_me: loading cache $cache_file" >&6;} 1279 case $cache_file in 1280 [\\/]* | ?:[\\/]* ) . $cache_file;; 1281 *) . ./$cache_file;; 1282 esac 1283 fi 1284else 1285 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1286echo "$as_me: creating cache $cache_file" >&6;} 1287 >$cache_file 1288fi 1289 1290# Check that the precious variables saved in the cache have kept the same 1291# value. 1292ac_cache_corrupted=false 1293for ac_var in `(set) 2>&1 | 1294 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do 1295 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1296 eval ac_new_set=\$ac_env_${ac_var}_set 1297 eval ac_old_val="\$ac_cv_env_${ac_var}_value" 1298 eval ac_new_val="\$ac_env_${ac_var}_value" 1299 case $ac_old_set,$ac_new_set in 1300 set,) 1301 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1302echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1303 ac_cache_corrupted=: ;; 1304 ,set) 1305 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1306echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1307 ac_cache_corrupted=: ;; 1308 ,);; 1309 *) 1310 if test "x$ac_old_val" != "x$ac_new_val"; then 1311 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1312echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1313 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1314echo "$as_me: former value: $ac_old_val" >&2;} 1315 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1316echo "$as_me: current value: $ac_new_val" >&2;} 1317 ac_cache_corrupted=: 1318 fi;; 1319 esac 1320 # Pass precious variables to config.status. 1321 if test "$ac_new_set" = set; then 1322 case $ac_new_val in 1323 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1324 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1325 *) ac_arg=$ac_var=$ac_new_val ;; 1326 esac 1327 case " $ac_configure_args " in 1328 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1329 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1330 esac 1331 fi 1332done 1333if $ac_cache_corrupted; then 1334 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1335echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1336 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1337echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1338 { (exit 1); exit 1; }; } 1339fi 1340 1341ac_ext=c 1342ac_cpp='$CPP $CPPFLAGS' 1343ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1344ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1345ac_compiler_gnu=$ac_cv_c_compiler_gnu 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 ac_config_headers="$ac_config_headers auto/config.h:config.h.in" 1366 1367 1368cat >>confdefs.h <<\_ACEOF 1369#define UNIX 1 1370_ACEOF 1371 1372echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 1373echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 1374set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` 1375if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then 1376 echo $ECHO_N "(cached) $ECHO_C" >&6 1377else 1378 cat >conftest.make <<\_ACEOF 1379all: 1380 @echo 'ac_maketemp="$(MAKE)"' 1381_ACEOF 1382# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 1383eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` 1384if test -n "$ac_maketemp"; then 1385 eval ac_cv_prog_make_${ac_make}_set=yes 1386else 1387 eval ac_cv_prog_make_${ac_make}_set=no 1388fi 1389rm -f conftest.make 1390fi 1391if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 1392 echo "$as_me:$LINENO: result: yes" >&5 1393echo "${ECHO_T}yes" >&6 1394 SET_MAKE= 1395else 1396 echo "$as_me:$LINENO: result: no" >&5 1397echo "${ECHO_T}no" >&6 1398 SET_MAKE="MAKE=${MAKE-make}" 1399fi 1400 1401 1402ac_ext=c 1403ac_cpp='$CPP $CPPFLAGS' 1404ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1405ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1406ac_compiler_gnu=$ac_cv_c_compiler_gnu 1407if test -n "$ac_tool_prefix"; then 1408 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 1409set dummy ${ac_tool_prefix}gcc; ac_word=$2 1410echo "$as_me:$LINENO: checking for $ac_word" >&5 1411echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1412if test "${ac_cv_prog_CC+set}" = set; then 1413 echo $ECHO_N "(cached) $ECHO_C" >&6 1414else 1415 if test -n "$CC"; then 1416 ac_cv_prog_CC="$CC" # Let the user override the test. 1417else 1418as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1419for as_dir in $PATH 1420do 1421 IFS=$as_save_IFS 1422 test -z "$as_dir" && as_dir=. 1423 for ac_exec_ext in '' $ac_executable_extensions; do 1424 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1425 ac_cv_prog_CC="${ac_tool_prefix}gcc" 1426 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1427 break 2 1428 fi 1429done 1430done 1431 1432fi 1433fi 1434CC=$ac_cv_prog_CC 1435if test -n "$CC"; then 1436 echo "$as_me:$LINENO: result: $CC" >&5 1437echo "${ECHO_T}$CC" >&6 1438else 1439 echo "$as_me:$LINENO: result: no" >&5 1440echo "${ECHO_T}no" >&6 1441fi 1442 1443fi 1444if test -z "$ac_cv_prog_CC"; then 1445 ac_ct_CC=$CC 1446 # Extract the first word of "gcc", so it can be a program name with args. 1447set dummy gcc; ac_word=$2 1448echo "$as_me:$LINENO: checking for $ac_word" >&5 1449echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1450if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1451 echo $ECHO_N "(cached) $ECHO_C" >&6 1452else 1453 if test -n "$ac_ct_CC"; then 1454 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1455else 1456as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1457for as_dir in $PATH 1458do 1459 IFS=$as_save_IFS 1460 test -z "$as_dir" && as_dir=. 1461 for ac_exec_ext in '' $ac_executable_extensions; do 1462 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1463 ac_cv_prog_ac_ct_CC="gcc" 1464 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1465 break 2 1466 fi 1467done 1468done 1469 1470fi 1471fi 1472ac_ct_CC=$ac_cv_prog_ac_ct_CC 1473if test -n "$ac_ct_CC"; then 1474 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1475echo "${ECHO_T}$ac_ct_CC" >&6 1476else 1477 echo "$as_me:$LINENO: result: no" >&5 1478echo "${ECHO_T}no" >&6 1479fi 1480 1481 CC=$ac_ct_CC 1482else 1483 CC="$ac_cv_prog_CC" 1484fi 1485 1486if test -z "$CC"; then 1487 if test -n "$ac_tool_prefix"; then 1488 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 1489set dummy ${ac_tool_prefix}cc; ac_word=$2 1490echo "$as_me:$LINENO: checking for $ac_word" >&5 1491echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1492if test "${ac_cv_prog_CC+set}" = set; then 1493 echo $ECHO_N "(cached) $ECHO_C" >&6 1494else 1495 if test -n "$CC"; then 1496 ac_cv_prog_CC="$CC" # Let the user override the test. 1497else 1498as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1499for as_dir in $PATH 1500do 1501 IFS=$as_save_IFS 1502 test -z "$as_dir" && as_dir=. 1503 for ac_exec_ext in '' $ac_executable_extensions; do 1504 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1505 ac_cv_prog_CC="${ac_tool_prefix}cc" 1506 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1507 break 2 1508 fi 1509done 1510done 1511 1512fi 1513fi 1514CC=$ac_cv_prog_CC 1515if test -n "$CC"; then 1516 echo "$as_me:$LINENO: result: $CC" >&5 1517echo "${ECHO_T}$CC" >&6 1518else 1519 echo "$as_me:$LINENO: result: no" >&5 1520echo "${ECHO_T}no" >&6 1521fi 1522 1523fi 1524if test -z "$ac_cv_prog_CC"; then 1525 ac_ct_CC=$CC 1526 # Extract the first word of "cc", so it can be a program name with args. 1527set dummy cc; ac_word=$2 1528echo "$as_me:$LINENO: checking for $ac_word" >&5 1529echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1530if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1531 echo $ECHO_N "(cached) $ECHO_C" >&6 1532else 1533 if test -n "$ac_ct_CC"; then 1534 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1535else 1536as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1537for as_dir in $PATH 1538do 1539 IFS=$as_save_IFS 1540 test -z "$as_dir" && as_dir=. 1541 for ac_exec_ext in '' $ac_executable_extensions; do 1542 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1543 ac_cv_prog_ac_ct_CC="cc" 1544 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1545 break 2 1546 fi 1547done 1548done 1549 1550fi 1551fi 1552ac_ct_CC=$ac_cv_prog_ac_ct_CC 1553if test -n "$ac_ct_CC"; then 1554 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1555echo "${ECHO_T}$ac_ct_CC" >&6 1556else 1557 echo "$as_me:$LINENO: result: no" >&5 1558echo "${ECHO_T}no" >&6 1559fi 1560 1561 CC=$ac_ct_CC 1562else 1563 CC="$ac_cv_prog_CC" 1564fi 1565 1566fi 1567if test -z "$CC"; then 1568 # Extract the first word of "cc", so it can be a program name with args. 1569set dummy cc; ac_word=$2 1570echo "$as_me:$LINENO: checking for $ac_word" >&5 1571echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1572if test "${ac_cv_prog_CC+set}" = set; then 1573 echo $ECHO_N "(cached) $ECHO_C" >&6 1574else 1575 if test -n "$CC"; then 1576 ac_cv_prog_CC="$CC" # Let the user override the test. 1577else 1578 ac_prog_rejected=no 1579as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1580for as_dir in $PATH 1581do 1582 IFS=$as_save_IFS 1583 test -z "$as_dir" && as_dir=. 1584 for ac_exec_ext in '' $ac_executable_extensions; do 1585 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1586 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 1587 ac_prog_rejected=yes 1588 continue 1589 fi 1590 ac_cv_prog_CC="cc" 1591 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1592 break 2 1593 fi 1594done 1595done 1596 1597if test $ac_prog_rejected = yes; then 1598 # We found a bogon in the path, so make sure we never use it. 1599 set dummy $ac_cv_prog_CC 1600 shift 1601 if test $# != 0; then 1602 # We chose a different compiler from the bogus one. 1603 # However, it has the same basename, so the bogon will be chosen 1604 # first if we set CC to just the basename; use the full file name. 1605 shift 1606 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 1607 fi 1608fi 1609fi 1610fi 1611CC=$ac_cv_prog_CC 1612if test -n "$CC"; then 1613 echo "$as_me:$LINENO: result: $CC" >&5 1614echo "${ECHO_T}$CC" >&6 1615else 1616 echo "$as_me:$LINENO: result: no" >&5 1617echo "${ECHO_T}no" >&6 1618fi 1619 1620fi 1621if test -z "$CC"; then 1622 if test -n "$ac_tool_prefix"; then 1623 for ac_prog in cl 1624 do 1625 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 1626set dummy $ac_tool_prefix$ac_prog; ac_word=$2 1627echo "$as_me:$LINENO: checking for $ac_word" >&5 1628echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1629if test "${ac_cv_prog_CC+set}" = set; then 1630 echo $ECHO_N "(cached) $ECHO_C" >&6 1631else 1632 if test -n "$CC"; then 1633 ac_cv_prog_CC="$CC" # Let the user override the test. 1634else 1635as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1636for as_dir in $PATH 1637do 1638 IFS=$as_save_IFS 1639 test -z "$as_dir" && as_dir=. 1640 for ac_exec_ext in '' $ac_executable_extensions; do 1641 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1642 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 1643 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1644 break 2 1645 fi 1646done 1647done 1648 1649fi 1650fi 1651CC=$ac_cv_prog_CC 1652if test -n "$CC"; then 1653 echo "$as_me:$LINENO: result: $CC" >&5 1654echo "${ECHO_T}$CC" >&6 1655else 1656 echo "$as_me:$LINENO: result: no" >&5 1657echo "${ECHO_T}no" >&6 1658fi 1659 1660 test -n "$CC" && break 1661 done 1662fi 1663if test -z "$CC"; then 1664 ac_ct_CC=$CC 1665 for ac_prog in cl 1666do 1667 # Extract the first word of "$ac_prog", so it can be a program name with args. 1668set dummy $ac_prog; ac_word=$2 1669echo "$as_me:$LINENO: checking for $ac_word" >&5 1670echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1671if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1672 echo $ECHO_N "(cached) $ECHO_C" >&6 1673else 1674 if test -n "$ac_ct_CC"; then 1675 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1676else 1677as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1678for as_dir in $PATH 1679do 1680 IFS=$as_save_IFS 1681 test -z "$as_dir" && as_dir=. 1682 for ac_exec_ext in '' $ac_executable_extensions; do 1683 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1684 ac_cv_prog_ac_ct_CC="$ac_prog" 1685 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1686 break 2 1687 fi 1688done 1689done 1690 1691fi 1692fi 1693ac_ct_CC=$ac_cv_prog_ac_ct_CC 1694if test -n "$ac_ct_CC"; then 1695 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1696echo "${ECHO_T}$ac_ct_CC" >&6 1697else 1698 echo "$as_me:$LINENO: result: no" >&5 1699echo "${ECHO_T}no" >&6 1700fi 1701 1702 test -n "$ac_ct_CC" && break 1703done 1704 1705 CC=$ac_ct_CC 1706fi 1707 1708fi 1709 1710 1711test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 1712See \`config.log' for more details." >&5 1713echo "$as_me: error: no acceptable C compiler found in \$PATH 1714See \`config.log' for more details." >&2;} 1715 { (exit 1); exit 1; }; } 1716 1717# Provide some information about the compiler. 1718echo "$as_me:$LINENO:" \ 1719 "checking for C compiler version" >&5 1720ac_compiler=`set X $ac_compile; echo $2` 1721{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 1722 (eval $ac_compiler --version </dev/null >&5) 2>&5 1723 ac_status=$? 1724 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1725 (exit $ac_status); } 1726{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 1727 (eval $ac_compiler -v </dev/null >&5) 2>&5 1728 ac_status=$? 1729 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1730 (exit $ac_status); } 1731{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 1732 (eval $ac_compiler -V </dev/null >&5) 2>&5 1733 ac_status=$? 1734 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1735 (exit $ac_status); } 1736 1737cat >conftest.$ac_ext <<_ACEOF 1738/* confdefs.h. */ 1739_ACEOF 1740cat confdefs.h >>conftest.$ac_ext 1741cat >>conftest.$ac_ext <<_ACEOF 1742/* end confdefs.h. */ 1743 1744int 1745main () 1746{ 1747 1748 ; 1749 return 0; 1750} 1751_ACEOF 1752ac_clean_files_save=$ac_clean_files 1753ac_clean_files="$ac_clean_files a.out a.exe b.out" 1754# Try to create an executable without -o first, disregard a.out. 1755# It will help us diagnose broken compilers, and finding out an intuition 1756# of exeext. 1757echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 1758echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 1759ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 1760if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 1761 (eval $ac_link_default) 2>&5 1762 ac_status=$? 1763 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1764 (exit $ac_status); }; then 1765 # Find the output, starting from the most likely. This scheme is 1766# not robust to junk in `.', hence go to wildcards (a.*) only as a last 1767# resort. 1768 1769# Be careful to initialize this variable, since it used to be cached. 1770# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. 1771ac_cv_exeext= 1772# b.out is created by i960 compilers. 1773for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out 1774do 1775 test -f "$ac_file" || continue 1776 case $ac_file in 1777 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) 1778 ;; 1779 conftest.$ac_ext ) 1780 # This is the source file. 1781 ;; 1782 [ab].out ) 1783 # We found the default executable, but exeext='' is most 1784 # certainly right. 1785 break;; 1786 *.* ) 1787 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 1788 # FIXME: I believe we export ac_cv_exeext for Libtool, 1789 # but it would be cool to find out if it's true. Does anybody 1790 # maintain Libtool? --akim. 1791 export ac_cv_exeext 1792 break;; 1793 * ) 1794 break;; 1795 esac 1796done 1797else 1798 echo "$as_me: failed program was:" >&5 1799sed 's/^/| /' conftest.$ac_ext >&5 1800 1801{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 1802See \`config.log' for more details." >&5 1803echo "$as_me: error: C compiler cannot create executables 1804See \`config.log' for more details." >&2;} 1805 { (exit 77); exit 77; }; } 1806fi 1807 1808ac_exeext=$ac_cv_exeext 1809echo "$as_me:$LINENO: result: $ac_file" >&5 1810echo "${ECHO_T}$ac_file" >&6 1811 1812# Check the compiler produces executables we can run. If not, either 1813# the compiler is broken, or we cross compile. 1814echo "$as_me:$LINENO: checking whether the C compiler works" >&5 1815echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 1816# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 1817# If not cross compiling, check that we can run a simple program. 1818if test "$cross_compiling" != yes; then 1819 if { ac_try='./$ac_file' 1820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1821 (eval $ac_try) 2>&5 1822 ac_status=$? 1823 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1824 (exit $ac_status); }; }; then 1825 cross_compiling=no 1826 else 1827 if test "$cross_compiling" = maybe; then 1828 cross_compiling=yes 1829 else 1830 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 1831If you meant to cross compile, use \`--host'. 1832See \`config.log' for more details." >&5 1833echo "$as_me: error: cannot run C compiled programs. 1834If you meant to cross compile, use \`--host'. 1835See \`config.log' for more details." >&2;} 1836 { (exit 1); exit 1; }; } 1837 fi 1838 fi 1839fi 1840echo "$as_me:$LINENO: result: yes" >&5 1841echo "${ECHO_T}yes" >&6 1842 1843rm -f a.out a.exe conftest$ac_cv_exeext b.out 1844ac_clean_files=$ac_clean_files_save 1845# Check the compiler produces executables we can run. If not, either 1846# the compiler is broken, or we cross compile. 1847echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 1848echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 1849echo "$as_me:$LINENO: result: $cross_compiling" >&5 1850echo "${ECHO_T}$cross_compiling" >&6 1851 1852echo "$as_me:$LINENO: checking for suffix of executables" >&5 1853echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 1854if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 1855 (eval $ac_link) 2>&5 1856 ac_status=$? 1857 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1858 (exit $ac_status); }; then 1859 # If both `conftest.exe' and `conftest' are `present' (well, observable) 1860# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 1861# work properly (i.e., refer to `conftest.exe'), while it won't with 1862# `rm'. 1863for ac_file in conftest.exe conftest conftest.*; do 1864 test -f "$ac_file" || continue 1865 case $ac_file in 1866 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; 1867 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 1868 export ac_cv_exeext 1869 break;; 1870 * ) break;; 1871 esac 1872done 1873else 1874 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 1875See \`config.log' for more details." >&5 1876echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 1877See \`config.log' for more details." >&2;} 1878 { (exit 1); exit 1; }; } 1879fi 1880 1881rm -f conftest$ac_cv_exeext 1882echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 1883echo "${ECHO_T}$ac_cv_exeext" >&6 1884 1885rm -f conftest.$ac_ext 1886EXEEXT=$ac_cv_exeext 1887ac_exeext=$EXEEXT 1888echo "$as_me:$LINENO: checking for suffix of object files" >&5 1889echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 1890if test "${ac_cv_objext+set}" = set; then 1891 echo $ECHO_N "(cached) $ECHO_C" >&6 1892else 1893 cat >conftest.$ac_ext <<_ACEOF 1894/* confdefs.h. */ 1895_ACEOF 1896cat confdefs.h >>conftest.$ac_ext 1897cat >>conftest.$ac_ext <<_ACEOF 1898/* end confdefs.h. */ 1899 1900int 1901main () 1902{ 1903 1904 ; 1905 return 0; 1906} 1907_ACEOF 1908rm -f conftest.o conftest.obj 1909if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 1910 (eval $ac_compile) 2>&5 1911 ac_status=$? 1912 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1913 (exit $ac_status); }; then 1914 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do 1915 case $ac_file in 1916 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; 1917 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 1918 break;; 1919 esac 1920done 1921else 1922 echo "$as_me: failed program was:" >&5 1923sed 's/^/| /' conftest.$ac_ext >&5 1924 1925{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 1926See \`config.log' for more details." >&5 1927echo "$as_me: error: cannot compute suffix of object files: cannot compile 1928See \`config.log' for more details." >&2;} 1929 { (exit 1); exit 1; }; } 1930fi 1931 1932rm -f conftest.$ac_cv_objext conftest.$ac_ext 1933fi 1934echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 1935echo "${ECHO_T}$ac_cv_objext" >&6 1936OBJEXT=$ac_cv_objext 1937ac_objext=$OBJEXT 1938echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 1939echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 1940if test "${ac_cv_c_compiler_gnu+set}" = set; then 1941 echo $ECHO_N "(cached) $ECHO_C" >&6 1942else 1943 cat >conftest.$ac_ext <<_ACEOF 1944/* confdefs.h. */ 1945_ACEOF 1946cat confdefs.h >>conftest.$ac_ext 1947cat >>conftest.$ac_ext <<_ACEOF 1948/* end confdefs.h. */ 1949 1950int 1951main () 1952{ 1953#ifndef __GNUC__ 1954 choke me 1955#endif 1956 1957 ; 1958 return 0; 1959} 1960_ACEOF 1961rm -f conftest.$ac_objext 1962if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 1963 (eval $ac_compile) 2>conftest.er1 1964 ac_status=$? 1965 grep -v '^ *+' conftest.er1 >conftest.err 1966 rm -f conftest.er1 1967 cat conftest.err >&5 1968 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1969 (exit $ac_status); } && 1970 { ac_try='test -z "$ac_c_werror_flag" 1971 || test ! -s conftest.err' 1972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1973 (eval $ac_try) 2>&5 1974 ac_status=$? 1975 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1976 (exit $ac_status); }; } && 1977 { ac_try='test -s conftest.$ac_objext' 1978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1979 (eval $ac_try) 2>&5 1980 ac_status=$? 1981 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1982 (exit $ac_status); }; }; then 1983 ac_compiler_gnu=yes 1984else 1985 echo "$as_me: failed program was:" >&5 1986sed 's/^/| /' conftest.$ac_ext >&5 1987 1988ac_compiler_gnu=no 1989fi 1990rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 1991ac_cv_c_compiler_gnu=$ac_compiler_gnu 1992 1993fi 1994echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 1995echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 1996GCC=`test $ac_compiler_gnu = yes && echo yes` 1997ac_test_CFLAGS=${CFLAGS+set} 1998ac_save_CFLAGS=$CFLAGS 1999CFLAGS="-g" 2000echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 2001echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 2002if test "${ac_cv_prog_cc_g+set}" = set; then 2003 echo $ECHO_N "(cached) $ECHO_C" >&6 2004else 2005 cat >conftest.$ac_ext <<_ACEOF 2006/* confdefs.h. */ 2007_ACEOF 2008cat confdefs.h >>conftest.$ac_ext 2009cat >>conftest.$ac_ext <<_ACEOF 2010/* end confdefs.h. */ 2011 2012int 2013main () 2014{ 2015 2016 ; 2017 return 0; 2018} 2019_ACEOF 2020rm -f conftest.$ac_objext 2021if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2022 (eval $ac_compile) 2>conftest.er1 2023 ac_status=$? 2024 grep -v '^ *+' conftest.er1 >conftest.err 2025 rm -f conftest.er1 2026 cat conftest.err >&5 2027 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2028 (exit $ac_status); } && 2029 { ac_try='test -z "$ac_c_werror_flag" 2030 || test ! -s conftest.err' 2031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2032 (eval $ac_try) 2>&5 2033 ac_status=$? 2034 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2035 (exit $ac_status); }; } && 2036 { ac_try='test -s conftest.$ac_objext' 2037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2038 (eval $ac_try) 2>&5 2039 ac_status=$? 2040 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2041 (exit $ac_status); }; }; then 2042 ac_cv_prog_cc_g=yes 2043else 2044 echo "$as_me: failed program was:" >&5 2045sed 's/^/| /' conftest.$ac_ext >&5 2046 2047ac_cv_prog_cc_g=no 2048fi 2049rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2050fi 2051echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 2052echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 2053if test "$ac_test_CFLAGS" = set; then 2054 CFLAGS=$ac_save_CFLAGS 2055elif test $ac_cv_prog_cc_g = yes; then 2056 if test "$GCC" = yes; then 2057 CFLAGS="-g -O2" 2058 else 2059 CFLAGS="-g" 2060 fi 2061else 2062 if test "$GCC" = yes; then 2063 CFLAGS="-O2" 2064 else 2065 CFLAGS= 2066 fi 2067fi 2068echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 2069echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 2070if test "${ac_cv_prog_cc_stdc+set}" = set; then 2071 echo $ECHO_N "(cached) $ECHO_C" >&6 2072else 2073 ac_cv_prog_cc_stdc=no 2074ac_save_CC=$CC 2075cat >conftest.$ac_ext <<_ACEOF 2076/* confdefs.h. */ 2077_ACEOF 2078cat confdefs.h >>conftest.$ac_ext 2079cat >>conftest.$ac_ext <<_ACEOF 2080/* end confdefs.h. */ 2081#include <stdarg.h> 2082#include <stdio.h> 2083#include <sys/types.h> 2084#include <sys/stat.h> 2085/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2086struct buf { int x; }; 2087FILE * (*rcsopen) (struct buf *, struct stat *, int); 2088static char *e (p, i) 2089 char **p; 2090 int i; 2091{ 2092 return p[i]; 2093} 2094static char *f (char * (*g) (char **, int), char **p, ...) 2095{ 2096 char *s; 2097 va_list v; 2098 va_start (v,p); 2099 s = g (p, va_arg (v,int)); 2100 va_end (v); 2101 return s; 2102} 2103 2104/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2105 function prototypes and stuff, but not '\xHH' hex character constants. 2106 These don't provoke an error unfortunately, instead are silently treated 2107 as 'x'. The following induces an error, until -std1 is added to get 2108 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 2109 array size at least. It's necessary to write '\x00'==0 to get something 2110 that's true only with -std1. */ 2111int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 2112 2113int test (int i, double x); 2114struct s1 {int (*f) (int a);}; 2115struct s2 {int (*f) (double a);}; 2116int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 2117int argc; 2118char **argv; 2119int 2120main () 2121{ 2122return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2123 ; 2124 return 0; 2125} 2126_ACEOF 2127# Don't try gcc -ansi; that turns off useful extensions and 2128# breaks some systems' header files. 2129# AIX -qlanglvl=ansi 2130# Ultrix and OSF/1 -std1 2131# HP-UX 10.20 and later -Ae 2132# HP-UX older versions -Aa -D_HPUX_SOURCE 2133# SVR4 -Xc -D__EXTENSIONS__ 2134for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2135do 2136 CC="$ac_save_CC $ac_arg" 2137 rm -f conftest.$ac_objext 2138if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2139 (eval $ac_compile) 2>conftest.er1 2140 ac_status=$? 2141 grep -v '^ *+' conftest.er1 >conftest.err 2142 rm -f conftest.er1 2143 cat conftest.err >&5 2144 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2145 (exit $ac_status); } && 2146 { ac_try='test -z "$ac_c_werror_flag" 2147 || test ! -s conftest.err' 2148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2149 (eval $ac_try) 2>&5 2150 ac_status=$? 2151 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2152 (exit $ac_status); }; } && 2153 { ac_try='test -s conftest.$ac_objext' 2154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2155 (eval $ac_try) 2>&5 2156 ac_status=$? 2157 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2158 (exit $ac_status); }; }; then 2159 ac_cv_prog_cc_stdc=$ac_arg 2160break 2161else 2162 echo "$as_me: failed program was:" >&5 2163sed 's/^/| /' conftest.$ac_ext >&5 2164 2165fi 2166rm -f conftest.err conftest.$ac_objext 2167done 2168rm -f conftest.$ac_ext conftest.$ac_objext 2169CC=$ac_save_CC 2170 2171fi 2172 2173case "x$ac_cv_prog_cc_stdc" in 2174 x|xno) 2175 echo "$as_me:$LINENO: result: none needed" >&5 2176echo "${ECHO_T}none needed" >&6 ;; 2177 *) 2178 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 2179echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 2180 CC="$CC $ac_cv_prog_cc_stdc" ;; 2181esac 2182 2183# Some people use a C++ compiler to compile C. Since we use `exit', 2184# in C++ we need to declare it. In case someone uses the same compiler 2185# for both compiling C and C++ we need to have the C++ compiler decide 2186# the declaration of exit, since it's the most demanding environment. 2187cat >conftest.$ac_ext <<_ACEOF 2188#ifndef __cplusplus 2189 choke me 2190#endif 2191_ACEOF 2192rm -f conftest.$ac_objext 2193if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2194 (eval $ac_compile) 2>conftest.er1 2195 ac_status=$? 2196 grep -v '^ *+' conftest.er1 >conftest.err 2197 rm -f conftest.er1 2198 cat conftest.err >&5 2199 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2200 (exit $ac_status); } && 2201 { ac_try='test -z "$ac_c_werror_flag" 2202 || test ! -s conftest.err' 2203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2204 (eval $ac_try) 2>&5 2205 ac_status=$? 2206 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2207 (exit $ac_status); }; } && 2208 { ac_try='test -s conftest.$ac_objext' 2209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2210 (eval $ac_try) 2>&5 2211 ac_status=$? 2212 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2213 (exit $ac_status); }; }; then 2214 for ac_declaration in \ 2215 '' \ 2216 'extern "C" void std::exit (int) throw (); using std::exit;' \ 2217 'extern "C" void std::exit (int); using std::exit;' \ 2218 'extern "C" void exit (int) throw ();' \ 2219 'extern "C" void exit (int);' \ 2220 'void exit (int);' 2221do 2222 cat >conftest.$ac_ext <<_ACEOF 2223/* confdefs.h. */ 2224_ACEOF 2225cat confdefs.h >>conftest.$ac_ext 2226cat >>conftest.$ac_ext <<_ACEOF 2227/* end confdefs.h. */ 2228$ac_declaration 2229#include <stdlib.h> 2230int 2231main () 2232{ 2233exit (42); 2234 ; 2235 return 0; 2236} 2237_ACEOF 2238rm -f conftest.$ac_objext 2239if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2240 (eval $ac_compile) 2>conftest.er1 2241 ac_status=$? 2242 grep -v '^ *+' conftest.er1 >conftest.err 2243 rm -f conftest.er1 2244 cat conftest.err >&5 2245 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2246 (exit $ac_status); } && 2247 { ac_try='test -z "$ac_c_werror_flag" 2248 || test ! -s conftest.err' 2249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2250 (eval $ac_try) 2>&5 2251 ac_status=$? 2252 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2253 (exit $ac_status); }; } && 2254 { ac_try='test -s conftest.$ac_objext' 2255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2256 (eval $ac_try) 2>&5 2257 ac_status=$? 2258 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2259 (exit $ac_status); }; }; then 2260 : 2261else 2262 echo "$as_me: failed program was:" >&5 2263sed 's/^/| /' conftest.$ac_ext >&5 2264 2265continue 2266fi 2267rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2268 cat >conftest.$ac_ext <<_ACEOF 2269/* confdefs.h. */ 2270_ACEOF 2271cat confdefs.h >>conftest.$ac_ext 2272cat >>conftest.$ac_ext <<_ACEOF 2273/* end confdefs.h. */ 2274$ac_declaration 2275int 2276main () 2277{ 2278exit (42); 2279 ; 2280 return 0; 2281} 2282_ACEOF 2283rm -f conftest.$ac_objext 2284if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2285 (eval $ac_compile) 2>conftest.er1 2286 ac_status=$? 2287 grep -v '^ *+' conftest.er1 >conftest.err 2288 rm -f conftest.er1 2289 cat conftest.err >&5 2290 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2291 (exit $ac_status); } && 2292 { ac_try='test -z "$ac_c_werror_flag" 2293 || test ! -s conftest.err' 2294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2295 (eval $ac_try) 2>&5 2296 ac_status=$? 2297 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2298 (exit $ac_status); }; } && 2299 { ac_try='test -s conftest.$ac_objext' 2300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2301 (eval $ac_try) 2>&5 2302 ac_status=$? 2303 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2304 (exit $ac_status); }; }; then 2305 break 2306else 2307 echo "$as_me: failed program was:" >&5 2308sed 's/^/| /' conftest.$ac_ext >&5 2309 2310fi 2311rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2312done 2313rm -f conftest* 2314if test -n "$ac_declaration"; then 2315 echo '#ifdef __cplusplus' >>confdefs.h 2316 echo $ac_declaration >>confdefs.h 2317 echo '#endif' >>confdefs.h 2318fi 2319 2320else 2321 echo "$as_me: failed program was:" >&5 2322sed 's/^/| /' conftest.$ac_ext >&5 2323 2324fi 2325rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2326ac_ext=c 2327ac_cpp='$CPP $CPPFLAGS' 2328ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2329ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2330ac_compiler_gnu=$ac_cv_c_compiler_gnu 2331 ac_ext=c 2332ac_cpp='$CPP $CPPFLAGS' 2333ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2334ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2335ac_compiler_gnu=$ac_cv_c_compiler_gnu 2336echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 2337echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 2338# On Suns, sometimes $CPP names a directory. 2339if test -n "$CPP" && test -d "$CPP"; then 2340 CPP= 2341fi 2342if test -z "$CPP"; then 2343 if test "${ac_cv_prog_CPP+set}" = set; then 2344 echo $ECHO_N "(cached) $ECHO_C" >&6 2345else 2346 # Double quotes because CPP needs to be expanded 2347 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 2348 do 2349 ac_preproc_ok=false 2350for ac_c_preproc_warn_flag in '' yes 2351do 2352 # Use a header file that comes with gcc, so configuring glibc 2353 # with a fresh cross-compiler works. 2354 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2355 # <limits.h> exists even on freestanding compilers. 2356 # On the NeXT, cc -E runs the code through the compiler's parser, 2357 # not just through cpp. "Syntax error" is here to catch this case. 2358 cat >conftest.$ac_ext <<_ACEOF 2359/* confdefs.h. */ 2360_ACEOF 2361cat confdefs.h >>conftest.$ac_ext 2362cat >>conftest.$ac_ext <<_ACEOF 2363/* end confdefs.h. */ 2364#ifdef __STDC__ 2365# include <limits.h> 2366#else 2367# include <assert.h> 2368#endif 2369 Syntax error 2370_ACEOF 2371if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2372 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2373 ac_status=$? 2374 grep -v '^ *+' conftest.er1 >conftest.err 2375 rm -f conftest.er1 2376 cat conftest.err >&5 2377 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2378 (exit $ac_status); } >/dev/null; then 2379 if test -s conftest.err; then 2380 ac_cpp_err=$ac_c_preproc_warn_flag 2381 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 2382 else 2383 ac_cpp_err= 2384 fi 2385else 2386 ac_cpp_err=yes 2387fi 2388if test -z "$ac_cpp_err"; then 2389 : 2390else 2391 echo "$as_me: failed program was:" >&5 2392sed 's/^/| /' conftest.$ac_ext >&5 2393 2394 # Broken: fails on valid input. 2395continue 2396fi 2397rm -f conftest.err conftest.$ac_ext 2398 2399 # OK, works on sane cases. Now check whether non-existent headers 2400 # can be detected and how. 2401 cat >conftest.$ac_ext <<_ACEOF 2402/* confdefs.h. */ 2403_ACEOF 2404cat confdefs.h >>conftest.$ac_ext 2405cat >>conftest.$ac_ext <<_ACEOF 2406/* end confdefs.h. */ 2407#include <ac_nonexistent.h> 2408_ACEOF 2409if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2410 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2411 ac_status=$? 2412 grep -v '^ *+' conftest.er1 >conftest.err 2413 rm -f conftest.er1 2414 cat conftest.err >&5 2415 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2416 (exit $ac_status); } >/dev/null; then 2417 if test -s conftest.err; then 2418 ac_cpp_err=$ac_c_preproc_warn_flag 2419 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 2420 else 2421 ac_cpp_err= 2422 fi 2423else 2424 ac_cpp_err=yes 2425fi 2426if test -z "$ac_cpp_err"; then 2427 # Broken: success on invalid input. 2428continue 2429else 2430 echo "$as_me: failed program was:" >&5 2431sed 's/^/| /' conftest.$ac_ext >&5 2432 2433 # Passes both tests. 2434ac_preproc_ok=: 2435break 2436fi 2437rm -f conftest.err conftest.$ac_ext 2438 2439done 2440# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 2441rm -f conftest.err conftest.$ac_ext 2442if $ac_preproc_ok; then 2443 break 2444fi 2445 2446 done 2447 ac_cv_prog_CPP=$CPP 2448 2449fi 2450 CPP=$ac_cv_prog_CPP 2451else 2452 ac_cv_prog_CPP=$CPP 2453fi 2454echo "$as_me:$LINENO: result: $CPP" >&5 2455echo "${ECHO_T}$CPP" >&6 2456ac_preproc_ok=false 2457for ac_c_preproc_warn_flag in '' yes 2458do 2459 # Use a header file that comes with gcc, so configuring glibc 2460 # with a fresh cross-compiler works. 2461 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2462 # <limits.h> exists even on freestanding compilers. 2463 # On the NeXT, cc -E runs the code through the compiler's parser, 2464 # not just through cpp. "Syntax error" is here to catch this case. 2465 cat >conftest.$ac_ext <<_ACEOF 2466/* confdefs.h. */ 2467_ACEOF 2468cat confdefs.h >>conftest.$ac_ext 2469cat >>conftest.$ac_ext <<_ACEOF 2470/* end confdefs.h. */ 2471#ifdef __STDC__ 2472# include <limits.h> 2473#else 2474# include <assert.h> 2475#endif 2476 Syntax error 2477_ACEOF 2478if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2479 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2480 ac_status=$? 2481 grep -v '^ *+' conftest.er1 >conftest.err 2482 rm -f conftest.er1 2483 cat conftest.err >&5 2484 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2485 (exit $ac_status); } >/dev/null; then 2486 if test -s conftest.err; then 2487 ac_cpp_err=$ac_c_preproc_warn_flag 2488 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 2489 else 2490 ac_cpp_err= 2491 fi 2492else 2493 ac_cpp_err=yes 2494fi 2495if test -z "$ac_cpp_err"; then 2496 : 2497else 2498 echo "$as_me: failed program was:" >&5 2499sed 's/^/| /' conftest.$ac_ext >&5 2500 2501 # Broken: fails on valid input. 2502continue 2503fi 2504rm -f conftest.err conftest.$ac_ext 2505 2506 # OK, works on sane cases. Now check whether non-existent headers 2507 # can be detected and how. 2508 cat >conftest.$ac_ext <<_ACEOF 2509/* confdefs.h. */ 2510_ACEOF 2511cat confdefs.h >>conftest.$ac_ext 2512cat >>conftest.$ac_ext <<_ACEOF 2513/* end confdefs.h. */ 2514#include <ac_nonexistent.h> 2515_ACEOF 2516if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2517 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2518 ac_status=$? 2519 grep -v '^ *+' conftest.er1 >conftest.err 2520 rm -f conftest.er1 2521 cat conftest.err >&5 2522 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2523 (exit $ac_status); } >/dev/null; then 2524 if test -s conftest.err; then 2525 ac_cpp_err=$ac_c_preproc_warn_flag 2526 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 2527 else 2528 ac_cpp_err= 2529 fi 2530else 2531 ac_cpp_err=yes 2532fi 2533if test -z "$ac_cpp_err"; then 2534 # Broken: success on invalid input. 2535continue 2536else 2537 echo "$as_me: failed program was:" >&5 2538sed 's/^/| /' conftest.$ac_ext >&5 2539 2540 # Passes both tests. 2541ac_preproc_ok=: 2542break 2543fi 2544rm -f conftest.err conftest.$ac_ext 2545 2546done 2547# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 2548rm -f conftest.err conftest.$ac_ext 2549if $ac_preproc_ok; then 2550 : 2551else 2552 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 2553See \`config.log' for more details." >&5 2554echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 2555See \`config.log' for more details." >&2;} 2556 { (exit 1); exit 1; }; } 2557fi 2558 2559ac_ext=c 2560ac_cpp='$CPP $CPPFLAGS' 2561ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2562ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2563ac_compiler_gnu=$ac_cv_c_compiler_gnu 2564 2565 2566echo "$as_me:$LINENO: checking for egrep" >&5 2567echo $ECHO_N "checking for egrep... $ECHO_C" >&6 2568if test "${ac_cv_prog_egrep+set}" = set; then 2569 echo $ECHO_N "(cached) $ECHO_C" >&6 2570else 2571 if echo a | (grep -E '(a|b)') >/dev/null 2>&1 2572 then ac_cv_prog_egrep='grep -E' 2573 else ac_cv_prog_egrep='egrep' 2574 fi 2575fi 2576echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 2577echo "${ECHO_T}$ac_cv_prog_egrep" >&6 2578 EGREP=$ac_cv_prog_egrep 2579 2580 2581cat >conftest.$ac_ext <<_ACEOF 2582/* confdefs.h. */ 2583_ACEOF 2584cat confdefs.h >>conftest.$ac_ext 2585cat >>conftest.$ac_ext <<_ACEOF 2586/* end confdefs.h. */ 2587 2588_ACEOF 2589if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2590 $EGREP "" >/dev/null 2>&1; then 2591 : 2592fi 2593rm -f conftest* 2594 echo "$as_me:$LINENO: checking for library containing strerror" >&5 2595echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6 2596if test "${ac_cv_search_strerror+set}" = set; then 2597 echo $ECHO_N "(cached) $ECHO_C" >&6 2598else 2599 ac_func_search_save_LIBS=$LIBS 2600ac_cv_search_strerror=no 2601cat >conftest.$ac_ext <<_ACEOF 2602/* confdefs.h. */ 2603_ACEOF 2604cat confdefs.h >>conftest.$ac_ext 2605cat >>conftest.$ac_ext <<_ACEOF 2606/* end confdefs.h. */ 2607 2608/* Override any gcc2 internal prototype to avoid an error. */ 2609#ifdef __cplusplus 2610extern "C" 2611#endif 2612/* We use char because int might match the return type of a gcc2 2613 builtin and then its argument prototype would still apply. */ 2614char strerror (); 2615int 2616main () 2617{ 2618strerror (); 2619 ; 2620 return 0; 2621} 2622_ACEOF 2623rm -f conftest.$ac_objext conftest$ac_exeext 2624if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2625 (eval $ac_link) 2>conftest.er1 2626 ac_status=$? 2627 grep -v '^ *+' conftest.er1 >conftest.err 2628 rm -f conftest.er1 2629 cat conftest.err >&5 2630 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2631 (exit $ac_status); } && 2632 { ac_try='test -z "$ac_c_werror_flag" 2633 || test ! -s conftest.err' 2634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2635 (eval $ac_try) 2>&5 2636 ac_status=$? 2637 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2638 (exit $ac_status); }; } && 2639 { ac_try='test -s conftest$ac_exeext' 2640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2641 (eval $ac_try) 2>&5 2642 ac_status=$? 2643 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2644 (exit $ac_status); }; }; then 2645 ac_cv_search_strerror="none required" 2646else 2647 echo "$as_me: failed program was:" >&5 2648sed 's/^/| /' conftest.$ac_ext >&5 2649 2650fi 2651rm -f conftest.err conftest.$ac_objext \ 2652 conftest$ac_exeext conftest.$ac_ext 2653if test "$ac_cv_search_strerror" = no; then 2654 for ac_lib in cposix; do 2655 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 2656 cat >conftest.$ac_ext <<_ACEOF 2657/* confdefs.h. */ 2658_ACEOF 2659cat confdefs.h >>conftest.$ac_ext 2660cat >>conftest.$ac_ext <<_ACEOF 2661/* end confdefs.h. */ 2662 2663/* Override any gcc2 internal prototype to avoid an error. */ 2664#ifdef __cplusplus 2665extern "C" 2666#endif 2667/* We use char because int might match the return type of a gcc2 2668 builtin and then its argument prototype would still apply. */ 2669char strerror (); 2670int 2671main () 2672{ 2673strerror (); 2674 ; 2675 return 0; 2676} 2677_ACEOF 2678rm -f conftest.$ac_objext conftest$ac_exeext 2679if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2680 (eval $ac_link) 2>conftest.er1 2681 ac_status=$? 2682 grep -v '^ *+' conftest.er1 >conftest.err 2683 rm -f conftest.er1 2684 cat conftest.err >&5 2685 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2686 (exit $ac_status); } && 2687 { ac_try='test -z "$ac_c_werror_flag" 2688 || test ! -s conftest.err' 2689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2690 (eval $ac_try) 2>&5 2691 ac_status=$? 2692 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2693 (exit $ac_status); }; } && 2694 { ac_try='test -s conftest$ac_exeext' 2695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2696 (eval $ac_try) 2>&5 2697 ac_status=$? 2698 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2699 (exit $ac_status); }; }; then 2700 ac_cv_search_strerror="-l$ac_lib" 2701break 2702else 2703 echo "$as_me: failed program was:" >&5 2704sed 's/^/| /' conftest.$ac_ext >&5 2705 2706fi 2707rm -f conftest.err conftest.$ac_objext \ 2708 conftest$ac_exeext conftest.$ac_ext 2709 done 2710fi 2711LIBS=$ac_func_search_save_LIBS 2712fi 2713echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5 2714echo "${ECHO_T}$ac_cv_search_strerror" >&6 2715if test "$ac_cv_search_strerror" != no; then 2716 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS" 2717 2718fi 2719 for ac_prog in gawk mawk nawk awk 2720do 2721 # Extract the first word of "$ac_prog", so it can be a program name with args. 2722set dummy $ac_prog; ac_word=$2 2723echo "$as_me:$LINENO: checking for $ac_word" >&5 2724echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2725if test "${ac_cv_prog_AWK+set}" = set; then 2726 echo $ECHO_N "(cached) $ECHO_C" >&6 2727else 2728 if test -n "$AWK"; then 2729 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2730else 2731as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2732for as_dir in $PATH 2733do 2734 IFS=$as_save_IFS 2735 test -z "$as_dir" && as_dir=. 2736 for ac_exec_ext in '' $ac_executable_extensions; do 2737 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2738 ac_cv_prog_AWK="$ac_prog" 2739 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2740 break 2 2741 fi 2742done 2743done 2744 2745fi 2746fi 2747AWK=$ac_cv_prog_AWK 2748if test -n "$AWK"; then 2749 echo "$as_me:$LINENO: result: $AWK" >&5 2750echo "${ECHO_T}$AWK" >&6 2751else 2752 echo "$as_me:$LINENO: result: no" >&5 2753echo "${ECHO_T}no" >&6 2754fi 2755 2756 test -n "$AWK" && break 2757done 2758 2759# Extract the first word of "strip", so it can be a program name with args. 2760set dummy strip; ac_word=$2 2761echo "$as_me:$LINENO: checking for $ac_word" >&5 2762echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2763if test "${ac_cv_prog_STRIP+set}" = set; then 2764 echo $ECHO_N "(cached) $ECHO_C" >&6 2765else 2766 if test -n "$STRIP"; then 2767 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2768else 2769as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2770for as_dir in $PATH 2771do 2772 IFS=$as_save_IFS 2773 test -z "$as_dir" && as_dir=. 2774 for ac_exec_ext in '' $ac_executable_extensions; do 2775 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2776 ac_cv_prog_STRIP="strip" 2777 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2778 break 2 2779 fi 2780done 2781done 2782 2783 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":" 2784fi 2785fi 2786STRIP=$ac_cv_prog_STRIP 2787if test -n "$STRIP"; then 2788 echo "$as_me:$LINENO: result: $STRIP" >&5 2789echo "${ECHO_T}$STRIP" >&6 2790else 2791 echo "$as_me:$LINENO: result: no" >&5 2792echo "${ECHO_T}no" >&6 2793fi 2794 2795 2796 2797 2798if test -z "$CFLAGS"; then 2799 CFLAGS="-O" 2800 test "$GCC" = yes && CFLAGS="-O2 -fno-strength-reduce -Wall" 2801fi 2802if test "$GCC" = yes; then 2803 gccversion=`"$CC" --version | sed -e '2,$d;s/^[^0-9]*\([0-9]\.[0-9.]*\).*$/\1/g'` 2804 if test "$gccversion" = "3.0.1" -o "$gccversion" = "3.0.2"; then 2805 echo 'GCC 3.0.x has a bug in the optimizer, disabling "-O#"' 2806 CFLAGS=`echo "$CFLAGS" | sed 's/-O[23456789]/-O/'` 2807 else 2808 if test "$gccversion" = "3.1" -o "$gccversion" = "3.2" -o "$gccversion" = "3.2.1" && `echo "$CFLAGS" | grep -v fno-strength-reduce >/dev/null`; then 2809 echo 'GCC 3.1 and 3.2 have a bug in the optimizer, adding "-fno-strength-reduce"' 2810 CFLAGS="$CFLAGS -fno-strength-reduce" 2811 fi 2812 fi 2813fi 2814 2815if test "$cross_compiling" = yes; then 2816 { { echo "$as_me:$LINENO: error: cannot compile a simple program, check CC and CFLAGS 2817 (cross compiling doesn't work)" >&5 2818echo "$as_me: error: cannot compile a simple program, check CC and CFLAGS 2819 (cross compiling doesn't work)" >&2;} 2820 { (exit 1); exit 1; }; } 2821fi 2822 2823test "$GCC" = yes && CPP_MM=M; 2824 2825if test -f ./toolcheck; then 2826 { echo "$as_me:$LINENO: checking for buggy tools..." >&5 2827echo "$as_me: checking for buggy tools..." >&6;} 2828 sh ./toolcheck 1>&6 2829fi 2830 2831OS_EXTRA_SRC=""; OS_EXTRA_OBJ="" 2832 2833echo "$as_me:$LINENO: checking for BeOS" >&5 2834echo $ECHO_N "checking for BeOS... $ECHO_C" >&6 2835case `uname` in 2836 BeOS) OS_EXTRA_SRC=os_beos.c; OS_EXTRA_OBJ=objects/os_beos.o 2837 BEOS=yes; echo "$as_me:$LINENO: result: yes" >&5 2838echo "${ECHO_T}yes" >&6;; 2839 *) BEOS=no; echo "$as_me:$LINENO: result: no" >&5 2840echo "${ECHO_T}no" >&6;; 2841esac 2842 2843echo "$as_me:$LINENO: checking for QNX" >&5 2844echo $ECHO_N "checking for QNX... $ECHO_C" >&6 2845case `uname` in 2846 QNX) OS_EXTRA_SRC=os_qnx.c; OS_EXTRA_OBJ=objects/os_qnx.o 2847 test -z "$with_x" && with_x=no 2848 QNX=yes; echo "$as_me:$LINENO: result: yes" >&5 2849echo "${ECHO_T}yes" >&6;; 2850 *) QNX=no; echo "$as_me:$LINENO: result: no" >&5 2851echo "${ECHO_T}no" >&6;; 2852esac 2853 2854echo "$as_me:$LINENO: checking for Darwin (Mac OS X)" >&5 2855echo $ECHO_N "checking for Darwin (Mac OS X)... $ECHO_C" >&6 2856if test "`(uname) 2>/dev/null`" = Darwin; then 2857 echo "$as_me:$LINENO: result: yes" >&5 2858echo "${ECHO_T}yes" >&6 2859 2860 echo "$as_me:$LINENO: checking --disable-darwin argument" >&5 2861echo $ECHO_N "checking --disable-darwin argument... $ECHO_C" >&6 2862 # Check whether --enable-darwin or --disable-darwin was given. 2863if test "${enable_darwin+set}" = set; then 2864 enableval="$enable_darwin" 2865 2866else 2867 enable_darwin="yes" 2868fi; 2869 if test "$enable_darwin" = "yes"; then 2870 echo "$as_me:$LINENO: result: no" >&5 2871echo "${ECHO_T}no" >&6 2872 echo "$as_me:$LINENO: checking if Darwin files are there" >&5 2873echo $ECHO_N "checking if Darwin files are there... $ECHO_C" >&6 2874 if test -f os_macosx.c; then 2875 echo "$as_me:$LINENO: result: yes" >&5 2876echo "${ECHO_T}yes" >&6 2877 else 2878 echo "$as_me:$LINENO: result: no, Darwin support disabled" >&5 2879echo "${ECHO_T}no, Darwin support disabled" >&6 2880 enable_darwin=no 2881 fi 2882 else 2883 echo "$as_me:$LINENO: result: yes, Darwin support excluded" >&5 2884echo "${ECHO_T}yes, Darwin support excluded" >&6 2885 fi 2886 2887 if test "$enable_darwin" = "yes"; then 2888 MACOSX=yes 2889 OS_EXTRA_SCR="os_macosx.c os_mac_conv.c"; 2890 OS_EXTRA_OBJ="objects/os_macosx.o objects/os_mac_conv.o" 2891 CPPFLAGS="$CPPFLAGS -DMACOS_X_UNIX -I/Developer/Headers/FlatCarbon -no-cpp-precomp" 2892 2893 echo "$as_me:$LINENO: checking for ANSI C header files" >&5 2894echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 2895if test "${ac_cv_header_stdc+set}" = set; then 2896 echo $ECHO_N "(cached) $ECHO_C" >&6 2897else 2898 cat >conftest.$ac_ext <<_ACEOF 2899/* confdefs.h. */ 2900_ACEOF 2901cat confdefs.h >>conftest.$ac_ext 2902cat >>conftest.$ac_ext <<_ACEOF 2903/* end confdefs.h. */ 2904#include <stdlib.h> 2905#include <stdarg.h> 2906#include <string.h> 2907#include <float.h> 2908 2909int 2910main () 2911{ 2912 2913 ; 2914 return 0; 2915} 2916_ACEOF 2917rm -f conftest.$ac_objext 2918if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2919 (eval $ac_compile) 2>conftest.er1 2920 ac_status=$? 2921 grep -v '^ *+' conftest.er1 >conftest.err 2922 rm -f conftest.er1 2923 cat conftest.err >&5 2924 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2925 (exit $ac_status); } && 2926 { ac_try='test -z "$ac_c_werror_flag" 2927 || test ! -s conftest.err' 2928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2929 (eval $ac_try) 2>&5 2930 ac_status=$? 2931 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2932 (exit $ac_status); }; } && 2933 { ac_try='test -s conftest.$ac_objext' 2934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2935 (eval $ac_try) 2>&5 2936 ac_status=$? 2937 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2938 (exit $ac_status); }; }; then 2939 ac_cv_header_stdc=yes 2940else 2941 echo "$as_me: failed program was:" >&5 2942sed 's/^/| /' conftest.$ac_ext >&5 2943 2944ac_cv_header_stdc=no 2945fi 2946rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2947 2948if test $ac_cv_header_stdc = yes; then 2949 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 2950 cat >conftest.$ac_ext <<_ACEOF 2951/* confdefs.h. */ 2952_ACEOF 2953cat confdefs.h >>conftest.$ac_ext 2954cat >>conftest.$ac_ext <<_ACEOF 2955/* end confdefs.h. */ 2956#include <string.h> 2957 2958_ACEOF 2959if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2960 $EGREP "memchr" >/dev/null 2>&1; then 2961 : 2962else 2963 ac_cv_header_stdc=no 2964fi 2965rm -f conftest* 2966 2967fi 2968 2969if test $ac_cv_header_stdc = yes; then 2970 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 2971 cat >conftest.$ac_ext <<_ACEOF 2972/* confdefs.h. */ 2973_ACEOF 2974cat confdefs.h >>conftest.$ac_ext 2975cat >>conftest.$ac_ext <<_ACEOF 2976/* end confdefs.h. */ 2977#include <stdlib.h> 2978 2979_ACEOF 2980if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2981 $EGREP "free" >/dev/null 2>&1; then 2982 : 2983else 2984 ac_cv_header_stdc=no 2985fi 2986rm -f conftest* 2987 2988fi 2989 2990if test $ac_cv_header_stdc = yes; then 2991 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 2992 if test "$cross_compiling" = yes; then 2993 : 2994else 2995 cat >conftest.$ac_ext <<_ACEOF 2996/* confdefs.h. */ 2997_ACEOF 2998cat confdefs.h >>conftest.$ac_ext 2999cat >>conftest.$ac_ext <<_ACEOF 3000/* end confdefs.h. */ 3001#include <ctype.h> 3002#if ((' ' & 0x0FF) == 0x020) 3003# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3004# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3005#else 3006# define ISLOWER(c) \ 3007 (('a' <= (c) && (c) <= 'i') \ 3008 || ('j' <= (c) && (c) <= 'r') \ 3009 || ('s' <= (c) && (c) <= 'z')) 3010# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3011#endif 3012 3013#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3014int 3015main () 3016{ 3017 int i; 3018 for (i = 0; i < 256; i++) 3019 if (XOR (islower (i), ISLOWER (i)) 3020 || toupper (i) != TOUPPER (i)) 3021 exit(2); 3022 exit (0); 3023} 3024_ACEOF 3025rm -f conftest$ac_exeext 3026if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3027 (eval $ac_link) 2>&5 3028 ac_status=$? 3029 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3030 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 3031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3032 (eval $ac_try) 2>&5 3033 ac_status=$? 3034 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3035 (exit $ac_status); }; }; then 3036 : 3037else 3038 echo "$as_me: program exited with status $ac_status" >&5 3039echo "$as_me: failed program was:" >&5 3040sed 's/^/| /' conftest.$ac_ext >&5 3041 3042( exit $ac_status ) 3043ac_cv_header_stdc=no 3044fi 3045rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 3046fi 3047fi 3048fi 3049echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 3050echo "${ECHO_T}$ac_cv_header_stdc" >&6 3051if test $ac_cv_header_stdc = yes; then 3052 3053cat >>confdefs.h <<\_ACEOF 3054#define STDC_HEADERS 1 3055_ACEOF 3056 3057fi 3058 3059# On IRIX 5.3, sys/types and inttypes.h are conflicting. 3060 3061 3062 3063 3064 3065 3066 3067 3068 3069for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 3070 inttypes.h stdint.h unistd.h 3071do 3072as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 3073echo "$as_me:$LINENO: checking for $ac_header" >&5 3074echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 3075if eval "test \"\${$as_ac_Header+set}\" = set"; then 3076 echo $ECHO_N "(cached) $ECHO_C" >&6 3077else 3078 cat >conftest.$ac_ext <<_ACEOF 3079/* confdefs.h. */ 3080_ACEOF 3081cat confdefs.h >>conftest.$ac_ext 3082cat >>conftest.$ac_ext <<_ACEOF 3083/* end confdefs.h. */ 3084$ac_includes_default 3085 3086#include <$ac_header> 3087_ACEOF 3088rm -f conftest.$ac_objext 3089if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3090 (eval $ac_compile) 2>conftest.er1 3091 ac_status=$? 3092 grep -v '^ *+' conftest.er1 >conftest.err 3093 rm -f conftest.er1 3094 cat conftest.err >&5 3095 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3096 (exit $ac_status); } && 3097 { ac_try='test -z "$ac_c_werror_flag" 3098 || test ! -s conftest.err' 3099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3100 (eval $ac_try) 2>&5 3101 ac_status=$? 3102 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3103 (exit $ac_status); }; } && 3104 { ac_try='test -s conftest.$ac_objext' 3105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3106 (eval $ac_try) 2>&5 3107 ac_status=$? 3108 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3109 (exit $ac_status); }; }; then 3110 eval "$as_ac_Header=yes" 3111else 3112 echo "$as_me: failed program was:" >&5 3113sed 's/^/| /' conftest.$ac_ext >&5 3114 3115eval "$as_ac_Header=no" 3116fi 3117rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3118fi 3119echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 3120echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 3121if test `eval echo '${'$as_ac_Header'}'` = yes; then 3122 cat >>confdefs.h <<_ACEOF 3123#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 3124_ACEOF 3125 3126fi 3127 3128done 3129 3130 3131if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then 3132 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5 3133echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6 3134if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then 3135 echo $ECHO_N "(cached) $ECHO_C" >&6 3136fi 3137echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5 3138echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6 3139else 3140 # Is the header compilable? 3141echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5 3142echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6 3143cat >conftest.$ac_ext <<_ACEOF 3144/* confdefs.h. */ 3145_ACEOF 3146cat confdefs.h >>conftest.$ac_ext 3147cat >>conftest.$ac_ext <<_ACEOF 3148/* end confdefs.h. */ 3149$ac_includes_default 3150#include <Carbon/Carbon.h> 3151_ACEOF 3152rm -f conftest.$ac_objext 3153if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3154 (eval $ac_compile) 2>conftest.er1 3155 ac_status=$? 3156 grep -v '^ *+' conftest.er1 >conftest.err 3157 rm -f conftest.er1 3158 cat conftest.err >&5 3159 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3160 (exit $ac_status); } && 3161 { ac_try='test -z "$ac_c_werror_flag" 3162 || test ! -s conftest.err' 3163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3164 (eval $ac_try) 2>&5 3165 ac_status=$? 3166 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3167 (exit $ac_status); }; } && 3168 { ac_try='test -s conftest.$ac_objext' 3169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3170 (eval $ac_try) 2>&5 3171 ac_status=$? 3172 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3173 (exit $ac_status); }; }; then 3174 ac_header_compiler=yes 3175else 3176 echo "$as_me: failed program was:" >&5 3177sed 's/^/| /' conftest.$ac_ext >&5 3178 3179ac_header_compiler=no 3180fi 3181rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3182echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 3183echo "${ECHO_T}$ac_header_compiler" >&6 3184 3185# Is the header present? 3186echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5 3187echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6 3188cat >conftest.$ac_ext <<_ACEOF 3189/* confdefs.h. */ 3190_ACEOF 3191cat confdefs.h >>conftest.$ac_ext 3192cat >>conftest.$ac_ext <<_ACEOF 3193/* end confdefs.h. */ 3194#include <Carbon/Carbon.h> 3195_ACEOF 3196if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3197 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3198 ac_status=$? 3199 grep -v '^ *+' conftest.er1 >conftest.err 3200 rm -f conftest.er1 3201 cat conftest.err >&5 3202 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3203 (exit $ac_status); } >/dev/null; then 3204 if test -s conftest.err; then 3205 ac_cpp_err=$ac_c_preproc_warn_flag 3206 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3207 else 3208 ac_cpp_err= 3209 fi 3210else 3211 ac_cpp_err=yes 3212fi 3213if test -z "$ac_cpp_err"; then 3214 ac_header_preproc=yes 3215else 3216 echo "$as_me: failed program was:" >&5 3217sed 's/^/| /' conftest.$ac_ext >&5 3218 3219 ac_header_preproc=no 3220fi 3221rm -f conftest.err conftest.$ac_ext 3222echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 3223echo "${ECHO_T}$ac_header_preproc" >&6 3224 3225# So? What about this header? 3226case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 3227 yes:no: ) 3228 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5 3229echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 3230 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5 3231echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;} 3232 ac_header_preproc=yes 3233 ;; 3234 no:yes:* ) 3235 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5 3236echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;} 3237 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5 3238echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;} 3239 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5 3240echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;} 3241 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5 3242echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;} 3243 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5 3244echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;} 3245 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5 3246echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;} 3247 ( 3248 cat <<\_ASBOX 3249## ------------------------------------------ ## 3250## Report this to the AC_PACKAGE_NAME lists. ## 3251## ------------------------------------------ ## 3252_ASBOX 3253 ) | 3254 sed "s/^/$as_me: WARNING: /" >&2 3255 ;; 3256esac 3257echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5 3258echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6 3259if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then 3260 echo $ECHO_N "(cached) $ECHO_C" >&6 3261else 3262 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc 3263fi 3264echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5 3265echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6 3266 3267fi 3268if test $ac_cv_header_Carbon_Carbon_h = yes; then 3269 CARBON=yes 3270fi 3271 3272 3273 if test "x$CARBON" = "xyes"; then 3274 if test -z "$with_x" -a "X$enable_gui" != Xmotif -a "X$enable_gui" != Xathena -a "X$enable_gui" != Xgtk -a "X$enable_gui" != Xgtk2; then 3275 with_x=no 3276 fi 3277 fi 3278 fi 3279else 3280 echo "$as_me:$LINENO: result: no" >&5 3281echo "${ECHO_T}no" >&6 3282fi 3283 3284 3285 3286 3287have_local_include='' 3288have_local_lib='' 3289if test "$GCC" = yes; then 3290 echo 'void f(){}' > conftest.c 3291 have_local_include=`${CC-cc} -no-cpp-precomp -c -v conftest.c 2>&1 | grep '/usr/local/include'` 3292 have_local_lib=`${CC-cc} -c -v conftest.c 2>&1 | grep '/usr/local/lib'` 3293 rm -f conftest.c conftest.o 3294fi 3295if test -z "$have_local_lib" -a -d /usr/local/lib; then 3296 tt=`echo "$LDFLAGS" | sed -e 's+-L/usr/local/lib ++g' -e 's+-L/usr/local/lib$++g'` 3297 if test "$tt" = "$LDFLAGS"; then 3298 LDFLAGS="$LDFLAGS -L/usr/local/lib" 3299 fi 3300fi 3301if test -z "$have_local_include" -a -d /usr/local/include; then 3302 tt=`echo "$CPPFLAGS" | sed -e 's+-I/usr/local/include ++g' -e 's+-I/usr/local/include$++g'` 3303 if test "$tt" = "$CPPFLAGS"; then 3304 CPPFLAGS="$CPPFLAGS -I/usr/local/include" 3305 fi 3306fi 3307 3308echo "$as_me:$LINENO: checking --with-vim-name argument" >&5 3309echo $ECHO_N "checking --with-vim-name argument... $ECHO_C" >&6 3310 3311# Check whether --with-vim-name or --without-vim-name was given. 3312if test "${with_vim_name+set}" = set; then 3313 withval="$with_vim_name" 3314 VIMNAME="$withval"; echo "$as_me:$LINENO: result: $VIMNAME" >&5 3315echo "${ECHO_T}$VIMNAME" >&6 3316else 3317 VIMNAME="vim"; echo "$as_me:$LINENO: result: Defaulting to $VIMNAME" >&5 3318echo "${ECHO_T}Defaulting to $VIMNAME" >&6 3319fi; 3320 3321echo "$as_me:$LINENO: checking --with-ex-name argument" >&5 3322echo $ECHO_N "checking --with-ex-name argument... $ECHO_C" >&6 3323 3324# Check whether --with-ex-name or --without-ex-name was given. 3325if test "${with_ex_name+set}" = set; then 3326 withval="$with_ex_name" 3327 EXNAME="$withval"; echo "$as_me:$LINENO: result: $EXNAME" >&5 3328echo "${ECHO_T}$EXNAME" >&6 3329else 3330 EXNAME="ex"; echo "$as_me:$LINENO: result: Defaulting to ex" >&5 3331echo "${ECHO_T}Defaulting to ex" >&6 3332fi; 3333 3334echo "$as_me:$LINENO: checking --with-view-name argument" >&5 3335echo $ECHO_N "checking --with-view-name argument... $ECHO_C" >&6 3336 3337# Check whether --with-view-name or --without-view-name was given. 3338if test "${with_view_name+set}" = set; then 3339 withval="$with_view_name" 3340 VIEWNAME="$withval"; echo "$as_me:$LINENO: result: $VIEWNAME" >&5 3341echo "${ECHO_T}$VIEWNAME" >&6 3342else 3343 VIEWNAME="view"; echo "$as_me:$LINENO: result: Defaulting to view" >&5 3344echo "${ECHO_T}Defaulting to view" >&6 3345fi; 3346 3347 3348echo "$as_me:$LINENO: checking --with-global-runtime argument" >&5 3349echo $ECHO_N "checking --with-global-runtime argument... $ECHO_C" >&6 3350 3351# Check whether --with-global-runtime or --without-global-runtime was given. 3352if test "${with_global_runtime+set}" = set; then 3353 withval="$with_global_runtime" 3354 echo "$as_me:$LINENO: result: $withval" >&5 3355echo "${ECHO_T}$withval" >&6; cat >>confdefs.h <<_ACEOF 3356#define RUNTIME_GLOBAL "$withval" 3357_ACEOF 3358 3359else 3360 echo "$as_me:$LINENO: result: no" >&5 3361echo "${ECHO_T}no" >&6 3362fi; 3363 3364echo "$as_me:$LINENO: checking --with-modified-by argument" >&5 3365echo $ECHO_N "checking --with-modified-by argument... $ECHO_C" >&6 3366 3367# Check whether --with-modified-by or --without-modified-by was given. 3368if test "${with_modified_by+set}" = set; then 3369 withval="$with_modified_by" 3370 echo "$as_me:$LINENO: result: $withval" >&5 3371echo "${ECHO_T}$withval" >&6; cat >>confdefs.h <<_ACEOF 3372#define MODIFIED_BY "$withval" 3373_ACEOF 3374 3375else 3376 echo "$as_me:$LINENO: result: no" >&5 3377echo "${ECHO_T}no" >&6 3378fi; 3379 3380echo "$as_me:$LINENO: checking if character set is EBCDIC" >&5 3381echo $ECHO_N "checking if character set is EBCDIC... $ECHO_C" >&6 3382cat >conftest.$ac_ext <<_ACEOF 3383/* confdefs.h. */ 3384_ACEOF 3385cat confdefs.h >>conftest.$ac_ext 3386cat >>conftest.$ac_ext <<_ACEOF 3387/* end confdefs.h. */ 3388 3389int 3390main () 3391{ 3392 /* TryCompile function for CharSet. 3393 Treat any failure as ASCII for compatibility with existing art. 3394 Use compile-time rather than run-time tests for cross-compiler 3395 tolerance. */ 3396#if '0'!=240 3397make an error "Character set is not EBCDIC" 3398#endif 3399 ; 3400 return 0; 3401} 3402_ACEOF 3403rm -f conftest.$ac_objext 3404if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3405 (eval $ac_compile) 2>conftest.er1 3406 ac_status=$? 3407 grep -v '^ *+' conftest.er1 >conftest.err 3408 rm -f conftest.er1 3409 cat conftest.err >&5 3410 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3411 (exit $ac_status); } && 3412 { ac_try='test -z "$ac_c_werror_flag" 3413 || test ! -s conftest.err' 3414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3415 (eval $ac_try) 2>&5 3416 ac_status=$? 3417 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3418 (exit $ac_status); }; } && 3419 { ac_try='test -s conftest.$ac_objext' 3420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3421 (eval $ac_try) 2>&5 3422 ac_status=$? 3423 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3424 (exit $ac_status); }; }; then 3425 # TryCompile action if true 3426cf_cv_ebcdic=yes 3427else 3428 echo "$as_me: failed program was:" >&5 3429sed 's/^/| /' conftest.$ac_ext >&5 3430 3431 # TryCompile action if false 3432cf_cv_ebcdic=no 3433fi 3434rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3435# end of TryCompile ]) 3436# end of CacheVal CvEbcdic 3437echo "$as_me:$LINENO: result: $cf_cv_ebcdic" >&5 3438echo "${ECHO_T}$cf_cv_ebcdic" >&6 3439case "$cf_cv_ebcdic" in #(vi 3440 yes) cat >>confdefs.h <<\_ACEOF 3441#define EBCDIC 1 3442_ACEOF 3443 3444 line_break='"\\n"' 3445 ;; 3446 *) line_break='"\\012"';; 3447esac 3448 3449 3450if test "$cf_cv_ebcdic" = "yes"; then 3451echo "$as_me:$LINENO: checking for OS/390 Unix" >&5 3452echo $ECHO_N "checking for OS/390 Unix... $ECHO_C" >&6 3453case `uname` in 3454 OS/390) OS390Unix="yes"; 3455 if test "$CC" = "cc"; then 3456 ccm="$_CC_CCMODE" 3457 ccn="CC" 3458 else 3459 if test "$CC" = "c89"; then 3460 ccm="$_CC_C89MODE" 3461 ccn="C89" 3462 else 3463 ccm=1 3464 fi 3465 fi 3466 if test "$ccm" != "1"; then 3467 echo "" 3468 echo "------------------------------------------" 3469 echo " On OS/390 Unix, the environment variable" 3470 echo " __CC_${ccn}MODE must be set to \"1\"!" 3471 echo " Do:" 3472 echo " export _CC_${ccn}MODE=1" 3473 echo " and then call configure again." 3474 echo "------------------------------------------" 3475 exit 1 3476 fi 3477 CFLAGS="$CFLAGS -D_ALL_SOURCE"; LDFLAGS="$LDFLAGS -Wl,EDIT=NO" 3478 echo "$as_me:$LINENO: result: yes" >&5 3479echo "${ECHO_T}yes" >&6 3480 ;; 3481 *) OS390Unix="no"; 3482 echo "$as_me:$LINENO: result: no" >&5 3483echo "${ECHO_T}no" >&6 3484 ;; 3485esac 3486fi 3487 3488 3489 3490echo "$as_me:$LINENO: checking --with-features argument" >&5 3491echo $ECHO_N "checking --with-features argument... $ECHO_C" >&6 3492 3493# Check whether --with-features or --without-features was given. 3494if test "${with_features+set}" = set; then 3495 withval="$with_features" 3496 features="$withval"; echo "$as_me:$LINENO: result: $features" >&5 3497echo "${ECHO_T}$features" >&6 3498else 3499 features="normal"; echo "$as_me:$LINENO: result: Defaulting to normal" >&5 3500echo "${ECHO_T}Defaulting to normal" >&6 3501fi; 3502 3503dovimdiff="" 3504dogvimdiff="" 3505case "$features" in 3506 tiny) cat >>confdefs.h <<\_ACEOF 3507#define FEAT_TINY 1 3508_ACEOF 3509 ;; 3510 small) cat >>confdefs.h <<\_ACEOF 3511#define FEAT_SMALL 1 3512_ACEOF 3513 ;; 3514 normal) cat >>confdefs.h <<\_ACEOF 3515#define FEAT_NORMAL 1 3516_ACEOF 3517 dovimdiff="installvimdiff"; 3518 dogvimdiff="installgvimdiff" ;; 3519 big) cat >>confdefs.h <<\_ACEOF 3520#define FEAT_BIG 1 3521_ACEOF 3522 dovimdiff="installvimdiff"; 3523 dogvimdiff="installgvimdiff" ;; 3524 huge) cat >>confdefs.h <<\_ACEOF 3525#define FEAT_HUGE 1 3526_ACEOF 3527 dovimdiff="installvimdiff"; 3528 dogvimdiff="installgvimdiff" ;; 3529 *) echo "$as_me:$LINENO: result: Sorry, $features is not supported" >&5 3530echo "${ECHO_T}Sorry, $features is not supported" >&6 ;; 3531esac 3532 3533 3534 3535 3536echo "$as_me:$LINENO: checking --with-compiledby argument" >&5 3537echo $ECHO_N "checking --with-compiledby argument... $ECHO_C" >&6 3538 3539# Check whether --with-compiledby or --without-compiledby was given. 3540if test "${with_compiledby+set}" = set; then 3541 withval="$with_compiledby" 3542 compiledby="$withval"; echo "$as_me:$LINENO: result: $withval" >&5 3543echo "${ECHO_T}$withval" >&6 3544else 3545 compiledby=""; echo "$as_me:$LINENO: result: no" >&5 3546echo "${ECHO_T}no" >&6 3547fi; 3548 3549 3550echo "$as_me:$LINENO: checking --disable-xsmp argument" >&5 3551echo $ECHO_N "checking --disable-xsmp argument... $ECHO_C" >&6 3552# Check whether --enable-xsmp or --disable-xsmp was given. 3553if test "${enable_xsmp+set}" = set; then 3554 enableval="$enable_xsmp" 3555 3556else 3557 enable_xsmp="yes" 3558fi; 3559 3560if test "$enable_xsmp" = "yes"; then 3561 echo "$as_me:$LINENO: result: no" >&5 3562echo "${ECHO_T}no" >&6 3563 echo "$as_me:$LINENO: checking --disable-xsmp-interact argument" >&5 3564echo $ECHO_N "checking --disable-xsmp-interact argument... $ECHO_C" >&6 3565 # Check whether --enable-xsmp-interact or --disable-xsmp-interact was given. 3566if test "${enable_xsmp_interact+set}" = set; then 3567 enableval="$enable_xsmp_interact" 3568 3569else 3570 enable_xsmp_interact="yes" 3571fi; 3572 if test "$enable_xsmp_interact" = "yes"; then 3573 echo "$as_me:$LINENO: result: no" >&5 3574echo "${ECHO_T}no" >&6 3575 cat >>confdefs.h <<\_ACEOF 3576#define USE_XSMP_INTERACT 1 3577_ACEOF 3578 3579 else 3580 echo "$as_me:$LINENO: result: yes" >&5 3581echo "${ECHO_T}yes" >&6 3582 fi 3583else 3584 echo "$as_me:$LINENO: result: yes" >&5 3585echo "${ECHO_T}yes" >&6 3586fi 3587 3588echo "$as_me:$LINENO: checking --enable-mzschemeinterp argument" >&5 3589echo $ECHO_N "checking --enable-mzschemeinterp argument... $ECHO_C" >&6 3590# Check whether --enable-mzschemeinterp or --disable-mzschemeinterp was given. 3591if test "${enable_mzschemeinterp+set}" = set; then 3592 enableval="$enable_mzschemeinterp" 3593 3594else 3595 enable_mzschemeinterp="no" 3596fi; 3597echo "$as_me:$LINENO: result: $enable_mzschemeinterp" >&5 3598echo "${ECHO_T}$enable_mzschemeinterp" >&6 3599 3600if test "$enable_mzschemeinterp" = "yes"; then 3601 3602 3603 echo "$as_me:$LINENO: checking --with-plthome argument" >&5 3604echo $ECHO_N "checking --with-plthome argument... $ECHO_C" >&6 3605 3606# Check whether --with-plthome or --without-plthome was given. 3607if test "${with_plthome+set}" = set; then 3608 withval="$with_plthome" 3609 with_plthome="$withval"; echo "$as_me:$LINENO: result: $with_plthome" >&5 3610echo "${ECHO_T}$with_plthome" >&6 3611else 3612 with_plthome="";echo "$as_me:$LINENO: result: \"no\"" >&5 3613echo "${ECHO_T}\"no\"" >&6 3614fi; 3615 3616 if test "X$with_plthome" != "X"; then 3617 vi_cv_path_mzscheme_pfx="$with_plthome" 3618 else 3619 echo "$as_me:$LINENO: checking PLTHOME environment var" >&5 3620echo $ECHO_N "checking PLTHOME environment var... $ECHO_C" >&6 3621 if test "X$PLTHOME" != "X"; then 3622 echo "$as_me:$LINENO: result: \"$PLTHOME\"" >&5 3623echo "${ECHO_T}\"$PLTHOME\"" >&6 3624 vi_cv_path_mzscheme_pfx="$PLTHOME" 3625 else 3626 echo "$as_me:$LINENO: result: \"not set\"" >&5 3627echo "${ECHO_T}\"not set\"" >&6 3628 # Extract the first word of "mzscheme", so it can be a program name with args. 3629set dummy mzscheme; ac_word=$2 3630echo "$as_me:$LINENO: checking for $ac_word" >&5 3631echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3632if test "${ac_cv_path_vi_cv_path_mzscheme+set}" = set; then 3633 echo $ECHO_N "(cached) $ECHO_C" >&6 3634else 3635 case $vi_cv_path_mzscheme in 3636 [\\/]* | ?:[\\/]*) 3637 ac_cv_path_vi_cv_path_mzscheme="$vi_cv_path_mzscheme" # Let the user override the test with a path. 3638 ;; 3639 *) 3640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3641for as_dir in $PATH 3642do 3643 IFS=$as_save_IFS 3644 test -z "$as_dir" && as_dir=. 3645 for ac_exec_ext in '' $ac_executable_extensions; do 3646 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3647 ac_cv_path_vi_cv_path_mzscheme="$as_dir/$ac_word$ac_exec_ext" 3648 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3649 break 2 3650 fi 3651done 3652done 3653 3654 ;; 3655esac 3656fi 3657vi_cv_path_mzscheme=$ac_cv_path_vi_cv_path_mzscheme 3658 3659if test -n "$vi_cv_path_mzscheme"; then 3660 echo "$as_me:$LINENO: result: $vi_cv_path_mzscheme" >&5 3661echo "${ECHO_T}$vi_cv_path_mzscheme" >&6 3662else 3663 echo "$as_me:$LINENO: result: no" >&5 3664echo "${ECHO_T}no" >&6 3665fi 3666 3667 3668 if test "X$vi_cv_path_mzscheme" != "X"; then 3669 lsout=`ls -l $vi_cv_path_mzscheme` 3670 if echo "$lsout" | grep -e '->' >/dev/null 2>/dev/null; then 3671 vi_cv_path_mzscheme=`echo "$lsout" | sed 's/.*-> \(.*\)/\1/'` 3672 fi 3673 fi 3674 3675 if test "X$vi_cv_path_mzscheme" != "X"; then 3676 echo "$as_me:$LINENO: checking MzScheme install prefix" >&5 3677echo $ECHO_N "checking MzScheme install prefix... $ECHO_C" >&6 3678if test "${vi_cv_path_mzscheme_pfx+set}" = set; then 3679 echo $ECHO_N "(cached) $ECHO_C" >&6 3680else 3681 vi_cv_path_mzscheme_pfx=` 3682 ${vi_cv_path_mzscheme} -evm \ 3683 "(display (simplify-path \ 3684 (build-path (call-with-values \ 3685 (lambda () (split-path (find-system-path (quote exec-file)))) \ 3686 (lambda (base name must-be-dir?) base)) (quote up))))"` 3687fi 3688echo "$as_me:$LINENO: result: $vi_cv_path_mzscheme_pfx" >&5 3689echo "${ECHO_T}$vi_cv_path_mzscheme_pfx" >&6 3690 vi_cv_path_mzscheme_pfx=`echo "$vi_cv_path_mzscheme_pfx" | sed 's+/$++'` 3691 fi 3692 fi 3693 fi 3694 3695 if test "X$vi_cv_path_mzscheme_pfx" != "X"; then 3696 echo "$as_me:$LINENO: checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include" >&5 3697echo $ECHO_N "checking if scheme.h can be found in $vi_cv_path_mzscheme_pfx/include... $ECHO_C" >&6 3698 if test -f $vi_cv_path_mzscheme_pfx/include/scheme.h; then 3699 echo "$as_me:$LINENO: result: \"yes\"" >&5 3700echo "${ECHO_T}\"yes\"" >&6 3701 else 3702 echo "$as_me:$LINENO: result: \"no\"" >&5 3703echo "${ECHO_T}\"no\"" >&6 3704 vi_cv_path_mzscheme_pfx= 3705 fi 3706 fi 3707 3708 if test "X$vi_cv_path_mzscheme_pfx" != "X"; then 3709 if test -f "${vi_cv_path_mzscheme_pfx}/lib/libmzgc.a"; then 3710 MZSCHEME_LIBS="${vi_cv_path_mzscheme_pfx}/lib/libmzgc.a ${vi_cv_path_mzscheme_pfx}/lib/libmzscheme.a" 3711 else 3712 MZSCHEME_LIBS="-L${vi_cv_path_mzscheme_pfx}/lib -lmzgc -lmzscheme" 3713 if test "$GCC" = yes; then 3714 MZSCHEME_LIBS="$MZSCHEME_LIBS -Wl,-rpath -Wl,${vi_cv_path_mzscheme_pfx}/lib" 3715 elif test "`(uname) 2>/dev/null`" = SunOS && 3716 uname -r | grep '^5' >/dev/null; then 3717 MZSCHEME_LIBS="$MZSCHEME_LIBS -R ${vi_cv_path_mzscheme_pfx}/lib" 3718 fi 3719 fi 3720 MZSCHEME_CFLAGS="-I${vi_cv_path_mzscheme_pfx}/include \ 3721 -DMZSCHEME_COLLECTS='\"${vi_cv_path_mzscheme_pfx}/collects\"'" 3722 MZSCHEME_SRC="if_mzsch.c" 3723 MZSCHEME_OBJ="objects/if_mzsch.o" 3724 MZSCHEME_PRO="if_mzsch.pro" 3725 cat >>confdefs.h <<\_ACEOF 3726#define FEAT_MZSCHEME 1 3727_ACEOF 3728 3729 fi 3730 3731 3732 3733 3734 3735fi 3736 3737 3738echo "$as_me:$LINENO: checking --enable-perlinterp argument" >&5 3739echo $ECHO_N "checking --enable-perlinterp argument... $ECHO_C" >&6 3740# Check whether --enable-perlinterp or --disable-perlinterp was given. 3741if test "${enable_perlinterp+set}" = set; then 3742 enableval="$enable_perlinterp" 3743 3744else 3745 enable_perlinterp="no" 3746fi; 3747echo "$as_me:$LINENO: result: $enable_perlinterp" >&5 3748echo "${ECHO_T}$enable_perlinterp" >&6 3749if test "$enable_perlinterp" = "yes"; then 3750 3751 # Extract the first word of "perl", so it can be a program name with args. 3752set dummy perl; ac_word=$2 3753echo "$as_me:$LINENO: checking for $ac_word" >&5 3754echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3755if test "${ac_cv_path_vi_cv_path_perl+set}" = set; then 3756 echo $ECHO_N "(cached) $ECHO_C" >&6 3757else 3758 case $vi_cv_path_perl in 3759 [\\/]* | ?:[\\/]*) 3760 ac_cv_path_vi_cv_path_perl="$vi_cv_path_perl" # Let the user override the test with a path. 3761 ;; 3762 *) 3763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3764for as_dir in $PATH 3765do 3766 IFS=$as_save_IFS 3767 test -z "$as_dir" && as_dir=. 3768 for ac_exec_ext in '' $ac_executable_extensions; do 3769 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3770 ac_cv_path_vi_cv_path_perl="$as_dir/$ac_word$ac_exec_ext" 3771 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3772 break 2 3773 fi 3774done 3775done 3776 3777 ;; 3778esac 3779fi 3780vi_cv_path_perl=$ac_cv_path_vi_cv_path_perl 3781 3782if test -n "$vi_cv_path_perl"; then 3783 echo "$as_me:$LINENO: result: $vi_cv_path_perl" >&5 3784echo "${ECHO_T}$vi_cv_path_perl" >&6 3785else 3786 echo "$as_me:$LINENO: result: no" >&5 3787echo "${ECHO_T}no" >&6 3788fi 3789 3790 if test "X$vi_cv_path_perl" != "X"; then 3791 echo "$as_me:$LINENO: checking Perl version" >&5 3792echo $ECHO_N "checking Perl version... $ECHO_C" >&6 3793 if $vi_cv_path_perl -e 'require 5.003_01' >/dev/null 2>/dev/null; then 3794 eval `$vi_cv_path_perl -V:usethreads` 3795 if test "X$usethreads" = "XUNKNOWN" -o "X$usethreads" = "Xundef"; then 3796 badthreads=no 3797 else 3798 if $vi_cv_path_perl -e 'require 5.6.0' >/dev/null 2>/dev/null; then 3799 eval `$vi_cv_path_perl -V:use5005threads` 3800 if test "X$use5005threads" = "XUNKNOWN" -o "X$use5005threads" = "Xundef"; then 3801 badthreads=no 3802 else 3803 badthreads=yes 3804 echo "$as_me:$LINENO: result: >>> Perl > 5.6 with 5.5 threads cannot be used <<<" >&5 3805echo "${ECHO_T}>>> Perl > 5.6 with 5.5 threads cannot be used <<<" >&6 3806 fi 3807 else 3808 badthreads=yes 3809 echo "$as_me:$LINENO: result: >>> Perl 5.5 with threads cannot be used <<<" >&5 3810echo "${ECHO_T}>>> Perl 5.5 with threads cannot be used <<<" >&6 3811 fi 3812 fi 3813 if test $badthreads = no; then 3814 echo "$as_me:$LINENO: result: OK" >&5 3815echo "${ECHO_T}OK" >&6 3816 eval `$vi_cv_path_perl -V:shrpenv` 3817 if test "X$shrpenv" = "XUNKNOWN"; then # pre 5.003_04 3818 shrpenv="" 3819 fi 3820 vi_cv_perllib=`$vi_cv_path_perl -MConfig -e 'print $Config{privlibexp}'` 3821 3822 perlcppflags=`$vi_cv_path_perl -Mlib=$srcdir -MExtUtils::Embed \ 3823 -e 'ccflags;perl_inc;print"\n"' | sed -e 's/-fno[^ ]*//'` 3824 perllibs=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed -e 'ldopts' | \ 3825 sed -e '/Warning/d' -e '/Note (probably harmless)/d' \ 3826 -e 's/-bE:perl.exp//' -e 's/-lc //'` 3827 perlldflags=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed \ 3828 -e 'ccdlflags' | sed -e 's/-bE:perl.exp//'` 3829 3830 echo "$as_me:$LINENO: checking if compile and link flags for Perl are sane" >&5 3831echo $ECHO_N "checking if compile and link flags for Perl are sane... $ECHO_C" >&6 3832 cflags_save=$CFLAGS 3833 libs_save=$LIBS 3834 ldflags_save=$LDFLAGS 3835 CFLAGS="$CFLAGS $perlcppflags" 3836 LIBS="$LIBS $perllibs" 3837 LDFLAGS="$perlldflags $LDFLAGS" 3838 cat >conftest.$ac_ext <<_ACEOF 3839/* confdefs.h. */ 3840_ACEOF 3841cat confdefs.h >>conftest.$ac_ext 3842cat >>conftest.$ac_ext <<_ACEOF 3843/* end confdefs.h. */ 3844 3845int 3846main () 3847{ 3848 3849 ; 3850 return 0; 3851} 3852_ACEOF 3853rm -f conftest.$ac_objext conftest$ac_exeext 3854if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3855 (eval $ac_link) 2>conftest.er1 3856 ac_status=$? 3857 grep -v '^ *+' conftest.er1 >conftest.err 3858 rm -f conftest.er1 3859 cat conftest.err >&5 3860 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3861 (exit $ac_status); } && 3862 { ac_try='test -z "$ac_c_werror_flag" 3863 || test ! -s conftest.err' 3864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3865 (eval $ac_try) 2>&5 3866 ac_status=$? 3867 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3868 (exit $ac_status); }; } && 3869 { ac_try='test -s conftest$ac_exeext' 3870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3871 (eval $ac_try) 2>&5 3872 ac_status=$? 3873 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3874 (exit $ac_status); }; }; then 3875 echo "$as_me:$LINENO: result: yes" >&5 3876echo "${ECHO_T}yes" >&6; perl_ok=yes 3877else 3878 echo "$as_me: failed program was:" >&5 3879sed 's/^/| /' conftest.$ac_ext >&5 3880 3881echo "$as_me:$LINENO: result: no: PERL DISABLED" >&5 3882echo "${ECHO_T}no: PERL DISABLED" >&6; perl_ok=no 3883fi 3884rm -f conftest.err conftest.$ac_objext \ 3885 conftest$ac_exeext conftest.$ac_ext 3886 CFLAGS=$cflags_save 3887 LIBS=$libs_save 3888 LDFLAGS=$ldflags_save 3889 if test $perl_ok = yes; then 3890 if test "X$perlcppflags" != "X"; then 3891 PERL_CFLAGS="$perlcppflags" 3892 fi 3893 if test "X$perlldflags" != "X"; then 3894 LDFLAGS="$perlldflags $LDFLAGS" 3895 fi 3896 PERL_LIBS=$perllibs 3897 PERL_SRC="auto/if_perl.c if_perlsfio.c" 3898 PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o" 3899 PERL_PRO="if_perl.pro if_perlsfio.pro" 3900 cat >>confdefs.h <<\_ACEOF 3901#define FEAT_PERL 1 3902_ACEOF 3903 3904 fi 3905 fi 3906 else 3907 echo "$as_me:$LINENO: result: >>> too old; need Perl version 5.003_01 or later <<<" >&5 3908echo "${ECHO_T}>>> too old; need Perl version 5.003_01 or later <<<" >&6 3909 fi 3910 fi 3911 3912 if test "x$MACOSX" = "xyes"; then 3913 dir=/System/Library/Perl 3914 darwindir=$dir/darwin 3915 if test -d $darwindir; then 3916 PERL=/usr/bin/perl 3917 else 3918 dir=/System/Library/Perl/5.8.1 3919 darwindir=$dir/darwin-thread-multi-2level 3920 if test -d $darwindir; then 3921 PERL=/usr/bin/perl 3922 fi 3923 fi 3924 if test -n "$PERL"; then 3925 PERL_DIR="$dir" 3926 PERL_CFLAGS="-DFEAT_PERL -I$darwindir/CORE" 3927 PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o $darwindir/auto/DynaLoader/DynaLoader.a" 3928 PERL_LIBS="-L$darwindir/CORE -lperl" 3929 fi 3930 fi 3931fi 3932 3933 3934 3935 3936 3937 3938 3939echo "$as_me:$LINENO: checking --enable-pythoninterp argument" >&5 3940echo $ECHO_N "checking --enable-pythoninterp argument... $ECHO_C" >&6 3941# Check whether --enable-pythoninterp or --disable-pythoninterp was given. 3942if test "${enable_pythoninterp+set}" = set; then 3943 enableval="$enable_pythoninterp" 3944 3945else 3946 enable_pythoninterp="no" 3947fi; 3948echo "$as_me:$LINENO: result: $enable_pythoninterp" >&5 3949echo "${ECHO_T}$enable_pythoninterp" >&6 3950if test "$enable_pythoninterp" = "yes"; then 3951 # Extract the first word of "python", so it can be a program name with args. 3952set dummy python; ac_word=$2 3953echo "$as_me:$LINENO: checking for $ac_word" >&5 3954echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3955if test "${ac_cv_path_vi_cv_path_python+set}" = set; then 3956 echo $ECHO_N "(cached) $ECHO_C" >&6 3957else 3958 case $vi_cv_path_python in 3959 [\\/]* | ?:[\\/]*) 3960 ac_cv_path_vi_cv_path_python="$vi_cv_path_python" # Let the user override the test with a path. 3961 ;; 3962 *) 3963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3964for as_dir in $PATH 3965do 3966 IFS=$as_save_IFS 3967 test -z "$as_dir" && as_dir=. 3968 for ac_exec_ext in '' $ac_executable_extensions; do 3969 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3970 ac_cv_path_vi_cv_path_python="$as_dir/$ac_word$ac_exec_ext" 3971 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3972 break 2 3973 fi 3974done 3975done 3976 3977 ;; 3978esac 3979fi 3980vi_cv_path_python=$ac_cv_path_vi_cv_path_python 3981 3982if test -n "$vi_cv_path_python"; then 3983 echo "$as_me:$LINENO: result: $vi_cv_path_python" >&5 3984echo "${ECHO_T}$vi_cv_path_python" >&6 3985else 3986 echo "$as_me:$LINENO: result: no" >&5 3987echo "${ECHO_T}no" >&6 3988fi 3989 3990 if test "X$vi_cv_path_python" != "X"; then 3991 3992 echo "$as_me:$LINENO: checking Python version" >&5 3993echo $ECHO_N "checking Python version... $ECHO_C" >&6 3994if test "${vi_cv_var_python_version+set}" = set; then 3995 echo $ECHO_N "(cached) $ECHO_C" >&6 3996else 3997 vi_cv_var_python_version=` 3998 ${vi_cv_path_python} -c 'import sys; print sys.version[:3]'` 3999 4000fi 4001echo "$as_me:$LINENO: result: $vi_cv_var_python_version" >&5 4002echo "${ECHO_T}$vi_cv_var_python_version" >&6 4003 4004 echo "$as_me:$LINENO: checking Python is 1.4 or better" >&5 4005echo $ECHO_N "checking Python is 1.4 or better... $ECHO_C" >&6 4006 if ${vi_cv_path_python} -c \ 4007 "import sys; sys.exit(${vi_cv_var_python_version} < 1.4)" 4008 then 4009 echo "$as_me:$LINENO: result: yep" >&5 4010echo "${ECHO_T}yep" >&6 4011 4012 echo "$as_me:$LINENO: checking Python's install prefix" >&5 4013echo $ECHO_N "checking Python's install prefix... $ECHO_C" >&6 4014if test "${vi_cv_path_python_pfx+set}" = set; then 4015 echo $ECHO_N "(cached) $ECHO_C" >&6 4016else 4017 vi_cv_path_python_pfx=` 4018 ${vi_cv_path_python} -c \ 4019 "import sys; print sys.prefix"` 4020fi 4021echo "$as_me:$LINENO: result: $vi_cv_path_python_pfx" >&5 4022echo "${ECHO_T}$vi_cv_path_python_pfx" >&6 4023 4024 echo "$as_me:$LINENO: checking Python's execution prefix" >&5 4025echo $ECHO_N "checking Python's execution prefix... $ECHO_C" >&6 4026if test "${vi_cv_path_python_epfx+set}" = set; then 4027 echo $ECHO_N "(cached) $ECHO_C" >&6 4028else 4029 vi_cv_path_python_epfx=` 4030 ${vi_cv_path_python} -c \ 4031 "import sys; print sys.exec_prefix"` 4032fi 4033echo "$as_me:$LINENO: result: $vi_cv_path_python_epfx" >&5 4034echo "${ECHO_T}$vi_cv_path_python_epfx" >&6 4035 4036 4037 if test "${vi_cv_path_pythonpath+set}" = set; then 4038 echo $ECHO_N "(cached) $ECHO_C" >&6 4039else 4040 vi_cv_path_pythonpath=` 4041 unset PYTHONPATH; 4042 ${vi_cv_path_python} -c \ 4043 "import sys, string; print string.join(sys.path,':')"` 4044fi 4045 4046 4047 4048 4049# Check whether --with-python-config-dir or --without-python-config-dir was given. 4050if test "${with_python_config_dir+set}" = set; then 4051 withval="$with_python_config_dir" 4052 vi_cv_path_python_conf="${withval}" 4053fi; 4054 4055 echo "$as_me:$LINENO: checking Python's configuration directory" >&5 4056echo $ECHO_N "checking Python's configuration directory... $ECHO_C" >&6 4057if test "${vi_cv_path_python_conf+set}" = set; then 4058 echo $ECHO_N "(cached) $ECHO_C" >&6 4059else 4060 4061 vi_cv_path_python_conf= 4062 for path in "${vi_cv_path_python_pfx}" "${vi_cv_path_python_epfx}"; do 4063 for subdir in lib share; do 4064 d="${path}/${subdir}/python${vi_cv_var_python_version}/config" 4065 if test -d "$d" && test -f "$d/config.c"; then 4066 vi_cv_path_python_conf="$d" 4067 fi 4068 done 4069 done 4070 4071fi 4072echo "$as_me:$LINENO: result: $vi_cv_path_python_conf" >&5 4073echo "${ECHO_T}$vi_cv_path_python_conf" >&6 4074 4075 PYTHON_CONFDIR="${vi_cv_path_python_conf}" 4076 4077 if test "X$PYTHON_CONFDIR" = "X"; then 4078 echo "$as_me:$LINENO: result: can't find it!" >&5 4079echo "${ECHO_T}can't find it!" >&6 4080 else 4081 4082 if test "${vi_cv_path_python_plibs+set}" = set; then 4083 echo $ECHO_N "(cached) $ECHO_C" >&6 4084else 4085 4086 tmp_mkf="/tmp/Makefile-conf$$" 4087 cat ${PYTHON_CONFDIR}/Makefile - <<'eof' >${tmp_mkf} 4088__: 4089 @echo "python_MODLIBS='$(MODLIBS)'" 4090 @echo "python_LIBS='$(LIBS)'" 4091 @echo "python_SYSLIBS='$(SYSLIBS)'" 4092 @echo "python_LINKFORSHARED='$(LINKFORSHARED)'" 4093eof 4094 eval "`cd ${PYTHON_CONFDIR} && make -f ${tmp_mkf} __ | sed '/ directory /d'`" 4095 rm -f ${tmp_mkf} 4096 if test "x$MACOSX" = "xyes" && ${vi_cv_path_python} -c \ 4097 "import sys; sys.exit(${vi_cv_var_python_version} < 2.3)"; then 4098 vi_cv_path_python_plibs="-framework Python" 4099 else 4100 if test "${vi_cv_var_python_version}" = "1.4"; then 4101 vi_cv_path_python_plibs="${PYTHON_CONFDIR}/libModules.a ${PYTHON_CONFDIR}/libPython.a ${PYTHON_CONFDIR}/libObjects.a ${PYTHON_CONFDIR}/libParser.a" 4102 else 4103 vi_cv_path_python_plibs="-L${PYTHON_CONFDIR} -lpython${vi_cv_var_python_version}" 4104 fi 4105 vi_cv_path_python_plibs="${vi_cv_path_python_plibs} ${python_MODLIBS} ${python_LIBS} ${python_SYSLIBS} ${python_LINKFORSHARED}" 4106 vi_cv_path_python_plibs=`echo $vi_cv_path_python_plibs | sed s/-ltermcap//` 4107 fi 4108 4109fi 4110 4111 4112 PYTHON_LIBS="${vi_cv_path_python_plibs}" 4113 if test "${vi_cv_path_python_pfx}" = "${vi_cv_path_python_epfx}"; then 4114 PYTHON_CFLAGS="-I${vi_cv_path_python_pfx}/include/python${vi_cv_var_python_version}" 4115 else 4116 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}" 4117 fi 4118 PYTHON_SRC="if_python.c" 4119 if test "x$MACOSX" = "xyes"; then 4120 PYTHON_OBJ="objects/if_python.o" 4121 else 4122 PYTHON_OBJ="objects/if_python.o objects/py_config.o" 4123 fi 4124 if test "${vi_cv_var_python_version}" = "1.4"; then 4125 PYTHON_OBJ="$PYTHON_OBJ objects/py_getpath.o" 4126 fi 4127 PYTHON_GETPATH_CFLAGS="-DPYTHONPATH='\"${vi_cv_path_pythonpath}\"' -DPREFIX='\"${vi_cv_path_python_pfx}\"' -DEXEC_PREFIX='\"${vi_cv_path_python_epfx}\"'" 4128 4129 echo "$as_me:$LINENO: checking if -pthread should be used" >&5 4130echo $ECHO_N "checking if -pthread should be used... $ECHO_C" >&6 4131 threadsafe_flag= 4132 thread_lib= 4133 if test "x$MACOSX" != "xyes"; then 4134 test "$GCC" = yes && threadsafe_flag="-pthread" 4135 if test "`(uname) 2>/dev/null`" = FreeBSD; then 4136 threadsafe_flag="-D_THREAD_SAFE" 4137 thread_lib="-pthread" 4138 fi 4139 fi 4140 libs_save_old=$LIBS 4141 if test -n "$threadsafe_flag"; then 4142 cflags_save=$CFLAGS 4143 CFLAGS="$CFLAGS $threadsafe_flag" 4144 LIBS="$LIBS $thread_lib" 4145 cat >conftest.$ac_ext <<_ACEOF 4146/* confdefs.h. */ 4147_ACEOF 4148cat confdefs.h >>conftest.$ac_ext 4149cat >>conftest.$ac_ext <<_ACEOF 4150/* end confdefs.h. */ 4151 4152int 4153main () 4154{ 4155 4156 ; 4157 return 0; 4158} 4159_ACEOF 4160rm -f conftest.$ac_objext conftest$ac_exeext 4161if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4162 (eval $ac_link) 2>conftest.er1 4163 ac_status=$? 4164 grep -v '^ *+' conftest.er1 >conftest.err 4165 rm -f conftest.er1 4166 cat conftest.err >&5 4167 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4168 (exit $ac_status); } && 4169 { ac_try='test -z "$ac_c_werror_flag" 4170 || test ! -s conftest.err' 4171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4172 (eval $ac_try) 2>&5 4173 ac_status=$? 4174 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4175 (exit $ac_status); }; } && 4176 { ac_try='test -s conftest$ac_exeext' 4177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4178 (eval $ac_try) 2>&5 4179 ac_status=$? 4180 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4181 (exit $ac_status); }; }; then 4182 echo "$as_me:$LINENO: result: yes" >&5 4183echo "${ECHO_T}yes" >&6; PYTHON_CFLAGS="$PYTHON_CFLAGS $threadsafe_flag" 4184else 4185 echo "$as_me: failed program was:" >&5 4186sed 's/^/| /' conftest.$ac_ext >&5 4187 4188echo "$as_me:$LINENO: result: no" >&5 4189echo "${ECHO_T}no" >&6; LIBS=$libs_save_old 4190 4191fi 4192rm -f conftest.err conftest.$ac_objext \ 4193 conftest$ac_exeext conftest.$ac_ext 4194 CFLAGS=$cflags_save 4195 else 4196 echo "$as_me:$LINENO: result: no" >&5 4197echo "${ECHO_T}no" >&6 4198 fi 4199 4200 echo "$as_me:$LINENO: checking if compile and link flags for Python are sane" >&5 4201echo $ECHO_N "checking if compile and link flags for Python are sane... $ECHO_C" >&6 4202 cflags_save=$CFLAGS 4203 libs_save=$LIBS 4204 CFLAGS="$CFLAGS $PYTHON_CFLAGS" 4205 LIBS="$LIBS $PYTHON_LIBS" 4206 cat >conftest.$ac_ext <<_ACEOF 4207/* confdefs.h. */ 4208_ACEOF 4209cat confdefs.h >>conftest.$ac_ext 4210cat >>conftest.$ac_ext <<_ACEOF 4211/* end confdefs.h. */ 4212 4213int 4214main () 4215{ 4216 4217 ; 4218 return 0; 4219} 4220_ACEOF 4221rm -f conftest.$ac_objext conftest$ac_exeext 4222if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4223 (eval $ac_link) 2>conftest.er1 4224 ac_status=$? 4225 grep -v '^ *+' conftest.er1 >conftest.err 4226 rm -f conftest.er1 4227 cat conftest.err >&5 4228 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4229 (exit $ac_status); } && 4230 { ac_try='test -z "$ac_c_werror_flag" 4231 || test ! -s conftest.err' 4232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4233 (eval $ac_try) 2>&5 4234 ac_status=$? 4235 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4236 (exit $ac_status); }; } && 4237 { ac_try='test -s conftest$ac_exeext' 4238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4239 (eval $ac_try) 2>&5 4240 ac_status=$? 4241 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4242 (exit $ac_status); }; }; then 4243 echo "$as_me:$LINENO: result: yes" >&5 4244echo "${ECHO_T}yes" >&6; python_ok=yes 4245else 4246 echo "$as_me: failed program was:" >&5 4247sed 's/^/| /' conftest.$ac_ext >&5 4248 4249echo "$as_me:$LINENO: result: no: PYTHON DISABLED" >&5 4250echo "${ECHO_T}no: PYTHON DISABLED" >&6; python_ok=no 4251fi 4252rm -f conftest.err conftest.$ac_objext \ 4253 conftest$ac_exeext conftest.$ac_ext 4254 CFLAGS=$cflags_save 4255 LIBS=$libs_save 4256 if test $python_ok = yes; then 4257 cat >>confdefs.h <<\_ACEOF 4258#define FEAT_PYTHON 1 4259_ACEOF 4260 4261 else 4262 LIBS=$libs_save_old 4263 PYTHON_SRC= 4264 PYTHON_OBJ= 4265 PYTHON_LIBS= 4266 PYTHON_CFLAGS= 4267 fi 4268 4269 fi 4270 else 4271 echo "$as_me:$LINENO: result: too old" >&5 4272echo "${ECHO_T}too old" >&6 4273 fi 4274 fi 4275fi 4276 4277 4278 4279 4280 4281 4282 4283echo "$as_me:$LINENO: checking --enable-tclinterp argument" >&5 4284echo $ECHO_N "checking --enable-tclinterp argument... $ECHO_C" >&6 4285# Check whether --enable-tclinterp or --disable-tclinterp was given. 4286if test "${enable_tclinterp+set}" = set; then 4287 enableval="$enable_tclinterp" 4288 4289else 4290 enable_tclinterp="no" 4291fi; 4292echo "$as_me:$LINENO: result: $enable_tclinterp" >&5 4293echo "${ECHO_T}$enable_tclinterp" >&6 4294 4295if test "$enable_tclinterp" = "yes"; then 4296 4297 echo "$as_me:$LINENO: checking --with-tclsh argument" >&5 4298echo $ECHO_N "checking --with-tclsh argument... $ECHO_C" >&6 4299 4300# Check whether --with-tclsh or --without-tclsh was given. 4301if test "${with_tclsh+set}" = set; then 4302 withval="$with_tclsh" 4303 tclsh_name="$withval"; echo "$as_me:$LINENO: result: $tclsh_name" >&5 4304echo "${ECHO_T}$tclsh_name" >&6 4305else 4306 tclsh_name="tclsh8.4"; echo "$as_me:$LINENO: result: no" >&5 4307echo "${ECHO_T}no" >&6 4308fi; 4309 # Extract the first word of "$tclsh_name", so it can be a program name with args. 4310set dummy $tclsh_name; ac_word=$2 4311echo "$as_me:$LINENO: checking for $ac_word" >&5 4312echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4313if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then 4314 echo $ECHO_N "(cached) $ECHO_C" >&6 4315else 4316 case $vi_cv_path_tcl in 4317 [\\/]* | ?:[\\/]*) 4318 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path. 4319 ;; 4320 *) 4321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4322for as_dir in $PATH 4323do 4324 IFS=$as_save_IFS 4325 test -z "$as_dir" && as_dir=. 4326 for ac_exec_ext in '' $ac_executable_extensions; do 4327 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4328 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext" 4329 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4330 break 2 4331 fi 4332done 4333done 4334 4335 ;; 4336esac 4337fi 4338vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl 4339 4340if test -n "$vi_cv_path_tcl"; then 4341 echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5 4342echo "${ECHO_T}$vi_cv_path_tcl" >&6 4343else 4344 echo "$as_me:$LINENO: result: no" >&5 4345echo "${ECHO_T}no" >&6 4346fi 4347 4348 4349 4350 if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.4"; then 4351 tclsh_name="tclsh8.2" 4352 # Extract the first word of "$tclsh_name", so it can be a program name with args. 4353set dummy $tclsh_name; ac_word=$2 4354echo "$as_me:$LINENO: checking for $ac_word" >&5 4355echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4356if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then 4357 echo $ECHO_N "(cached) $ECHO_C" >&6 4358else 4359 case $vi_cv_path_tcl in 4360 [\\/]* | ?:[\\/]*) 4361 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path. 4362 ;; 4363 *) 4364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4365for as_dir in $PATH 4366do 4367 IFS=$as_save_IFS 4368 test -z "$as_dir" && as_dir=. 4369 for ac_exec_ext in '' $ac_executable_extensions; do 4370 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4371 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext" 4372 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4373 break 2 4374 fi 4375done 4376done 4377 4378 ;; 4379esac 4380fi 4381vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl 4382 4383if test -n "$vi_cv_path_tcl"; then 4384 echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5 4385echo "${ECHO_T}$vi_cv_path_tcl" >&6 4386else 4387 echo "$as_me:$LINENO: result: no" >&5 4388echo "${ECHO_T}no" >&6 4389fi 4390 4391 fi 4392 if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.2"; then 4393 tclsh_name="tclsh8.0" 4394 # Extract the first word of "$tclsh_name", so it can be a program name with args. 4395set dummy $tclsh_name; ac_word=$2 4396echo "$as_me:$LINENO: checking for $ac_word" >&5 4397echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4398if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then 4399 echo $ECHO_N "(cached) $ECHO_C" >&6 4400else 4401 case $vi_cv_path_tcl in 4402 [\\/]* | ?:[\\/]*) 4403 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path. 4404 ;; 4405 *) 4406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4407for as_dir in $PATH 4408do 4409 IFS=$as_save_IFS 4410 test -z "$as_dir" && as_dir=. 4411 for ac_exec_ext in '' $ac_executable_extensions; do 4412 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4413 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext" 4414 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4415 break 2 4416 fi 4417done 4418done 4419 4420 ;; 4421esac 4422fi 4423vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl 4424 4425if test -n "$vi_cv_path_tcl"; then 4426 echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5 4427echo "${ECHO_T}$vi_cv_path_tcl" >&6 4428else 4429 echo "$as_me:$LINENO: result: no" >&5 4430echo "${ECHO_T}no" >&6 4431fi 4432 4433 fi 4434 if test "X$vi_cv_path_tcl" = "X"; then 4435 tclsh_name="tclsh" 4436 # Extract the first word of "$tclsh_name", so it can be a program name with args. 4437set dummy $tclsh_name; ac_word=$2 4438echo "$as_me:$LINENO: checking for $ac_word" >&5 4439echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4440if test "${ac_cv_path_vi_cv_path_tcl+set}" = set; then 4441 echo $ECHO_N "(cached) $ECHO_C" >&6 4442else 4443 case $vi_cv_path_tcl in 4444 [\\/]* | ?:[\\/]*) 4445 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path. 4446 ;; 4447 *) 4448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4449for as_dir in $PATH 4450do 4451 IFS=$as_save_IFS 4452 test -z "$as_dir" && as_dir=. 4453 for ac_exec_ext in '' $ac_executable_extensions; do 4454 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4455 ac_cv_path_vi_cv_path_tcl="$as_dir/$ac_word$ac_exec_ext" 4456 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4457 break 2 4458 fi 4459done 4460done 4461 4462 ;; 4463esac 4464fi 4465vi_cv_path_tcl=$ac_cv_path_vi_cv_path_tcl 4466 4467if test -n "$vi_cv_path_tcl"; then 4468 echo "$as_me:$LINENO: result: $vi_cv_path_tcl" >&5 4469echo "${ECHO_T}$vi_cv_path_tcl" >&6 4470else 4471 echo "$as_me:$LINENO: result: no" >&5 4472echo "${ECHO_T}no" >&6 4473fi 4474 4475 fi 4476 if test "X$vi_cv_path_tcl" != "X"; then 4477 echo "$as_me:$LINENO: checking Tcl version" >&5 4478echo $ECHO_N "checking Tcl version... $ECHO_C" >&6 4479 if echo 'exit [expr [info tclversion] < 8.0]' | $vi_cv_path_tcl - ; then 4480 tclver=`echo 'puts [info tclversion]' | $vi_cv_path_tcl -` 4481 echo "$as_me:$LINENO: result: $tclver - OK" >&5 4482echo "${ECHO_T}$tclver - OK" >&6; 4483 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 -` 4484 4485 echo "$as_me:$LINENO: checking for location of Tcl include" >&5 4486echo $ECHO_N "checking for location of Tcl include... $ECHO_C" >&6 4487 if test "x$MACOSX" != "xyes"; then 4488 tclinc="$tclloc/include $tclloc/include/tcl $tclloc/include/tcl$tclver /usr/local/include /usr/include" 4489 else 4490 tclinc="/System/Library/Frameworks/Tcl.framework/Headers" 4491 fi 4492 for try in $tclinc; do 4493 if test -f "$try/tcl.h"; then 4494 echo "$as_me:$LINENO: result: $try/tcl.h" >&5 4495echo "${ECHO_T}$try/tcl.h" >&6 4496 TCL_INC=$try 4497 break 4498 fi 4499 done 4500 if test -z "$TCL_INC"; then 4501 echo "$as_me:$LINENO: result: <not found>" >&5 4502echo "${ECHO_T}<not found>" >&6 4503 SKIP_TCL=YES 4504 fi 4505 if test -z "$SKIP_TCL"; then 4506 echo "$as_me:$LINENO: checking for location of tclConfig.sh script" >&5 4507echo $ECHO_N "checking for location of tclConfig.sh script... $ECHO_C" >&6 4508 if test "x$MACOSX" != "xyes"; then 4509 tclcnf=`echo $tclinc | sed s/include/lib/g` 4510 else 4511 tclcnf="/System/Library/Frameworks/Tcl.framework" 4512 fi 4513 for try in $tclcnf; do 4514 if test -f $try/tclConfig.sh; then 4515 echo "$as_me:$LINENO: result: $try/tclConfig.sh" >&5 4516echo "${ECHO_T}$try/tclConfig.sh" >&6 4517 . $try/tclConfig.sh 4518 TCL_LIBS=`eval echo "$TCL_LIB_SPEC $TCL_LIBS"` 4519 TCL_DEFS=`echo $TCL_DEFS | sed -e 's/\ /\X/' | tr ' ' '\012' | sed -e '/^-[^D]/d' -e '/-D[^_]/d' -e 's/-D_/ -D_/' | tr -d '\012'` 4520 break 4521 fi 4522 done 4523 if test -z "$TCL_LIBS"; then 4524 echo "$as_me:$LINENO: result: <not found>" >&5 4525echo "${ECHO_T}<not found>" >&6 4526 echo "$as_me:$LINENO: checking for Tcl library by myself" >&5 4527echo $ECHO_N "checking for Tcl library by myself... $ECHO_C" >&6 4528 tcllib=`echo $tclinc | sed s/include/lib/g` 4529 for ext in .so .a ; do 4530 for ver in "" $tclver ; do 4531 for try in $tcllib ; do 4532 trylib=tcl$ver$ext 4533 if test -f $try/lib$trylib ; then 4534 echo "$as_me:$LINENO: result: $try/lib$trylib" >&5 4535echo "${ECHO_T}$try/lib$trylib" >&6 4536 TCL_LIBS="-L$try -ltcl$ver -ldl -lm" 4537 if test "`(uname) 2>/dev/null`" = SunOS && 4538 uname -r | grep '^5' >/dev/null; then 4539 TCL_LIBS="$TCL_LIBS -R $try" 4540 fi 4541 break 3 4542 fi 4543 done 4544 done 4545 done 4546 if test -z "$TCL_LIBS"; then 4547 echo "$as_me:$LINENO: result: <not found>" >&5 4548echo "${ECHO_T}<not found>" >&6 4549 SKIP_TCL=YES 4550 fi 4551 fi 4552 if test -z "$SKIP_TCL"; then 4553 cat >>confdefs.h <<\_ACEOF 4554#define FEAT_TCL 1 4555_ACEOF 4556 4557 TCL_SRC=if_tcl.c 4558 TCL_OBJ=objects/if_tcl.o 4559 TCL_PRO=if_tcl.pro 4560 TCL_CFLAGS="-I$TCL_INC $TCL_DEFS" 4561 fi 4562 fi 4563 else 4564 echo "$as_me:$LINENO: result: too old; need Tcl version 8.0 or later" >&5 4565echo "${ECHO_T}too old; need Tcl version 8.0 or later" >&6 4566 fi 4567 fi 4568fi 4569 4570 4571 4572 4573 4574 4575echo "$as_me:$LINENO: checking --enable-rubyinterp argument" >&5 4576echo $ECHO_N "checking --enable-rubyinterp argument... $ECHO_C" >&6 4577# Check whether --enable-rubyinterp or --disable-rubyinterp was given. 4578if test "${enable_rubyinterp+set}" = set; then 4579 enableval="$enable_rubyinterp" 4580 4581else 4582 enable_rubyinterp="no" 4583fi; 4584echo "$as_me:$LINENO: result: $enable_rubyinterp" >&5 4585echo "${ECHO_T}$enable_rubyinterp" >&6 4586if test "$enable_rubyinterp" = "yes"; then 4587 4588 # Extract the first word of "ruby", so it can be a program name with args. 4589set dummy ruby; ac_word=$2 4590echo "$as_me:$LINENO: checking for $ac_word" >&5 4591echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4592if test "${ac_cv_path_vi_cv_path_ruby+set}" = set; then 4593 echo $ECHO_N "(cached) $ECHO_C" >&6 4594else 4595 case $vi_cv_path_ruby in 4596 [\\/]* | ?:[\\/]*) 4597 ac_cv_path_vi_cv_path_ruby="$vi_cv_path_ruby" # Let the user override the test with a path. 4598 ;; 4599 *) 4600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4601for as_dir in $PATH 4602do 4603 IFS=$as_save_IFS 4604 test -z "$as_dir" && as_dir=. 4605 for ac_exec_ext in '' $ac_executable_extensions; do 4606 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4607 ac_cv_path_vi_cv_path_ruby="$as_dir/$ac_word$ac_exec_ext" 4608 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4609 break 2 4610 fi 4611done 4612done 4613 4614 ;; 4615esac 4616fi 4617vi_cv_path_ruby=$ac_cv_path_vi_cv_path_ruby 4618 4619if test -n "$vi_cv_path_ruby"; then 4620 echo "$as_me:$LINENO: result: $vi_cv_path_ruby" >&5 4621echo "${ECHO_T}$vi_cv_path_ruby" >&6 4622else 4623 echo "$as_me:$LINENO: result: no" >&5 4624echo "${ECHO_T}no" >&6 4625fi 4626 4627 if test "X$vi_cv_path_ruby" != "X"; then 4628 echo "$as_me:$LINENO: checking Ruby version" >&5 4629echo $ECHO_N "checking Ruby version... $ECHO_C" >&6 4630 if $vi_cv_path_ruby -e '(VERSION rescue RUBY_VERSION) >= "1.6.0" or exit 1' >/dev/null 2>/dev/null; then 4631 echo "$as_me:$LINENO: result: OK" >&5 4632echo "${ECHO_T}OK" >&6 4633 echo "$as_me:$LINENO: checking Ruby header files" >&5 4634echo $ECHO_N "checking Ruby header files... $ECHO_C" >&6 4635 rubyhdrdir=`$vi_cv_path_ruby -r mkmf -e 'print Config::CONFIG["archdir"] || $hdrdir' 2>/dev/null` 4636 if test "X$rubyhdrdir" != "X"; then 4637 echo "$as_me:$LINENO: result: $rubyhdrdir" >&5 4638echo "${ECHO_T}$rubyhdrdir" >&6 4639 RUBY_CFLAGS="-I$rubyhdrdir" 4640 rubylibs=`$vi_cv_path_ruby -r rbconfig -e 'print Config::CONFIG["LIBS"]'` 4641 if test "X$rubylibs" != "X"; then 4642 RUBY_LIBS="$rubylibs" 4643 fi 4644 librubyarg=`$vi_cv_path_ruby -r rbconfig -e 'print Config.expand(Config::CONFIG["LIBRUBYARG"])'` 4645 if test -f "$rubyhdrdir/$librubyarg"; then 4646 librubyarg="$rubyhdrdir/$librubyarg" 4647 else 4648 rubylibdir=`$vi_cv_path_ruby -r rbconfig -e 'print Config.expand(Config::CONFIG["libdir"])'` 4649 if test -f "$rubylibdir/$librubyarg"; then 4650 librubyarg="$rubylibdir/$librubyarg" 4651 elif test "$librubyarg" = "libruby.a"; then 4652 librubyarg="-lruby" 4653 else 4654 librubyarg=`$vi_cv_path_ruby -r rbconfig -e "print '$librubyarg'.gsub(/-L\./, %'-L#{Config.expand(Config::CONFIG[\"libdir\"])}')"` 4655 fi 4656 fi 4657 4658 if test "X$librubyarg" != "X"; then 4659 RUBY_LIBS="$librubyarg $RUBY_LIBS" 4660 fi 4661 rubyldflags=`$vi_cv_path_ruby -r rbconfig -e 'print Config::CONFIG["LDFLAGS"]'` 4662 if test "X$rubyldflags" != "X"; then 4663 LDFLAGS="$rubyldflags $LDFLAGS" 4664 fi 4665 RUBY_SRC="if_ruby.c" 4666 RUBY_OBJ="objects/if_ruby.o" 4667 RUBY_PRO="if_ruby.pro" 4668 cat >>confdefs.h <<\_ACEOF 4669#define FEAT_RUBY 1 4670_ACEOF 4671 4672 else 4673 echo "$as_me:$LINENO: result: not found" >&5 4674echo "${ECHO_T}not found" >&6 4675 fi 4676 else 4677 echo "$as_me:$LINENO: result: too old; need Ruby version 1.6.0 or later" >&5 4678echo "${ECHO_T}too old; need Ruby version 1.6.0 or later" >&6 4679 fi 4680 fi 4681fi 4682 4683 4684 4685 4686 4687 4688echo "$as_me:$LINENO: checking --enable-cscope argument" >&5 4689echo $ECHO_N "checking --enable-cscope argument... $ECHO_C" >&6 4690# Check whether --enable-cscope or --disable-cscope was given. 4691if test "${enable_cscope+set}" = set; then 4692 enableval="$enable_cscope" 4693 4694else 4695 enable_cscope="no" 4696fi; 4697echo "$as_me:$LINENO: result: $enable_cscope" >&5 4698echo "${ECHO_T}$enable_cscope" >&6 4699if test "$enable_cscope" = "yes"; then 4700 cat >>confdefs.h <<\_ACEOF 4701#define FEAT_CSCOPE 1 4702_ACEOF 4703 4704fi 4705 4706echo "$as_me:$LINENO: checking --enable-workshop argument" >&5 4707echo $ECHO_N "checking --enable-workshop argument... $ECHO_C" >&6 4708# Check whether --enable-workshop or --disable-workshop was given. 4709if test "${enable_workshop+set}" = set; then 4710 enableval="$enable_workshop" 4711 4712else 4713 enable_workshop="no" 4714fi; 4715echo "$as_me:$LINENO: result: $enable_workshop" >&5 4716echo "${ECHO_T}$enable_workshop" >&6 4717if test "$enable_workshop" = "yes"; then 4718 cat >>confdefs.h <<\_ACEOF 4719#define FEAT_SUN_WORKSHOP 1 4720_ACEOF 4721 4722 WORKSHOP_SRC="workshop.c integration.c" 4723 4724 WORKSHOP_OBJ="objects/workshop.o objects/integration.o" 4725 4726 if test "${enable_gui-xxx}" = xxx; then 4727 enable_gui=motif 4728 fi 4729fi 4730 4731echo "$as_me:$LINENO: checking --disable-netbeans argument" >&5 4732echo $ECHO_N "checking --disable-netbeans argument... $ECHO_C" >&6 4733# Check whether --enable-netbeans or --disable-netbeans was given. 4734if test "${enable_netbeans+set}" = set; then 4735 enableval="$enable_netbeans" 4736 4737else 4738 enable_netbeans="yes" 4739fi; 4740if test "$enable_netbeans" = "yes"; then 4741 echo "$as_me:$LINENO: result: no" >&5 4742echo "${ECHO_T}no" >&6 4743 4744echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 4745echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6 4746if test "${ac_cv_lib_socket_socket+set}" = set; then 4747 echo $ECHO_N "(cached) $ECHO_C" >&6 4748else 4749 ac_check_lib_save_LIBS=$LIBS 4750LIBS="-lsocket $LIBS" 4751cat >conftest.$ac_ext <<_ACEOF 4752/* confdefs.h. */ 4753_ACEOF 4754cat confdefs.h >>conftest.$ac_ext 4755cat >>conftest.$ac_ext <<_ACEOF 4756/* end confdefs.h. */ 4757 4758/* Override any gcc2 internal prototype to avoid an error. */ 4759#ifdef __cplusplus 4760extern "C" 4761#endif 4762/* We use char because int might match the return type of a gcc2 4763 builtin and then its argument prototype would still apply. */ 4764char socket (); 4765int 4766main () 4767{ 4768socket (); 4769 ; 4770 return 0; 4771} 4772_ACEOF 4773rm -f conftest.$ac_objext conftest$ac_exeext 4774if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4775 (eval $ac_link) 2>conftest.er1 4776 ac_status=$? 4777 grep -v '^ *+' conftest.er1 >conftest.err 4778 rm -f conftest.er1 4779 cat conftest.err >&5 4780 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4781 (exit $ac_status); } && 4782 { ac_try='test -z "$ac_c_werror_flag" 4783 || test ! -s conftest.err' 4784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4785 (eval $ac_try) 2>&5 4786 ac_status=$? 4787 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4788 (exit $ac_status); }; } && 4789 { ac_try='test -s conftest$ac_exeext' 4790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4791 (eval $ac_try) 2>&5 4792 ac_status=$? 4793 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4794 (exit $ac_status); }; }; then 4795 ac_cv_lib_socket_socket=yes 4796else 4797 echo "$as_me: failed program was:" >&5 4798sed 's/^/| /' conftest.$ac_ext >&5 4799 4800ac_cv_lib_socket_socket=no 4801fi 4802rm -f conftest.err conftest.$ac_objext \ 4803 conftest$ac_exeext conftest.$ac_ext 4804LIBS=$ac_check_lib_save_LIBS 4805fi 4806echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 4807echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6 4808if test $ac_cv_lib_socket_socket = yes; then 4809 cat >>confdefs.h <<_ACEOF 4810#define HAVE_LIBSOCKET 1 4811_ACEOF 4812 4813 LIBS="-lsocket $LIBS" 4814 4815fi 4816 4817 4818echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 4819echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 4820if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then 4821 echo $ECHO_N "(cached) $ECHO_C" >&6 4822else 4823 ac_check_lib_save_LIBS=$LIBS 4824LIBS="-lnsl $LIBS" 4825cat >conftest.$ac_ext <<_ACEOF 4826/* confdefs.h. */ 4827_ACEOF 4828cat confdefs.h >>conftest.$ac_ext 4829cat >>conftest.$ac_ext <<_ACEOF 4830/* end confdefs.h. */ 4831 4832/* Override any gcc2 internal prototype to avoid an error. */ 4833#ifdef __cplusplus 4834extern "C" 4835#endif 4836/* We use char because int might match the return type of a gcc2 4837 builtin and then its argument prototype would still apply. */ 4838char gethostbyname (); 4839int 4840main () 4841{ 4842gethostbyname (); 4843 ; 4844 return 0; 4845} 4846_ACEOF 4847rm -f conftest.$ac_objext conftest$ac_exeext 4848if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4849 (eval $ac_link) 2>conftest.er1 4850 ac_status=$? 4851 grep -v '^ *+' conftest.er1 >conftest.err 4852 rm -f conftest.er1 4853 cat conftest.err >&5 4854 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4855 (exit $ac_status); } && 4856 { ac_try='test -z "$ac_c_werror_flag" 4857 || test ! -s conftest.err' 4858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4859 (eval $ac_try) 2>&5 4860 ac_status=$? 4861 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4862 (exit $ac_status); }; } && 4863 { ac_try='test -s conftest$ac_exeext' 4864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4865 (eval $ac_try) 2>&5 4866 ac_status=$? 4867 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4868 (exit $ac_status); }; }; then 4869 ac_cv_lib_nsl_gethostbyname=yes 4870else 4871 echo "$as_me: failed program was:" >&5 4872sed 's/^/| /' conftest.$ac_ext >&5 4873 4874ac_cv_lib_nsl_gethostbyname=no 4875fi 4876rm -f conftest.err conftest.$ac_objext \ 4877 conftest$ac_exeext conftest.$ac_ext 4878LIBS=$ac_check_lib_save_LIBS 4879fi 4880echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 4881echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6 4882if test $ac_cv_lib_nsl_gethostbyname = yes; then 4883 cat >>confdefs.h <<_ACEOF 4884#define HAVE_LIBNSL 1 4885_ACEOF 4886 4887 LIBS="-lnsl $LIBS" 4888 4889fi 4890 4891 echo "$as_me:$LINENO: checking whether compiling netbeans integration is possible" >&5 4892echo $ECHO_N "checking whether compiling netbeans integration is possible... $ECHO_C" >&6 4893 cat >conftest.$ac_ext <<_ACEOF 4894/* confdefs.h. */ 4895_ACEOF 4896cat confdefs.h >>conftest.$ac_ext 4897cat >>conftest.$ac_ext <<_ACEOF 4898/* end confdefs.h. */ 4899 4900#include <stdio.h> 4901#include <stdlib.h> 4902#include <stdarg.h> 4903#include <fcntl.h> 4904#include <netdb.h> 4905#include <netinet/in.h> 4906#include <errno.h> 4907#include <sys/types.h> 4908#include <sys/socket.h> 4909 /* Check bitfields */ 4910 struct nbbuf { 4911 unsigned int initDone:1; 4912 ushort signmaplen; 4913 }; 4914 4915int 4916main () 4917{ 4918 4919 /* Check creating a socket. */ 4920 struct sockaddr_in server; 4921 (void)socket(AF_INET, SOCK_STREAM, 0); 4922 (void)htons(100); 4923 (void)gethostbyname("microsoft.com"); 4924 if (errno == ECONNREFUSED) 4925 (void)connect(1, (struct sockaddr *)&server, sizeof(server)); 4926 4927 ; 4928 return 0; 4929} 4930_ACEOF 4931rm -f conftest.$ac_objext conftest$ac_exeext 4932if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4933 (eval $ac_link) 2>conftest.er1 4934 ac_status=$? 4935 grep -v '^ *+' conftest.er1 >conftest.err 4936 rm -f conftest.er1 4937 cat conftest.err >&5 4938 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4939 (exit $ac_status); } && 4940 { ac_try='test -z "$ac_c_werror_flag" 4941 || test ! -s conftest.err' 4942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4943 (eval $ac_try) 2>&5 4944 ac_status=$? 4945 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4946 (exit $ac_status); }; } && 4947 { ac_try='test -s conftest$ac_exeext' 4948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4949 (eval $ac_try) 2>&5 4950 ac_status=$? 4951 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4952 (exit $ac_status); }; }; then 4953 echo "$as_me:$LINENO: result: yes" >&5 4954echo "${ECHO_T}yes" >&6 4955else 4956 echo "$as_me: failed program was:" >&5 4957sed 's/^/| /' conftest.$ac_ext >&5 4958 4959echo "$as_me:$LINENO: result: no" >&5 4960echo "${ECHO_T}no" >&6; enable_netbeans="no" 4961fi 4962rm -f conftest.err conftest.$ac_objext \ 4963 conftest$ac_exeext conftest.$ac_ext 4964else 4965 echo "$as_me:$LINENO: result: yes" >&5 4966echo "${ECHO_T}yes" >&6 4967fi 4968if test "$enable_netbeans" = "yes"; then 4969 cat >>confdefs.h <<\_ACEOF 4970#define FEAT_NETBEANS_INTG 1 4971_ACEOF 4972 4973 NETBEANS_SRC="netbeans.c" 4974 4975 NETBEANS_OBJ="objects/netbeans.o" 4976 4977fi 4978 4979echo "$as_me:$LINENO: checking --enable-sniff argument" >&5 4980echo $ECHO_N "checking --enable-sniff argument... $ECHO_C" >&6 4981# Check whether --enable-sniff or --disable-sniff was given. 4982if test "${enable_sniff+set}" = set; then 4983 enableval="$enable_sniff" 4984 4985else 4986 enable_sniff="no" 4987fi; 4988echo "$as_me:$LINENO: result: $enable_sniff" >&5 4989echo "${ECHO_T}$enable_sniff" >&6 4990if test "$enable_sniff" = "yes"; then 4991 cat >>confdefs.h <<\_ACEOF 4992#define FEAT_SNIFF 1 4993_ACEOF 4994 4995 SNIFF_SRC="if_sniff.c" 4996 4997 SNIFF_OBJ="objects/if_sniff.o" 4998 4999fi 5000 5001echo "$as_me:$LINENO: checking --enable-multibyte argument" >&5 5002echo $ECHO_N "checking --enable-multibyte argument... $ECHO_C" >&6 5003# Check whether --enable-multibyte or --disable-multibyte was given. 5004if test "${enable_multibyte+set}" = set; then 5005 enableval="$enable_multibyte" 5006 5007else 5008 enable_multibyte="no" 5009fi; 5010echo "$as_me:$LINENO: result: $enable_multibyte" >&5 5011echo "${ECHO_T}$enable_multibyte" >&6 5012if test "$enable_multibyte" = "yes"; then 5013 cat >>confdefs.h <<\_ACEOF 5014#define FEAT_MBYTE 1 5015_ACEOF 5016 5017fi 5018 5019echo "$as_me:$LINENO: checking --enable-hangulinput argument" >&5 5020echo $ECHO_N "checking --enable-hangulinput argument... $ECHO_C" >&6 5021# Check whether --enable-hangulinput or --disable-hangulinput was given. 5022if test "${enable_hangulinput+set}" = set; then 5023 enableval="$enable_hangulinput" 5024 5025else 5026 enable_hangulinput="no" 5027fi; 5028echo "$as_me:$LINENO: result: $enable_hangulinput" >&5 5029echo "${ECHO_T}$enable_hangulinput" >&6 5030 5031echo "$as_me:$LINENO: checking --enable-xim argument" >&5 5032echo $ECHO_N "checking --enable-xim argument... $ECHO_C" >&6 5033# Check whether --enable-xim or --disable-xim was given. 5034if test "${enable_xim+set}" = set; then 5035 enableval="$enable_xim" 5036 echo "$as_me:$LINENO: result: $enable_xim" >&5 5037echo "${ECHO_T}$enable_xim" >&6 5038else 5039 enable_xim="auto"; echo "$as_me:$LINENO: result: defaulting to auto" >&5 5040echo "${ECHO_T}defaulting to auto" >&6 5041fi; 5042 5043echo "$as_me:$LINENO: checking --enable-fontset argument" >&5 5044echo $ECHO_N "checking --enable-fontset argument... $ECHO_C" >&6 5045# Check whether --enable-fontset or --disable-fontset was given. 5046if test "${enable_fontset+set}" = set; then 5047 enableval="$enable_fontset" 5048 5049else 5050 enable_fontset="no" 5051fi; 5052echo "$as_me:$LINENO: result: $enable_fontset" >&5 5053echo "${ECHO_T}$enable_fontset" >&6 5054 5055test -z "$with_x" && with_x=yes 5056test "${enable_gui-yes}" != no -a "x$MACOSX" != "xyes" -a "x$QNX" != "xyes" && with_x=yes 5057if test "$with_x" = no; then 5058 echo "$as_me:$LINENO: result: defaulting to: don't HAVE_X11" >&5 5059echo "${ECHO_T}defaulting to: don't HAVE_X11" >&6 5060else 5061 5062 # Extract the first word of "xmkmf", so it can be a program name with args. 5063set dummy xmkmf; ac_word=$2 5064echo "$as_me:$LINENO: checking for $ac_word" >&5 5065echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5066if test "${ac_cv_path_xmkmfpath+set}" = set; then 5067 echo $ECHO_N "(cached) $ECHO_C" >&6 5068else 5069 case $xmkmfpath in 5070 [\\/]* | ?:[\\/]*) 5071 ac_cv_path_xmkmfpath="$xmkmfpath" # Let the user override the test with a path. 5072 ;; 5073 *) 5074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5075for as_dir in $PATH 5076do 5077 IFS=$as_save_IFS 5078 test -z "$as_dir" && as_dir=. 5079 for ac_exec_ext in '' $ac_executable_extensions; do 5080 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5081 ac_cv_path_xmkmfpath="$as_dir/$ac_word$ac_exec_ext" 5082 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5083 break 2 5084 fi 5085done 5086done 5087 5088 ;; 5089esac 5090fi 5091xmkmfpath=$ac_cv_path_xmkmfpath 5092 5093if test -n "$xmkmfpath"; then 5094 echo "$as_me:$LINENO: result: $xmkmfpath" >&5 5095echo "${ECHO_T}$xmkmfpath" >&6 5096else 5097 echo "$as_me:$LINENO: result: no" >&5 5098echo "${ECHO_T}no" >&6 5099fi 5100 5101 5102 echo "$as_me:$LINENO: checking for X" >&5 5103echo $ECHO_N "checking for X... $ECHO_C" >&6 5104 5105 5106# Check whether --with-x or --without-x was given. 5107if test "${with_x+set}" = set; then 5108 withval="$with_x" 5109 5110fi; 5111# $have_x is `yes', `no', `disabled', or empty when we do not yet know. 5112if test "x$with_x" = xno; then 5113 # The user explicitly disabled X. 5114 have_x=disabled 5115else 5116 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then 5117 # Both variables are already set. 5118 have_x=yes 5119 else 5120 if test "${ac_cv_have_x+set}" = set; then 5121 echo $ECHO_N "(cached) $ECHO_C" >&6 5122else 5123 # One or both of the vars are not set, and there is no cached value. 5124ac_x_includes=no ac_x_libraries=no 5125rm -fr conftest.dir 5126if mkdir conftest.dir; then 5127 cd conftest.dir 5128 # Make sure to not put "make" in the Imakefile rules, since we grep it out. 5129 cat >Imakefile <<'_ACEOF' 5130acfindx: 5131 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' 5132_ACEOF 5133 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then 5134 # GNU make sometimes prints "make[1]: Entering...", which would confuse us. 5135 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` 5136 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. 5137 for ac_extension in a so sl; do 5138 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && 5139 test -f $ac_im_libdir/libX11.$ac_extension; then 5140 ac_im_usrlibdir=$ac_im_libdir; break 5141 fi 5142 done 5143 # Screen out bogus values from the imake configuration. They are 5144 # bogus both because they are the default anyway, and because 5145 # using them would break gcc on systems where it needs fixed includes. 5146 case $ac_im_incroot in 5147 /usr/include) ;; 5148 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; 5149 esac 5150 case $ac_im_usrlibdir in 5151 /usr/lib | /lib) ;; 5152 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; 5153 esac 5154 fi 5155 cd .. 5156 rm -fr conftest.dir 5157fi 5158 5159# Standard set of common directories for X headers. 5160# Check X11 before X11Rn because it is often a symlink to the current release. 5161ac_x_header_dirs=' 5162/usr/X11/include 5163/usr/X11R6/include 5164/usr/X11R5/include 5165/usr/X11R4/include 5166 5167/usr/include/X11 5168/usr/include/X11R6 5169/usr/include/X11R5 5170/usr/include/X11R4 5171 5172/usr/local/X11/include 5173/usr/local/X11R6/include 5174/usr/local/X11R5/include 5175/usr/local/X11R4/include 5176 5177/usr/local/include/X11 5178/usr/local/include/X11R6 5179/usr/local/include/X11R5 5180/usr/local/include/X11R4 5181 5182/usr/X386/include 5183/usr/x386/include 5184/usr/XFree86/include/X11 5185 5186/usr/include 5187/usr/local/include 5188/usr/unsupported/include 5189/usr/athena/include 5190/usr/local/x11r5/include 5191/usr/lpp/Xamples/include 5192 5193/usr/openwin/include 5194/usr/openwin/share/include' 5195 5196if test "$ac_x_includes" = no; then 5197 # Guess where to find include files, by looking for Intrinsic.h. 5198 # First, try using that file with no special directory specified. 5199 cat >conftest.$ac_ext <<_ACEOF 5200/* confdefs.h. */ 5201_ACEOF 5202cat confdefs.h >>conftest.$ac_ext 5203cat >>conftest.$ac_ext <<_ACEOF 5204/* end confdefs.h. */ 5205#include <X11/Intrinsic.h> 5206_ACEOF 5207if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5208 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5209 ac_status=$? 5210 grep -v '^ *+' conftest.er1 >conftest.err 5211 rm -f conftest.er1 5212 cat conftest.err >&5 5213 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5214 (exit $ac_status); } >/dev/null; then 5215 if test -s conftest.err; then 5216 ac_cpp_err=$ac_c_preproc_warn_flag 5217 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 5218 else 5219 ac_cpp_err= 5220 fi 5221else 5222 ac_cpp_err=yes 5223fi 5224if test -z "$ac_cpp_err"; then 5225 # We can compile using X headers with no special include directory. 5226ac_x_includes= 5227else 5228 echo "$as_me: failed program was:" >&5 5229sed 's/^/| /' conftest.$ac_ext >&5 5230 5231 for ac_dir in $ac_x_header_dirs; do 5232 if test -r "$ac_dir/X11/Intrinsic.h"; then 5233 ac_x_includes=$ac_dir 5234 break 5235 fi 5236done 5237fi 5238rm -f conftest.err conftest.$ac_ext 5239fi # $ac_x_includes = no 5240 5241if test "$ac_x_libraries" = no; then 5242 # Check for the libraries. 5243 # See if we find them without any special options. 5244 # Don't add to $LIBS permanently. 5245 ac_save_LIBS=$LIBS 5246 LIBS="-lXt $LIBS" 5247 cat >conftest.$ac_ext <<_ACEOF 5248/* confdefs.h. */ 5249_ACEOF 5250cat confdefs.h >>conftest.$ac_ext 5251cat >>conftest.$ac_ext <<_ACEOF 5252/* end confdefs.h. */ 5253#include <X11/Intrinsic.h> 5254int 5255main () 5256{ 5257XtMalloc (0) 5258 ; 5259 return 0; 5260} 5261_ACEOF 5262rm -f conftest.$ac_objext conftest$ac_exeext 5263if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5264 (eval $ac_link) 2>conftest.er1 5265 ac_status=$? 5266 grep -v '^ *+' conftest.er1 >conftest.err 5267 rm -f conftest.er1 5268 cat conftest.err >&5 5269 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5270 (exit $ac_status); } && 5271 { ac_try='test -z "$ac_c_werror_flag" 5272 || test ! -s conftest.err' 5273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5274 (eval $ac_try) 2>&5 5275 ac_status=$? 5276 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5277 (exit $ac_status); }; } && 5278 { ac_try='test -s conftest$ac_exeext' 5279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5280 (eval $ac_try) 2>&5 5281 ac_status=$? 5282 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5283 (exit $ac_status); }; }; then 5284 LIBS=$ac_save_LIBS 5285# We can link X programs with no special library path. 5286ac_x_libraries= 5287else 5288 echo "$as_me: failed program was:" >&5 5289sed 's/^/| /' conftest.$ac_ext >&5 5290 5291LIBS=$ac_save_LIBS 5292for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 5293do 5294 # Don't even attempt the hair of trying to link an X program! 5295 for ac_extension in a so sl; do 5296 if test -r $ac_dir/libXt.$ac_extension; then 5297 ac_x_libraries=$ac_dir 5298 break 2 5299 fi 5300 done 5301done 5302fi 5303rm -f conftest.err conftest.$ac_objext \ 5304 conftest$ac_exeext conftest.$ac_ext 5305fi # $ac_x_libraries = no 5306 5307if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then 5308 # Didn't find X anywhere. Cache the known absence of X. 5309 ac_cv_have_x="have_x=no" 5310else 5311 # Record where we found X for the cache. 5312 ac_cv_have_x="have_x=yes \ 5313 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" 5314fi 5315fi 5316 5317 fi 5318 eval "$ac_cv_have_x" 5319fi # $with_x != no 5320 5321if test "$have_x" != yes; then 5322 echo "$as_me:$LINENO: result: $have_x" >&5 5323echo "${ECHO_T}$have_x" >&6 5324 no_x=yes 5325else 5326 # If each of the values was on the command line, it overrides each guess. 5327 test "x$x_includes" = xNONE && x_includes=$ac_x_includes 5328 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 5329 # Update the cache value to reflect the command line values. 5330 ac_cv_have_x="have_x=yes \ 5331 ac_x_includes=$x_includes ac_x_libraries=$x_libraries" 5332 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5 5333echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6 5334fi 5335 5336if test "$no_x" = yes; then 5337 # Not all programs may use this symbol, but it does not hurt to define it. 5338 5339cat >>confdefs.h <<\_ACEOF 5340#define X_DISPLAY_MISSING 1 5341_ACEOF 5342 5343 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= 5344else 5345 if test -n "$x_includes"; then 5346 X_CFLAGS="$X_CFLAGS -I$x_includes" 5347 fi 5348 5349 # It would also be nice to do this for all -L options, not just this one. 5350 if test -n "$x_libraries"; then 5351 X_LIBS="$X_LIBS -L$x_libraries" 5352 # For Solaris; some versions of Sun CC require a space after -R and 5353 # others require no space. Words are not sufficient . . . . 5354 case `(uname -sr) 2>/dev/null` in 5355 "SunOS 5"*) 5356 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5 5357echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6 5358 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" 5359 cat >conftest.$ac_ext <<_ACEOF 5360/* confdefs.h. */ 5361_ACEOF 5362cat confdefs.h >>conftest.$ac_ext 5363cat >>conftest.$ac_ext <<_ACEOF 5364/* end confdefs.h. */ 5365 5366int 5367main () 5368{ 5369 5370 ; 5371 return 0; 5372} 5373_ACEOF 5374rm -f conftest.$ac_objext conftest$ac_exeext 5375if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5376 (eval $ac_link) 2>conftest.er1 5377 ac_status=$? 5378 grep -v '^ *+' conftest.er1 >conftest.err 5379 rm -f conftest.er1 5380 cat conftest.err >&5 5381 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5382 (exit $ac_status); } && 5383 { ac_try='test -z "$ac_c_werror_flag" 5384 || test ! -s conftest.err' 5385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5386 (eval $ac_try) 2>&5 5387 ac_status=$? 5388 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5389 (exit $ac_status); }; } && 5390 { ac_try='test -s conftest$ac_exeext' 5391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5392 (eval $ac_try) 2>&5 5393 ac_status=$? 5394 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5395 (exit $ac_status); }; }; then 5396 ac_R_nospace=yes 5397else 5398 echo "$as_me: failed program was:" >&5 5399sed 's/^/| /' conftest.$ac_ext >&5 5400 5401ac_R_nospace=no 5402fi 5403rm -f conftest.err conftest.$ac_objext \ 5404 conftest$ac_exeext conftest.$ac_ext 5405 if test $ac_R_nospace = yes; then 5406 echo "$as_me:$LINENO: result: no" >&5 5407echo "${ECHO_T}no" >&6 5408 X_LIBS="$X_LIBS -R$x_libraries" 5409 else 5410 LIBS="$ac_xsave_LIBS -R $x_libraries" 5411 cat >conftest.$ac_ext <<_ACEOF 5412/* confdefs.h. */ 5413_ACEOF 5414cat confdefs.h >>conftest.$ac_ext 5415cat >>conftest.$ac_ext <<_ACEOF 5416/* end confdefs.h. */ 5417 5418int 5419main () 5420{ 5421 5422 ; 5423 return 0; 5424} 5425_ACEOF 5426rm -f conftest.$ac_objext conftest$ac_exeext 5427if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5428 (eval $ac_link) 2>conftest.er1 5429 ac_status=$? 5430 grep -v '^ *+' conftest.er1 >conftest.err 5431 rm -f conftest.er1 5432 cat conftest.err >&5 5433 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5434 (exit $ac_status); } && 5435 { ac_try='test -z "$ac_c_werror_flag" 5436 || test ! -s conftest.err' 5437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5438 (eval $ac_try) 2>&5 5439 ac_status=$? 5440 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5441 (exit $ac_status); }; } && 5442 { ac_try='test -s conftest$ac_exeext' 5443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5444 (eval $ac_try) 2>&5 5445 ac_status=$? 5446 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5447 (exit $ac_status); }; }; then 5448 ac_R_space=yes 5449else 5450 echo "$as_me: failed program was:" >&5 5451sed 's/^/| /' conftest.$ac_ext >&5 5452 5453ac_R_space=no 5454fi 5455rm -f conftest.err conftest.$ac_objext \ 5456 conftest$ac_exeext conftest.$ac_ext 5457 if test $ac_R_space = yes; then 5458 echo "$as_me:$LINENO: result: yes" >&5 5459echo "${ECHO_T}yes" >&6 5460 X_LIBS="$X_LIBS -R $x_libraries" 5461 else 5462 echo "$as_me:$LINENO: result: neither works" >&5 5463echo "${ECHO_T}neither works" >&6 5464 fi 5465 fi 5466 LIBS=$ac_xsave_LIBS 5467 esac 5468 fi 5469 5470 # Check for system-dependent libraries X programs must link with. 5471 # Do this before checking for the system-independent R6 libraries 5472 # (-lICE), since we may need -lsocket or whatever for X linking. 5473 5474 if test "$ISC" = yes; then 5475 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" 5476 else 5477 # Martyn Johnson says this is needed for Ultrix, if the X 5478 # libraries were built with DECnet support. And Karl Berry says 5479 # the Alpha needs dnet_stub (dnet does not exist). 5480 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" 5481 cat >conftest.$ac_ext <<_ACEOF 5482/* confdefs.h. */ 5483_ACEOF 5484cat confdefs.h >>conftest.$ac_ext 5485cat >>conftest.$ac_ext <<_ACEOF 5486/* end confdefs.h. */ 5487 5488/* Override any gcc2 internal prototype to avoid an error. */ 5489#ifdef __cplusplus 5490extern "C" 5491#endif 5492/* We use char because int might match the return type of a gcc2 5493 builtin and then its argument prototype would still apply. */ 5494char XOpenDisplay (); 5495int 5496main () 5497{ 5498XOpenDisplay (); 5499 ; 5500 return 0; 5501} 5502_ACEOF 5503rm -f conftest.$ac_objext conftest$ac_exeext 5504if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5505 (eval $ac_link) 2>conftest.er1 5506 ac_status=$? 5507 grep -v '^ *+' conftest.er1 >conftest.err 5508 rm -f conftest.er1 5509 cat conftest.err >&5 5510 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5511 (exit $ac_status); } && 5512 { ac_try='test -z "$ac_c_werror_flag" 5513 || test ! -s conftest.err' 5514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5515 (eval $ac_try) 2>&5 5516 ac_status=$? 5517 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5518 (exit $ac_status); }; } && 5519 { ac_try='test -s conftest$ac_exeext' 5520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5521 (eval $ac_try) 2>&5 5522 ac_status=$? 5523 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5524 (exit $ac_status); }; }; then 5525 : 5526else 5527 echo "$as_me: failed program was:" >&5 5528sed 's/^/| /' conftest.$ac_ext >&5 5529 5530echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5 5531echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6 5532if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then 5533 echo $ECHO_N "(cached) $ECHO_C" >&6 5534else 5535 ac_check_lib_save_LIBS=$LIBS 5536LIBS="-ldnet $LIBS" 5537cat >conftest.$ac_ext <<_ACEOF 5538/* confdefs.h. */ 5539_ACEOF 5540cat confdefs.h >>conftest.$ac_ext 5541cat >>conftest.$ac_ext <<_ACEOF 5542/* end confdefs.h. */ 5543 5544/* Override any gcc2 internal prototype to avoid an error. */ 5545#ifdef __cplusplus 5546extern "C" 5547#endif 5548/* We use char because int might match the return type of a gcc2 5549 builtin and then its argument prototype would still apply. */ 5550char dnet_ntoa (); 5551int 5552main () 5553{ 5554dnet_ntoa (); 5555 ; 5556 return 0; 5557} 5558_ACEOF 5559rm -f conftest.$ac_objext conftest$ac_exeext 5560if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5561 (eval $ac_link) 2>conftest.er1 5562 ac_status=$? 5563 grep -v '^ *+' conftest.er1 >conftest.err 5564 rm -f conftest.er1 5565 cat conftest.err >&5 5566 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5567 (exit $ac_status); } && 5568 { ac_try='test -z "$ac_c_werror_flag" 5569 || test ! -s conftest.err' 5570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5571 (eval $ac_try) 2>&5 5572 ac_status=$? 5573 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5574 (exit $ac_status); }; } && 5575 { ac_try='test -s conftest$ac_exeext' 5576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5577 (eval $ac_try) 2>&5 5578 ac_status=$? 5579 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5580 (exit $ac_status); }; }; then 5581 ac_cv_lib_dnet_dnet_ntoa=yes 5582else 5583 echo "$as_me: failed program was:" >&5 5584sed 's/^/| /' conftest.$ac_ext >&5 5585 5586ac_cv_lib_dnet_dnet_ntoa=no 5587fi 5588rm -f conftest.err conftest.$ac_objext \ 5589 conftest$ac_exeext conftest.$ac_ext 5590LIBS=$ac_check_lib_save_LIBS 5591fi 5592echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 5593echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6 5594if test $ac_cv_lib_dnet_dnet_ntoa = yes; then 5595 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" 5596fi 5597 5598 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 5599 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5 5600echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6 5601if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then 5602 echo $ECHO_N "(cached) $ECHO_C" >&6 5603else 5604 ac_check_lib_save_LIBS=$LIBS 5605LIBS="-ldnet_stub $LIBS" 5606cat >conftest.$ac_ext <<_ACEOF 5607/* confdefs.h. */ 5608_ACEOF 5609cat confdefs.h >>conftest.$ac_ext 5610cat >>conftest.$ac_ext <<_ACEOF 5611/* end confdefs.h. */ 5612 5613/* Override any gcc2 internal prototype to avoid an error. */ 5614#ifdef __cplusplus 5615extern "C" 5616#endif 5617/* We use char because int might match the return type of a gcc2 5618 builtin and then its argument prototype would still apply. */ 5619char dnet_ntoa (); 5620int 5621main () 5622{ 5623dnet_ntoa (); 5624 ; 5625 return 0; 5626} 5627_ACEOF 5628rm -f conftest.$ac_objext conftest$ac_exeext 5629if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5630 (eval $ac_link) 2>conftest.er1 5631 ac_status=$? 5632 grep -v '^ *+' conftest.er1 >conftest.err 5633 rm -f conftest.er1 5634 cat conftest.err >&5 5635 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5636 (exit $ac_status); } && 5637 { ac_try='test -z "$ac_c_werror_flag" 5638 || test ! -s conftest.err' 5639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5640 (eval $ac_try) 2>&5 5641 ac_status=$? 5642 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5643 (exit $ac_status); }; } && 5644 { ac_try='test -s conftest$ac_exeext' 5645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5646 (eval $ac_try) 2>&5 5647 ac_status=$? 5648 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5649 (exit $ac_status); }; }; then 5650 ac_cv_lib_dnet_stub_dnet_ntoa=yes 5651else 5652 echo "$as_me: failed program was:" >&5 5653sed 's/^/| /' conftest.$ac_ext >&5 5654 5655ac_cv_lib_dnet_stub_dnet_ntoa=no 5656fi 5657rm -f conftest.err conftest.$ac_objext \ 5658 conftest$ac_exeext conftest.$ac_ext 5659LIBS=$ac_check_lib_save_LIBS 5660fi 5661echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 5662echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6 5663if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then 5664 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" 5665fi 5666 5667 fi 5668fi 5669rm -f conftest.err conftest.$ac_objext \ 5670 conftest$ac_exeext conftest.$ac_ext 5671 LIBS="$ac_xsave_LIBS" 5672 5673 # [email protected] says -lnsl (and -lsocket) are needed for his 386/AT, 5674 # to get the SysV transport functions. 5675 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) 5676 # needs -lnsl. 5677 # The nsl library prevents programs from opening the X display 5678 # on Irix 5.2, according to T.E. Dickey. 5679 # The functions gethostbyname, getservbyname, and inet_addr are 5680 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. 5681 echo "$as_me:$LINENO: checking for gethostbyname" >&5 5682echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6 5683if test "${ac_cv_func_gethostbyname+set}" = set; then 5684 echo $ECHO_N "(cached) $ECHO_C" >&6 5685else 5686 cat >conftest.$ac_ext <<_ACEOF 5687/* confdefs.h. */ 5688_ACEOF 5689cat confdefs.h >>conftest.$ac_ext 5690cat >>conftest.$ac_ext <<_ACEOF 5691/* end confdefs.h. */ 5692/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname. 5693 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 5694#define gethostbyname innocuous_gethostbyname 5695 5696/* System header to define __stub macros and hopefully few prototypes, 5697 which can conflict with char gethostbyname (); below. 5698 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5699 <limits.h> exists even on freestanding compilers. */ 5700 5701#ifdef __STDC__ 5702# include <limits.h> 5703#else 5704# include <assert.h> 5705#endif 5706 5707#undef gethostbyname 5708 5709/* Override any gcc2 internal prototype to avoid an error. */ 5710#ifdef __cplusplus 5711extern "C" 5712{ 5713#endif 5714/* We use char because int might match the return type of a gcc2 5715 builtin and then its argument prototype would still apply. */ 5716char gethostbyname (); 5717/* The GNU C library defines this for functions which it implements 5718 to always fail with ENOSYS. Some functions are actually named 5719 something starting with __ and the normal name is an alias. */ 5720#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) 5721choke me 5722#else 5723char (*f) () = gethostbyname; 5724#endif 5725#ifdef __cplusplus 5726} 5727#endif 5728 5729int 5730main () 5731{ 5732return f != gethostbyname; 5733 ; 5734 return 0; 5735} 5736_ACEOF 5737rm -f conftest.$ac_objext conftest$ac_exeext 5738if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5739 (eval $ac_link) 2>conftest.er1 5740 ac_status=$? 5741 grep -v '^ *+' conftest.er1 >conftest.err 5742 rm -f conftest.er1 5743 cat conftest.err >&5 5744 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5745 (exit $ac_status); } && 5746 { ac_try='test -z "$ac_c_werror_flag" 5747 || test ! -s conftest.err' 5748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5749 (eval $ac_try) 2>&5 5750 ac_status=$? 5751 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5752 (exit $ac_status); }; } && 5753 { ac_try='test -s conftest$ac_exeext' 5754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5755 (eval $ac_try) 2>&5 5756 ac_status=$? 5757 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5758 (exit $ac_status); }; }; then 5759 ac_cv_func_gethostbyname=yes 5760else 5761 echo "$as_me: failed program was:" >&5 5762sed 's/^/| /' conftest.$ac_ext >&5 5763 5764ac_cv_func_gethostbyname=no 5765fi 5766rm -f conftest.err conftest.$ac_objext \ 5767 conftest$ac_exeext conftest.$ac_ext 5768fi 5769echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 5770echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6 5771 5772 if test $ac_cv_func_gethostbyname = no; then 5773 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 5774echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 5775if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then 5776 echo $ECHO_N "(cached) $ECHO_C" >&6 5777else 5778 ac_check_lib_save_LIBS=$LIBS 5779LIBS="-lnsl $LIBS" 5780cat >conftest.$ac_ext <<_ACEOF 5781/* confdefs.h. */ 5782_ACEOF 5783cat confdefs.h >>conftest.$ac_ext 5784cat >>conftest.$ac_ext <<_ACEOF 5785/* end confdefs.h. */ 5786 5787/* Override any gcc2 internal prototype to avoid an error. */ 5788#ifdef __cplusplus 5789extern "C" 5790#endif 5791/* We use char because int might match the return type of a gcc2 5792 builtin and then its argument prototype would still apply. */ 5793char gethostbyname (); 5794int 5795main () 5796{ 5797gethostbyname (); 5798 ; 5799 return 0; 5800} 5801_ACEOF 5802rm -f conftest.$ac_objext conftest$ac_exeext 5803if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5804 (eval $ac_link) 2>conftest.er1 5805 ac_status=$? 5806 grep -v '^ *+' conftest.er1 >conftest.err 5807 rm -f conftest.er1 5808 cat conftest.err >&5 5809 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5810 (exit $ac_status); } && 5811 { ac_try='test -z "$ac_c_werror_flag" 5812 || test ! -s conftest.err' 5813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5814 (eval $ac_try) 2>&5 5815 ac_status=$? 5816 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5817 (exit $ac_status); }; } && 5818 { ac_try='test -s conftest$ac_exeext' 5819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5820 (eval $ac_try) 2>&5 5821 ac_status=$? 5822 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5823 (exit $ac_status); }; }; then 5824 ac_cv_lib_nsl_gethostbyname=yes 5825else 5826 echo "$as_me: failed program was:" >&5 5827sed 's/^/| /' conftest.$ac_ext >&5 5828 5829ac_cv_lib_nsl_gethostbyname=no 5830fi 5831rm -f conftest.err conftest.$ac_objext \ 5832 conftest$ac_exeext conftest.$ac_ext 5833LIBS=$ac_check_lib_save_LIBS 5834fi 5835echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 5836echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6 5837if test $ac_cv_lib_nsl_gethostbyname = yes; then 5838 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" 5839fi 5840 5841 if test $ac_cv_lib_nsl_gethostbyname = no; then 5842 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5 5843echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6 5844if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then 5845 echo $ECHO_N "(cached) $ECHO_C" >&6 5846else 5847 ac_check_lib_save_LIBS=$LIBS 5848LIBS="-lbsd $LIBS" 5849cat >conftest.$ac_ext <<_ACEOF 5850/* confdefs.h. */ 5851_ACEOF 5852cat confdefs.h >>conftest.$ac_ext 5853cat >>conftest.$ac_ext <<_ACEOF 5854/* end confdefs.h. */ 5855 5856/* Override any gcc2 internal prototype to avoid an error. */ 5857#ifdef __cplusplus 5858extern "C" 5859#endif 5860/* We use char because int might match the return type of a gcc2 5861 builtin and then its argument prototype would still apply. */ 5862char gethostbyname (); 5863int 5864main () 5865{ 5866gethostbyname (); 5867 ; 5868 return 0; 5869} 5870_ACEOF 5871rm -f conftest.$ac_objext conftest$ac_exeext 5872if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5873 (eval $ac_link) 2>conftest.er1 5874 ac_status=$? 5875 grep -v '^ *+' conftest.er1 >conftest.err 5876 rm -f conftest.er1 5877 cat conftest.err >&5 5878 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5879 (exit $ac_status); } && 5880 { ac_try='test -z "$ac_c_werror_flag" 5881 || test ! -s conftest.err' 5882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5883 (eval $ac_try) 2>&5 5884 ac_status=$? 5885 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5886 (exit $ac_status); }; } && 5887 { ac_try='test -s conftest$ac_exeext' 5888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5889 (eval $ac_try) 2>&5 5890 ac_status=$? 5891 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5892 (exit $ac_status); }; }; then 5893 ac_cv_lib_bsd_gethostbyname=yes 5894else 5895 echo "$as_me: failed program was:" >&5 5896sed 's/^/| /' conftest.$ac_ext >&5 5897 5898ac_cv_lib_bsd_gethostbyname=no 5899fi 5900rm -f conftest.err conftest.$ac_objext \ 5901 conftest$ac_exeext conftest.$ac_ext 5902LIBS=$ac_check_lib_save_LIBS 5903fi 5904echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5 5905echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6 5906if test $ac_cv_lib_bsd_gethostbyname = yes; then 5907 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" 5908fi 5909 5910 fi 5911 fi 5912 5913 # [email protected] says without -lsocket, 5914 # socket/setsockopt and other routines are undefined under SCO ODT 5915 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary 5916 # on later versions), says Simon Leinen: it contains gethostby* 5917 # variants that don't use the name server (or something). -lsocket 5918 # must be given before -lnsl if both are needed. We assume that 5919 # if connect needs -lnsl, so does gethostbyname. 5920 echo "$as_me:$LINENO: checking for connect" >&5 5921echo $ECHO_N "checking for connect... $ECHO_C" >&6 5922if test "${ac_cv_func_connect+set}" = set; then 5923 echo $ECHO_N "(cached) $ECHO_C" >&6 5924else 5925 cat >conftest.$ac_ext <<_ACEOF 5926/* confdefs.h. */ 5927_ACEOF 5928cat confdefs.h >>conftest.$ac_ext 5929cat >>conftest.$ac_ext <<_ACEOF 5930/* end confdefs.h. */ 5931/* Define connect to an innocuous variant, in case <limits.h> declares connect. 5932 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 5933#define connect innocuous_connect 5934 5935/* System header to define __stub macros and hopefully few prototypes, 5936 which can conflict with char connect (); below. 5937 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5938 <limits.h> exists even on freestanding compilers. */ 5939 5940#ifdef __STDC__ 5941# include <limits.h> 5942#else 5943# include <assert.h> 5944#endif 5945 5946#undef connect 5947 5948/* Override any gcc2 internal prototype to avoid an error. */ 5949#ifdef __cplusplus 5950extern "C" 5951{ 5952#endif 5953/* We use char because int might match the return type of a gcc2 5954 builtin and then its argument prototype would still apply. */ 5955char connect (); 5956/* The GNU C library defines this for functions which it implements 5957 to always fail with ENOSYS. Some functions are actually named 5958 something starting with __ and the normal name is an alias. */ 5959#if defined (__stub_connect) || defined (__stub___connect) 5960choke me 5961#else 5962char (*f) () = connect; 5963#endif 5964#ifdef __cplusplus 5965} 5966#endif 5967 5968int 5969main () 5970{ 5971return f != connect; 5972 ; 5973 return 0; 5974} 5975_ACEOF 5976rm -f conftest.$ac_objext conftest$ac_exeext 5977if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5978 (eval $ac_link) 2>conftest.er1 5979 ac_status=$? 5980 grep -v '^ *+' conftest.er1 >conftest.err 5981 rm -f conftest.er1 5982 cat conftest.err >&5 5983 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5984 (exit $ac_status); } && 5985 { ac_try='test -z "$ac_c_werror_flag" 5986 || test ! -s conftest.err' 5987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5988 (eval $ac_try) 2>&5 5989 ac_status=$? 5990 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5991 (exit $ac_status); }; } && 5992 { ac_try='test -s conftest$ac_exeext' 5993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5994 (eval $ac_try) 2>&5 5995 ac_status=$? 5996 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5997 (exit $ac_status); }; }; then 5998 ac_cv_func_connect=yes 5999else 6000 echo "$as_me: failed program was:" >&5 6001sed 's/^/| /' conftest.$ac_ext >&5 6002 6003ac_cv_func_connect=no 6004fi 6005rm -f conftest.err conftest.$ac_objext \ 6006 conftest$ac_exeext conftest.$ac_ext 6007fi 6008echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5 6009echo "${ECHO_T}$ac_cv_func_connect" >&6 6010 6011 if test $ac_cv_func_connect = no; then 6012 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5 6013echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6 6014if test "${ac_cv_lib_socket_connect+set}" = set; then 6015 echo $ECHO_N "(cached) $ECHO_C" >&6 6016else 6017 ac_check_lib_save_LIBS=$LIBS 6018LIBS="-lsocket $X_EXTRA_LIBS $LIBS" 6019cat >conftest.$ac_ext <<_ACEOF 6020/* confdefs.h. */ 6021_ACEOF 6022cat confdefs.h >>conftest.$ac_ext 6023cat >>conftest.$ac_ext <<_ACEOF 6024/* end confdefs.h. */ 6025 6026/* Override any gcc2 internal prototype to avoid an error. */ 6027#ifdef __cplusplus 6028extern "C" 6029#endif 6030/* We use char because int might match the return type of a gcc2 6031 builtin and then its argument prototype would still apply. */ 6032char connect (); 6033int 6034main () 6035{ 6036connect (); 6037 ; 6038 return 0; 6039} 6040_ACEOF 6041rm -f conftest.$ac_objext conftest$ac_exeext 6042if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6043 (eval $ac_link) 2>conftest.er1 6044 ac_status=$? 6045 grep -v '^ *+' conftest.er1 >conftest.err 6046 rm -f conftest.er1 6047 cat conftest.err >&5 6048 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6049 (exit $ac_status); } && 6050 { ac_try='test -z "$ac_c_werror_flag" 6051 || test ! -s conftest.err' 6052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6053 (eval $ac_try) 2>&5 6054 ac_status=$? 6055 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6056 (exit $ac_status); }; } && 6057 { ac_try='test -s conftest$ac_exeext' 6058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6059 (eval $ac_try) 2>&5 6060 ac_status=$? 6061 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6062 (exit $ac_status); }; }; then 6063 ac_cv_lib_socket_connect=yes 6064else 6065 echo "$as_me: failed program was:" >&5 6066sed 's/^/| /' conftest.$ac_ext >&5 6067 6068ac_cv_lib_socket_connect=no 6069fi 6070rm -f conftest.err conftest.$ac_objext \ 6071 conftest$ac_exeext conftest.$ac_ext 6072LIBS=$ac_check_lib_save_LIBS 6073fi 6074echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5 6075echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6 6076if test $ac_cv_lib_socket_connect = yes; then 6077 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" 6078fi 6079 6080 fi 6081 6082 # Guillermo Gomez says -lposix is necessary on A/UX. 6083 echo "$as_me:$LINENO: checking for remove" >&5 6084echo $ECHO_N "checking for remove... $ECHO_C" >&6 6085if test "${ac_cv_func_remove+set}" = set; then 6086 echo $ECHO_N "(cached) $ECHO_C" >&6 6087else 6088 cat >conftest.$ac_ext <<_ACEOF 6089/* confdefs.h. */ 6090_ACEOF 6091cat confdefs.h >>conftest.$ac_ext 6092cat >>conftest.$ac_ext <<_ACEOF 6093/* end confdefs.h. */ 6094/* Define remove to an innocuous variant, in case <limits.h> declares remove. 6095 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 6096#define remove innocuous_remove 6097 6098/* System header to define __stub macros and hopefully few prototypes, 6099 which can conflict with char remove (); below. 6100 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6101 <limits.h> exists even on freestanding compilers. */ 6102 6103#ifdef __STDC__ 6104# include <limits.h> 6105#else 6106# include <assert.h> 6107#endif 6108 6109#undef remove 6110 6111/* Override any gcc2 internal prototype to avoid an error. */ 6112#ifdef __cplusplus 6113extern "C" 6114{ 6115#endif 6116/* We use char because int might match the return type of a gcc2 6117 builtin and then its argument prototype would still apply. */ 6118char remove (); 6119/* The GNU C library defines this for functions which it implements 6120 to always fail with ENOSYS. Some functions are actually named 6121 something starting with __ and the normal name is an alias. */ 6122#if defined (__stub_remove) || defined (__stub___remove) 6123choke me 6124#else 6125char (*f) () = remove; 6126#endif 6127#ifdef __cplusplus 6128} 6129#endif 6130 6131int 6132main () 6133{ 6134return f != remove; 6135 ; 6136 return 0; 6137} 6138_ACEOF 6139rm -f conftest.$ac_objext conftest$ac_exeext 6140if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6141 (eval $ac_link) 2>conftest.er1 6142 ac_status=$? 6143 grep -v '^ *+' conftest.er1 >conftest.err 6144 rm -f conftest.er1 6145 cat conftest.err >&5 6146 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6147 (exit $ac_status); } && 6148 { ac_try='test -z "$ac_c_werror_flag" 6149 || test ! -s conftest.err' 6150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6151 (eval $ac_try) 2>&5 6152 ac_status=$? 6153 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6154 (exit $ac_status); }; } && 6155 { ac_try='test -s conftest$ac_exeext' 6156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6157 (eval $ac_try) 2>&5 6158 ac_status=$? 6159 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6160 (exit $ac_status); }; }; then 6161 ac_cv_func_remove=yes 6162else 6163 echo "$as_me: failed program was:" >&5 6164sed 's/^/| /' conftest.$ac_ext >&5 6165 6166ac_cv_func_remove=no 6167fi 6168rm -f conftest.err conftest.$ac_objext \ 6169 conftest$ac_exeext conftest.$ac_ext 6170fi 6171echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5 6172echo "${ECHO_T}$ac_cv_func_remove" >&6 6173 6174 if test $ac_cv_func_remove = no; then 6175 echo "$as_me:$LINENO: checking for remove in -lposix" >&5 6176echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6 6177if test "${ac_cv_lib_posix_remove+set}" = set; then 6178 echo $ECHO_N "(cached) $ECHO_C" >&6 6179else 6180 ac_check_lib_save_LIBS=$LIBS 6181LIBS="-lposix $LIBS" 6182cat >conftest.$ac_ext <<_ACEOF 6183/* confdefs.h. */ 6184_ACEOF 6185cat confdefs.h >>conftest.$ac_ext 6186cat >>conftest.$ac_ext <<_ACEOF 6187/* end confdefs.h. */ 6188 6189/* Override any gcc2 internal prototype to avoid an error. */ 6190#ifdef __cplusplus 6191extern "C" 6192#endif 6193/* We use char because int might match the return type of a gcc2 6194 builtin and then its argument prototype would still apply. */ 6195char remove (); 6196int 6197main () 6198{ 6199remove (); 6200 ; 6201 return 0; 6202} 6203_ACEOF 6204rm -f conftest.$ac_objext conftest$ac_exeext 6205if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6206 (eval $ac_link) 2>conftest.er1 6207 ac_status=$? 6208 grep -v '^ *+' conftest.er1 >conftest.err 6209 rm -f conftest.er1 6210 cat conftest.err >&5 6211 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6212 (exit $ac_status); } && 6213 { ac_try='test -z "$ac_c_werror_flag" 6214 || test ! -s conftest.err' 6215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6216 (eval $ac_try) 2>&5 6217 ac_status=$? 6218 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6219 (exit $ac_status); }; } && 6220 { ac_try='test -s conftest$ac_exeext' 6221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6222 (eval $ac_try) 2>&5 6223 ac_status=$? 6224 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6225 (exit $ac_status); }; }; then 6226 ac_cv_lib_posix_remove=yes 6227else 6228 echo "$as_me: failed program was:" >&5 6229sed 's/^/| /' conftest.$ac_ext >&5 6230 6231ac_cv_lib_posix_remove=no 6232fi 6233rm -f conftest.err conftest.$ac_objext \ 6234 conftest$ac_exeext conftest.$ac_ext 6235LIBS=$ac_check_lib_save_LIBS 6236fi 6237echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5 6238echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6 6239if test $ac_cv_lib_posix_remove = yes; then 6240 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" 6241fi 6242 6243 fi 6244 6245 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 6246 echo "$as_me:$LINENO: checking for shmat" >&5 6247echo $ECHO_N "checking for shmat... $ECHO_C" >&6 6248if test "${ac_cv_func_shmat+set}" = set; then 6249 echo $ECHO_N "(cached) $ECHO_C" >&6 6250else 6251 cat >conftest.$ac_ext <<_ACEOF 6252/* confdefs.h. */ 6253_ACEOF 6254cat confdefs.h >>conftest.$ac_ext 6255cat >>conftest.$ac_ext <<_ACEOF 6256/* end confdefs.h. */ 6257/* Define shmat to an innocuous variant, in case <limits.h> declares shmat. 6258 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 6259#define shmat innocuous_shmat 6260 6261/* System header to define __stub macros and hopefully few prototypes, 6262 which can conflict with char shmat (); below. 6263 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6264 <limits.h> exists even on freestanding compilers. */ 6265 6266#ifdef __STDC__ 6267# include <limits.h> 6268#else 6269# include <assert.h> 6270#endif 6271 6272#undef shmat 6273 6274/* Override any gcc2 internal prototype to avoid an error. */ 6275#ifdef __cplusplus 6276extern "C" 6277{ 6278#endif 6279/* We use char because int might match the return type of a gcc2 6280 builtin and then its argument prototype would still apply. */ 6281char shmat (); 6282/* The GNU C library defines this for functions which it implements 6283 to always fail with ENOSYS. Some functions are actually named 6284 something starting with __ and the normal name is an alias. */ 6285#if defined (__stub_shmat) || defined (__stub___shmat) 6286choke me 6287#else 6288char (*f) () = shmat; 6289#endif 6290#ifdef __cplusplus 6291} 6292#endif 6293 6294int 6295main () 6296{ 6297return f != shmat; 6298 ; 6299 return 0; 6300} 6301_ACEOF 6302rm -f conftest.$ac_objext conftest$ac_exeext 6303if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6304 (eval $ac_link) 2>conftest.er1 6305 ac_status=$? 6306 grep -v '^ *+' conftest.er1 >conftest.err 6307 rm -f conftest.er1 6308 cat conftest.err >&5 6309 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6310 (exit $ac_status); } && 6311 { ac_try='test -z "$ac_c_werror_flag" 6312 || test ! -s conftest.err' 6313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6314 (eval $ac_try) 2>&5 6315 ac_status=$? 6316 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6317 (exit $ac_status); }; } && 6318 { ac_try='test -s conftest$ac_exeext' 6319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6320 (eval $ac_try) 2>&5 6321 ac_status=$? 6322 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6323 (exit $ac_status); }; }; then 6324 ac_cv_func_shmat=yes 6325else 6326 echo "$as_me: failed program was:" >&5 6327sed 's/^/| /' conftest.$ac_ext >&5 6328 6329ac_cv_func_shmat=no 6330fi 6331rm -f conftest.err conftest.$ac_objext \ 6332 conftest$ac_exeext conftest.$ac_ext 6333fi 6334echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5 6335echo "${ECHO_T}$ac_cv_func_shmat" >&6 6336 6337 if test $ac_cv_func_shmat = no; then 6338 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5 6339echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6 6340if test "${ac_cv_lib_ipc_shmat+set}" = set; then 6341 echo $ECHO_N "(cached) $ECHO_C" >&6 6342else 6343 ac_check_lib_save_LIBS=$LIBS 6344LIBS="-lipc $LIBS" 6345cat >conftest.$ac_ext <<_ACEOF 6346/* confdefs.h. */ 6347_ACEOF 6348cat confdefs.h >>conftest.$ac_ext 6349cat >>conftest.$ac_ext <<_ACEOF 6350/* end confdefs.h. */ 6351 6352/* Override any gcc2 internal prototype to avoid an error. */ 6353#ifdef __cplusplus 6354extern "C" 6355#endif 6356/* We use char because int might match the return type of a gcc2 6357 builtin and then its argument prototype would still apply. */ 6358char shmat (); 6359int 6360main () 6361{ 6362shmat (); 6363 ; 6364 return 0; 6365} 6366_ACEOF 6367rm -f conftest.$ac_objext conftest$ac_exeext 6368if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6369 (eval $ac_link) 2>conftest.er1 6370 ac_status=$? 6371 grep -v '^ *+' conftest.er1 >conftest.err 6372 rm -f conftest.er1 6373 cat conftest.err >&5 6374 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6375 (exit $ac_status); } && 6376 { ac_try='test -z "$ac_c_werror_flag" 6377 || test ! -s conftest.err' 6378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6379 (eval $ac_try) 2>&5 6380 ac_status=$? 6381 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6382 (exit $ac_status); }; } && 6383 { ac_try='test -s conftest$ac_exeext' 6384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6385 (eval $ac_try) 2>&5 6386 ac_status=$? 6387 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6388 (exit $ac_status); }; }; then 6389 ac_cv_lib_ipc_shmat=yes 6390else 6391 echo "$as_me: failed program was:" >&5 6392sed 's/^/| /' conftest.$ac_ext >&5 6393 6394ac_cv_lib_ipc_shmat=no 6395fi 6396rm -f conftest.err conftest.$ac_objext \ 6397 conftest$ac_exeext conftest.$ac_ext 6398LIBS=$ac_check_lib_save_LIBS 6399fi 6400echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5 6401echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6 6402if test $ac_cv_lib_ipc_shmat = yes; then 6403 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" 6404fi 6405 6406 fi 6407 fi 6408 6409 # Check for libraries that X11R6 Xt/Xaw programs need. 6410 ac_save_LDFLAGS=$LDFLAGS 6411 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" 6412 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to 6413 # check for ICE first), but we must link in the order -lSM -lICE or 6414 # we get undefined symbols. So assume we have SM if we have ICE. 6415 # These have to be linked with before -lX11, unlike the other 6416 # libraries we check for below, so use a different variable. 6417 # John Interrante, Karl Berry 6418 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5 6419echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6 6420if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then 6421 echo $ECHO_N "(cached) $ECHO_C" >&6 6422else 6423 ac_check_lib_save_LIBS=$LIBS 6424LIBS="-lICE $X_EXTRA_LIBS $LIBS" 6425cat >conftest.$ac_ext <<_ACEOF 6426/* confdefs.h. */ 6427_ACEOF 6428cat confdefs.h >>conftest.$ac_ext 6429cat >>conftest.$ac_ext <<_ACEOF 6430/* end confdefs.h. */ 6431 6432/* Override any gcc2 internal prototype to avoid an error. */ 6433#ifdef __cplusplus 6434extern "C" 6435#endif 6436/* We use char because int might match the return type of a gcc2 6437 builtin and then its argument prototype would still apply. */ 6438char IceConnectionNumber (); 6439int 6440main () 6441{ 6442IceConnectionNumber (); 6443 ; 6444 return 0; 6445} 6446_ACEOF 6447rm -f conftest.$ac_objext conftest$ac_exeext 6448if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6449 (eval $ac_link) 2>conftest.er1 6450 ac_status=$? 6451 grep -v '^ *+' conftest.er1 >conftest.err 6452 rm -f conftest.er1 6453 cat conftest.err >&5 6454 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6455 (exit $ac_status); } && 6456 { ac_try='test -z "$ac_c_werror_flag" 6457 || test ! -s conftest.err' 6458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6459 (eval $ac_try) 2>&5 6460 ac_status=$? 6461 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6462 (exit $ac_status); }; } && 6463 { ac_try='test -s conftest$ac_exeext' 6464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6465 (eval $ac_try) 2>&5 6466 ac_status=$? 6467 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6468 (exit $ac_status); }; }; then 6469 ac_cv_lib_ICE_IceConnectionNumber=yes 6470else 6471 echo "$as_me: failed program was:" >&5 6472sed 's/^/| /' conftest.$ac_ext >&5 6473 6474ac_cv_lib_ICE_IceConnectionNumber=no 6475fi 6476rm -f conftest.err conftest.$ac_objext \ 6477 conftest$ac_exeext conftest.$ac_ext 6478LIBS=$ac_check_lib_save_LIBS 6479fi 6480echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 6481echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6 6482if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then 6483 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" 6484fi 6485 6486 LDFLAGS=$ac_save_LDFLAGS 6487 6488fi 6489 6490 6491 if test "$OS390Unix" = "yes"; then 6492 CFLAGS="$CFLAGS -W c,dll" 6493 LDFLAGS="$LDFLAGS -W l,dll" 6494 X_EXTRA_LIBS="$X_EXTRA_LIBS -lSM -lICE -lXmu" 6495 fi 6496 6497 6498 if test -d "$x_includes" && test ! -d "$x_libraries"; then 6499 x_libraries=`echo "$x_includes" | sed s/include/lib/` 6500 echo "$as_me:$LINENO: result: Corrected X libraries to $x_libraries" >&5 6501echo "${ECHO_T}Corrected X libraries to $x_libraries" >&6 6502 X_LIBS="$X_LIBS -L$x_libraries" 6503 if test "`(uname) 2>/dev/null`" = SunOS && 6504 uname -r | grep '^5' >/dev/null; then 6505 X_LIBS="$X_LIBS -R $x_libraries" 6506 fi 6507 fi 6508 6509 if test -d "$x_libraries" && test ! -d "$x_includes"; then 6510 x_includes=`echo "$x_libraries" | sed s/lib/include/` 6511 echo "$as_me:$LINENO: result: Corrected X includes to $x_includes" >&5 6512echo "${ECHO_T}Corrected X includes to $x_includes" >&6 6513 X_CFLAGS="$X_CFLAGS -I$x_includes" 6514 fi 6515 6516 X_CFLAGS="`echo $X_CFLAGS\ | sed 's%-I/usr/include %%'`" 6517 X_LIBS="`echo $X_LIBS\ | sed 's%-L/usr/lib %%'`" 6518 X_LIBS="`echo $X_LIBS\ | sed -e 's%-R/usr/lib %%' -e 's%-R /usr/lib %%'`" 6519 6520 6521 echo "$as_me:$LINENO: checking if X11 header files can be found" >&5 6522echo $ECHO_N "checking if X11 header files can be found... $ECHO_C" >&6 6523 cflags_save=$CFLAGS 6524 CFLAGS="$CFLAGS $X_CFLAGS" 6525 cat >conftest.$ac_ext <<_ACEOF 6526/* confdefs.h. */ 6527_ACEOF 6528cat confdefs.h >>conftest.$ac_ext 6529cat >>conftest.$ac_ext <<_ACEOF 6530/* end confdefs.h. */ 6531#include <X11/Xlib.h> 6532int 6533main () 6534{ 6535 6536 ; 6537 return 0; 6538} 6539_ACEOF 6540rm -f conftest.$ac_objext 6541if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6542 (eval $ac_compile) 2>conftest.er1 6543 ac_status=$? 6544 grep -v '^ *+' conftest.er1 >conftest.err 6545 rm -f conftest.er1 6546 cat conftest.err >&5 6547 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6548 (exit $ac_status); } && 6549 { ac_try='test -z "$ac_c_werror_flag" 6550 || test ! -s conftest.err' 6551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6552 (eval $ac_try) 2>&5 6553 ac_status=$? 6554 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6555 (exit $ac_status); }; } && 6556 { ac_try='test -s conftest.$ac_objext' 6557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6558 (eval $ac_try) 2>&5 6559 ac_status=$? 6560 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6561 (exit $ac_status); }; }; then 6562 echo "$as_me:$LINENO: result: yes" >&5 6563echo "${ECHO_T}yes" >&6 6564else 6565 echo "$as_me: failed program was:" >&5 6566sed 's/^/| /' conftest.$ac_ext >&5 6567 6568echo "$as_me:$LINENO: result: no" >&5 6569echo "${ECHO_T}no" >&6; no_x=yes 6570fi 6571rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6572 CFLAGS=$cflags_save 6573 6574 if test "${no_x-no}" = yes; then 6575 with_x=no 6576 else 6577 cat >>confdefs.h <<\_ACEOF 6578#define HAVE_X11 1 6579_ACEOF 6580 6581 X_LIB="-lXt -lX11"; 6582 6583 6584 ac_save_LDFLAGS="$LDFLAGS" 6585 LDFLAGS="-L$x_libraries $LDFLAGS" 6586 6587 echo "$as_me:$LINENO: checking for _XdmcpAuthDoIt in -lXdmcp" >&5 6588echo $ECHO_N "checking for _XdmcpAuthDoIt in -lXdmcp... $ECHO_C" >&6 6589if test "${ac_cv_lib_Xdmcp__XdmcpAuthDoIt+set}" = set; then 6590 echo $ECHO_N "(cached) $ECHO_C" >&6 6591else 6592 ac_check_lib_save_LIBS=$LIBS 6593LIBS="-lXdmcp -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS -lXdmcp $LIBS" 6594cat >conftest.$ac_ext <<_ACEOF 6595/* confdefs.h. */ 6596_ACEOF 6597cat confdefs.h >>conftest.$ac_ext 6598cat >>conftest.$ac_ext <<_ACEOF 6599/* end confdefs.h. */ 6600 6601/* Override any gcc2 internal prototype to avoid an error. */ 6602#ifdef __cplusplus 6603extern "C" 6604#endif 6605/* We use char because int might match the return type of a gcc2 6606 builtin and then its argument prototype would still apply. */ 6607char _XdmcpAuthDoIt (); 6608int 6609main () 6610{ 6611_XdmcpAuthDoIt (); 6612 ; 6613 return 0; 6614} 6615_ACEOF 6616rm -f conftest.$ac_objext conftest$ac_exeext 6617if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6618 (eval $ac_link) 2>conftest.er1 6619 ac_status=$? 6620 grep -v '^ *+' conftest.er1 >conftest.err 6621 rm -f conftest.er1 6622 cat conftest.err >&5 6623 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6624 (exit $ac_status); } && 6625 { ac_try='test -z "$ac_c_werror_flag" 6626 || test ! -s conftest.err' 6627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6628 (eval $ac_try) 2>&5 6629 ac_status=$? 6630 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6631 (exit $ac_status); }; } && 6632 { ac_try='test -s conftest$ac_exeext' 6633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6634 (eval $ac_try) 2>&5 6635 ac_status=$? 6636 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6637 (exit $ac_status); }; }; then 6638 ac_cv_lib_Xdmcp__XdmcpAuthDoIt=yes 6639else 6640 echo "$as_me: failed program was:" >&5 6641sed 's/^/| /' conftest.$ac_ext >&5 6642 6643ac_cv_lib_Xdmcp__XdmcpAuthDoIt=no 6644fi 6645rm -f conftest.err conftest.$ac_objext \ 6646 conftest$ac_exeext conftest.$ac_ext 6647LIBS=$ac_check_lib_save_LIBS 6648fi 6649echo "$as_me:$LINENO: result: $ac_cv_lib_Xdmcp__XdmcpAuthDoIt" >&5 6650echo "${ECHO_T}$ac_cv_lib_Xdmcp__XdmcpAuthDoIt" >&6 6651if test $ac_cv_lib_Xdmcp__XdmcpAuthDoIt = yes; then 6652 X_EXTRA_LIBS="$X_EXTRA_LIBS -lXdmcp" 6653fi 6654 6655 6656 echo "$as_me:$LINENO: checking for IceOpenConnection in -lICE" >&5 6657echo $ECHO_N "checking for IceOpenConnection in -lICE... $ECHO_C" >&6 6658if test "${ac_cv_lib_ICE_IceOpenConnection+set}" = set; then 6659 echo $ECHO_N "(cached) $ECHO_C" >&6 6660else 6661 ac_check_lib_save_LIBS=$LIBS 6662LIBS="-lICE $X_EXTRA_LIBS $LIBS" 6663cat >conftest.$ac_ext <<_ACEOF 6664/* confdefs.h. */ 6665_ACEOF 6666cat confdefs.h >>conftest.$ac_ext 6667cat >>conftest.$ac_ext <<_ACEOF 6668/* end confdefs.h. */ 6669 6670/* Override any gcc2 internal prototype to avoid an error. */ 6671#ifdef __cplusplus 6672extern "C" 6673#endif 6674/* We use char because int might match the return type of a gcc2 6675 builtin and then its argument prototype would still apply. */ 6676char IceOpenConnection (); 6677int 6678main () 6679{ 6680IceOpenConnection (); 6681 ; 6682 return 0; 6683} 6684_ACEOF 6685rm -f conftest.$ac_objext conftest$ac_exeext 6686if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6687 (eval $ac_link) 2>conftest.er1 6688 ac_status=$? 6689 grep -v '^ *+' conftest.er1 >conftest.err 6690 rm -f conftest.er1 6691 cat conftest.err >&5 6692 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6693 (exit $ac_status); } && 6694 { ac_try='test -z "$ac_c_werror_flag" 6695 || test ! -s conftest.err' 6696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6697 (eval $ac_try) 2>&5 6698 ac_status=$? 6699 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6700 (exit $ac_status); }; } && 6701 { ac_try='test -s conftest$ac_exeext' 6702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6703 (eval $ac_try) 2>&5 6704 ac_status=$? 6705 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6706 (exit $ac_status); }; }; then 6707 ac_cv_lib_ICE_IceOpenConnection=yes 6708else 6709 echo "$as_me: failed program was:" >&5 6710sed 's/^/| /' conftest.$ac_ext >&5 6711 6712ac_cv_lib_ICE_IceOpenConnection=no 6713fi 6714rm -f conftest.err conftest.$ac_objext \ 6715 conftest$ac_exeext conftest.$ac_ext 6716LIBS=$ac_check_lib_save_LIBS 6717fi 6718echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceOpenConnection" >&5 6719echo "${ECHO_T}$ac_cv_lib_ICE_IceOpenConnection" >&6 6720if test $ac_cv_lib_ICE_IceOpenConnection = yes; then 6721 X_EXTRA_LIBS="$X_EXTRA_LIBS -lSM -lICE" 6722fi 6723 6724 6725 LDFLAGS="$X_LIBS $ac_save_LDFLAGS" 6726 echo "$as_me:$LINENO: checking for XpmCreatePixmapFromData in -lXpm" >&5 6727echo $ECHO_N "checking for XpmCreatePixmapFromData in -lXpm... $ECHO_C" >&6 6728if test "${ac_cv_lib_Xpm_XpmCreatePixmapFromData+set}" = set; then 6729 echo $ECHO_N "(cached) $ECHO_C" >&6 6730else 6731 ac_check_lib_save_LIBS=$LIBS 6732LIBS="-lXpm -lXt $X_PRE_LIBS -lXpm -lX11 $X_EXTRA_LIBS $LIBS" 6733cat >conftest.$ac_ext <<_ACEOF 6734/* confdefs.h. */ 6735_ACEOF 6736cat confdefs.h >>conftest.$ac_ext 6737cat >>conftest.$ac_ext <<_ACEOF 6738/* end confdefs.h. */ 6739 6740/* Override any gcc2 internal prototype to avoid an error. */ 6741#ifdef __cplusplus 6742extern "C" 6743#endif 6744/* We use char because int might match the return type of a gcc2 6745 builtin and then its argument prototype would still apply. */ 6746char XpmCreatePixmapFromData (); 6747int 6748main () 6749{ 6750XpmCreatePixmapFromData (); 6751 ; 6752 return 0; 6753} 6754_ACEOF 6755rm -f conftest.$ac_objext conftest$ac_exeext 6756if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6757 (eval $ac_link) 2>conftest.er1 6758 ac_status=$? 6759 grep -v '^ *+' conftest.er1 >conftest.err 6760 rm -f conftest.er1 6761 cat conftest.err >&5 6762 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6763 (exit $ac_status); } && 6764 { ac_try='test -z "$ac_c_werror_flag" 6765 || test ! -s conftest.err' 6766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6767 (eval $ac_try) 2>&5 6768 ac_status=$? 6769 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6770 (exit $ac_status); }; } && 6771 { ac_try='test -s conftest$ac_exeext' 6772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6773 (eval $ac_try) 2>&5 6774 ac_status=$? 6775 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6776 (exit $ac_status); }; }; then 6777 ac_cv_lib_Xpm_XpmCreatePixmapFromData=yes 6778else 6779 echo "$as_me: failed program was:" >&5 6780sed 's/^/| /' conftest.$ac_ext >&5 6781 6782ac_cv_lib_Xpm_XpmCreatePixmapFromData=no 6783fi 6784rm -f conftest.err conftest.$ac_objext \ 6785 conftest$ac_exeext conftest.$ac_ext 6786LIBS=$ac_check_lib_save_LIBS 6787fi 6788echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&5 6789echo "${ECHO_T}$ac_cv_lib_Xpm_XpmCreatePixmapFromData" >&6 6790if test $ac_cv_lib_Xpm_XpmCreatePixmapFromData = yes; then 6791 X_PRE_LIBS="$X_PRE_LIBS -lXpm" 6792fi 6793 6794 6795 echo "$as_me:$LINENO: checking if X11 header files implicitly declare return values" >&5 6796echo $ECHO_N "checking if X11 header files implicitly declare return values... $ECHO_C" >&6 6797 cflags_save=$CFLAGS 6798 CFLAGS="$CFLAGS $X_CFLAGS -Werror" 6799 cat >conftest.$ac_ext <<_ACEOF 6800/* confdefs.h. */ 6801_ACEOF 6802cat confdefs.h >>conftest.$ac_ext 6803cat >>conftest.$ac_ext <<_ACEOF 6804/* end confdefs.h. */ 6805#include <X11/Xlib.h> 6806int 6807main () 6808{ 6809 6810 ; 6811 return 0; 6812} 6813_ACEOF 6814rm -f conftest.$ac_objext 6815if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6816 (eval $ac_compile) 2>conftest.er1 6817 ac_status=$? 6818 grep -v '^ *+' conftest.er1 >conftest.err 6819 rm -f conftest.er1 6820 cat conftest.err >&5 6821 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6822 (exit $ac_status); } && 6823 { ac_try='test -z "$ac_c_werror_flag" 6824 || test ! -s conftest.err' 6825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6826 (eval $ac_try) 2>&5 6827 ac_status=$? 6828 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6829 (exit $ac_status); }; } && 6830 { ac_try='test -s conftest.$ac_objext' 6831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6832 (eval $ac_try) 2>&5 6833 ac_status=$? 6834 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6835 (exit $ac_status); }; }; then 6836 echo "$as_me:$LINENO: result: no" >&5 6837echo "${ECHO_T}no" >&6 6838else 6839 echo "$as_me: failed program was:" >&5 6840sed 's/^/| /' conftest.$ac_ext >&5 6841 6842CFLAGS="$CFLAGS -Wno-implicit-int" 6843 cat >conftest.$ac_ext <<_ACEOF 6844/* confdefs.h. */ 6845_ACEOF 6846cat confdefs.h >>conftest.$ac_ext 6847cat >>conftest.$ac_ext <<_ACEOF 6848/* end confdefs.h. */ 6849#include <X11/Xlib.h> 6850int 6851main () 6852{ 6853 6854 ; 6855 return 0; 6856} 6857_ACEOF 6858rm -f conftest.$ac_objext 6859if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6860 (eval $ac_compile) 2>conftest.er1 6861 ac_status=$? 6862 grep -v '^ *+' conftest.er1 >conftest.err 6863 rm -f conftest.er1 6864 cat conftest.err >&5 6865 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6866 (exit $ac_status); } && 6867 { ac_try='test -z "$ac_c_werror_flag" 6868 || test ! -s conftest.err' 6869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6870 (eval $ac_try) 2>&5 6871 ac_status=$? 6872 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6873 (exit $ac_status); }; } && 6874 { ac_try='test -s conftest.$ac_objext' 6875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6876 (eval $ac_try) 2>&5 6877 ac_status=$? 6878 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6879 (exit $ac_status); }; }; then 6880 echo "$as_me:$LINENO: result: yes" >&5 6881echo "${ECHO_T}yes" >&6; cflags_save="$cflags_save -Wno-implicit-int" 6882else 6883 echo "$as_me: failed program was:" >&5 6884sed 's/^/| /' conftest.$ac_ext >&5 6885 6886echo "$as_me:$LINENO: result: test failed" >&5 6887echo "${ECHO_T}test failed" >&6 6888 6889fi 6890rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6891 6892fi 6893rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6894 CFLAGS=$cflags_save 6895 6896 LDFLAGS="$ac_save_LDFLAGS" 6897 6898 fi 6899fi 6900 6901test "x$with_x" = xno -a "x$MACOSX" != "xyes" -a "x$QNX" != "xyes" && enable_gui=no 6902 6903echo "$as_me:$LINENO: checking --enable-gui argument" >&5 6904echo $ECHO_N "checking --enable-gui argument... $ECHO_C" >&6 6905# Check whether --enable-gui or --disable-gui was given. 6906if test "${enable_gui+set}" = set; then 6907 enableval="$enable_gui" 6908 6909else 6910 enable_gui="auto" 6911fi; 6912 6913enable_gui_canon=`echo "_$enable_gui" | \ 6914 sed 's/[ _+-]//g;y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'` 6915 6916SKIP_GTK=YES 6917SKIP_GTK2=YES 6918SKIP_GNOME=YES 6919SKIP_KDE=YES 6920SKIP_MOTIF=YES 6921SKIP_ATHENA=YES 6922SKIP_NEXTAW=YES 6923SKIP_PHOTON=YES 6924SKIP_CARBON=YES 6925GUITYPE=NONE 6926 6927if test "x$QNX" = "xyes" -a "x$with_x" = "xno" ; then 6928 SKIP_PHOTON= 6929 case "$enable_gui_canon" in 6930 no) echo "$as_me:$LINENO: result: no GUI support" >&5 6931echo "${ECHO_T}no GUI support" >&6 6932 SKIP_PHOTON=YES ;; 6933 yes|"") echo "$as_me:$LINENO: result: yes - automatic GUI support" >&5 6934echo "${ECHO_T}yes - automatic GUI support" >&6 ;; 6935 auto) echo "$as_me:$LINENO: result: auto - automatic GUI support" >&5 6936echo "${ECHO_T}auto - automatic GUI support" >&6 ;; 6937 photon) echo "$as_me:$LINENO: result: Photon GUI support" >&5 6938echo "${ECHO_T}Photon GUI support" >&6 ;; 6939 *) echo "$as_me:$LINENO: result: Sorry, $enable_gui GUI is not supported" >&5 6940echo "${ECHO_T}Sorry, $enable_gui GUI is not supported" >&6 6941 SKIP_PHOTON=YES ;; 6942 esac 6943 6944elif test "x$MACOSX" = "xyes" -a "x$with_x" = "xno" ; then 6945 SKIP_CARBON= 6946 case "$enable_gui_canon" in 6947 no) echo "$as_me:$LINENO: result: no GUI support" >&5 6948echo "${ECHO_T}no GUI support" >&6 6949 SKIP_CARBON=YES ;; 6950 yes|"") echo "$as_me:$LINENO: result: yes - automatic GUI support" >&5 6951echo "${ECHO_T}yes - automatic GUI support" >&6 ;; 6952 auto) echo "$as_me:$LINENO: result: auto - automatic GUI support" >&5 6953echo "${ECHO_T}auto - automatic GUI support" >&6 ;; 6954 carbon) echo "$as_me:$LINENO: result: Carbon GUI support" >&5 6955echo "${ECHO_T}Carbon GUI support" >&6 ;; 6956 *) echo "$as_me:$LINENO: result: Sorry, $enable_gui GUI is not supported" >&5 6957echo "${ECHO_T}Sorry, $enable_gui GUI is not supported" >&6 6958 SKIP_CARBON=YES ;; 6959 esac 6960 6961else 6962 6963 case "$enable_gui_canon" in 6964 no|none) echo "$as_me:$LINENO: result: no GUI support" >&5 6965echo "${ECHO_T}no GUI support" >&6 ;; 6966 yes|""|auto) echo "$as_me:$LINENO: result: yes/auto - automatic GUI support" >&5 6967echo "${ECHO_T}yes/auto - automatic GUI support" >&6 6968 SKIP_GTK= 6969 SKIP_GTK2= 6970 SKIP_GNOME= 6971 SKIP_MOTIF= 6972 SKIP_ATHENA= 6973 SKIP_NEXTAW= 6974 SKIP_CARBON=;; 6975 kde|Kde|KDE) echo "$as_me:$LINENO: result: KDE 2.x or 3.x GUI support" >&5 6976echo "${ECHO_T}KDE 2.x or 3.x GUI support" >&6 6977 SKIP_KDE=;; 6978 gtk) echo "$as_me:$LINENO: result: GTK+ 1.x GUI support" >&5 6979echo "${ECHO_T}GTK+ 1.x GUI support" >&6 6980 SKIP_GTK=;; 6981 gtk2) echo "$as_me:$LINENO: result: GTK+ 2.x GUI support" >&5 6982echo "${ECHO_T}GTK+ 2.x GUI support" >&6 6983 SKIP_GTK= 6984 SKIP_GTK2=;; 6985 gnome) echo "$as_me:$LINENO: result: GNOME 1.x GUI support" >&5 6986echo "${ECHO_T}GNOME 1.x GUI support" >&6 6987 SKIP_GNOME= 6988 SKIP_GTK=;; 6989 gnome2) echo "$as_me:$LINENO: result: GNOME 2.x GUI support" >&5 6990echo "${ECHO_T}GNOME 2.x GUI support" >&6 6991 SKIP_GNOME= 6992 SKIP_GTK= 6993 SKIP_GTK2=;; 6994 motif) echo "$as_me:$LINENO: result: Motif GUI support" >&5 6995echo "${ECHO_T}Motif GUI support" >&6 6996 SKIP_MOTIF=;; 6997 athena) echo "$as_me:$LINENO: result: Athena GUI support" >&5 6998echo "${ECHO_T}Athena GUI support" >&6 6999 SKIP_ATHENA=;; 7000 nextaw) echo "$as_me:$LINENO: result: neXtaw GUI support" >&5 7001echo "${ECHO_T}neXtaw GUI support" >&6 7002 SKIP_NEXTAW=;; 7003 *) echo "$as_me:$LINENO: result: Sorry, $enable_gui GUI is not supported" >&5 7004echo "${ECHO_T}Sorry, $enable_gui GUI is not supported" >&6 ;; 7005 esac 7006 7007fi 7008 7009if test "x$SKIP_KDE" != "xYES" -a "$enable_gui_canon" != "kde"; then 7010 echo "$as_me:$LINENO: checking whether or not to look for KDE" >&5 7011echo $ECHO_N "checking whether or not to look for KDE... $ECHO_C" >&6 7012 # Check whether --enable-kde-check or --disable-kde-check was given. 7013if test "${enable_kde_check+set}" = set; then 7014 enableval="$enable_kde_check" 7015 7016else 7017 enable_kde_check="no" 7018fi; 7019 echo "$as_me:$LINENO: result: $enable_kde_check" >&5 7020echo "${ECHO_T}$enable_kde_check" >&6; 7021 if test "x$enable_kde_check" = "xno"; then 7022 SKIP_KDE=YES 7023 fi 7024fi 7025 7026if test "x$SKIP_GTK" != "xYES" -a "$enable_gui_canon" != "gtk" -a "$enable_gui_canon" != "gtk2"; then 7027 echo "$as_me:$LINENO: checking whether or not to look for GTK" >&5 7028echo $ECHO_N "checking whether or not to look for GTK... $ECHO_C" >&6 7029 # Check whether --enable-gtk-check or --disable-gtk-check was given. 7030if test "${enable_gtk_check+set}" = set; then 7031 enableval="$enable_gtk_check" 7032 7033else 7034 enable_gtk_check="yes" 7035fi; 7036 echo "$as_me:$LINENO: result: $enable_gtk_check" >&5 7037echo "${ECHO_T}$enable_gtk_check" >&6 7038 if test "x$enable_gtk_check" = "xno"; then 7039 SKIP_GTK=YES 7040 SKIP_GNOME=YES 7041 fi 7042fi 7043 7044if test "x$SKIP_GTK2" != "xYES" -a "$enable_gui_canon" != "gtk2" \ 7045 -a "$enable_gui_canon" != "gnome2"; then 7046 echo "$as_me:$LINENO: checking whether or not to look for GTK+ 2" >&5 7047echo $ECHO_N "checking whether or not to look for GTK+ 2... $ECHO_C" >&6 7048 # Check whether --enable-gtk2-check or --disable-gtk2-check was given. 7049if test "${enable_gtk2_check+set}" = set; then 7050 enableval="$enable_gtk2_check" 7051 7052else 7053 enable_gtk2_check="yes" 7054fi; 7055 echo "$as_me:$LINENO: result: $enable_gtk2_check" >&5 7056echo "${ECHO_T}$enable_gtk2_check" >&6 7057 if test "x$enable_gtk2_check" = "xno"; then 7058 SKIP_GTK2=YES 7059 fi 7060fi 7061 7062if test "x$SKIP_GNOME" != "xYES" -a "$enable_gui_canon" != "gnome" \ 7063 -a "$enable_gui_canon" != "gnome2"; then 7064 echo "$as_me:$LINENO: checking whether or not to look for GNOME" >&5 7065echo $ECHO_N "checking whether or not to look for GNOME... $ECHO_C" >&6 7066 # Check whether --enable-gnome-check or --disable-gnome-check was given. 7067if test "${enable_gnome_check+set}" = set; then 7068 enableval="$enable_gnome_check" 7069 7070else 7071 enable_gnome_check="no" 7072fi; 7073 echo "$as_me:$LINENO: result: $enable_gnome_check" >&5 7074echo "${ECHO_T}$enable_gnome_check" >&6 7075 if test "x$enable_gnome_check" = "xno"; then 7076 SKIP_GNOME=YES 7077 fi 7078fi 7079 7080if test "x$SKIP_MOTIF" != "xYES" -a "$enable_gui_canon" != "motif"; then 7081 echo "$as_me:$LINENO: checking whether or not to look for Motif" >&5 7082echo $ECHO_N "checking whether or not to look for Motif... $ECHO_C" >&6 7083 # Check whether --enable-motif-check or --disable-motif-check was given. 7084if test "${enable_motif_check+set}" = set; then 7085 enableval="$enable_motif_check" 7086 7087else 7088 enable_motif_check="yes" 7089fi; 7090 echo "$as_me:$LINENO: result: $enable_motif_check" >&5 7091echo "${ECHO_T}$enable_motif_check" >&6 7092 if test "x$enable_motif_check" = "xno"; then 7093 SKIP_MOTIF=YES 7094 fi 7095fi 7096 7097if test "x$SKIP_ATHENA" != "xYES" -a "$enable_gui_canon" != "athena"; then 7098 echo "$as_me:$LINENO: checking whether or not to look for Athena" >&5 7099echo $ECHO_N "checking whether or not to look for Athena... $ECHO_C" >&6 7100 # Check whether --enable-athena-check or --disable-athena-check was given. 7101if test "${enable_athena_check+set}" = set; then 7102 enableval="$enable_athena_check" 7103 7104else 7105 enable_athena_check="yes" 7106fi; 7107 echo "$as_me:$LINENO: result: $enable_athena_check" >&5 7108echo "${ECHO_T}$enable_athena_check" >&6 7109 if test "x$enable_athena_check" = "xno"; then 7110 SKIP_ATHENA=YES 7111 fi 7112fi 7113 7114if test "x$SKIP_NEXTAW" != "xYES" -a "$enable_gui_canon" != "nextaw"; then 7115 echo "$as_me:$LINENO: checking whether or not to look for neXtaw" >&5 7116echo $ECHO_N "checking whether or not to look for neXtaw... $ECHO_C" >&6 7117 # Check whether --enable-nextaw-check or --disable-nextaw-check was given. 7118if test "${enable_nextaw_check+set}" = set; then 7119 enableval="$enable_nextaw_check" 7120 7121else 7122 enable_nextaw_check="yes" 7123fi; 7124 echo "$as_me:$LINENO: result: $enable_nextaw_check" >&5 7125echo "${ECHO_T}$enable_nextaw_check" >&6; 7126 if test "x$enable_nextaw_check" = "xno"; then 7127 SKIP_NEXTAW=YES 7128 fi 7129fi 7130 7131if test "x$SKIP_CARBON" != "xYES" -a "$enable_gui_canon" != "carbon"; then 7132 echo "$as_me:$LINENO: checking whether or not to look for Carbon" >&5 7133echo $ECHO_N "checking whether or not to look for Carbon... $ECHO_C" >&6 7134 # Check whether --enable-carbon-check or --disable-carbon-check was given. 7135if test "${enable_carbon_check+set}" = set; then 7136 enableval="$enable_carbon_check" 7137 7138else 7139 enable_carbon_check="yes" 7140fi; 7141 echo "$as_me:$LINENO: result: $enable_carbon_check" >&5 7142echo "${ECHO_T}$enable_carbon_check" >&6; 7143 if test "x$enable_carbon_check" = "xno"; then 7144 SKIP_CARBON=YES 7145 fi 7146fi 7147 7148 7149if test -z "$SKIP_KDE"; then 7150 7151# Check whether --with-qt-dir or --without-qt-dir was given. 7152if test "${with_qt_dir+set}" = set; then 7153 withval="$with_qt_dir" 7154 7155 ROOTQT="$withval" 7156 MOC="$withval"/bin/moc 7157 QT_INCLUDES="$withval"/include 7158 QT_LIBS="$withval"/lib 7159 7160fi; 7161 7162if test "x$ROOTQT" = "x"; then 7163 if test -z "$QTDIR"; then 7164 # Extract the first word of "moc", so it can be a program name with args. 7165set dummy moc; ac_word=$2 7166echo "$as_me:$LINENO: checking for $ac_word" >&5 7167echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 7168if test "${ac_cv_path_MOC+set}" = set; then 7169 echo $ECHO_N "(cached) $ECHO_C" >&6 7170else 7171 case $MOC in 7172 [\\/]* | ?:[\\/]*) 7173 ac_cv_path_MOC="$MOC" # Let the user override the test with a path. 7174 ;; 7175 *) 7176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7177for as_dir in $PATH 7178do 7179 IFS=$as_save_IFS 7180 test -z "$as_dir" && as_dir=. 7181 for ac_exec_ext in '' $ac_executable_extensions; do 7182 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7183 ac_cv_path_MOC="$as_dir/$ac_word$ac_exec_ext" 7184 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7185 break 2 7186 fi 7187done 7188done 7189 7190 test -z "$ac_cv_path_MOC" && ac_cv_path_MOC="no" 7191 ;; 7192esac 7193fi 7194MOC=$ac_cv_path_MOC 7195 7196if test -n "$MOC"; then 7197 echo "$as_me:$LINENO: result: $MOC" >&5 7198echo "${ECHO_T}$MOC" >&6 7199else 7200 echo "$as_me:$LINENO: result: no" >&5 7201echo "${ECHO_T}no" >&6 7202fi 7203 7204 if test "x$MOC" = "xno"; then 7205 { { echo "$as_me:$LINENO: error: could not find Qt directory" >&5 7206echo "$as_me: error: could not find Qt directory" >&2;} 7207 { (exit 1); exit 1; }; } 7208 else 7209 ROOTQT=`echo $MOC | sed 's+/bin/moc++'` 7210 fi 7211 else 7212 ROOTQT="$QTDIR" 7213 fi 7214fi 7215MOC="$ROOTQT"/bin/moc 7216QT_INCLUDES="$ROOTQT"/include 7217QT_LIBS="$ROOTQT"/lib 7218 7219 7220# Check whether --with-qt-includes or --without-qt-includes was given. 7221if test "${with_qt_includes+set}" = set; then 7222 withval="$with_qt_includes" 7223 QT_INCLUDES="$withval" 7224 7225fi; 7226 7227 7228# Check whether --with-qt-libraries or --without-qt-libraries was given. 7229if test "${with_qt_libraries+set}" = set; then 7230 withval="$with_qt_libraries" 7231 QT_LIBS="$withval" 7232 7233fi; 7234 7235if test "x$QT_LIBS" = "x" ; then 7236 QT_LIBS="$ROOTQT"/lib 7237fi 7238if test "x$QT_INCLUDES" = "x" ; then 7239 QT_INCLUDES="$ROOTQT"/include 7240fi 7241 7242echo "$as_me:$LINENO: checking whether or not to use a KDE Toolbar in KVim" >&5 7243echo $ECHO_N "checking whether or not to use a KDE Toolbar in KVim... $ECHO_C" >&6 7244# Check whether --enable-kde-toolbar or --disable-kde-toolbar was given. 7245if test "${enable_kde_toolbar+set}" = set; then 7246 enableval="$enable_kde_toolbar" 7247 7248else 7249 enable_kde_toolbar="no" 7250fi; 7251if test "x$enable_kde_toolbar" != "xno"; then 7252 cat >>confdefs.h <<\_ACEOF 7253#define FEAT_KDETOOLBAR 1 7254_ACEOF 7255 7256fi 7257echo "$as_me:$LINENO: result: $enable_kde_toolbar" >&5 7258echo "${ECHO_T}$enable_kde_toolbar" >&6; 7259fi 7260 7261 7262if test -z "$SKIP_KDE"; then 7263 7264 7265 7266 7267echo "$as_me:$LINENO: checking --disable-rpath argument" >&5 7268echo $ECHO_N "checking --disable-rpath argument... $ECHO_C" >&6 7269# Check whether --enable-rpath or --disable-rpath was given. 7270if test "${enable_rpath+set}" = set; then 7271 enableval="$enable_rpath" 7272 7273else 7274 enable_rpath="yes" 7275fi; 7276if test "$enable_rpath" = "yes"; then 7277 echo "$as_me:$LINENO: result: no" >&5 7278echo "${ECHO_T}no" >&6 7279else 7280 echo "$as_me:$LINENO: result: yes" >&5 7281echo "${ECHO_T}yes" >&6 7282fi 7283 7284echo "$as_me:$LINENO: checking --with-kde-prefix argument" >&5 7285echo $ECHO_N "checking --with-kde-prefix argument... $ECHO_C" >&6 7286 7287# Check whether --with-kde-prefix or --without-kde-prefix was given. 7288if test "${with_kde_prefix+set}" = set; then 7289 withval="$with_kde_prefix" 7290 kde_config_prefix="$withval"; 7291echo "$as_me:$LINENO: result: $kde_config_prefix" >&5 7292echo "${ECHO_T}$kde_config_prefix" >&6 7293else 7294 kde_config_prefix="";echo "$as_me:$LINENO: result: no" >&5 7295echo "${ECHO_T}no" >&6 7296fi; 7297 7298 7299# Check whether --with-kde-includes or --without-kde-includes was given. 7300if test "${with_kde_includes+set}" = set; then 7301 withval="$with_kde_includes" 7302 KDE_INCLUDES="$withval" 7303 7304fi; 7305 7306 7307# Check whether --with-kde-libraries or --without-kde-libraries was given. 7308if test "${with_kde_libraries+set}" = set; then 7309 withval="$with_kde_libraries" 7310 KDE_LIBS="$withval" 7311 7312fi; 7313 7314echo "$as_me:$LINENO: checking --disable-kdetest argument" >&5 7315echo $ECHO_N "checking --disable-kdetest argument... $ECHO_C" >&6 7316# Check whether --enable-kdetest or --disable-kdetest was given. 7317if test "${enable_kdetest+set}" = set; then 7318 enableval="$enable_kdetest" 7319 enable_kdetest=yes 7320fi; 7321 7322if test "x$enable_kdetest" = "xyes" ; then 7323 echo "$as_me:$LINENO: result: kde test enabled" >&5 7324echo "${ECHO_T}kde test enabled" >&6 7325else 7326 echo "$as_me:$LINENO: result: kde test disabled" >&5 7327echo "${ECHO_T}kde test disabled" >&6 7328fi 7329 7330if test "x$kde_config_prefix" != "x" ; then 7331 KDE_CONFIG=$kde_config_prefix/bin/kde-config 7332fi 7333 7334if test "X$KDE_CONFIG" = "X"; then 7335 # Extract the first word of "kde-config", so it can be a program name with args. 7336set dummy kde-config; ac_word=$2 7337echo "$as_me:$LINENO: checking for $ac_word" >&5 7338echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 7339if test "${ac_cv_path_KDE_CONFIG+set}" = set; then 7340 echo $ECHO_N "(cached) $ECHO_C" >&6 7341else 7342 case $KDE_CONFIG in 7343 [\\/]* | ?:[\\/]*) 7344 ac_cv_path_KDE_CONFIG="$KDE_CONFIG" # Let the user override the test with a path. 7345 ;; 7346 *) 7347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7348for as_dir in $PATH 7349do 7350 IFS=$as_save_IFS 7351 test -z "$as_dir" && as_dir=. 7352 for ac_exec_ext in '' $ac_executable_extensions; do 7353 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7354 ac_cv_path_KDE_CONFIG="$as_dir/$ac_word$ac_exec_ext" 7355 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7356 break 2 7357 fi 7358done 7359done 7360 7361 test -z "$ac_cv_path_KDE_CONFIG" && ac_cv_path_KDE_CONFIG="no" 7362 ;; 7363esac 7364fi 7365KDE_CONFIG=$ac_cv_path_KDE_CONFIG 7366 7367if test -n "$KDE_CONFIG"; then 7368 echo "$as_me:$LINENO: result: $KDE_CONFIG" >&5 7369echo "${ECHO_T}$KDE_CONFIG" >&6 7370else 7371 echo "$as_me:$LINENO: result: no" >&5 7372echo "${ECHO_T}no" >&6 7373fi 7374 7375else 7376 echo "$as_me:$LINENO: result: Using KDE configuration program $KDE_CONFIG" >&5 7377echo "${ECHO_T}Using KDE configuration program $KDE_CONFIG" >&6 7378fi 7379 7380if test "X$KDE_CONFIG" != "X" ; then 7381 7382 if test "X$KDE_CONFIG" != "X"; then 7383 min_kde_version=2.0.0 7384 echo "$as_me:$LINENO: checking for KDE version >= $min_kde_version" >&5 7385echo $ECHO_N "checking for KDE version >= $min_kde_version... $ECHO_C" >&6 7386 no_kde="" 7387 if test "$KDE_CONFIG" = "no" ; then 7388 no_kde=yes 7389 else 7390 KDE_PREFIX=`$KDE_CONFIG --prefix` 7391 if test "x$KDE_LIBS" = "x"; then 7392 KDE_LIBS="$KDE_PREFIX/lib" 7393 fi 7394 if test "x$KDE_INCLUDES" = "x"; then 7395 KDE_INCLUDES="$KDE_PREFIX/include" 7396 if test -d "$KDE_INCLUDES/kde"; then 7397 KDE_INCLUDES="$KDE_INCLUDES/kde" 7398 fi 7399 fi 7400 kde_major_version=`$KDE_CONFIG --version | grep KDE | \ 7401sed 's/KDE:\ //' | sed 's/\([0-9]*\).\([0-9]*.*\)/\1/'` 7402 kde_minor_version=`$KDE_CONFIG --version | grep KDE | \ 7403sed 's/KDE:\ //' | sed 's/\([0-9]*\).\([0-9]*.*\)/\2/'` 7404 7405 qt_major_version=`$KDE_CONFIG --version | grep Qt | sed -e \ 7406's/Qt:\ //' | sed 's/\([0-9]*\).\([0-9]*.*\)/\1/'` 7407 qt_minor_version=`$KDE_CONFIG --version | grep Qt | sed -e \ 7408's/Qt:\ //' | sed 's/\([0-9]*\).\([0-9]*.*\)/\2/'` 7409 7410 if test "x$enable-kdetest" = "xyes" ; then 7411 ac_save_LIBS="$LIBS" 7412 LIBS="$LIBS $KDE_LIBS" 7413 7414 if test "$cross_compiling" = yes; then 7415 echo $ac_n "cross compiling KDE ? ? how can i remove that ? :)" 7416else 7417 cat >conftest.$ac_ext <<_ACEOF 7418/* confdefs.h. */ 7419_ACEOF 7420cat confdefs.h >>conftest.$ac_ext 7421cat >>conftest.$ac_ext <<_ACEOF 7422/* end confdefs.h. */ 7423 7424#include <stdio.h> 7425int 7426main() 7427{ return 0; } 7428 7429_ACEOF 7430rm -f conftest$ac_exeext 7431if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7432 (eval $ac_link) 2>&5 7433 ac_status=$? 7434 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7435 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 7436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7437 (eval $ac_try) 2>&5 7438 ac_status=$? 7439 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7440 (exit $ac_status); }; }; then 7441 : 7442else 7443 echo "$as_me: program exited with status $ac_status" >&5 7444echo "$as_me: failed program was:" >&5 7445sed 's/^/| /' conftest.$ac_ext >&5 7446 7447( exit $ac_status ) 7448no_kde=yes 7449fi 7450rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 7451fi 7452 LIBS="$ac_save_LIBS" 7453 fi 7454 fi 7455 if test "x$no_kde" = x ; then 7456 echo "$as_me:$LINENO: result: found KDE $kde_major_version.$kde_minor_version" >&5 7457echo "${ECHO_T}found KDE $kde_major_version.$kde_minor_version" >&6 7458 GUI_LIB_LOC="-L$KDE_LIBS -lkdeui -lkdecore -lDCOP" 7459 GUI_INC_LOC="-I$KDE_INCLUDES" 7460 KDEDIR="$KDE_PREFIX" 7461 else 7462 echo "$as_me:$LINENO: result: no" >&5 7463echo "${ECHO_T}no" >&6 7464 KDE_LIBS="" 7465 : 7466 fi 7467else 7468 echo "$as_me:$LINENO: result: no" >&5 7469echo "${ECHO_T}no" >&6 7470 KDE_LIBS="" 7471 : 7472fi 7473 7474 7475 7476 7477 7478 if test "x$KDE_PREFIX" != "x"; then 7479 echo "$as_me:$LINENO: checking for QT version $qt_major_version.x" >&5 7480echo $ECHO_N "checking for QT version $qt_major_version.x... $ECHO_C" >&6 7481 if test "x$ROOTQT" != "x" ; then 7482 GUI_INC_LOC="-I$QT_INCLUDES $GUI_INC_LOC" 7483 if test $qt_major_version -lt 2; then 7484 { { echo "$as_me:$LINENO: error: Your QT version is prior to 2.0; KDE 2.x and 3.x require at least QT 2" >&5 7485echo "$as_me: error: Your QT version is prior to 2.0; KDE 2.x and 3.x require at least QT 2" >&2;} 7486 { (exit 1); exit 1; }; } 7487 fi 7488 if test "`(uname) 2>/dev/null`" = "FreeBSD"; then 7489 CFLAGS="$CFLAGS -D_THREAD_SAFE" 7490 CXXFLAGS="$CXXFLAGS -D_THREAD_SAFE" 7491 GUI_LIB_LOC="$GUI_LIB_LOC -pthread" 7492 LIBS="$LIBS -pthread" 7493 fi 7494 7495 if test "x$enable_rpath" = "xyes"; then 7496 if test $qt_major_version = 2; then 7497 GUI_LIB_LOC="-L$KDE_LIBS -lkfile -L$QT_LIBS -lqt $GUI_LIB_LOC \ 7498-Wl,--rpath -Wl,$KDE_LIBS -Wl,--rpath -Wl,$QT_LIBS" 7499 else 7500 GUI_LIB_LOC="-L$KDE_LIBS -lkio -L$QT_LIBS -lqt-mt $GUI_LIB_LOC \ 7501-Wl,--rpath -Wl,$KDE_LIBS -Wl,--rpath -Wl,$QT_LIBS" 7502 fi 7503 else 7504 if test $qt_major_version = 2; then 7505 GUI_LIB_LOC="-L$KDE_LIBS -lkfile -L$QT_LIBS -lqt $GUI_LIB_LOC" 7506 else 7507 GUI_LIB_LOC="-L$KDE_LIBS -lkio -L$QT_LIBS -lqt-mt $GUI_LIB_LOC" 7508 fi 7509 fi 7510 7511 GUI_INC_LOC="`echo $GUI_INC_LOC\ | sed 's%-I/usr/include %%'`" 7512 7513 echo "$as_me:$LINENO: result: found $qt_major_version.$qt_minor_version in $ROOTQT" >&5 7514echo "${ECHO_T}found $qt_major_version.$qt_minor_version in $ROOTQT" >&6 7515 7516 7517 qt_incdir=NO 7518 for i in $QT_INCLUDES; 7519 do 7520 for j in qstyle.h; 7521 do 7522 echo "configure: 7522: $i/$j" >&5 7523 if test -r "$i/$j"; then 7524 echo "taking that" >&5 7525 qt_incdir=$i 7526 break 2 7527 fi 7528 done 7529 done 7530 7531 if test "x$qt_incdir" = "xNO"; then 7532 { { echo "$as_me:$LINENO: error: Could not find Qt headers in $QT_INCLUDES" >&5 7533echo "$as_me: error: Could not find Qt headers in $QT_INCLUDES" >&2;} 7534 { (exit 1); exit 1; }; } 7535 fi 7536 7537 kde_incdir=NO 7538 for i in $KDE_INCLUDES; 7539 do 7540 for j in kapplication.h; 7541 do 7542 echo "configure: 7542: $i/$j" >&5 7543 if test -r "$i/$j"; then 7544 echo "taking that" >&5 7545 kde_incdir=$i 7546 break 2 7547 fi 7548 done 7549 done 7550 7551 if test "x$kde_incdir" = "xNO"; then 7552 { { echo "$as_me:$LINENO: error: Could not find KDE headers in $KDE_INCLUDES" >&5 7553echo "$as_me: error: Could not find KDE headers in $KDE_INCLUDES" >&2;} 7554 { (exit 1); exit 1; }; } 7555 fi 7556 7557 7558 7559 ac_ext=cc 7560ac_cpp='$CXXCPP $CPPFLAGS' 7561ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7562ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7563ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 7564 7565 ac_ext=cc 7566ac_cpp='$CXXCPP $CPPFLAGS' 7567ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7568ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7569ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 7570if test -n "$ac_tool_prefix"; then 7571 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC 7572 do 7573 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 7574set dummy $ac_tool_prefix$ac_prog; ac_word=$2 7575echo "$as_me:$LINENO: checking for $ac_word" >&5 7576echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 7577if test "${ac_cv_prog_CXX+set}" = set; then 7578 echo $ECHO_N "(cached) $ECHO_C" >&6 7579else 7580 if test -n "$CXX"; then 7581 ac_cv_prog_CXX="$CXX" # Let the user override the test. 7582else 7583as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7584for as_dir in $PATH 7585do 7586 IFS=$as_save_IFS 7587 test -z "$as_dir" && as_dir=. 7588 for ac_exec_ext in '' $ac_executable_extensions; do 7589 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7590 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 7591 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7592 break 2 7593 fi 7594done 7595done 7596 7597fi 7598fi 7599CXX=$ac_cv_prog_CXX 7600if test -n "$CXX"; then 7601 echo "$as_me:$LINENO: result: $CXX" >&5 7602echo "${ECHO_T}$CXX" >&6 7603else 7604 echo "$as_me:$LINENO: result: no" >&5 7605echo "${ECHO_T}no" >&6 7606fi 7607 7608 test -n "$CXX" && break 7609 done 7610fi 7611if test -z "$CXX"; then 7612 ac_ct_CXX=$CXX 7613 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC 7614do 7615 # Extract the first word of "$ac_prog", so it can be a program name with args. 7616set dummy $ac_prog; ac_word=$2 7617echo "$as_me:$LINENO: checking for $ac_word" >&5 7618echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 7619if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 7620 echo $ECHO_N "(cached) $ECHO_C" >&6 7621else 7622 if test -n "$ac_ct_CXX"; then 7623 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 7624else 7625as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7626for as_dir in $PATH 7627do 7628 IFS=$as_save_IFS 7629 test -z "$as_dir" && as_dir=. 7630 for ac_exec_ext in '' $ac_executable_extensions; do 7631 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7632 ac_cv_prog_ac_ct_CXX="$ac_prog" 7633 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7634 break 2 7635 fi 7636done 7637done 7638 7639fi 7640fi 7641ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 7642if test -n "$ac_ct_CXX"; then 7643 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 7644echo "${ECHO_T}$ac_ct_CXX" >&6 7645else 7646 echo "$as_me:$LINENO: result: no" >&5 7647echo "${ECHO_T}no" >&6 7648fi 7649 7650 test -n "$ac_ct_CXX" && break 7651done 7652test -n "$ac_ct_CXX" || ac_ct_CXX="g++" 7653 7654 CXX=$ac_ct_CXX 7655fi 7656 7657 7658# Provide some information about the compiler. 7659echo "$as_me:$LINENO:" \ 7660 "checking for C++ compiler version" >&5 7661ac_compiler=`set X $ac_compile; echo $2` 7662{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 7663 (eval $ac_compiler --version </dev/null >&5) 2>&5 7664 ac_status=$? 7665 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7666 (exit $ac_status); } 7667{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 7668 (eval $ac_compiler -v </dev/null >&5) 2>&5 7669 ac_status=$? 7670 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7671 (exit $ac_status); } 7672{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 7673 (eval $ac_compiler -V </dev/null >&5) 2>&5 7674 ac_status=$? 7675 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7676 (exit $ac_status); } 7677 7678echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 7679echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 7680if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 7681 echo $ECHO_N "(cached) $ECHO_C" >&6 7682else 7683 cat >conftest.$ac_ext <<_ACEOF 7684/* confdefs.h. */ 7685_ACEOF 7686cat confdefs.h >>conftest.$ac_ext 7687cat >>conftest.$ac_ext <<_ACEOF 7688/* end confdefs.h. */ 7689 7690int 7691main () 7692{ 7693#ifndef __GNUC__ 7694 choke me 7695#endif 7696 7697 ; 7698 return 0; 7699} 7700_ACEOF 7701rm -f conftest.$ac_objext 7702if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7703 (eval $ac_compile) 2>conftest.er1 7704 ac_status=$? 7705 grep -v '^ *+' conftest.er1 >conftest.err 7706 rm -f conftest.er1 7707 cat conftest.err >&5 7708 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7709 (exit $ac_status); } && 7710 { ac_try='test -z "$ac_cxx_werror_flag" 7711 || test ! -s conftest.err' 7712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7713 (eval $ac_try) 2>&5 7714 ac_status=$? 7715 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7716 (exit $ac_status); }; } && 7717 { ac_try='test -s conftest.$ac_objext' 7718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7719 (eval $ac_try) 2>&5 7720 ac_status=$? 7721 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7722 (exit $ac_status); }; }; then 7723 ac_compiler_gnu=yes 7724else 7725 echo "$as_me: failed program was:" >&5 7726sed 's/^/| /' conftest.$ac_ext >&5 7727 7728ac_compiler_gnu=no 7729fi 7730rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7731ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 7732 7733fi 7734echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 7735echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 7736GXX=`test $ac_compiler_gnu = yes && echo yes` 7737ac_test_CXXFLAGS=${CXXFLAGS+set} 7738ac_save_CXXFLAGS=$CXXFLAGS 7739CXXFLAGS="-g" 7740echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 7741echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 7742if test "${ac_cv_prog_cxx_g+set}" = set; then 7743 echo $ECHO_N "(cached) $ECHO_C" >&6 7744else 7745 cat >conftest.$ac_ext <<_ACEOF 7746/* confdefs.h. */ 7747_ACEOF 7748cat confdefs.h >>conftest.$ac_ext 7749cat >>conftest.$ac_ext <<_ACEOF 7750/* end confdefs.h. */ 7751 7752int 7753main () 7754{ 7755 7756 ; 7757 return 0; 7758} 7759_ACEOF 7760rm -f conftest.$ac_objext 7761if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7762 (eval $ac_compile) 2>conftest.er1 7763 ac_status=$? 7764 grep -v '^ *+' conftest.er1 >conftest.err 7765 rm -f conftest.er1 7766 cat conftest.err >&5 7767 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7768 (exit $ac_status); } && 7769 { ac_try='test -z "$ac_cxx_werror_flag" 7770 || test ! -s conftest.err' 7771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7772 (eval $ac_try) 2>&5 7773 ac_status=$? 7774 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7775 (exit $ac_status); }; } && 7776 { ac_try='test -s conftest.$ac_objext' 7777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7778 (eval $ac_try) 2>&5 7779 ac_status=$? 7780 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7781 (exit $ac_status); }; }; then 7782 ac_cv_prog_cxx_g=yes 7783else 7784 echo "$as_me: failed program was:" >&5 7785sed 's/^/| /' conftest.$ac_ext >&5 7786 7787ac_cv_prog_cxx_g=no 7788fi 7789rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7790fi 7791echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 7792echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 7793if test "$ac_test_CXXFLAGS" = set; then 7794 CXXFLAGS=$ac_save_CXXFLAGS 7795elif test $ac_cv_prog_cxx_g = yes; then 7796 if test "$GXX" = yes; then 7797 CXXFLAGS="-g -O2" 7798 else 7799 CXXFLAGS="-g" 7800 fi 7801else 7802 if test "$GXX" = yes; then 7803 CXXFLAGS="-O2" 7804 else 7805 CXXFLAGS= 7806 fi 7807fi 7808for ac_declaration in \ 7809 '' \ 7810 'extern "C" void std::exit (int) throw (); using std::exit;' \ 7811 'extern "C" void std::exit (int); using std::exit;' \ 7812 'extern "C" void exit (int) throw ();' \ 7813 'extern "C" void exit (int);' \ 7814 'void exit (int);' 7815do 7816 cat >conftest.$ac_ext <<_ACEOF 7817/* confdefs.h. */ 7818_ACEOF 7819cat confdefs.h >>conftest.$ac_ext 7820cat >>conftest.$ac_ext <<_ACEOF 7821/* end confdefs.h. */ 7822$ac_declaration 7823#include <stdlib.h> 7824int 7825main () 7826{ 7827exit (42); 7828 ; 7829 return 0; 7830} 7831_ACEOF 7832rm -f conftest.$ac_objext 7833if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7834 (eval $ac_compile) 2>conftest.er1 7835 ac_status=$? 7836 grep -v '^ *+' conftest.er1 >conftest.err 7837 rm -f conftest.er1 7838 cat conftest.err >&5 7839 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7840 (exit $ac_status); } && 7841 { ac_try='test -z "$ac_cxx_werror_flag" 7842 || test ! -s conftest.err' 7843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7844 (eval $ac_try) 2>&5 7845 ac_status=$? 7846 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7847 (exit $ac_status); }; } && 7848 { ac_try='test -s conftest.$ac_objext' 7849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7850 (eval $ac_try) 2>&5 7851 ac_status=$? 7852 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7853 (exit $ac_status); }; }; then 7854 : 7855else 7856 echo "$as_me: failed program was:" >&5 7857sed 's/^/| /' conftest.$ac_ext >&5 7858 7859continue 7860fi 7861rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7862 cat >conftest.$ac_ext <<_ACEOF 7863/* confdefs.h. */ 7864_ACEOF 7865cat confdefs.h >>conftest.$ac_ext 7866cat >>conftest.$ac_ext <<_ACEOF 7867/* end confdefs.h. */ 7868$ac_declaration 7869int 7870main () 7871{ 7872exit (42); 7873 ; 7874 return 0; 7875} 7876_ACEOF 7877rm -f conftest.$ac_objext 7878if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7879 (eval $ac_compile) 2>conftest.er1 7880 ac_status=$? 7881 grep -v '^ *+' conftest.er1 >conftest.err 7882 rm -f conftest.er1 7883 cat conftest.err >&5 7884 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7885 (exit $ac_status); } && 7886 { ac_try='test -z "$ac_cxx_werror_flag" 7887 || test ! -s conftest.err' 7888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7889 (eval $ac_try) 2>&5 7890 ac_status=$? 7891 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7892 (exit $ac_status); }; } && 7893 { ac_try='test -s conftest.$ac_objext' 7894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7895 (eval $ac_try) 2>&5 7896 ac_status=$? 7897 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7898 (exit $ac_status); }; }; then 7899 break 7900else 7901 echo "$as_me: failed program was:" >&5 7902sed 's/^/| /' conftest.$ac_ext >&5 7903 7904fi 7905rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7906done 7907rm -f conftest* 7908if test -n "$ac_declaration"; then 7909 echo '#ifdef __cplusplus' >>confdefs.h 7910 echo $ac_declaration >>confdefs.h 7911 echo '#endif' >>confdefs.h 7912fi 7913 7914ac_ext=cc 7915ac_cpp='$CXXCPP $CPPFLAGS' 7916ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7917ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7918ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 7919 7920 ac_save_LIBS="$LIBS" 7921 LIBS="$GUI_LIB_LOC" 7922 ac_save_CXXFLAGS="$CXXFLAGS" 7923 CXXFLAGS="$CXXFLAGS $GUI_INC_LOC" 7924 echo "$as_me:$LINENO: checking whether Qt libraries are usable" >&5 7925echo $ECHO_N "checking whether Qt libraries are usable... $ECHO_C" >&6 7926 7927cat >conftest.$ac_ext <<_ACEOF 7928/* confdefs.h. */ 7929_ACEOF 7930cat confdefs.h >>conftest.$ac_ext 7931cat >>conftest.$ac_ext <<_ACEOF 7932/* end confdefs.h. */ 7933#include <qapplication.h> 7934int 7935main () 7936{ 7937 7938 int argc; 7939 char** argv; 7940 QApplication app(argc, argv); 7941 7942 ; 7943 return 0; 7944} 7945_ACEOF 7946rm -f conftest.$ac_objext conftest$ac_exeext 7947if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7948 (eval $ac_link) 2>conftest.er1 7949 ac_status=$? 7950 grep -v '^ *+' conftest.er1 >conftest.err 7951 rm -f conftest.er1 7952 cat conftest.err >&5 7953 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7954 (exit $ac_status); } && 7955 { ac_try='test -z "$ac_cxx_werror_flag" 7956 || test ! -s conftest.err' 7957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7958 (eval $ac_try) 2>&5 7959 ac_status=$? 7960 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7961 (exit $ac_status); }; } && 7962 { ac_try='test -s conftest$ac_exeext' 7963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7964 (eval $ac_try) 2>&5 7965 ac_status=$? 7966 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7967 (exit $ac_status); }; }; then 7968 echo "$as_me:$LINENO: result: yes" >&5 7969echo "${ECHO_T}yes" >&6 7970else 7971 echo "$as_me: failed program was:" >&5 7972sed 's/^/| /' conftest.$ac_ext >&5 7973 7974echo "$as_me:$LINENO: result: no" >&5 7975echo "${ECHO_T}no" >&6;{ { echo "$as_me:$LINENO: error: Qt fails to link a simple application" >&5 7976echo "$as_me: error: Qt fails to link a simple application" >&2;} 7977 { (exit check your installation and settings); exit check your installation and settings; }; } 7978fi 7979rm -f conftest.err conftest.$ac_objext \ 7980 conftest$ac_exeext conftest.$ac_ext 7981 7982 echo "$as_me:$LINENO: checking whether KDE libraries are usable" >&5 7983echo $ECHO_N "checking whether KDE libraries are usable... $ECHO_C" >&6 7984 cat >conftest.$ac_ext <<_ACEOF 7985/* confdefs.h. */ 7986_ACEOF 7987cat confdefs.h >>conftest.$ac_ext 7988cat >>conftest.$ac_ext <<_ACEOF 7989/* end confdefs.h. */ 7990#include <kapplication.h> 7991int 7992main () 7993{ 7994 7995 int argc; 7996 char** argv; 7997 KApplication app(argc, argv); 7998 7999 ; 8000 return 0; 8001} 8002_ACEOF 8003rm -f conftest.$ac_objext conftest$ac_exeext 8004if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8005 (eval $ac_link) 2>conftest.er1 8006 ac_status=$? 8007 grep -v '^ *+' conftest.er1 >conftest.err 8008 rm -f conftest.er1 8009 cat conftest.err >&5 8010 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8011 (exit $ac_status); } && 8012 { ac_try='test -z "$ac_cxx_werror_flag" 8013 || test ! -s conftest.err' 8014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8015 (eval $ac_try) 2>&5 8016 ac_status=$? 8017 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8018 (exit $ac_status); }; } && 8019 { ac_try='test -s conftest$ac_exeext' 8020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8021 (eval $ac_try) 2>&5 8022 ac_status=$? 8023 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8024 (exit $ac_status); }; }; then 8025 echo "$as_me:$LINENO: result: yes" >&5 8026echo "${ECHO_T}yes" >&6 8027else 8028 echo "$as_me: failed program was:" >&5 8029sed 's/^/| /' conftest.$ac_ext >&5 8030 8031echo "$as_me:$LINENO: result: no" >&5 8032echo "${ECHO_T}no" >&6;{ { echo "$as_me:$LINENO: error: KDE fails to link a simple application" >&5 8033echo "$as_me: error: KDE fails to link a simple application" >&2;} 8034 { (exit check your installation and settings); exit check your installation and settings; }; } 8035fi 8036rm -f conftest.err conftest.$ac_objext \ 8037 conftest$ac_exeext conftest.$ac_ext 8038 8039 LIBS="$ac_save_LIBS" 8040 CXXFLAGS="$ac_save_CXXFLAGS" 8041 ac_ext=c 8042ac_cpp='$CPP $CPPFLAGS' 8043ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8044ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8045ac_compiler_gnu=$ac_cv_c_compiler_gnu 8046 8047 8048 8049 SKIP_GTK=YES 8050 SKIP_ATHENA=YES 8051 SKIP_MOTIF=YES 8052 GUITYPE=KDE 8053 8054 8055 8056 8057 8058 cat >>confdefs.h <<\_ACEOF 8059#define FEAT_GUI_KDE 1 8060_ACEOF 8061 8062 else 8063 { { echo "$as_me:$LINENO: error: Detected QT version mismatched" >&5 8064echo "$as_me: error: Detected QT version mismatched" >&2;} 8065 { (exit 1); exit 1; }; } 8066 fi 8067 else 8068 { { echo "$as_me:$LINENO: error: Could not find KDE installation prefix" >&5 8069echo "$as_me: error: Could not find KDE installation prefix" >&2;} 8070 { (exit 1); exit 1; }; } 8071 fi 8072fi 8073fi 8074 8075if test "x$MACOSX" = "xyes" -a -z "$SKIP_CARBON" -a "x$CARBON" = "xyes"; then 8076 echo "$as_me:$LINENO: checking for Carbon GUI" >&5 8077echo $ECHO_N "checking for Carbon GUI... $ECHO_C" >&6 8078 echo "$as_me:$LINENO: result: yes" >&5 8079echo "${ECHO_T}yes" >&6; 8080 GUITYPE=CARBONGUI 8081 if test "$VIMNAME" = "vim"; then 8082 VIMNAME=Vim 8083 fi 8084 SKIP_GTK=YES; 8085 SKIP_GTK2=YES; 8086 SKIP_GNOME=YES; 8087 SKIP_MOTIF=YES; 8088 SKIP_ATHENA=YES; 8089 SKIP_NEXTAW=YES; 8090 SKIP_PHOTON=YES; 8091 SKIP_CARBON=YES 8092fi 8093 8094 8095 8096 8097 8098 8099 8100 8101 8102if test -z "$SKIP_GTK"; then 8103 8104 echo "$as_me:$LINENO: checking --with-gtk-prefix argument" >&5 8105echo $ECHO_N "checking --with-gtk-prefix argument... $ECHO_C" >&6 8106 8107# Check whether --with-gtk-prefix or --without-gtk-prefix was given. 8108if test "${with_gtk_prefix+set}" = set; then 8109 withval="$with_gtk_prefix" 8110 gtk_config_prefix="$withval"; echo "$as_me:$LINENO: result: $gtk_config_prefix" >&5 8111echo "${ECHO_T}$gtk_config_prefix" >&6 8112else 8113 gtk_config_prefix=""; echo "$as_me:$LINENO: result: no" >&5 8114echo "${ECHO_T}no" >&6 8115fi; 8116 8117 echo "$as_me:$LINENO: checking --with-gtk-exec-prefix argument" >&5 8118echo $ECHO_N "checking --with-gtk-exec-prefix argument... $ECHO_C" >&6 8119 8120# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. 8121if test "${with_gtk_exec_prefix+set}" = set; then 8122 withval="$with_gtk_exec_prefix" 8123 gtk_config_exec_prefix="$withval"; echo "$as_me:$LINENO: result: $gtk_config_prefix" >&5 8124echo "${ECHO_T}$gtk_config_prefix" >&6 8125else 8126 gtk_config_exec_prefix=""; echo "$as_me:$LINENO: result: no" >&5 8127echo "${ECHO_T}no" >&6 8128fi; 8129 8130 echo "$as_me:$LINENO: checking --disable-gtktest argument" >&5 8131echo $ECHO_N "checking --disable-gtktest argument... $ECHO_C" >&6 8132 # Check whether --enable-gtktest or --disable-gtktest was given. 8133if test "${enable_gtktest+set}" = set; then 8134 enableval="$enable_gtktest" 8135 8136else 8137 enable_gtktest=yes 8138fi; 8139 if test "x$enable_gtktest" = "xyes" ; then 8140 echo "$as_me:$LINENO: result: gtk test enabled" >&5 8141echo "${ECHO_T}gtk test enabled" >&6 8142 else 8143 echo "$as_me:$LINENO: result: gtk test disabled" >&5 8144echo "${ECHO_T}gtk test disabled" >&6 8145 fi 8146 8147 if test "x$gtk_config_prefix" != "x" ; then 8148 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" 8149 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config 8150 fi 8151 if test "x$gtk_config_exec_prefix" != "x" ; then 8152 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" 8153 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config 8154 fi 8155 if test "X$GTK_CONFIG" = "X"; then 8156 # Extract the first word of "gtk-config", so it can be a program name with args. 8157set dummy gtk-config; ac_word=$2 8158echo "$as_me:$LINENO: checking for $ac_word" >&5 8159echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 8160if test "${ac_cv_path_GTK_CONFIG+set}" = set; then 8161 echo $ECHO_N "(cached) $ECHO_C" >&6 8162else 8163 case $GTK_CONFIG in 8164 [\\/]* | ?:[\\/]*) 8165 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. 8166 ;; 8167 *) 8168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8169for as_dir in $PATH 8170do 8171 IFS=$as_save_IFS 8172 test -z "$as_dir" && as_dir=. 8173 for ac_exec_ext in '' $ac_executable_extensions; do 8174 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8175 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext" 8176 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 8177 break 2 8178 fi 8179done 8180done 8181 8182 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" 8183 ;; 8184esac 8185fi 8186GTK_CONFIG=$ac_cv_path_GTK_CONFIG 8187 8188if test -n "$GTK_CONFIG"; then 8189 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5 8190echo "${ECHO_T}$GTK_CONFIG" >&6 8191else 8192 echo "$as_me:$LINENO: result: no" >&5 8193echo "${ECHO_T}no" >&6 8194fi 8195 8196 if test "X$GTK_CONFIG" = "Xno"; then 8197 # Extract the first word of "gtk12-config", so it can be a program name with args. 8198set dummy gtk12-config; ac_word=$2 8199echo "$as_me:$LINENO: checking for $ac_word" >&5 8200echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 8201if test "${ac_cv_path_GTK12_CONFIG+set}" = set; then 8202 echo $ECHO_N "(cached) $ECHO_C" >&6 8203else 8204 case $GTK12_CONFIG in 8205 [\\/]* | ?:[\\/]*) 8206 ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a path. 8207 ;; 8208 *) 8209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8210for as_dir in $PATH 8211do 8212 IFS=$as_save_IFS 8213 test -z "$as_dir" && as_dir=. 8214 for ac_exec_ext in '' $ac_executable_extensions; do 8215 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8216 ac_cv_path_GTK12_CONFIG="$as_dir/$ac_word$ac_exec_ext" 8217 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 8218 break 2 8219 fi 8220done 8221done 8222 8223 test -z "$ac_cv_path_GTK12_CONFIG" && ac_cv_path_GTK12_CONFIG="no" 8224 ;; 8225esac 8226fi 8227GTK12_CONFIG=$ac_cv_path_GTK12_CONFIG 8228 8229if test -n "$GTK12_CONFIG"; then 8230 echo "$as_me:$LINENO: result: $GTK12_CONFIG" >&5 8231echo "${ECHO_T}$GTK12_CONFIG" >&6 8232else 8233 echo "$as_me:$LINENO: result: no" >&5 8234echo "${ECHO_T}no" >&6 8235fi 8236 8237 GTK_CONFIG="$GTK12_CONFIG" 8238 fi 8239 else 8240 echo "$as_me:$LINENO: result: Using GTK configuration program $GTK_CONFIG" >&5 8241echo "${ECHO_T}Using GTK configuration program $GTK_CONFIG" >&6 8242 fi 8243 if test "X$PKG_CONFIG" = "X"; then 8244 # Extract the first word of "pkg-config", so it can be a program name with args. 8245set dummy pkg-config; ac_word=$2 8246echo "$as_me:$LINENO: checking for $ac_word" >&5 8247echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 8248if test "${ac_cv_path_PKG_CONFIG+set}" = set; then 8249 echo $ECHO_N "(cached) $ECHO_C" >&6 8250else 8251 case $PKG_CONFIG in 8252 [\\/]* | ?:[\\/]*) 8253 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 8254 ;; 8255 *) 8256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8257for as_dir in $PATH 8258do 8259 IFS=$as_save_IFS 8260 test -z "$as_dir" && as_dir=. 8261 for ac_exec_ext in '' $ac_executable_extensions; do 8262 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8263 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 8264 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 8265 break 2 8266 fi 8267done 8268done 8269 8270 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" 8271 ;; 8272esac 8273fi 8274PKG_CONFIG=$ac_cv_path_PKG_CONFIG 8275 8276if test -n "$PKG_CONFIG"; then 8277 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 8278echo "${ECHO_T}$PKG_CONFIG" >&6 8279else 8280 echo "$as_me:$LINENO: result: no" >&5 8281echo "${ECHO_T}no" >&6 8282fi 8283 8284 fi 8285 8286 if test "x$GTK_CONFIG:$PKG_CONFIG" != "xno:no"; then 8287 if test "X$SKIP_GTK2" != "XYES"; then 8288 8289 if test "X$GTK_CONFIG" != "Xno" -o "X$PKG_CONFIG" != "Xno"; then 8290 { 8291 min_gtk_version=2.2.0 8292 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5 8293echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6 8294 no_gtk="" 8295 if (test "X$SKIP_GTK2" != "XYES" -a "X$PKG_CONFIG" != "Xno") \ 8296 && $PKG_CONFIG --exists gtk+-2.0; then 8297 { 8298 GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0` 8299 GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk+-2.0` 8300 GTK_LIBS=`$PKG_CONFIG --libs gtk+-2.0` 8301 gtk_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ 8302 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'` 8303 gtk_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ 8304 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'` 8305 gtk_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ 8306 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'` 8307 } 8308 elif test "X$GTK_CONFIG" != "Xno"; then 8309 { 8310 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` 8311 GTK_LIBDIR= 8312 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` 8313 gtk_major_version=`$GTK_CONFIG $gtk_config_args --version | \ 8314 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'` 8315 gtk_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ 8316 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'` 8317 gtk_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ 8318 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'` 8319 } 8320 else 8321 no_gtk=yes 8322 fi 8323 8324 if test "x$enable_gtktest" = "xyes" -a "x$no_gtk" = "x"; then 8325 { 8326 ac_save_CFLAGS="$CFLAGS" 8327 ac_save_LIBS="$LIBS" 8328 CFLAGS="$CFLAGS $GTK_CFLAGS" 8329 LIBS="$LIBS $GTK_LIBS" 8330 8331 rm -f conf.gtktest 8332 if test "$cross_compiling" = yes; then 8333 echo $ac_n "cross compiling; assumed OK... $ac_c" 8334else 8335 cat >conftest.$ac_ext <<_ACEOF 8336/* confdefs.h. */ 8337_ACEOF 8338cat confdefs.h >>conftest.$ac_ext 8339cat >>conftest.$ac_ext <<_ACEOF 8340/* end confdefs.h. */ 8341 8342#include <gtk/gtk.h> 8343#include <stdio.h> 8344 8345int 8346main () 8347{ 8348int major, minor, micro; 8349char *tmp_version; 8350 8351system ("touch conf.gtktest"); 8352 8353/* HP/UX 9 (%@#!) writes to sscanf strings */ 8354tmp_version = g_strdup("$min_gtk_version"); 8355if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { 8356 printf("%s, bad version string\n", "$min_gtk_version"); 8357 exit(1); 8358 } 8359 8360if ((gtk_major_version > major) || 8361 ((gtk_major_version == major) && (gtk_minor_version > minor)) || 8362 ((gtk_major_version == major) && (gtk_minor_version == minor) && 8363 (gtk_micro_version >= micro))) 8364{ 8365 return 0; 8366} 8367return 1; 8368} 8369 8370_ACEOF 8371rm -f conftest$ac_exeext 8372if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8373 (eval $ac_link) 2>&5 8374 ac_status=$? 8375 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8376 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 8377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8378 (eval $ac_try) 2>&5 8379 ac_status=$? 8380 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8381 (exit $ac_status); }; }; then 8382 : 8383else 8384 echo "$as_me: program exited with status $ac_status" >&5 8385echo "$as_me: failed program was:" >&5 8386sed 's/^/| /' conftest.$ac_ext >&5 8387 8388( exit $ac_status ) 8389no_gtk=yes 8390fi 8391rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 8392fi 8393 CFLAGS="$ac_save_CFLAGS" 8394 LIBS="$ac_save_LIBS" 8395 } 8396 fi 8397 if test "x$no_gtk" = x ; then 8398 if test "x$enable_gtktest" = "xyes"; then 8399 echo "$as_me:$LINENO: result: yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5 8400echo "${ECHO_T}yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6 8401 else 8402 echo "$as_me:$LINENO: result: found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5 8403echo "${ECHO_T}found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6 8404 fi 8405 GUI_LIB_LOC="$GTK_LIBDIR" 8406 GTK_LIBNAME="$GTK_LIBS" 8407 GUI_INC_LOC="$GTK_CFLAGS" 8408 else 8409 { 8410 echo "$as_me:$LINENO: result: no" >&5 8411echo "${ECHO_T}no" >&6 8412 GTK_CFLAGS="" 8413 GTK_LIBS="" 8414 : 8415 } 8416 fi 8417 } 8418 else 8419 GTK_CFLAGS="" 8420 GTK_LIBS="" 8421 : 8422 fi 8423 8424 8425 rm -f conf.gtktest 8426 8427 if test "x$GTK_CFLAGS" != "x"; then 8428 SKIP_ATHENA=YES 8429 SKIP_NEXTAW=YES 8430 SKIP_MOTIF=YES 8431 GUITYPE=GTK 8432 8433 fi 8434 fi 8435 8436 if test "x$GUITYPE" != "xGTK"; then 8437 SKIP_GTK2=YES 8438 8439 if test "X$GTK_CONFIG" != "Xno" -o "X$PKG_CONFIG" != "Xno"; then 8440 { 8441 min_gtk_version=1.1.16 8442 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5 8443echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6 8444 no_gtk="" 8445 if (test "X$SKIP_GTK2" != "XYES" -a "X$PKG_CONFIG" != "Xno") \ 8446 && $PKG_CONFIG --exists gtk+-2.0; then 8447 { 8448 GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0` 8449 GTK_LIBDIR=`$PKG_CONFIG --libs-only-L gtk+-2.0` 8450 GTK_LIBS=`$PKG_CONFIG --libs gtk+-2.0` 8451 gtk_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ 8452 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'` 8453 gtk_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ 8454 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'` 8455 gtk_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ 8456 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'` 8457 } 8458 elif test "X$GTK_CONFIG" != "Xno"; then 8459 { 8460 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` 8461 GTK_LIBDIR= 8462 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` 8463 gtk_major_version=`$GTK_CONFIG $gtk_config_args --version | \ 8464 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'` 8465 gtk_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ 8466 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'` 8467 gtk_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ 8468 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'` 8469 } 8470 else 8471 no_gtk=yes 8472 fi 8473 8474 if test "x$enable_gtktest" = "xyes" -a "x$no_gtk" = "x"; then 8475 { 8476 ac_save_CFLAGS="$CFLAGS" 8477 ac_save_LIBS="$LIBS" 8478 CFLAGS="$CFLAGS $GTK_CFLAGS" 8479 LIBS="$LIBS $GTK_LIBS" 8480 8481 rm -f conf.gtktest 8482 if test "$cross_compiling" = yes; then 8483 echo $ac_n "cross compiling; assumed OK... $ac_c" 8484else 8485 cat >conftest.$ac_ext <<_ACEOF 8486/* confdefs.h. */ 8487_ACEOF 8488cat confdefs.h >>conftest.$ac_ext 8489cat >>conftest.$ac_ext <<_ACEOF 8490/* end confdefs.h. */ 8491 8492#include <gtk/gtk.h> 8493#include <stdio.h> 8494 8495int 8496main () 8497{ 8498int major, minor, micro; 8499char *tmp_version; 8500 8501system ("touch conf.gtktest"); 8502 8503/* HP/UX 9 (%@#!) writes to sscanf strings */ 8504tmp_version = g_strdup("$min_gtk_version"); 8505if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { 8506 printf("%s, bad version string\n", "$min_gtk_version"); 8507 exit(1); 8508 } 8509 8510if ((gtk_major_version > major) || 8511 ((gtk_major_version == major) && (gtk_minor_version > minor)) || 8512 ((gtk_major_version == major) && (gtk_minor_version == minor) && 8513 (gtk_micro_version >= micro))) 8514{ 8515 return 0; 8516} 8517return 1; 8518} 8519 8520_ACEOF 8521rm -f conftest$ac_exeext 8522if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8523 (eval $ac_link) 2>&5 8524 ac_status=$? 8525 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8526 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 8527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8528 (eval $ac_try) 2>&5 8529 ac_status=$? 8530 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8531 (exit $ac_status); }; }; then 8532 : 8533else 8534 echo "$as_me: program exited with status $ac_status" >&5 8535echo "$as_me: failed program was:" >&5 8536sed 's/^/| /' conftest.$ac_ext >&5 8537 8538( exit $ac_status ) 8539no_gtk=yes 8540fi 8541rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 8542fi 8543 CFLAGS="$ac_save_CFLAGS" 8544 LIBS="$ac_save_LIBS" 8545 } 8546 fi 8547 if test "x$no_gtk" = x ; then 8548 if test "x$enable_gtktest" = "xyes"; then 8549 echo "$as_me:$LINENO: result: yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5 8550echo "${ECHO_T}yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6 8551 else 8552 echo "$as_me:$LINENO: result: found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&5 8553echo "${ECHO_T}found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" >&6 8554 fi 8555 GTK_LIBNAME="$GTK_LIBS" 8556 GUI_INC_LOC="$GTK_CFLAGS" 8557 else 8558 { 8559 echo "$as_me:$LINENO: result: no" >&5 8560echo "${ECHO_T}no" >&6 8561 GTK_CFLAGS="" 8562 GTK_LIBS="" 8563 : 8564 } 8565 fi 8566 } 8567 else 8568 GTK_CFLAGS="" 8569 GTK_LIBS="" 8570 : 8571 fi 8572 8573 8574 rm -f conf.gtktest 8575 8576 if test "x$GTK_CFLAGS" != "x"; then 8577 SKIP_ATHENA=YES 8578 SKIP_NEXTAW=YES 8579 SKIP_MOTIF=YES 8580 GUITYPE=GTK 8581 8582 fi 8583 fi 8584 fi 8585 if test "x$GUITYPE" = "xGTK"; then 8586 if test "$gtk_major_version" = 1 -a "0$gtk_minor_version" -lt 2 \ 8587 -o "$gtk_major_version" = 1 -a "$gtk_minor_version" = 2 -a "0$gtk_micro_version" -lt 3; then 8588 echo "$as_me:$LINENO: result: this GTK version is old; version 1.2.3 or later is recommended" >&5 8589echo "${ECHO_T}this GTK version is old; version 1.2.3 or later is recommended" >&6 8590 else 8591 { 8592 if test "0$gtk_major_version" -ge 2; then 8593 cat >>confdefs.h <<\_ACEOF 8594#define HAVE_GTK2 1 8595_ACEOF 8596 8597 if test "$gtk_minor_version" = 1 -a "0$gtk_micro_version" -ge 1 \ 8598 || test "0$gtk_minor_version" -ge 2 \ 8599 || test "0$gtk_major_version" -gt 2; then 8600 cat >>confdefs.h <<\_ACEOF 8601#define HAVE_GTK_MULTIHEAD 1 8602_ACEOF 8603 8604 fi 8605 fi 8606 if test -z "$SKIP_GNOME"; then 8607 { 8608 8609 8610 8611 8612 8613 8614# Check whether --with-gnome-includes or --without-gnome-includes was given. 8615if test "${with_gnome_includes+set}" = set; then 8616 withval="$with_gnome_includes" 8617 CFLAGS="$CFLAGS -I$withval" 8618 8619fi; 8620 8621 8622# Check whether --with-gnome-libs or --without-gnome-libs was given. 8623if test "${with_gnome_libs+set}" = set; then 8624 withval="$with_gnome_libs" 8625 LDFLAGS="$LDFLAGS -L$withval" gnome_prefix=$withval 8626 8627fi; 8628 8629 8630# Check whether --with-gnome or --without-gnome was given. 8631if test "${with_gnome+set}" = set; then 8632 withval="$with_gnome" 8633 if test x$withval = xyes; then 8634 want_gnome=yes 8635 have_gnome=yes 8636 else 8637 if test "x$withval" = xno; then 8638 want_gnome=no 8639 else 8640 want_gnome=yes 8641 LDFLAGS="$LDFLAGS -L$withval/lib" 8642 CFLAGS="$CFLAGS -I$withval/include" 8643 gnome_prefix=$withval/lib 8644 fi 8645 fi 8646else 8647 want_gnome=yes 8648fi; 8649 8650 if test "x$want_gnome" = xyes -a "0$gtk_major_version" -ge 2; then 8651 { 8652 echo "$as_me:$LINENO: checking for libgnomeui-2.0" >&5 8653echo $ECHO_N "checking for libgnomeui-2.0... $ECHO_C" >&6 8654 if $PKG_CONFIG --exists libgnomeui-2.0; then 8655 echo "$as_me:$LINENO: result: yes" >&5 8656echo "${ECHO_T}yes" >&6 8657 GNOME_LIBS=`$PKG_CONFIG --libs-only-l libgnomeui-2.0` 8658 GNOME_LIBDIR=`$PKG_CONFIG --libs-only-L libgnomeui-2.0` 8659 GNOME_INCLUDEDIR=`$PKG_CONFIG --cflags libgnomeui-2.0` 8660 have_gnome=yes 8661 else 8662 echo "$as_me:$LINENO: result: not found" >&5 8663echo "${ECHO_T}not found" >&6 8664 if test "x" = xfail; then 8665 { { echo "$as_me:$LINENO: error: Could not find libgnomeui-2.0 via pkg-config" >&5 8666echo "$as_me: error: Could not find libgnomeui-2.0 via pkg-config" >&2;} 8667 { (exit 1); exit 1; }; } 8668 fi 8669 fi 8670 } 8671 elif test "x$want_gnome" = xyes; then 8672 { 8673 # Extract the first word of "gnome-config", so it can be a program name with args. 8674set dummy gnome-config; ac_word=$2 8675echo "$as_me:$LINENO: checking for $ac_word" >&5 8676echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 8677if test "${ac_cv_path_GNOME_CONFIG+set}" = set; then 8678 echo $ECHO_N "(cached) $ECHO_C" >&6 8679else 8680 case $GNOME_CONFIG in 8681 [\\/]* | ?:[\\/]*) 8682 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path. 8683 ;; 8684 *) 8685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8686for as_dir in $PATH 8687do 8688 IFS=$as_save_IFS 8689 test -z "$as_dir" && as_dir=. 8690 for ac_exec_ext in '' $ac_executable_extensions; do 8691 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8692 ac_cv_path_GNOME_CONFIG="$as_dir/$ac_word$ac_exec_ext" 8693 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 8694 break 2 8695 fi 8696done 8697done 8698 8699 test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no" 8700 ;; 8701esac 8702fi 8703GNOME_CONFIG=$ac_cv_path_GNOME_CONFIG 8704 8705if test -n "$GNOME_CONFIG"; then 8706 echo "$as_me:$LINENO: result: $GNOME_CONFIG" >&5 8707echo "${ECHO_T}$GNOME_CONFIG" >&6 8708else 8709 echo "$as_me:$LINENO: result: no" >&5 8710echo "${ECHO_T}no" >&6 8711fi 8712 8713 if test "$GNOME_CONFIG" = "no"; then 8714 no_gnome_config="yes" 8715 else 8716 echo "$as_me:$LINENO: checking if $GNOME_CONFIG works" >&5 8717echo $ECHO_N "checking if $GNOME_CONFIG works... $ECHO_C" >&6 8718 if $GNOME_CONFIG --libs-only-l gnome >/dev/null 2>&1; then 8719 echo "$as_me:$LINENO: result: yes" >&5 8720echo "${ECHO_T}yes" >&6 8721 GNOME_LIBS="`$GNOME_CONFIG --libs-only-l gnome gnomeui`" 8722 GNOME_LIBDIR="`$GNOME_CONFIG --libs-only-L gnorba gnomeui`" 8723 GNOME_INCLUDEDIR="`$GNOME_CONFIG --cflags gnorba gnomeui`" 8724 have_gnome=yes 8725 else 8726 echo "$as_me:$LINENO: result: no" >&5 8727echo "${ECHO_T}no" >&6 8728 no_gnome_config="yes" 8729 fi 8730 fi 8731 8732 if test x$exec_prefix = xNONE; then 8733 if test x$prefix = xNONE; then 8734 gnome_prefix=$ac_default_prefix/lib 8735 else 8736 gnome_prefix=$prefix/lib 8737 fi 8738 else 8739 gnome_prefix=`eval echo \`echo $libdir\`` 8740 fi 8741 8742 if test "$no_gnome_config" = "yes"; then 8743 echo "$as_me:$LINENO: checking for gnomeConf.sh file in $gnome_prefix" >&5 8744echo $ECHO_N "checking for gnomeConf.sh file in $gnome_prefix... $ECHO_C" >&6 8745 if test -f $gnome_prefix/gnomeConf.sh; then 8746 echo "$as_me:$LINENO: result: found" >&5 8747echo "${ECHO_T}found" >&6 8748 echo "loading gnome configuration from" \ 8749 "$gnome_prefix/gnomeConf.sh" 8750 . $gnome_prefix/gnomeConf.sh 8751 have_gnome=yes 8752 else 8753 echo "$as_me:$LINENO: result: not found" >&5 8754echo "${ECHO_T}not found" >&6 8755 if test x = xfail; then 8756 { { echo "$as_me:$LINENO: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&5 8757echo "$as_me: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&2;} 8758 { (exit 1); exit 1; }; } 8759 fi 8760 fi 8761 fi 8762 } 8763 fi 8764 8765 if test x$have_gnome = xyes ; then 8766 cat >>confdefs.h <<\_ACEOF 8767#define FEAT_GUI_GNOME 1 8768_ACEOF 8769 8770 GUI_INC_LOC="$GUI_INC_LOC $GNOME_INCLUDEDIR" 8771 GTK_LIBNAME="$GTK_LIBNAME $GNOME_LIBDIR $GNOME_LIBS" 8772 fi 8773 } 8774 fi 8775 } 8776 fi 8777 fi 8778fi 8779 8780 8781if test -z "$SKIP_MOTIF"; then 8782 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" 8783 GUI_INC_LOC="`echo $GUI_INC_LOC|sed 's%-I%%g'`" 8784 8785 echo "$as_me:$LINENO: checking for location of Motif GUI includes" >&5 8786echo $ECHO_N "checking for location of Motif GUI includes... $ECHO_C" >&6 8787 gui_includes="`echo $x_includes|sed 's%/^/^/*$%%'` `echo "$gui_XXX" | sed s/XXX/include/g` $GUI_INC_LOC" 8788 GUI_INC_LOC= 8789 for try in $gui_includes; do 8790 if test -f "$try/Xm/Xm.h"; then 8791 GUI_INC_LOC=$try 8792 fi 8793 done 8794 if test -n "$GUI_INC_LOC"; then 8795 if test "$GUI_INC_LOC" = /usr/include; then 8796 GUI_INC_LOC= 8797 echo "$as_me:$LINENO: result: in default path" >&5 8798echo "${ECHO_T}in default path" >&6 8799 else 8800 echo "$as_me:$LINENO: result: $GUI_INC_LOC" >&5 8801echo "${ECHO_T}$GUI_INC_LOC" >&6 8802 fi 8803 else 8804 echo "$as_me:$LINENO: result: <not found>" >&5 8805echo "${ECHO_T}<not found>" >&6 8806 SKIP_MOTIF=YES 8807 fi 8808fi 8809 8810 8811if test -z "$SKIP_MOTIF"; then 8812 echo "$as_me:$LINENO: checking --with-motif-lib argument" >&5 8813echo $ECHO_N "checking --with-motif-lib argument... $ECHO_C" >&6 8814 8815# Check whether --with-motif-lib or --without-motif-lib was given. 8816if test "${with_motif_lib+set}" = set; then 8817 withval="$with_motif_lib" 8818 MOTIF_LIBNAME="${withval}" 8819fi; 8820 8821 if test -n "$MOTIF_LIBNAME"; then 8822 echo "$as_me:$LINENO: result: $MOTIF_LIBNAME" >&5 8823echo "${ECHO_T}$MOTIF_LIBNAME" >&6 8824 GUI_LIB_LOC= 8825 else 8826 echo "$as_me:$LINENO: result: no" >&5 8827echo "${ECHO_T}no" >&6 8828 8829 GUI_LIB_LOC="`echo $GUI_LIB_LOC|sed 's%-L%%g'`" 8830 8831 echo "$as_me:$LINENO: checking for location of Motif GUI libs" >&5 8832echo $ECHO_N "checking for location of Motif GUI libs... $ECHO_C" >&6 8833 gui_libs="`echo $x_libraries|sed 's%/^/^/*$%%'` `echo "$gui_XXX" | sed s/XXX/lib/g` `echo "$GUI_INC_LOC" | sed s/include/lib/` $GUI_LIB_LOC" 8834 GUI_LIB_LOC= 8835 for try in $gui_libs; do 8836 for libtry in "$try"/libXm.a "$try"/libXm.so* "$try"/libXm.sl "$try"/libXm.dylib; do 8837 if test -f "$libtry"; then 8838 GUI_LIB_LOC=$try 8839 fi 8840 done 8841 done 8842 if test -n "$GUI_LIB_LOC"; then 8843 if test "$GUI_LIB_LOC" = /usr/lib; then 8844 GUI_LIB_LOC= 8845 echo "$as_me:$LINENO: result: in default path" >&5 8846echo "${ECHO_T}in default path" >&6 8847 else 8848 if test -n "$GUI_LIB_LOC"; then 8849 echo "$as_me:$LINENO: result: $GUI_LIB_LOC" >&5 8850echo "${ECHO_T}$GUI_LIB_LOC" >&6 8851 if test "`(uname) 2>/dev/null`" = SunOS && 8852 uname -r | grep '^5' >/dev/null; then 8853 GUI_LIB_LOC="$GUI_LIB_LOC -R $GUI_LIB_LOC" 8854 fi 8855 fi 8856 fi 8857 MOTIF_LIBNAME=-lXm 8858 else 8859 echo "$as_me:$LINENO: result: <not found>" >&5 8860echo "${ECHO_T}<not found>" >&6 8861 SKIP_MOTIF=YES 8862 fi 8863 fi 8864fi 8865 8866if test -z "$SKIP_MOTIF"; then 8867 SKIP_ATHENA=YES 8868 SKIP_NEXTAW=YES 8869 GUITYPE=MOTIF 8870 8871fi 8872 8873 8874GUI_X_LIBS= 8875 8876if test -z "$SKIP_ATHENA"; then 8877 echo "$as_me:$LINENO: checking if Athena header files can be found" >&5 8878echo $ECHO_N "checking if Athena header files can be found... $ECHO_C" >&6 8879 cflags_save=$CFLAGS 8880 CFLAGS="$CFLAGS $X_CFLAGS" 8881 cat >conftest.$ac_ext <<_ACEOF 8882/* confdefs.h. */ 8883_ACEOF 8884cat confdefs.h >>conftest.$ac_ext 8885cat >>conftest.$ac_ext <<_ACEOF 8886/* end confdefs.h. */ 8887 8888#include <X11/Intrinsic.h> 8889#include <X11/Xaw/Paned.h> 8890int 8891main () 8892{ 8893 8894 ; 8895 return 0; 8896} 8897_ACEOF 8898rm -f conftest.$ac_objext 8899if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8900 (eval $ac_compile) 2>conftest.er1 8901 ac_status=$? 8902 grep -v '^ *+' conftest.er1 >conftest.err 8903 rm -f conftest.er1 8904 cat conftest.err >&5 8905 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8906 (exit $ac_status); } && 8907 { ac_try='test -z "$ac_c_werror_flag" 8908 || test ! -s conftest.err' 8909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8910 (eval $ac_try) 2>&5 8911 ac_status=$? 8912 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8913 (exit $ac_status); }; } && 8914 { ac_try='test -s conftest.$ac_objext' 8915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8916 (eval $ac_try) 2>&5 8917 ac_status=$? 8918 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8919 (exit $ac_status); }; }; then 8920 echo "$as_me:$LINENO: result: yes" >&5 8921echo "${ECHO_T}yes" >&6 8922else 8923 echo "$as_me: failed program was:" >&5 8924sed 's/^/| /' conftest.$ac_ext >&5 8925 8926echo "$as_me:$LINENO: result: no" >&5 8927echo "${ECHO_T}no" >&6; SKIP_ATHENA=YES 8928fi 8929rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8930 CFLAGS=$cflags_save 8931fi 8932 8933if test -z "$SKIP_ATHENA"; then 8934 GUITYPE=ATHENA 8935fi 8936 8937if test -z "$SKIP_NEXTAW"; then 8938 echo "$as_me:$LINENO: checking if neXtaw header files can be found" >&5 8939echo $ECHO_N "checking if neXtaw header files can be found... $ECHO_C" >&6 8940 cflags_save=$CFLAGS 8941 CFLAGS="$CFLAGS $X_CFLAGS" 8942 cat >conftest.$ac_ext <<_ACEOF 8943/* confdefs.h. */ 8944_ACEOF 8945cat confdefs.h >>conftest.$ac_ext 8946cat >>conftest.$ac_ext <<_ACEOF 8947/* end confdefs.h. */ 8948 8949#include <X11/Intrinsic.h> 8950#include <X11/neXtaw/Paned.h> 8951int 8952main () 8953{ 8954 8955 ; 8956 return 0; 8957} 8958_ACEOF 8959rm -f conftest.$ac_objext 8960if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8961 (eval $ac_compile) 2>conftest.er1 8962 ac_status=$? 8963 grep -v '^ *+' conftest.er1 >conftest.err 8964 rm -f conftest.er1 8965 cat conftest.err >&5 8966 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8967 (exit $ac_status); } && 8968 { ac_try='test -z "$ac_c_werror_flag" 8969 || test ! -s conftest.err' 8970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8971 (eval $ac_try) 2>&5 8972 ac_status=$? 8973 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8974 (exit $ac_status); }; } && 8975 { ac_try='test -s conftest.$ac_objext' 8976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8977 (eval $ac_try) 2>&5 8978 ac_status=$? 8979 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8980 (exit $ac_status); }; }; then 8981 echo "$as_me:$LINENO: result: yes" >&5 8982echo "${ECHO_T}yes" >&6 8983else 8984 echo "$as_me: failed program was:" >&5 8985sed 's/^/| /' conftest.$ac_ext >&5 8986 8987echo "$as_me:$LINENO: result: no" >&5 8988echo "${ECHO_T}no" >&6; SKIP_NEXTAW=YES 8989fi 8990rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 8991 CFLAGS=$cflags_save 8992fi 8993 8994if test -z "$SKIP_NEXTAW"; then 8995 GUITYPE=NEXTAW 8996fi 8997 8998if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then 8999 if test -n "$GUI_INC_LOC"; then 9000 GUI_INC_LOC=-I"`echo $GUI_INC_LOC|sed 's%-I%%'`" 9001 fi 9002 if test -n "$GUI_LIB_LOC"; then 9003 GUI_LIB_LOC=-L"`echo $GUI_LIB_LOC|sed 's%-L%%'`" 9004 fi 9005 9006 ldflags_save=$LDFLAGS 9007 LDFLAGS="$X_LIBS $LDFLAGS" 9008 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5 9009echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6 9010if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then 9011 echo $ECHO_N "(cached) $ECHO_C" >&6 9012else 9013 ac_check_lib_save_LIBS=$LIBS 9014LIBS="-lXext -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS" 9015cat >conftest.$ac_ext <<_ACEOF 9016/* confdefs.h. */ 9017_ACEOF 9018cat confdefs.h >>conftest.$ac_ext 9019cat >>conftest.$ac_ext <<_ACEOF 9020/* end confdefs.h. */ 9021 9022/* Override any gcc2 internal prototype to avoid an error. */ 9023#ifdef __cplusplus 9024extern "C" 9025#endif 9026/* We use char because int might match the return type of a gcc2 9027 builtin and then its argument prototype would still apply. */ 9028char XShapeQueryExtension (); 9029int 9030main () 9031{ 9032XShapeQueryExtension (); 9033 ; 9034 return 0; 9035} 9036_ACEOF 9037rm -f conftest.$ac_objext conftest$ac_exeext 9038if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9039 (eval $ac_link) 2>conftest.er1 9040 ac_status=$? 9041 grep -v '^ *+' conftest.er1 >conftest.err 9042 rm -f conftest.er1 9043 cat conftest.err >&5 9044 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9045 (exit $ac_status); } && 9046 { ac_try='test -z "$ac_c_werror_flag" 9047 || test ! -s conftest.err' 9048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9049 (eval $ac_try) 2>&5 9050 ac_status=$? 9051 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9052 (exit $ac_status); }; } && 9053 { ac_try='test -s conftest$ac_exeext' 9054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9055 (eval $ac_try) 2>&5 9056 ac_status=$? 9057 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9058 (exit $ac_status); }; }; then 9059 ac_cv_lib_Xext_XShapeQueryExtension=yes 9060else 9061 echo "$as_me: failed program was:" >&5 9062sed 's/^/| /' conftest.$ac_ext >&5 9063 9064ac_cv_lib_Xext_XShapeQueryExtension=no 9065fi 9066rm -f conftest.err conftest.$ac_objext \ 9067 conftest$ac_exeext conftest.$ac_ext 9068LIBS=$ac_check_lib_save_LIBS 9069fi 9070echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5 9071echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6 9072if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then 9073 GUI_X_LIBS="-lXext" 9074fi 9075 9076 echo "$as_me:$LINENO: checking for wslen in -lw" >&5 9077echo $ECHO_N "checking for wslen in -lw... $ECHO_C" >&6 9078if test "${ac_cv_lib_w_wslen+set}" = set; then 9079 echo $ECHO_N "(cached) $ECHO_C" >&6 9080else 9081 ac_check_lib_save_LIBS=$LIBS 9082LIBS="-lw $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS" 9083cat >conftest.$ac_ext <<_ACEOF 9084/* confdefs.h. */ 9085_ACEOF 9086cat confdefs.h >>conftest.$ac_ext 9087cat >>conftest.$ac_ext <<_ACEOF 9088/* end confdefs.h. */ 9089 9090/* Override any gcc2 internal prototype to avoid an error. */ 9091#ifdef __cplusplus 9092extern "C" 9093#endif 9094/* We use char because int might match the return type of a gcc2 9095 builtin and then its argument prototype would still apply. */ 9096char wslen (); 9097int 9098main () 9099{ 9100wslen (); 9101 ; 9102 return 0; 9103} 9104_ACEOF 9105rm -f conftest.$ac_objext conftest$ac_exeext 9106if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9107 (eval $ac_link) 2>conftest.er1 9108 ac_status=$? 9109 grep -v '^ *+' conftest.er1 >conftest.err 9110 rm -f conftest.er1 9111 cat conftest.err >&5 9112 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9113 (exit $ac_status); } && 9114 { ac_try='test -z "$ac_c_werror_flag" 9115 || test ! -s conftest.err' 9116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9117 (eval $ac_try) 2>&5 9118 ac_status=$? 9119 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9120 (exit $ac_status); }; } && 9121 { ac_try='test -s conftest$ac_exeext' 9122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9123 (eval $ac_try) 2>&5 9124 ac_status=$? 9125 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9126 (exit $ac_status); }; }; then 9127 ac_cv_lib_w_wslen=yes 9128else 9129 echo "$as_me: failed program was:" >&5 9130sed 's/^/| /' conftest.$ac_ext >&5 9131 9132ac_cv_lib_w_wslen=no 9133fi 9134rm -f conftest.err conftest.$ac_objext \ 9135 conftest$ac_exeext conftest.$ac_ext 9136LIBS=$ac_check_lib_save_LIBS 9137fi 9138echo "$as_me:$LINENO: result: $ac_cv_lib_w_wslen" >&5 9139echo "${ECHO_T}$ac_cv_lib_w_wslen" >&6 9140if test $ac_cv_lib_w_wslen = yes; then 9141 X_EXTRA_LIBS="$X_EXTRA_LIBS -lw" 9142fi 9143 9144 echo "$as_me:$LINENO: checking for dlsym in -ldl" >&5 9145echo $ECHO_N "checking for dlsym in -ldl... $ECHO_C" >&6 9146if test "${ac_cv_lib_dl_dlsym+set}" = set; then 9147 echo $ECHO_N "(cached) $ECHO_C" >&6 9148else 9149 ac_check_lib_save_LIBS=$LIBS 9150LIBS="-ldl $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS" 9151cat >conftest.$ac_ext <<_ACEOF 9152/* confdefs.h. */ 9153_ACEOF 9154cat confdefs.h >>conftest.$ac_ext 9155cat >>conftest.$ac_ext <<_ACEOF 9156/* end confdefs.h. */ 9157 9158/* Override any gcc2 internal prototype to avoid an error. */ 9159#ifdef __cplusplus 9160extern "C" 9161#endif 9162/* We use char because int might match the return type of a gcc2 9163 builtin and then its argument prototype would still apply. */ 9164char dlsym (); 9165int 9166main () 9167{ 9168dlsym (); 9169 ; 9170 return 0; 9171} 9172_ACEOF 9173rm -f conftest.$ac_objext conftest$ac_exeext 9174if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9175 (eval $ac_link) 2>conftest.er1 9176 ac_status=$? 9177 grep -v '^ *+' conftest.er1 >conftest.err 9178 rm -f conftest.er1 9179 cat conftest.err >&5 9180 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9181 (exit $ac_status); } && 9182 { ac_try='test -z "$ac_c_werror_flag" 9183 || test ! -s conftest.err' 9184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9185 (eval $ac_try) 2>&5 9186 ac_status=$? 9187 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9188 (exit $ac_status); }; } && 9189 { ac_try='test -s conftest$ac_exeext' 9190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9191 (eval $ac_try) 2>&5 9192 ac_status=$? 9193 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9194 (exit $ac_status); }; }; then 9195 ac_cv_lib_dl_dlsym=yes 9196else 9197 echo "$as_me: failed program was:" >&5 9198sed 's/^/| /' conftest.$ac_ext >&5 9199 9200ac_cv_lib_dl_dlsym=no 9201fi 9202rm -f conftest.err conftest.$ac_objext \ 9203 conftest$ac_exeext conftest.$ac_ext 9204LIBS=$ac_check_lib_save_LIBS 9205fi 9206echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlsym" >&5 9207echo "${ECHO_T}$ac_cv_lib_dl_dlsym" >&6 9208if test $ac_cv_lib_dl_dlsym = yes; then 9209 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldl" 9210fi 9211 9212 echo "$as_me:$LINENO: checking for XmuCreateStippledPixmap in -lXmu" >&5 9213echo $ECHO_N "checking for XmuCreateStippledPixmap in -lXmu... $ECHO_C" >&6 9214if test "${ac_cv_lib_Xmu_XmuCreateStippledPixmap+set}" = set; then 9215 echo $ECHO_N "(cached) $ECHO_C" >&6 9216else 9217 ac_check_lib_save_LIBS=$LIBS 9218LIBS="-lXmu $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS" 9219cat >conftest.$ac_ext <<_ACEOF 9220/* confdefs.h. */ 9221_ACEOF 9222cat confdefs.h >>conftest.$ac_ext 9223cat >>conftest.$ac_ext <<_ACEOF 9224/* end confdefs.h. */ 9225 9226/* Override any gcc2 internal prototype to avoid an error. */ 9227#ifdef __cplusplus 9228extern "C" 9229#endif 9230/* We use char because int might match the return type of a gcc2 9231 builtin and then its argument prototype would still apply. */ 9232char XmuCreateStippledPixmap (); 9233int 9234main () 9235{ 9236XmuCreateStippledPixmap (); 9237 ; 9238 return 0; 9239} 9240_ACEOF 9241rm -f conftest.$ac_objext conftest$ac_exeext 9242if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9243 (eval $ac_link) 2>conftest.er1 9244 ac_status=$? 9245 grep -v '^ *+' conftest.er1 >conftest.err 9246 rm -f conftest.er1 9247 cat conftest.err >&5 9248 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9249 (exit $ac_status); } && 9250 { ac_try='test -z "$ac_c_werror_flag" 9251 || test ! -s conftest.err' 9252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9253 (eval $ac_try) 2>&5 9254 ac_status=$? 9255 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9256 (exit $ac_status); }; } && 9257 { ac_try='test -s conftest$ac_exeext' 9258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9259 (eval $ac_try) 2>&5 9260 ac_status=$? 9261 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9262 (exit $ac_status); }; }; then 9263 ac_cv_lib_Xmu_XmuCreateStippledPixmap=yes 9264else 9265 echo "$as_me: failed program was:" >&5 9266sed 's/^/| /' conftest.$ac_ext >&5 9267 9268ac_cv_lib_Xmu_XmuCreateStippledPixmap=no 9269fi 9270rm -f conftest.err conftest.$ac_objext \ 9271 conftest$ac_exeext conftest.$ac_ext 9272LIBS=$ac_check_lib_save_LIBS 9273fi 9274echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuCreateStippledPixmap" >&5 9275echo "${ECHO_T}$ac_cv_lib_Xmu_XmuCreateStippledPixmap" >&6 9276if test $ac_cv_lib_Xmu_XmuCreateStippledPixmap = yes; then 9277 GUI_X_LIBS="-lXmu $GUI_X_LIBS" 9278fi 9279 9280 if test -z "$SKIP_MOTIF"; then 9281 echo "$as_me:$LINENO: checking for XpEndJob in -lXp" >&5 9282echo $ECHO_N "checking for XpEndJob in -lXp... $ECHO_C" >&6 9283if test "${ac_cv_lib_Xp_XpEndJob+set}" = set; then 9284 echo $ECHO_N "(cached) $ECHO_C" >&6 9285else 9286 ac_check_lib_save_LIBS=$LIBS 9287LIBS="-lXp $GUI_X_LIBS -lXm -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS" 9288cat >conftest.$ac_ext <<_ACEOF 9289/* confdefs.h. */ 9290_ACEOF 9291cat confdefs.h >>conftest.$ac_ext 9292cat >>conftest.$ac_ext <<_ACEOF 9293/* end confdefs.h. */ 9294 9295/* Override any gcc2 internal prototype to avoid an error. */ 9296#ifdef __cplusplus 9297extern "C" 9298#endif 9299/* We use char because int might match the return type of a gcc2 9300 builtin and then its argument prototype would still apply. */ 9301char XpEndJob (); 9302int 9303main () 9304{ 9305XpEndJob (); 9306 ; 9307 return 0; 9308} 9309_ACEOF 9310rm -f conftest.$ac_objext conftest$ac_exeext 9311if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9312 (eval $ac_link) 2>conftest.er1 9313 ac_status=$? 9314 grep -v '^ *+' conftest.er1 >conftest.err 9315 rm -f conftest.er1 9316 cat conftest.err >&5 9317 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9318 (exit $ac_status); } && 9319 { ac_try='test -z "$ac_c_werror_flag" 9320 || test ! -s conftest.err' 9321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9322 (eval $ac_try) 2>&5 9323 ac_status=$? 9324 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9325 (exit $ac_status); }; } && 9326 { ac_try='test -s conftest$ac_exeext' 9327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9328 (eval $ac_try) 2>&5 9329 ac_status=$? 9330 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9331 (exit $ac_status); }; }; then 9332 ac_cv_lib_Xp_XpEndJob=yes 9333else 9334 echo "$as_me: failed program was:" >&5 9335sed 's/^/| /' conftest.$ac_ext >&5 9336 9337ac_cv_lib_Xp_XpEndJob=no 9338fi 9339rm -f conftest.err conftest.$ac_objext \ 9340 conftest$ac_exeext conftest.$ac_ext 9341LIBS=$ac_check_lib_save_LIBS 9342fi 9343echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpEndJob" >&5 9344echo "${ECHO_T}$ac_cv_lib_Xp_XpEndJob" >&6 9345if test $ac_cv_lib_Xp_XpEndJob = yes; then 9346 GUI_X_LIBS="-lXp $GUI_X_LIBS" 9347fi 9348 9349 fi 9350 LDFLAGS=$ldflags_save 9351 9352 echo "$as_me:$LINENO: checking for extra X11 defines" >&5 9353echo $ECHO_N "checking for extra X11 defines... $ECHO_C" >&6 9354 NARROW_PROTO= 9355 rm -fr conftestdir 9356 if mkdir conftestdir; then 9357 cd conftestdir 9358 cat > Imakefile <<'EOF' 9359acfindx: 9360 @echo 'NARROW_PROTO="${PROTO_DEFINES}"' 9361EOF 9362 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then 9363 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` 9364 fi 9365 cd .. 9366 rm -fr conftestdir 9367 fi 9368 if test -z "$NARROW_PROTO"; then 9369 echo "$as_me:$LINENO: result: no" >&5 9370echo "${ECHO_T}no" >&6 9371 else 9372 echo "$as_me:$LINENO: result: $NARROW_PROTO" >&5 9373echo "${ECHO_T}$NARROW_PROTO" >&6 9374 fi 9375 9376fi 9377 9378if test "$enable_xsmp" = "yes"; then 9379 cppflags_save=$CPPFLAGS 9380 CPPFLAGS="$CPPFLAGS $X_CFLAGS" 9381 9382for ac_header in X11/SM/SMlib.h 9383do 9384as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 9385if eval "test \"\${$as_ac_Header+set}\" = set"; then 9386 echo "$as_me:$LINENO: checking for $ac_header" >&5 9387echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 9388if eval "test \"\${$as_ac_Header+set}\" = set"; then 9389 echo $ECHO_N "(cached) $ECHO_C" >&6 9390fi 9391echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 9392echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 9393else 9394 # Is the header compilable? 9395echo "$as_me:$LINENO: checking $ac_header usability" >&5 9396echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 9397cat >conftest.$ac_ext <<_ACEOF 9398/* confdefs.h. */ 9399_ACEOF 9400cat confdefs.h >>conftest.$ac_ext 9401cat >>conftest.$ac_ext <<_ACEOF 9402/* end confdefs.h. */ 9403$ac_includes_default 9404#include <$ac_header> 9405_ACEOF 9406rm -f conftest.$ac_objext 9407if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9408 (eval $ac_compile) 2>conftest.er1 9409 ac_status=$? 9410 grep -v '^ *+' conftest.er1 >conftest.err 9411 rm -f conftest.er1 9412 cat conftest.err >&5 9413 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9414 (exit $ac_status); } && 9415 { ac_try='test -z "$ac_c_werror_flag" 9416 || test ! -s conftest.err' 9417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9418 (eval $ac_try) 2>&5 9419 ac_status=$? 9420 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9421 (exit $ac_status); }; } && 9422 { ac_try='test -s conftest.$ac_objext' 9423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9424 (eval $ac_try) 2>&5 9425 ac_status=$? 9426 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9427 (exit $ac_status); }; }; then 9428 ac_header_compiler=yes 9429else 9430 echo "$as_me: failed program was:" >&5 9431sed 's/^/| /' conftest.$ac_ext >&5 9432 9433ac_header_compiler=no 9434fi 9435rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 9436echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 9437echo "${ECHO_T}$ac_header_compiler" >&6 9438 9439# Is the header present? 9440echo "$as_me:$LINENO: checking $ac_header presence" >&5 9441echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 9442cat >conftest.$ac_ext <<_ACEOF 9443/* confdefs.h. */ 9444_ACEOF 9445cat confdefs.h >>conftest.$ac_ext 9446cat >>conftest.$ac_ext <<_ACEOF 9447/* end confdefs.h. */ 9448#include <$ac_header> 9449_ACEOF 9450if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 9451 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 9452 ac_status=$? 9453 grep -v '^ *+' conftest.er1 >conftest.err 9454 rm -f conftest.er1 9455 cat conftest.err >&5 9456 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9457 (exit $ac_status); } >/dev/null; then 9458 if test -s conftest.err; then 9459 ac_cpp_err=$ac_c_preproc_warn_flag 9460 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 9461 else 9462 ac_cpp_err= 9463 fi 9464else 9465 ac_cpp_err=yes 9466fi 9467if test -z "$ac_cpp_err"; then 9468 ac_header_preproc=yes 9469else 9470 echo "$as_me: failed program was:" >&5 9471sed 's/^/| /' conftest.$ac_ext >&5 9472 9473 ac_header_preproc=no 9474fi 9475rm -f conftest.err conftest.$ac_ext 9476echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 9477echo "${ECHO_T}$ac_header_preproc" >&6 9478 9479# So? What about this header? 9480case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 9481 yes:no: ) 9482 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 9483echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 9484 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 9485echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 9486 ac_header_preproc=yes 9487 ;; 9488 no:yes:* ) 9489 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 9490echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 9491 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 9492echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 9493 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 9494echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 9495 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 9496echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 9497 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 9498echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 9499 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 9500echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 9501 ( 9502 cat <<\_ASBOX 9503## ------------------------------------------ ## 9504## Report this to the AC_PACKAGE_NAME lists. ## 9505## ------------------------------------------ ## 9506_ASBOX 9507 ) | 9508 sed "s/^/$as_me: WARNING: /" >&2 9509 ;; 9510esac 9511echo "$as_me:$LINENO: checking for $ac_header" >&5 9512echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 9513if eval "test \"\${$as_ac_Header+set}\" = set"; then 9514 echo $ECHO_N "(cached) $ECHO_C" >&6 9515else 9516 eval "$as_ac_Header=\$ac_header_preproc" 9517fi 9518echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 9519echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 9520 9521fi 9522if test `eval echo '${'$as_ac_Header'}'` = yes; then 9523 cat >>confdefs.h <<_ACEOF 9524#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 9525_ACEOF 9526 9527fi 9528 9529done 9530 9531 CPPFLAGS=$cppflags_save 9532fi 9533 9534 9535if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF" -o -z "$SKIP_GTK"; then 9536 cppflags_save=$CPPFLAGS 9537 CPPFLAGS="$CPPFLAGS $X_CFLAGS" 9538 9539 9540for ac_header in X11/xpm.h X11/Sunkeysym.h 9541do 9542as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 9543if eval "test \"\${$as_ac_Header+set}\" = set"; then 9544 echo "$as_me:$LINENO: checking for $ac_header" >&5 9545echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 9546if eval "test \"\${$as_ac_Header+set}\" = set"; then 9547 echo $ECHO_N "(cached) $ECHO_C" >&6 9548fi 9549echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 9550echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 9551else 9552 # Is the header compilable? 9553echo "$as_me:$LINENO: checking $ac_header usability" >&5 9554echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 9555cat >conftest.$ac_ext <<_ACEOF 9556/* confdefs.h. */ 9557_ACEOF 9558cat confdefs.h >>conftest.$ac_ext 9559cat >>conftest.$ac_ext <<_ACEOF 9560/* end confdefs.h. */ 9561$ac_includes_default 9562#include <$ac_header> 9563_ACEOF 9564rm -f conftest.$ac_objext 9565if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9566 (eval $ac_compile) 2>conftest.er1 9567 ac_status=$? 9568 grep -v '^ *+' conftest.er1 >conftest.err 9569 rm -f conftest.er1 9570 cat conftest.err >&5 9571 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9572 (exit $ac_status); } && 9573 { ac_try='test -z "$ac_c_werror_flag" 9574 || test ! -s conftest.err' 9575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9576 (eval $ac_try) 2>&5 9577 ac_status=$? 9578 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9579 (exit $ac_status); }; } && 9580 { ac_try='test -s conftest.$ac_objext' 9581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9582 (eval $ac_try) 2>&5 9583 ac_status=$? 9584 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9585 (exit $ac_status); }; }; then 9586 ac_header_compiler=yes 9587else 9588 echo "$as_me: failed program was:" >&5 9589sed 's/^/| /' conftest.$ac_ext >&5 9590 9591ac_header_compiler=no 9592fi 9593rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 9594echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 9595echo "${ECHO_T}$ac_header_compiler" >&6 9596 9597# Is the header present? 9598echo "$as_me:$LINENO: checking $ac_header presence" >&5 9599echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 9600cat >conftest.$ac_ext <<_ACEOF 9601/* confdefs.h. */ 9602_ACEOF 9603cat confdefs.h >>conftest.$ac_ext 9604cat >>conftest.$ac_ext <<_ACEOF 9605/* end confdefs.h. */ 9606#include <$ac_header> 9607_ACEOF 9608if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 9609 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 9610 ac_status=$? 9611 grep -v '^ *+' conftest.er1 >conftest.err 9612 rm -f conftest.er1 9613 cat conftest.err >&5 9614 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9615 (exit $ac_status); } >/dev/null; then 9616 if test -s conftest.err; then 9617 ac_cpp_err=$ac_c_preproc_warn_flag 9618 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 9619 else 9620 ac_cpp_err= 9621 fi 9622else 9623 ac_cpp_err=yes 9624fi 9625if test -z "$ac_cpp_err"; then 9626 ac_header_preproc=yes 9627else 9628 echo "$as_me: failed program was:" >&5 9629sed 's/^/| /' conftest.$ac_ext >&5 9630 9631 ac_header_preproc=no 9632fi 9633rm -f conftest.err conftest.$ac_ext 9634echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 9635echo "${ECHO_T}$ac_header_preproc" >&6 9636 9637# So? What about this header? 9638case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 9639 yes:no: ) 9640 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 9641echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 9642 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 9643echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 9644 ac_header_preproc=yes 9645 ;; 9646 no:yes:* ) 9647 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 9648echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 9649 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 9650echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 9651 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 9652echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 9653 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 9654echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 9655 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 9656echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 9657 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 9658echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 9659 ( 9660 cat <<\_ASBOX 9661## ------------------------------------------ ## 9662## Report this to the AC_PACKAGE_NAME lists. ## 9663## ------------------------------------------ ## 9664_ASBOX 9665 ) | 9666 sed "s/^/$as_me: WARNING: /" >&2 9667 ;; 9668esac 9669echo "$as_me:$LINENO: checking for $ac_header" >&5 9670echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 9671if eval "test \"\${$as_ac_Header+set}\" = set"; then 9672 echo $ECHO_N "(cached) $ECHO_C" >&6 9673else 9674 eval "$as_ac_Header=\$ac_header_preproc" 9675fi 9676echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 9677echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 9678 9679fi 9680if test `eval echo '${'$as_ac_Header'}'` = yes; then 9681 cat >>confdefs.h <<_ACEOF 9682#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 9683_ACEOF 9684 9685fi 9686 9687done 9688 9689 9690 if test ! "$enable_xim" = "no"; then 9691 echo "$as_me:$LINENO: checking for XIMText in X11/Xlib.h" >&5 9692echo $ECHO_N "checking for XIMText in X11/Xlib.h... $ECHO_C" >&6 9693 cat >conftest.$ac_ext <<_ACEOF 9694/* confdefs.h. */ 9695_ACEOF 9696cat confdefs.h >>conftest.$ac_ext 9697cat >>conftest.$ac_ext <<_ACEOF 9698/* end confdefs.h. */ 9699#include <X11/Xlib.h> 9700_ACEOF 9701if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 9702 $EGREP "XIMText" >/dev/null 2>&1; then 9703 echo "$as_me:$LINENO: result: yes" >&5 9704echo "${ECHO_T}yes" >&6 9705else 9706 echo "$as_me:$LINENO: result: no; xim has been disabled" >&5 9707echo "${ECHO_T}no; xim has been disabled" >&6; enable_xim = "no" 9708fi 9709rm -f conftest* 9710 9711 fi 9712 CPPFLAGS=$cppflags_save 9713 9714 if test "$enable_xim" = "auto" -a "$enable_hangulinput" != "yes" \ 9715 -a "x$GUITYPE" != "xNONE" ; then 9716 echo "$as_me:$LINENO: result: X GUI selected; xim has been enabled" >&5 9717echo "${ECHO_T}X GUI selected; xim has been enabled" >&6 9718 enable_xim="yes" 9719 fi 9720fi 9721 9722if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then 9723 cppflags_save=$CPPFLAGS 9724 CPPFLAGS="$CPPFLAGS $X_CFLAGS" 9725 echo "$as_me:$LINENO: checking for X11/Xmu/Editres.h" >&5 9726echo $ECHO_N "checking for X11/Xmu/Editres.h... $ECHO_C" >&6 9727 cat >conftest.$ac_ext <<_ACEOF 9728/* confdefs.h. */ 9729_ACEOF 9730cat confdefs.h >>conftest.$ac_ext 9731cat >>conftest.$ac_ext <<_ACEOF 9732/* end confdefs.h. */ 9733 9734#include <X11/Intrinsic.h> 9735#include <X11/Xmu/Editres.h> 9736int 9737main () 9738{ 9739int i; i = 0; 9740 ; 9741 return 0; 9742} 9743_ACEOF 9744rm -f conftest.$ac_objext 9745if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9746 (eval $ac_compile) 2>conftest.er1 9747 ac_status=$? 9748 grep -v '^ *+' conftest.er1 >conftest.err 9749 rm -f conftest.er1 9750 cat conftest.err >&5 9751 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9752 (exit $ac_status); } && 9753 { ac_try='test -z "$ac_c_werror_flag" 9754 || test ! -s conftest.err' 9755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9756 (eval $ac_try) 2>&5 9757 ac_status=$? 9758 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9759 (exit $ac_status); }; } && 9760 { ac_try='test -s conftest.$ac_objext' 9761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9762 (eval $ac_try) 2>&5 9763 ac_status=$? 9764 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9765 (exit $ac_status); }; }; then 9766 echo "$as_me:$LINENO: result: yes" >&5 9767echo "${ECHO_T}yes" >&6 9768 cat >>confdefs.h <<\_ACEOF 9769#define HAVE_X11_XMU_EDITRES_H 1 9770_ACEOF 9771 9772else 9773 echo "$as_me: failed program was:" >&5 9774sed 's/^/| /' conftest.$ac_ext >&5 9775 9776echo "$as_me:$LINENO: result: no" >&5 9777echo "${ECHO_T}no" >&6 9778fi 9779rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 9780 CPPFLAGS=$cppflags_save 9781fi 9782 9783if test -z "$SKIP_MOTIF"; then 9784 cppflags_save=$CPPFLAGS 9785 CPPFLAGS="$CPPFLAGS $X_CFLAGS" 9786 9787 9788 9789 9790 9791 9792for ac_header in Xm/Xm.h Xm/XpmP.h Xm/JoinSideT.h Xm/TraitP.h Xm/Manager.h \ 9793 Xm/UnhighlightT.h 9794do 9795as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 9796if eval "test \"\${$as_ac_Header+set}\" = set"; then 9797 echo "$as_me:$LINENO: checking for $ac_header" >&5 9798echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 9799if eval "test \"\${$as_ac_Header+set}\" = set"; then 9800 echo $ECHO_N "(cached) $ECHO_C" >&6 9801fi 9802echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 9803echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 9804else 9805 # Is the header compilable? 9806echo "$as_me:$LINENO: checking $ac_header usability" >&5 9807echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 9808cat >conftest.$ac_ext <<_ACEOF 9809/* confdefs.h. */ 9810_ACEOF 9811cat confdefs.h >>conftest.$ac_ext 9812cat >>conftest.$ac_ext <<_ACEOF 9813/* end confdefs.h. */ 9814$ac_includes_default 9815#include <$ac_header> 9816_ACEOF 9817rm -f conftest.$ac_objext 9818if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9819 (eval $ac_compile) 2>conftest.er1 9820 ac_status=$? 9821 grep -v '^ *+' conftest.er1 >conftest.err 9822 rm -f conftest.er1 9823 cat conftest.err >&5 9824 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9825 (exit $ac_status); } && 9826 { ac_try='test -z "$ac_c_werror_flag" 9827 || test ! -s conftest.err' 9828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9829 (eval $ac_try) 2>&5 9830 ac_status=$? 9831 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9832 (exit $ac_status); }; } && 9833 { ac_try='test -s conftest.$ac_objext' 9834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9835 (eval $ac_try) 2>&5 9836 ac_status=$? 9837 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9838 (exit $ac_status); }; }; then 9839 ac_header_compiler=yes 9840else 9841 echo "$as_me: failed program was:" >&5 9842sed 's/^/| /' conftest.$ac_ext >&5 9843 9844ac_header_compiler=no 9845fi 9846rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 9847echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 9848echo "${ECHO_T}$ac_header_compiler" >&6 9849 9850# Is the header present? 9851echo "$as_me:$LINENO: checking $ac_header presence" >&5 9852echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 9853cat >conftest.$ac_ext <<_ACEOF 9854/* confdefs.h. */ 9855_ACEOF 9856cat confdefs.h >>conftest.$ac_ext 9857cat >>conftest.$ac_ext <<_ACEOF 9858/* end confdefs.h. */ 9859#include <$ac_header> 9860_ACEOF 9861if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 9862 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 9863 ac_status=$? 9864 grep -v '^ *+' conftest.er1 >conftest.err 9865 rm -f conftest.er1 9866 cat conftest.err >&5 9867 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9868 (exit $ac_status); } >/dev/null; then 9869 if test -s conftest.err; then 9870 ac_cpp_err=$ac_c_preproc_warn_flag 9871 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 9872 else 9873 ac_cpp_err= 9874 fi 9875else 9876 ac_cpp_err=yes 9877fi 9878if test -z "$ac_cpp_err"; then 9879 ac_header_preproc=yes 9880else 9881 echo "$as_me: failed program was:" >&5 9882sed 's/^/| /' conftest.$ac_ext >&5 9883 9884 ac_header_preproc=no 9885fi 9886rm -f conftest.err conftest.$ac_ext 9887echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 9888echo "${ECHO_T}$ac_header_preproc" >&6 9889 9890# So? What about this header? 9891case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 9892 yes:no: ) 9893 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 9894echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 9895 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 9896echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 9897 ac_header_preproc=yes 9898 ;; 9899 no:yes:* ) 9900 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 9901echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 9902 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 9903echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 9904 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 9905echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 9906 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 9907echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 9908 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 9909echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 9910 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 9911echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 9912 ( 9913 cat <<\_ASBOX 9914## ------------------------------------------ ## 9915## Report this to the AC_PACKAGE_NAME lists. ## 9916## ------------------------------------------ ## 9917_ASBOX 9918 ) | 9919 sed "s/^/$as_me: WARNING: /" >&2 9920 ;; 9921esac 9922echo "$as_me:$LINENO: checking for $ac_header" >&5 9923echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 9924if eval "test \"\${$as_ac_Header+set}\" = set"; then 9925 echo $ECHO_N "(cached) $ECHO_C" >&6 9926else 9927 eval "$as_ac_Header=\$ac_header_preproc" 9928fi 9929echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 9930echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 9931 9932fi 9933if test `eval echo '${'$as_ac_Header'}'` = yes; then 9934 cat >>confdefs.h <<_ACEOF 9935#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 9936_ACEOF 9937 9938fi 9939 9940done 9941 9942 CPPFLAGS=$cppflags_save 9943fi 9944 9945if test "x$GUITYPE" = "xNONE" -a "$enable_xim" = "yes"; then 9946 echo "$as_me:$LINENO: result: no GUI selected; xim has been disabled" >&5 9947echo "${ECHO_T}no GUI selected; xim has been disabled" >&6 9948 enable_xim="no" 9949fi 9950if test "x$GUITYPE" = "xNONE" -a "$enable_fontset" = "yes"; then 9951 echo "$as_me:$LINENO: result: no GUI selected; fontset has been disabled" >&5 9952echo "${ECHO_T}no GUI selected; fontset has been disabled" >&6 9953 enable_fontset="no" 9954fi 9955if test "x$GUITYPE:$enable_fontset" = "xGTK:yes" -a "0$gtk_major_version" -ge 2; then 9956 echo "$as_me:$LINENO: result: GTK+ 2 GUI selected; fontset has been disabled" >&5 9957echo "${ECHO_T}GTK+ 2 GUI selected; fontset has been disabled" >&6 9958 enable_fontset="no" 9959fi 9960if test "x$GUITYPE:$enable_fontset" = "xKDE:yes"; then 9961 echo "$as_me:$LINENO: result: KDE GUI selected; fontset has been disabled" >&5 9962echo "${ECHO_T}KDE GUI selected; fontset has been disabled" >&6 9963 enable_fontset="no" 9964fi 9965 9966if test -z "$SKIP_PHOTON"; then 9967 GUITYPE=PHOTONGUI 9968fi 9969 9970 9971 9972 9973 9974 9975if test "$enable_workshop" = "yes" -a -n "$SKIP_MOTIF"; then 9976 { { echo "$as_me:$LINENO: error: cannot use workshop without Motif" >&5 9977echo "$as_me: error: cannot use workshop without Motif" >&2;} 9978 { (exit 1); exit 1; }; } 9979fi 9980 9981if test "$enable_xim" = "yes"; then 9982 cat >>confdefs.h <<\_ACEOF 9983#define FEAT_XIM 1 9984_ACEOF 9985 9986fi 9987if test "$enable_fontset" = "yes"; then 9988 cat >>confdefs.h <<\_ACEOF 9989#define FEAT_XFONTSET 1 9990_ACEOF 9991 9992fi 9993 9994 9995 9996 9997if test "$enable_hangulinput" = "yes"; then 9998 if test "x$GUITYPE" = "xNONE"; then 9999 echo "$as_me:$LINENO: result: no GUI selected; hangul input has been disabled" >&5 10000echo "${ECHO_T}no GUI selected; hangul input has been disabled" >&6 10001 enable_hangulinput=no 10002 else 10003 cat >>confdefs.h <<\_ACEOF 10004#define FEAT_HANGULIN 1 10005_ACEOF 10006 10007 HANGULIN_SRC=hangulin.c 10008 10009 HANGULIN_OBJ=objects/hangulin.o 10010 10011 fi 10012fi 10013 10014 10015echo "$as_me:$LINENO: checking quality of toupper" >&5 10016echo $ECHO_N "checking quality of toupper... $ECHO_C" >&6 10017if test "$cross_compiling" = yes; then 10018 { { echo "$as_me:$LINENO: error: failed to compile test program" >&5 10019echo "$as_me: error: failed to compile test program" >&2;} 10020 { (exit 1); exit 1; }; } 10021else 10022 cat >conftest.$ac_ext <<_ACEOF 10023/* confdefs.h. */ 10024_ACEOF 10025cat confdefs.h >>conftest.$ac_ext 10026cat >>conftest.$ac_ext <<_ACEOF 10027/* end confdefs.h. */ 10028#include <ctype.h> 10029main() { exit(toupper('A') == 'A' && tolower('z') == 'z'); } 10030_ACEOF 10031rm -f conftest$ac_exeext 10032if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10033 (eval $ac_link) 2>&5 10034 ac_status=$? 10035 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10036 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 10037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10038 (eval $ac_try) 2>&5 10039 ac_status=$? 10040 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10041 (exit $ac_status); }; }; then 10042 cat >>confdefs.h <<\_ACEOF 10043#define BROKEN_TOUPPER 1 10044_ACEOF 10045 echo "$as_me:$LINENO: result: bad" >&5 10046echo "${ECHO_T}bad" >&6 10047else 10048 echo "$as_me: program exited with status $ac_status" >&5 10049echo "$as_me: failed program was:" >&5 10050sed 's/^/| /' conftest.$ac_ext >&5 10051 10052( exit $ac_status ) 10053echo "$as_me:$LINENO: result: good" >&5 10054echo "${ECHO_T}good" >&6 10055fi 10056rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 10057fi 10058 10059echo "$as_me:$LINENO: checking whether __DATE__ and __TIME__ work" >&5 10060echo $ECHO_N "checking whether __DATE__ and __TIME__ work... $ECHO_C" >&6 10061cat >conftest.$ac_ext <<_ACEOF 10062/* confdefs.h. */ 10063_ACEOF 10064cat confdefs.h >>conftest.$ac_ext 10065cat >>conftest.$ac_ext <<_ACEOF 10066/* end confdefs.h. */ 10067 10068int 10069main () 10070{ 10071printf("(" __DATE__ " " __TIME__ ")"); 10072 ; 10073 return 0; 10074} 10075_ACEOF 10076rm -f conftest.$ac_objext 10077if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10078 (eval $ac_compile) 2>conftest.er1 10079 ac_status=$? 10080 grep -v '^ *+' conftest.er1 >conftest.err 10081 rm -f conftest.er1 10082 cat conftest.err >&5 10083 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10084 (exit $ac_status); } && 10085 { ac_try='test -z "$ac_c_werror_flag" 10086 || test ! -s conftest.err' 10087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10088 (eval $ac_try) 2>&5 10089 ac_status=$? 10090 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10091 (exit $ac_status); }; } && 10092 { ac_try='test -s conftest.$ac_objext' 10093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10094 (eval $ac_try) 2>&5 10095 ac_status=$? 10096 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10097 (exit $ac_status); }; }; then 10098 echo "$as_me:$LINENO: result: yes" >&5 10099echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF 10100#define HAVE_DATE_TIME 1 10101_ACEOF 10102 10103else 10104 echo "$as_me: failed program was:" >&5 10105sed 's/^/| /' conftest.$ac_ext >&5 10106 10107echo "$as_me:$LINENO: result: no" >&5 10108echo "${ECHO_T}no" >&6 10109fi 10110rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10111 10112if test "${ac_cv_header_elf_h+set}" = set; then 10113 echo "$as_me:$LINENO: checking for elf.h" >&5 10114echo $ECHO_N "checking for elf.h... $ECHO_C" >&6 10115if test "${ac_cv_header_elf_h+set}" = set; then 10116 echo $ECHO_N "(cached) $ECHO_C" >&6 10117fi 10118echo "$as_me:$LINENO: result: $ac_cv_header_elf_h" >&5 10119echo "${ECHO_T}$ac_cv_header_elf_h" >&6 10120else 10121 # Is the header compilable? 10122echo "$as_me:$LINENO: checking elf.h usability" >&5 10123echo $ECHO_N "checking elf.h usability... $ECHO_C" >&6 10124cat >conftest.$ac_ext <<_ACEOF 10125/* confdefs.h. */ 10126_ACEOF 10127cat confdefs.h >>conftest.$ac_ext 10128cat >>conftest.$ac_ext <<_ACEOF 10129/* end confdefs.h. */ 10130$ac_includes_default 10131#include <elf.h> 10132_ACEOF 10133rm -f conftest.$ac_objext 10134if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10135 (eval $ac_compile) 2>conftest.er1 10136 ac_status=$? 10137 grep -v '^ *+' conftest.er1 >conftest.err 10138 rm -f conftest.er1 10139 cat conftest.err >&5 10140 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10141 (exit $ac_status); } && 10142 { ac_try='test -z "$ac_c_werror_flag" 10143 || test ! -s conftest.err' 10144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10145 (eval $ac_try) 2>&5 10146 ac_status=$? 10147 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10148 (exit $ac_status); }; } && 10149 { ac_try='test -s conftest.$ac_objext' 10150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10151 (eval $ac_try) 2>&5 10152 ac_status=$? 10153 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10154 (exit $ac_status); }; }; then 10155 ac_header_compiler=yes 10156else 10157 echo "$as_me: failed program was:" >&5 10158sed 's/^/| /' conftest.$ac_ext >&5 10159 10160ac_header_compiler=no 10161fi 10162rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10163echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 10164echo "${ECHO_T}$ac_header_compiler" >&6 10165 10166# Is the header present? 10167echo "$as_me:$LINENO: checking elf.h presence" >&5 10168echo $ECHO_N "checking elf.h presence... $ECHO_C" >&6 10169cat >conftest.$ac_ext <<_ACEOF 10170/* confdefs.h. */ 10171_ACEOF 10172cat confdefs.h >>conftest.$ac_ext 10173cat >>conftest.$ac_ext <<_ACEOF 10174/* end confdefs.h. */ 10175#include <elf.h> 10176_ACEOF 10177if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 10178 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 10179 ac_status=$? 10180 grep -v '^ *+' conftest.er1 >conftest.err 10181 rm -f conftest.er1 10182 cat conftest.err >&5 10183 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10184 (exit $ac_status); } >/dev/null; then 10185 if test -s conftest.err; then 10186 ac_cpp_err=$ac_c_preproc_warn_flag 10187 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 10188 else 10189 ac_cpp_err= 10190 fi 10191else 10192 ac_cpp_err=yes 10193fi 10194if test -z "$ac_cpp_err"; then 10195 ac_header_preproc=yes 10196else 10197 echo "$as_me: failed program was:" >&5 10198sed 's/^/| /' conftest.$ac_ext >&5 10199 10200 ac_header_preproc=no 10201fi 10202rm -f conftest.err conftest.$ac_ext 10203echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 10204echo "${ECHO_T}$ac_header_preproc" >&6 10205 10206# So? What about this header? 10207case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 10208 yes:no: ) 10209 { echo "$as_me:$LINENO: WARNING: elf.h: accepted by the compiler, rejected by the preprocessor!" >&5 10210echo "$as_me: WARNING: elf.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 10211 { echo "$as_me:$LINENO: WARNING: elf.h: proceeding with the compiler's result" >&5 10212echo "$as_me: WARNING: elf.h: proceeding with the compiler's result" >&2;} 10213 ac_header_preproc=yes 10214 ;; 10215 no:yes:* ) 10216 { echo "$as_me:$LINENO: WARNING: elf.h: present but cannot be compiled" >&5 10217echo "$as_me: WARNING: elf.h: present but cannot be compiled" >&2;} 10218 { echo "$as_me:$LINENO: WARNING: elf.h: check for missing prerequisite headers?" >&5 10219echo "$as_me: WARNING: elf.h: check for missing prerequisite headers?" >&2;} 10220 { echo "$as_me:$LINENO: WARNING: elf.h: see the Autoconf documentation" >&5 10221echo "$as_me: WARNING: elf.h: see the Autoconf documentation" >&2;} 10222 { echo "$as_me:$LINENO: WARNING: elf.h: section \"Present But Cannot Be Compiled\"" >&5 10223echo "$as_me: WARNING: elf.h: section \"Present But Cannot Be Compiled\"" >&2;} 10224 { echo "$as_me:$LINENO: WARNING: elf.h: proceeding with the preprocessor's result" >&5 10225echo "$as_me: WARNING: elf.h: proceeding with the preprocessor's result" >&2;} 10226 { echo "$as_me:$LINENO: WARNING: elf.h: in the future, the compiler will take precedence" >&5 10227echo "$as_me: WARNING: elf.h: in the future, the compiler will take precedence" >&2;} 10228 ( 10229 cat <<\_ASBOX 10230## ------------------------------------------ ## 10231## Report this to the AC_PACKAGE_NAME lists. ## 10232## ------------------------------------------ ## 10233_ASBOX 10234 ) | 10235 sed "s/^/$as_me: WARNING: /" >&2 10236 ;; 10237esac 10238echo "$as_me:$LINENO: checking for elf.h" >&5 10239echo $ECHO_N "checking for elf.h... $ECHO_C" >&6 10240if test "${ac_cv_header_elf_h+set}" = set; then 10241 echo $ECHO_N "(cached) $ECHO_C" >&6 10242else 10243 ac_cv_header_elf_h=$ac_header_preproc 10244fi 10245echo "$as_me:$LINENO: result: $ac_cv_header_elf_h" >&5 10246echo "${ECHO_T}$ac_cv_header_elf_h" >&6 10247 10248fi 10249if test $ac_cv_header_elf_h = yes; then 10250 HAS_ELF=1 10251fi 10252 10253 10254if test "$HAS_ELF" = 1; then 10255 10256echo "$as_me:$LINENO: checking for main in -lelf" >&5 10257echo $ECHO_N "checking for main in -lelf... $ECHO_C" >&6 10258if test "${ac_cv_lib_elf_main+set}" = set; then 10259 echo $ECHO_N "(cached) $ECHO_C" >&6 10260else 10261 ac_check_lib_save_LIBS=$LIBS 10262LIBS="-lelf $LIBS" 10263cat >conftest.$ac_ext <<_ACEOF 10264/* confdefs.h. */ 10265_ACEOF 10266cat confdefs.h >>conftest.$ac_ext 10267cat >>conftest.$ac_ext <<_ACEOF 10268/* end confdefs.h. */ 10269 10270 10271int 10272main () 10273{ 10274main (); 10275 ; 10276 return 0; 10277} 10278_ACEOF 10279rm -f conftest.$ac_objext conftest$ac_exeext 10280if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10281 (eval $ac_link) 2>conftest.er1 10282 ac_status=$? 10283 grep -v '^ *+' conftest.er1 >conftest.err 10284 rm -f conftest.er1 10285 cat conftest.err >&5 10286 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10287 (exit $ac_status); } && 10288 { ac_try='test -z "$ac_c_werror_flag" 10289 || test ! -s conftest.err' 10290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10291 (eval $ac_try) 2>&5 10292 ac_status=$? 10293 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10294 (exit $ac_status); }; } && 10295 { ac_try='test -s conftest$ac_exeext' 10296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10297 (eval $ac_try) 2>&5 10298 ac_status=$? 10299 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10300 (exit $ac_status); }; }; then 10301 ac_cv_lib_elf_main=yes 10302else 10303 echo "$as_me: failed program was:" >&5 10304sed 's/^/| /' conftest.$ac_ext >&5 10305 10306ac_cv_lib_elf_main=no 10307fi 10308rm -f conftest.err conftest.$ac_objext \ 10309 conftest$ac_exeext conftest.$ac_ext 10310LIBS=$ac_check_lib_save_LIBS 10311fi 10312echo "$as_me:$LINENO: result: $ac_cv_lib_elf_main" >&5 10313echo "${ECHO_T}$ac_cv_lib_elf_main" >&6 10314if test $ac_cv_lib_elf_main = yes; then 10315 cat >>confdefs.h <<_ACEOF 10316#define HAVE_LIBELF 1 10317_ACEOF 10318 10319 LIBS="-lelf $LIBS" 10320 10321fi 10322 10323fi 10324 10325 10326 10327 10328 10329 10330ac_header_dirent=no 10331for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do 10332 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` 10333echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 10334echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6 10335if eval "test \"\${$as_ac_Header+set}\" = set"; then 10336 echo $ECHO_N "(cached) $ECHO_C" >&6 10337else 10338 cat >conftest.$ac_ext <<_ACEOF 10339/* confdefs.h. */ 10340_ACEOF 10341cat confdefs.h >>conftest.$ac_ext 10342cat >>conftest.$ac_ext <<_ACEOF 10343/* end confdefs.h. */ 10344#include <sys/types.h> 10345#include <$ac_hdr> 10346 10347int 10348main () 10349{ 10350if ((DIR *) 0) 10351return 0; 10352 ; 10353 return 0; 10354} 10355_ACEOF 10356rm -f conftest.$ac_objext 10357if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10358 (eval $ac_compile) 2>conftest.er1 10359 ac_status=$? 10360 grep -v '^ *+' conftest.er1 >conftest.err 10361 rm -f conftest.er1 10362 cat conftest.err >&5 10363 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10364 (exit $ac_status); } && 10365 { ac_try='test -z "$ac_c_werror_flag" 10366 || test ! -s conftest.err' 10367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10368 (eval $ac_try) 2>&5 10369 ac_status=$? 10370 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10371 (exit $ac_status); }; } && 10372 { ac_try='test -s conftest.$ac_objext' 10373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10374 (eval $ac_try) 2>&5 10375 ac_status=$? 10376 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10377 (exit $ac_status); }; }; then 10378 eval "$as_ac_Header=yes" 10379else 10380 echo "$as_me: failed program was:" >&5 10381sed 's/^/| /' conftest.$ac_ext >&5 10382 10383eval "$as_ac_Header=no" 10384fi 10385rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10386fi 10387echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 10388echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 10389if test `eval echo '${'$as_ac_Header'}'` = yes; then 10390 cat >>confdefs.h <<_ACEOF 10391#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 10392_ACEOF 10393 10394ac_header_dirent=$ac_hdr; break 10395fi 10396 10397done 10398# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 10399if test $ac_header_dirent = dirent.h; then 10400 echo "$as_me:$LINENO: checking for library containing opendir" >&5 10401echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 10402if test "${ac_cv_search_opendir+set}" = set; then 10403 echo $ECHO_N "(cached) $ECHO_C" >&6 10404else 10405 ac_func_search_save_LIBS=$LIBS 10406ac_cv_search_opendir=no 10407cat >conftest.$ac_ext <<_ACEOF 10408/* confdefs.h. */ 10409_ACEOF 10410cat confdefs.h >>conftest.$ac_ext 10411cat >>conftest.$ac_ext <<_ACEOF 10412/* end confdefs.h. */ 10413 10414/* Override any gcc2 internal prototype to avoid an error. */ 10415#ifdef __cplusplus 10416extern "C" 10417#endif 10418/* We use char because int might match the return type of a gcc2 10419 builtin and then its argument prototype would still apply. */ 10420char opendir (); 10421int 10422main () 10423{ 10424opendir (); 10425 ; 10426 return 0; 10427} 10428_ACEOF 10429rm -f conftest.$ac_objext conftest$ac_exeext 10430if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10431 (eval $ac_link) 2>conftest.er1 10432 ac_status=$? 10433 grep -v '^ *+' conftest.er1 >conftest.err 10434 rm -f conftest.er1 10435 cat conftest.err >&5 10436 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10437 (exit $ac_status); } && 10438 { ac_try='test -z "$ac_c_werror_flag" 10439 || test ! -s conftest.err' 10440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10441 (eval $ac_try) 2>&5 10442 ac_status=$? 10443 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10444 (exit $ac_status); }; } && 10445 { ac_try='test -s conftest$ac_exeext' 10446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10447 (eval $ac_try) 2>&5 10448 ac_status=$? 10449 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10450 (exit $ac_status); }; }; then 10451 ac_cv_search_opendir="none required" 10452else 10453 echo "$as_me: failed program was:" >&5 10454sed 's/^/| /' conftest.$ac_ext >&5 10455 10456fi 10457rm -f conftest.err conftest.$ac_objext \ 10458 conftest$ac_exeext conftest.$ac_ext 10459if test "$ac_cv_search_opendir" = no; then 10460 for ac_lib in dir; do 10461 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 10462 cat >conftest.$ac_ext <<_ACEOF 10463/* confdefs.h. */ 10464_ACEOF 10465cat confdefs.h >>conftest.$ac_ext 10466cat >>conftest.$ac_ext <<_ACEOF 10467/* end confdefs.h. */ 10468 10469/* Override any gcc2 internal prototype to avoid an error. */ 10470#ifdef __cplusplus 10471extern "C" 10472#endif 10473/* We use char because int might match the return type of a gcc2 10474 builtin and then its argument prototype would still apply. */ 10475char opendir (); 10476int 10477main () 10478{ 10479opendir (); 10480 ; 10481 return 0; 10482} 10483_ACEOF 10484rm -f conftest.$ac_objext conftest$ac_exeext 10485if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10486 (eval $ac_link) 2>conftest.er1 10487 ac_status=$? 10488 grep -v '^ *+' conftest.er1 >conftest.err 10489 rm -f conftest.er1 10490 cat conftest.err >&5 10491 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10492 (exit $ac_status); } && 10493 { ac_try='test -z "$ac_c_werror_flag" 10494 || test ! -s conftest.err' 10495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10496 (eval $ac_try) 2>&5 10497 ac_status=$? 10498 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10499 (exit $ac_status); }; } && 10500 { ac_try='test -s conftest$ac_exeext' 10501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10502 (eval $ac_try) 2>&5 10503 ac_status=$? 10504 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10505 (exit $ac_status); }; }; then 10506 ac_cv_search_opendir="-l$ac_lib" 10507break 10508else 10509 echo "$as_me: failed program was:" >&5 10510sed 's/^/| /' conftest.$ac_ext >&5 10511 10512fi 10513rm -f conftest.err conftest.$ac_objext \ 10514 conftest$ac_exeext conftest.$ac_ext 10515 done 10516fi 10517LIBS=$ac_func_search_save_LIBS 10518fi 10519echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 10520echo "${ECHO_T}$ac_cv_search_opendir" >&6 10521if test "$ac_cv_search_opendir" != no; then 10522 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" 10523 10524fi 10525 10526else 10527 echo "$as_me:$LINENO: checking for library containing opendir" >&5 10528echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 10529if test "${ac_cv_search_opendir+set}" = set; then 10530 echo $ECHO_N "(cached) $ECHO_C" >&6 10531else 10532 ac_func_search_save_LIBS=$LIBS 10533ac_cv_search_opendir=no 10534cat >conftest.$ac_ext <<_ACEOF 10535/* confdefs.h. */ 10536_ACEOF 10537cat confdefs.h >>conftest.$ac_ext 10538cat >>conftest.$ac_ext <<_ACEOF 10539/* end confdefs.h. */ 10540 10541/* Override any gcc2 internal prototype to avoid an error. */ 10542#ifdef __cplusplus 10543extern "C" 10544#endif 10545/* We use char because int might match the return type of a gcc2 10546 builtin and then its argument prototype would still apply. */ 10547char opendir (); 10548int 10549main () 10550{ 10551opendir (); 10552 ; 10553 return 0; 10554} 10555_ACEOF 10556rm -f conftest.$ac_objext conftest$ac_exeext 10557if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10558 (eval $ac_link) 2>conftest.er1 10559 ac_status=$? 10560 grep -v '^ *+' conftest.er1 >conftest.err 10561 rm -f conftest.er1 10562 cat conftest.err >&5 10563 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10564 (exit $ac_status); } && 10565 { ac_try='test -z "$ac_c_werror_flag" 10566 || test ! -s conftest.err' 10567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10568 (eval $ac_try) 2>&5 10569 ac_status=$? 10570 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10571 (exit $ac_status); }; } && 10572 { ac_try='test -s conftest$ac_exeext' 10573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10574 (eval $ac_try) 2>&5 10575 ac_status=$? 10576 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10577 (exit $ac_status); }; }; then 10578 ac_cv_search_opendir="none required" 10579else 10580 echo "$as_me: failed program was:" >&5 10581sed 's/^/| /' conftest.$ac_ext >&5 10582 10583fi 10584rm -f conftest.err conftest.$ac_objext \ 10585 conftest$ac_exeext conftest.$ac_ext 10586if test "$ac_cv_search_opendir" = no; then 10587 for ac_lib in x; do 10588 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 10589 cat >conftest.$ac_ext <<_ACEOF 10590/* confdefs.h. */ 10591_ACEOF 10592cat confdefs.h >>conftest.$ac_ext 10593cat >>conftest.$ac_ext <<_ACEOF 10594/* end confdefs.h. */ 10595 10596/* Override any gcc2 internal prototype to avoid an error. */ 10597#ifdef __cplusplus 10598extern "C" 10599#endif 10600/* We use char because int might match the return type of a gcc2 10601 builtin and then its argument prototype would still apply. */ 10602char opendir (); 10603int 10604main () 10605{ 10606opendir (); 10607 ; 10608 return 0; 10609} 10610_ACEOF 10611rm -f conftest.$ac_objext conftest$ac_exeext 10612if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10613 (eval $ac_link) 2>conftest.er1 10614 ac_status=$? 10615 grep -v '^ *+' conftest.er1 >conftest.err 10616 rm -f conftest.er1 10617 cat conftest.err >&5 10618 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10619 (exit $ac_status); } && 10620 { ac_try='test -z "$ac_c_werror_flag" 10621 || test ! -s conftest.err' 10622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10623 (eval $ac_try) 2>&5 10624 ac_status=$? 10625 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10626 (exit $ac_status); }; } && 10627 { ac_try='test -s conftest$ac_exeext' 10628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10629 (eval $ac_try) 2>&5 10630 ac_status=$? 10631 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10632 (exit $ac_status); }; }; then 10633 ac_cv_search_opendir="-l$ac_lib" 10634break 10635else 10636 echo "$as_me: failed program was:" >&5 10637sed 's/^/| /' conftest.$ac_ext >&5 10638 10639fi 10640rm -f conftest.err conftest.$ac_objext \ 10641 conftest$ac_exeext conftest.$ac_ext 10642 done 10643fi 10644LIBS=$ac_func_search_save_LIBS 10645fi 10646echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 10647echo "${ECHO_T}$ac_cv_search_opendir" >&6 10648if test "$ac_cv_search_opendir" != no; then 10649 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" 10650 10651fi 10652 10653fi 10654 10655 10656echo "$as_me:$LINENO: checking for ANSI C header files" >&5 10657echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 10658if test "${ac_cv_header_stdc+set}" = set; then 10659 echo $ECHO_N "(cached) $ECHO_C" >&6 10660else 10661 cat >conftest.$ac_ext <<_ACEOF 10662/* confdefs.h. */ 10663_ACEOF 10664cat confdefs.h >>conftest.$ac_ext 10665cat >>conftest.$ac_ext <<_ACEOF 10666/* end confdefs.h. */ 10667#include <stdlib.h> 10668#include <stdarg.h> 10669#include <string.h> 10670#include <float.h> 10671 10672int 10673main () 10674{ 10675 10676 ; 10677 return 0; 10678} 10679_ACEOF 10680rm -f conftest.$ac_objext 10681if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10682 (eval $ac_compile) 2>conftest.er1 10683 ac_status=$? 10684 grep -v '^ *+' conftest.er1 >conftest.err 10685 rm -f conftest.er1 10686 cat conftest.err >&5 10687 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10688 (exit $ac_status); } && 10689 { ac_try='test -z "$ac_c_werror_flag" 10690 || test ! -s conftest.err' 10691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10692 (eval $ac_try) 2>&5 10693 ac_status=$? 10694 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10695 (exit $ac_status); }; } && 10696 { ac_try='test -s conftest.$ac_objext' 10697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10698 (eval $ac_try) 2>&5 10699 ac_status=$? 10700 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10701 (exit $ac_status); }; }; then 10702 ac_cv_header_stdc=yes 10703else 10704 echo "$as_me: failed program was:" >&5 10705sed 's/^/| /' conftest.$ac_ext >&5 10706 10707ac_cv_header_stdc=no 10708fi 10709rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10710 10711if test $ac_cv_header_stdc = yes; then 10712 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 10713 cat >conftest.$ac_ext <<_ACEOF 10714/* confdefs.h. */ 10715_ACEOF 10716cat confdefs.h >>conftest.$ac_ext 10717cat >>conftest.$ac_ext <<_ACEOF 10718/* end confdefs.h. */ 10719#include <string.h> 10720 10721_ACEOF 10722if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 10723 $EGREP "memchr" >/dev/null 2>&1; then 10724 : 10725else 10726 ac_cv_header_stdc=no 10727fi 10728rm -f conftest* 10729 10730fi 10731 10732if test $ac_cv_header_stdc = yes; then 10733 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 10734 cat >conftest.$ac_ext <<_ACEOF 10735/* confdefs.h. */ 10736_ACEOF 10737cat confdefs.h >>conftest.$ac_ext 10738cat >>conftest.$ac_ext <<_ACEOF 10739/* end confdefs.h. */ 10740#include <stdlib.h> 10741 10742_ACEOF 10743if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 10744 $EGREP "free" >/dev/null 2>&1; then 10745 : 10746else 10747 ac_cv_header_stdc=no 10748fi 10749rm -f conftest* 10750 10751fi 10752 10753if test $ac_cv_header_stdc = yes; then 10754 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 10755 if test "$cross_compiling" = yes; then 10756 : 10757else 10758 cat >conftest.$ac_ext <<_ACEOF 10759/* confdefs.h. */ 10760_ACEOF 10761cat confdefs.h >>conftest.$ac_ext 10762cat >>conftest.$ac_ext <<_ACEOF 10763/* end confdefs.h. */ 10764#include <ctype.h> 10765#if ((' ' & 0x0FF) == 0x020) 10766# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 10767# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 10768#else 10769# define ISLOWER(c) \ 10770 (('a' <= (c) && (c) <= 'i') \ 10771 || ('j' <= (c) && (c) <= 'r') \ 10772 || ('s' <= (c) && (c) <= 'z')) 10773# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 10774#endif 10775 10776#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 10777int 10778main () 10779{ 10780 int i; 10781 for (i = 0; i < 256; i++) 10782 if (XOR (islower (i), ISLOWER (i)) 10783 || toupper (i) != TOUPPER (i)) 10784 exit(2); 10785 exit (0); 10786} 10787_ACEOF 10788rm -f conftest$ac_exeext 10789if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10790 (eval $ac_link) 2>&5 10791 ac_status=$? 10792 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10793 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 10794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10795 (eval $ac_try) 2>&5 10796 ac_status=$? 10797 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10798 (exit $ac_status); }; }; then 10799 : 10800else 10801 echo "$as_me: program exited with status $ac_status" >&5 10802echo "$as_me: failed program was:" >&5 10803sed 's/^/| /' conftest.$ac_ext >&5 10804 10805( exit $ac_status ) 10806ac_cv_header_stdc=no 10807fi 10808rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 10809fi 10810fi 10811fi 10812echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 10813echo "${ECHO_T}$ac_cv_header_stdc" >&6 10814if test $ac_cv_header_stdc = yes; then 10815 10816cat >>confdefs.h <<\_ACEOF 10817#define STDC_HEADERS 1 10818_ACEOF 10819 10820fi 10821 10822echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 10823echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6 10824if test "${ac_cv_header_sys_wait_h+set}" = set; then 10825 echo $ECHO_N "(cached) $ECHO_C" >&6 10826else 10827 cat >conftest.$ac_ext <<_ACEOF 10828/* confdefs.h. */ 10829_ACEOF 10830cat confdefs.h >>conftest.$ac_ext 10831cat >>conftest.$ac_ext <<_ACEOF 10832/* end confdefs.h. */ 10833#include <sys/types.h> 10834#include <sys/wait.h> 10835#ifndef WEXITSTATUS 10836# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) 10837#endif 10838#ifndef WIFEXITED 10839# define WIFEXITED(stat_val) (((stat_val) & 255) == 0) 10840#endif 10841 10842int 10843main () 10844{ 10845 int s; 10846 wait (&s); 10847 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 10848 ; 10849 return 0; 10850} 10851_ACEOF 10852rm -f conftest.$ac_objext 10853if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10854 (eval $ac_compile) 2>conftest.er1 10855 ac_status=$? 10856 grep -v '^ *+' conftest.er1 >conftest.err 10857 rm -f conftest.er1 10858 cat conftest.err >&5 10859 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10860 (exit $ac_status); } && 10861 { ac_try='test -z "$ac_c_werror_flag" 10862 || test ! -s conftest.err' 10863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10864 (eval $ac_try) 2>&5 10865 ac_status=$? 10866 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10867 (exit $ac_status); }; } && 10868 { ac_try='test -s conftest.$ac_objext' 10869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10870 (eval $ac_try) 2>&5 10871 ac_status=$? 10872 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10873 (exit $ac_status); }; }; then 10874 ac_cv_header_sys_wait_h=yes 10875else 10876 echo "$as_me: failed program was:" >&5 10877sed 's/^/| /' conftest.$ac_ext >&5 10878 10879ac_cv_header_sys_wait_h=no 10880fi 10881rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10882fi 10883echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 10884echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6 10885if test $ac_cv_header_sys_wait_h = yes; then 10886 10887cat >>confdefs.h <<\_ACEOF 10888#define HAVE_SYS_WAIT_H 1 10889_ACEOF 10890 10891fi 10892 10893 10894if test $ac_cv_header_sys_wait_h = no; then 10895 echo "$as_me:$LINENO: checking for sys/wait.h that defines union wait" >&5 10896echo $ECHO_N "checking for sys/wait.h that defines union wait... $ECHO_C" >&6 10897 cat >conftest.$ac_ext <<_ACEOF 10898/* confdefs.h. */ 10899_ACEOF 10900cat confdefs.h >>conftest.$ac_ext 10901cat >>conftest.$ac_ext <<_ACEOF 10902/* end confdefs.h. */ 10903#include <sys/wait.h> 10904int 10905main () 10906{ 10907union wait xx, yy; xx = yy 10908 ; 10909 return 0; 10910} 10911_ACEOF 10912rm -f conftest.$ac_objext 10913if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10914 (eval $ac_compile) 2>conftest.er1 10915 ac_status=$? 10916 grep -v '^ *+' conftest.er1 >conftest.err 10917 rm -f conftest.er1 10918 cat conftest.err >&5 10919 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10920 (exit $ac_status); } && 10921 { ac_try='test -z "$ac_c_werror_flag" 10922 || test ! -s conftest.err' 10923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10924 (eval $ac_try) 2>&5 10925 ac_status=$? 10926 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10927 (exit $ac_status); }; } && 10928 { ac_try='test -s conftest.$ac_objext' 10929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10930 (eval $ac_try) 2>&5 10931 ac_status=$? 10932 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10933 (exit $ac_status); }; }; then 10934 echo "$as_me:$LINENO: result: yes" >&5 10935echo "${ECHO_T}yes" >&6 10936 cat >>confdefs.h <<\_ACEOF 10937#define HAVE_SYS_WAIT_H 1 10938_ACEOF 10939 10940 cat >>confdefs.h <<\_ACEOF 10941#define HAVE_UNION_WAIT 1 10942_ACEOF 10943 10944else 10945 echo "$as_me: failed program was:" >&5 10946sed 's/^/| /' conftest.$ac_ext >&5 10947 10948echo "$as_me:$LINENO: result: no" >&5 10949echo "${ECHO_T}no" >&6 10950fi 10951rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10952fi 10953 10954 10955 10956 10957 10958 10959 10960 10961 10962 10963 10964 10965 10966 10967 10968 10969 10970 10971 10972 10973 10974 10975 10976 10977 10978 10979 10980 10981 10982 10983 10984 10985 10986 10987 10988 10989 10990 10991 10992 10993 10994for ac_header in stdarg.h stdlib.h string.h sys/select.h sys/utsname.h \ 10995 termcap.h fcntl.h sgtty.h sys/ioctl.h sys/time.h termio.h \ 10996 iconv.h langinfo.h unistd.h stropts.h errno.h \ 10997 sys/resource.h sys/systeminfo.h locale.h \ 10998 sys/stream.h sys/ptem.h termios.h libc.h sys/statfs.h \ 10999 poll.h sys/poll.h pwd.h utime.h sys/param.h libintl.h \ 11000 libgen.h util/debug.h util/msg18n.h frame.h \ 11001 sys/acl.h sys/access.h sys/sysctl.h sys/sysinfo.h wchar.h wctype.h 11002do 11003as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 11004if eval "test \"\${$as_ac_Header+set}\" = set"; then 11005 echo "$as_me:$LINENO: checking for $ac_header" >&5 11006echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 11007if eval "test \"\${$as_ac_Header+set}\" = set"; then 11008 echo $ECHO_N "(cached) $ECHO_C" >&6 11009fi 11010echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 11011echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 11012else 11013 # Is the header compilable? 11014echo "$as_me:$LINENO: checking $ac_header usability" >&5 11015echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 11016cat >conftest.$ac_ext <<_ACEOF 11017/* confdefs.h. */ 11018_ACEOF 11019cat confdefs.h >>conftest.$ac_ext 11020cat >>conftest.$ac_ext <<_ACEOF 11021/* end confdefs.h. */ 11022$ac_includes_default 11023#include <$ac_header> 11024_ACEOF 11025rm -f conftest.$ac_objext 11026if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11027 (eval $ac_compile) 2>conftest.er1 11028 ac_status=$? 11029 grep -v '^ *+' conftest.er1 >conftest.err 11030 rm -f conftest.er1 11031 cat conftest.err >&5 11032 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11033 (exit $ac_status); } && 11034 { ac_try='test -z "$ac_c_werror_flag" 11035 || test ! -s conftest.err' 11036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11037 (eval $ac_try) 2>&5 11038 ac_status=$? 11039 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11040 (exit $ac_status); }; } && 11041 { ac_try='test -s conftest.$ac_objext' 11042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11043 (eval $ac_try) 2>&5 11044 ac_status=$? 11045 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11046 (exit $ac_status); }; }; then 11047 ac_header_compiler=yes 11048else 11049 echo "$as_me: failed program was:" >&5 11050sed 's/^/| /' conftest.$ac_ext >&5 11051 11052ac_header_compiler=no 11053fi 11054rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 11055echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 11056echo "${ECHO_T}$ac_header_compiler" >&6 11057 11058# Is the header present? 11059echo "$as_me:$LINENO: checking $ac_header presence" >&5 11060echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 11061cat >conftest.$ac_ext <<_ACEOF 11062/* confdefs.h. */ 11063_ACEOF 11064cat confdefs.h >>conftest.$ac_ext 11065cat >>conftest.$ac_ext <<_ACEOF 11066/* end confdefs.h. */ 11067#include <$ac_header> 11068_ACEOF 11069if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 11070 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 11071 ac_status=$? 11072 grep -v '^ *+' conftest.er1 >conftest.err 11073 rm -f conftest.er1 11074 cat conftest.err >&5 11075 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11076 (exit $ac_status); } >/dev/null; then 11077 if test -s conftest.err; then 11078 ac_cpp_err=$ac_c_preproc_warn_flag 11079 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 11080 else 11081 ac_cpp_err= 11082 fi 11083else 11084 ac_cpp_err=yes 11085fi 11086if test -z "$ac_cpp_err"; then 11087 ac_header_preproc=yes 11088else 11089 echo "$as_me: failed program was:" >&5 11090sed 's/^/| /' conftest.$ac_ext >&5 11091 11092 ac_header_preproc=no 11093fi 11094rm -f conftest.err conftest.$ac_ext 11095echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 11096echo "${ECHO_T}$ac_header_preproc" >&6 11097 11098# So? What about this header? 11099case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 11100 yes:no: ) 11101 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 11102echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 11103 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 11104echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 11105 ac_header_preproc=yes 11106 ;; 11107 no:yes:* ) 11108 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 11109echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 11110 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 11111echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 11112 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 11113echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 11114 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 11115echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 11116 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 11117echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 11118 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 11119echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 11120 ( 11121 cat <<\_ASBOX 11122## ------------------------------------------ ## 11123## Report this to the AC_PACKAGE_NAME lists. ## 11124## ------------------------------------------ ## 11125_ASBOX 11126 ) | 11127 sed "s/^/$as_me: WARNING: /" >&2 11128 ;; 11129esac 11130echo "$as_me:$LINENO: checking for $ac_header" >&5 11131echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 11132if eval "test \"\${$as_ac_Header+set}\" = set"; then 11133 echo $ECHO_N "(cached) $ECHO_C" >&6 11134else 11135 eval "$as_ac_Header=\$ac_header_preproc" 11136fi 11137echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 11138echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 11139 11140fi 11141if test `eval echo '${'$as_ac_Header'}'` = yes; then 11142 cat >>confdefs.h <<_ACEOF 11143#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 11144_ACEOF 11145 11146fi 11147 11148done 11149 11150 11151echo "$as_me:$LINENO: checking for pthread_np.h" >&5 11152echo $ECHO_N "checking for pthread_np.h... $ECHO_C" >&6 11153cat >conftest.$ac_ext <<_ACEOF 11154/* confdefs.h. */ 11155_ACEOF 11156cat confdefs.h >>conftest.$ac_ext 11157cat >>conftest.$ac_ext <<_ACEOF 11158/* end confdefs.h. */ 11159 11160#include <pthread.h> 11161#include <pthread_np.h> 11162int 11163main () 11164{ 11165int i; i = 0; 11166 ; 11167 return 0; 11168} 11169_ACEOF 11170rm -f conftest.$ac_objext 11171if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11172 (eval $ac_compile) 2>conftest.er1 11173 ac_status=$? 11174 grep -v '^ *+' conftest.er1 >conftest.err 11175 rm -f conftest.er1 11176 cat conftest.err >&5 11177 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11178 (exit $ac_status); } && 11179 { ac_try='test -z "$ac_c_werror_flag" 11180 || test ! -s conftest.err' 11181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11182 (eval $ac_try) 2>&5 11183 ac_status=$? 11184 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11185 (exit $ac_status); }; } && 11186 { ac_try='test -s conftest.$ac_objext' 11187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11188 (eval $ac_try) 2>&5 11189 ac_status=$? 11190 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11191 (exit $ac_status); }; }; then 11192 echo "$as_me:$LINENO: result: yes" >&5 11193echo "${ECHO_T}yes" >&6 11194 cat >>confdefs.h <<\_ACEOF 11195#define HAVE_PTHREAD_NP_H 1 11196_ACEOF 11197 11198else 11199 echo "$as_me: failed program was:" >&5 11200sed 's/^/| /' conftest.$ac_ext >&5 11201 11202echo "$as_me:$LINENO: result: no" >&5 11203echo "${ECHO_T}no" >&6 11204fi 11205rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 11206 11207 11208for ac_header in strings.h 11209do 11210as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 11211if eval "test \"\${$as_ac_Header+set}\" = set"; then 11212 echo "$as_me:$LINENO: checking for $ac_header" >&5 11213echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 11214if eval "test \"\${$as_ac_Header+set}\" = set"; then 11215 echo $ECHO_N "(cached) $ECHO_C" >&6 11216fi 11217echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 11218echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 11219else 11220 # Is the header compilable? 11221echo "$as_me:$LINENO: checking $ac_header usability" >&5 11222echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 11223cat >conftest.$ac_ext <<_ACEOF 11224/* confdefs.h. */ 11225_ACEOF 11226cat confdefs.h >>conftest.$ac_ext 11227cat >>conftest.$ac_ext <<_ACEOF 11228/* end confdefs.h. */ 11229$ac_includes_default 11230#include <$ac_header> 11231_ACEOF 11232rm -f conftest.$ac_objext 11233if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11234 (eval $ac_compile) 2>conftest.er1 11235 ac_status=$? 11236 grep -v '^ *+' conftest.er1 >conftest.err 11237 rm -f conftest.er1 11238 cat conftest.err >&5 11239 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11240 (exit $ac_status); } && 11241 { ac_try='test -z "$ac_c_werror_flag" 11242 || test ! -s conftest.err' 11243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11244 (eval $ac_try) 2>&5 11245 ac_status=$? 11246 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11247 (exit $ac_status); }; } && 11248 { ac_try='test -s conftest.$ac_objext' 11249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11250 (eval $ac_try) 2>&5 11251 ac_status=$? 11252 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11253 (exit $ac_status); }; }; then 11254 ac_header_compiler=yes 11255else 11256 echo "$as_me: failed program was:" >&5 11257sed 's/^/| /' conftest.$ac_ext >&5 11258 11259ac_header_compiler=no 11260fi 11261rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 11262echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 11263echo "${ECHO_T}$ac_header_compiler" >&6 11264 11265# Is the header present? 11266echo "$as_me:$LINENO: checking $ac_header presence" >&5 11267echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 11268cat >conftest.$ac_ext <<_ACEOF 11269/* confdefs.h. */ 11270_ACEOF 11271cat confdefs.h >>conftest.$ac_ext 11272cat >>conftest.$ac_ext <<_ACEOF 11273/* end confdefs.h. */ 11274#include <$ac_header> 11275_ACEOF 11276if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 11277 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 11278 ac_status=$? 11279 grep -v '^ *+' conftest.er1 >conftest.err 11280 rm -f conftest.er1 11281 cat conftest.err >&5 11282 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11283 (exit $ac_status); } >/dev/null; then 11284 if test -s conftest.err; then 11285 ac_cpp_err=$ac_c_preproc_warn_flag 11286 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 11287 else 11288 ac_cpp_err= 11289 fi 11290else 11291 ac_cpp_err=yes 11292fi 11293if test -z "$ac_cpp_err"; then 11294 ac_header_preproc=yes 11295else 11296 echo "$as_me: failed program was:" >&5 11297sed 's/^/| /' conftest.$ac_ext >&5 11298 11299 ac_header_preproc=no 11300fi 11301rm -f conftest.err conftest.$ac_ext 11302echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 11303echo "${ECHO_T}$ac_header_preproc" >&6 11304 11305# So? What about this header? 11306case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 11307 yes:no: ) 11308 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 11309echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 11310 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 11311echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 11312 ac_header_preproc=yes 11313 ;; 11314 no:yes:* ) 11315 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 11316echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 11317 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 11318echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 11319 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 11320echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 11321 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 11322echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 11323 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 11324echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 11325 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 11326echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 11327 ( 11328 cat <<\_ASBOX 11329## ------------------------------------------ ## 11330## Report this to the AC_PACKAGE_NAME lists. ## 11331## ------------------------------------------ ## 11332_ASBOX 11333 ) | 11334 sed "s/^/$as_me: WARNING: /" >&2 11335 ;; 11336esac 11337echo "$as_me:$LINENO: checking for $ac_header" >&5 11338echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 11339if eval "test \"\${$as_ac_Header+set}\" = set"; then 11340 echo $ECHO_N "(cached) $ECHO_C" >&6 11341else 11342 eval "$as_ac_Header=\$ac_header_preproc" 11343fi 11344echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 11345echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 11346 11347fi 11348if test `eval echo '${'$as_ac_Header'}'` = yes; then 11349 cat >>confdefs.h <<_ACEOF 11350#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 11351_ACEOF 11352 11353fi 11354 11355done 11356 11357 11358echo "$as_me:$LINENO: checking if strings.h can be included after string.h" >&5 11359echo $ECHO_N "checking if strings.h can be included after string.h... $ECHO_C" >&6 11360cppflags_save=$CPPFLAGS 11361CPPFLAGS="$CPPFLAGS $X_CFLAGS" 11362cat >conftest.$ac_ext <<_ACEOF 11363/* confdefs.h. */ 11364_ACEOF 11365cat confdefs.h >>conftest.$ac_ext 11366cat >>conftest.$ac_ext <<_ACEOF 11367/* end confdefs.h. */ 11368 11369#if defined(_AIX) && !defined(_AIX51) && !defined(_NO_PROTO) 11370# define _NO_PROTO /* like in os_unix.h, causes conflict for AIX (Winn) */ 11371 /* but don't do it on AIX 5.1 (Uribarri) */ 11372#endif 11373#ifdef HAVE_XM_XM_H 11374# include <Xm/Xm.h> /* This breaks it for HP-UX 11 (Squassabia) */ 11375#endif 11376#ifdef HAVE_STRING_H 11377# include <string.h> 11378#endif 11379#if defined(HAVE_STRINGS_H) 11380# include <strings.h> 11381#endif 11382 11383int 11384main () 11385{ 11386int i; i = 0; 11387 ; 11388 return 0; 11389} 11390_ACEOF 11391rm -f conftest.$ac_objext 11392if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11393 (eval $ac_compile) 2>conftest.er1 11394 ac_status=$? 11395 grep -v '^ *+' conftest.er1 >conftest.err 11396 rm -f conftest.er1 11397 cat conftest.err >&5 11398 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11399 (exit $ac_status); } && 11400 { ac_try='test -z "$ac_c_werror_flag" 11401 || test ! -s conftest.err' 11402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11403 (eval $ac_try) 2>&5 11404 ac_status=$? 11405 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11406 (exit $ac_status); }; } && 11407 { ac_try='test -s conftest.$ac_objext' 11408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11409 (eval $ac_try) 2>&5 11410 ac_status=$? 11411 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11412 (exit $ac_status); }; }; then 11413 echo "$as_me:$LINENO: result: yes" >&5 11414echo "${ECHO_T}yes" >&6 11415else 11416 echo "$as_me: failed program was:" >&5 11417sed 's/^/| /' conftest.$ac_ext >&5 11418 11419cat >>confdefs.h <<\_ACEOF 11420#define NO_STRINGS_WITH_STRING_H 1 11421_ACEOF 11422 11423 echo "$as_me:$LINENO: result: no" >&5 11424echo "${ECHO_T}no" >&6 11425fi 11426rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 11427CPPFLAGS=$cppflags_save 11428 11429if test $ac_cv_c_compiler_gnu = yes; then 11430 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5 11431echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6 11432if test "${ac_cv_prog_gcc_traditional+set}" = set; then 11433 echo $ECHO_N "(cached) $ECHO_C" >&6 11434else 11435 ac_pattern="Autoconf.*'x'" 11436 cat >conftest.$ac_ext <<_ACEOF 11437/* confdefs.h. */ 11438_ACEOF 11439cat confdefs.h >>conftest.$ac_ext 11440cat >>conftest.$ac_ext <<_ACEOF 11441/* end confdefs.h. */ 11442#include <sgtty.h> 11443Autoconf TIOCGETP 11444_ACEOF 11445if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11446 $EGREP "$ac_pattern" >/dev/null 2>&1; then 11447 ac_cv_prog_gcc_traditional=yes 11448else 11449 ac_cv_prog_gcc_traditional=no 11450fi 11451rm -f conftest* 11452 11453 11454 if test $ac_cv_prog_gcc_traditional = no; then 11455 cat >conftest.$ac_ext <<_ACEOF 11456/* confdefs.h. */ 11457_ACEOF 11458cat confdefs.h >>conftest.$ac_ext 11459cat >>conftest.$ac_ext <<_ACEOF 11460/* end confdefs.h. */ 11461#include <termio.h> 11462Autoconf TCGETA 11463_ACEOF 11464if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11465 $EGREP "$ac_pattern" >/dev/null 2>&1; then 11466 ac_cv_prog_gcc_traditional=yes 11467fi 11468rm -f conftest* 11469 11470 fi 11471fi 11472echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5 11473echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6 11474 if test $ac_cv_prog_gcc_traditional = yes; then 11475 CC="$CC -traditional" 11476 fi 11477fi 11478 11479echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 11480echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 11481if test "${ac_cv_c_const+set}" = set; then 11482 echo $ECHO_N "(cached) $ECHO_C" >&6 11483else 11484 cat >conftest.$ac_ext <<_ACEOF 11485/* confdefs.h. */ 11486_ACEOF 11487cat confdefs.h >>conftest.$ac_ext 11488cat >>conftest.$ac_ext <<_ACEOF 11489/* end confdefs.h. */ 11490 11491int 11492main () 11493{ 11494/* FIXME: Include the comments suggested by Paul. */ 11495#ifndef __cplusplus 11496 /* Ultrix mips cc rejects this. */ 11497 typedef int charset[2]; 11498 const charset x; 11499 /* SunOS 4.1.1 cc rejects this. */ 11500 char const *const *ccp; 11501 char **p; 11502 /* NEC SVR4.0.2 mips cc rejects this. */ 11503 struct point {int x, y;}; 11504 static struct point const zero = {0,0}; 11505 /* AIX XL C 1.02.0.0 rejects this. 11506 It does not let you subtract one const X* pointer from another in 11507 an arm of an if-expression whose if-part is not a constant 11508 expression */ 11509 const char *g = "string"; 11510 ccp = &g + (g ? g-g : 0); 11511 /* HPUX 7.0 cc rejects these. */ 11512 ++ccp; 11513 p = (char**) ccp; 11514 ccp = (char const *const *) p; 11515 { /* SCO 3.2v4 cc rejects this. */ 11516 char *t; 11517 char const *s = 0 ? (char *) 0 : (char const *) 0; 11518 11519 *t++ = 0; 11520 } 11521 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 11522 int x[] = {25, 17}; 11523 const int *foo = &x[0]; 11524 ++foo; 11525 } 11526 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 11527 typedef const int *iptr; 11528 iptr p = 0; 11529 ++p; 11530 } 11531 { /* AIX XL C 1.02.0.0 rejects this saying 11532 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 11533 struct s { int j; const int *ap[3]; }; 11534 struct s *b; b->j = 5; 11535 } 11536 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 11537 const int foo = 10; 11538 } 11539#endif 11540 11541 ; 11542 return 0; 11543} 11544_ACEOF 11545rm -f conftest.$ac_objext 11546if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11547 (eval $ac_compile) 2>conftest.er1 11548 ac_status=$? 11549 grep -v '^ *+' conftest.er1 >conftest.err 11550 rm -f conftest.er1 11551 cat conftest.err >&5 11552 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11553 (exit $ac_status); } && 11554 { ac_try='test -z "$ac_c_werror_flag" 11555 || test ! -s conftest.err' 11556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11557 (eval $ac_try) 2>&5 11558 ac_status=$? 11559 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11560 (exit $ac_status); }; } && 11561 { ac_try='test -s conftest.$ac_objext' 11562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11563 (eval $ac_try) 2>&5 11564 ac_status=$? 11565 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11566 (exit $ac_status); }; }; then 11567 ac_cv_c_const=yes 11568else 11569 echo "$as_me: failed program was:" >&5 11570sed 's/^/| /' conftest.$ac_ext >&5 11571 11572ac_cv_c_const=no 11573fi 11574rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 11575fi 11576echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 11577echo "${ECHO_T}$ac_cv_c_const" >&6 11578if test $ac_cv_c_const = no; then 11579 11580cat >>confdefs.h <<\_ACEOF 11581#define const 11582_ACEOF 11583 11584fi 11585 11586echo "$as_me:$LINENO: checking for mode_t" >&5 11587echo $ECHO_N "checking for mode_t... $ECHO_C" >&6 11588if test "${ac_cv_type_mode_t+set}" = set; then 11589 echo $ECHO_N "(cached) $ECHO_C" >&6 11590else 11591 cat >conftest.$ac_ext <<_ACEOF 11592/* confdefs.h. */ 11593_ACEOF 11594cat confdefs.h >>conftest.$ac_ext 11595cat >>conftest.$ac_ext <<_ACEOF 11596/* end confdefs.h. */ 11597$ac_includes_default 11598int 11599main () 11600{ 11601if ((mode_t *) 0) 11602 return 0; 11603if (sizeof (mode_t)) 11604 return 0; 11605 ; 11606 return 0; 11607} 11608_ACEOF 11609rm -f conftest.$ac_objext 11610if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11611 (eval $ac_compile) 2>conftest.er1 11612 ac_status=$? 11613 grep -v '^ *+' conftest.er1 >conftest.err 11614 rm -f conftest.er1 11615 cat conftest.err >&5 11616 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11617 (exit $ac_status); } && 11618 { ac_try='test -z "$ac_c_werror_flag" 11619 || test ! -s conftest.err' 11620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11621 (eval $ac_try) 2>&5 11622 ac_status=$? 11623 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11624 (exit $ac_status); }; } && 11625 { ac_try='test -s conftest.$ac_objext' 11626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11627 (eval $ac_try) 2>&5 11628 ac_status=$? 11629 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11630 (exit $ac_status); }; }; then 11631 ac_cv_type_mode_t=yes 11632else 11633 echo "$as_me: failed program was:" >&5 11634sed 's/^/| /' conftest.$ac_ext >&5 11635 11636ac_cv_type_mode_t=no 11637fi 11638rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 11639fi 11640echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 11641echo "${ECHO_T}$ac_cv_type_mode_t" >&6 11642if test $ac_cv_type_mode_t = yes; then 11643 : 11644else 11645 11646cat >>confdefs.h <<_ACEOF 11647#define mode_t int 11648_ACEOF 11649 11650fi 11651 11652echo "$as_me:$LINENO: checking for off_t" >&5 11653echo $ECHO_N "checking for off_t... $ECHO_C" >&6 11654if test "${ac_cv_type_off_t+set}" = set; then 11655 echo $ECHO_N "(cached) $ECHO_C" >&6 11656else 11657 cat >conftest.$ac_ext <<_ACEOF 11658/* confdefs.h. */ 11659_ACEOF 11660cat confdefs.h >>conftest.$ac_ext 11661cat >>conftest.$ac_ext <<_ACEOF 11662/* end confdefs.h. */ 11663$ac_includes_default 11664int 11665main () 11666{ 11667if ((off_t *) 0) 11668 return 0; 11669if (sizeof (off_t)) 11670 return 0; 11671 ; 11672 return 0; 11673} 11674_ACEOF 11675rm -f conftest.$ac_objext 11676if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11677 (eval $ac_compile) 2>conftest.er1 11678 ac_status=$? 11679 grep -v '^ *+' conftest.er1 >conftest.err 11680 rm -f conftest.er1 11681 cat conftest.err >&5 11682 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11683 (exit $ac_status); } && 11684 { ac_try='test -z "$ac_c_werror_flag" 11685 || test ! -s conftest.err' 11686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11687 (eval $ac_try) 2>&5 11688 ac_status=$? 11689 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11690 (exit $ac_status); }; } && 11691 { ac_try='test -s conftest.$ac_objext' 11692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11693 (eval $ac_try) 2>&5 11694 ac_status=$? 11695 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11696 (exit $ac_status); }; }; then 11697 ac_cv_type_off_t=yes 11698else 11699 echo "$as_me: failed program was:" >&5 11700sed 's/^/| /' conftest.$ac_ext >&5 11701 11702ac_cv_type_off_t=no 11703fi 11704rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 11705fi 11706echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 11707echo "${ECHO_T}$ac_cv_type_off_t" >&6 11708if test $ac_cv_type_off_t = yes; then 11709 : 11710else 11711 11712cat >>confdefs.h <<_ACEOF 11713#define off_t long 11714_ACEOF 11715 11716fi 11717 11718echo "$as_me:$LINENO: checking for pid_t" >&5 11719echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 11720if test "${ac_cv_type_pid_t+set}" = set; then 11721 echo $ECHO_N "(cached) $ECHO_C" >&6 11722else 11723 cat >conftest.$ac_ext <<_ACEOF 11724/* confdefs.h. */ 11725_ACEOF 11726cat confdefs.h >>conftest.$ac_ext 11727cat >>conftest.$ac_ext <<_ACEOF 11728/* end confdefs.h. */ 11729$ac_includes_default 11730int 11731main () 11732{ 11733if ((pid_t *) 0) 11734 return 0; 11735if (sizeof (pid_t)) 11736 return 0; 11737 ; 11738 return 0; 11739} 11740_ACEOF 11741rm -f conftest.$ac_objext 11742if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11743 (eval $ac_compile) 2>conftest.er1 11744 ac_status=$? 11745 grep -v '^ *+' conftest.er1 >conftest.err 11746 rm -f conftest.er1 11747 cat conftest.err >&5 11748 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11749 (exit $ac_status); } && 11750 { ac_try='test -z "$ac_c_werror_flag" 11751 || test ! -s conftest.err' 11752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11753 (eval $ac_try) 2>&5 11754 ac_status=$? 11755 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11756 (exit $ac_status); }; } && 11757 { ac_try='test -s conftest.$ac_objext' 11758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11759 (eval $ac_try) 2>&5 11760 ac_status=$? 11761 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11762 (exit $ac_status); }; }; then 11763 ac_cv_type_pid_t=yes 11764else 11765 echo "$as_me: failed program was:" >&5 11766sed 's/^/| /' conftest.$ac_ext >&5 11767 11768ac_cv_type_pid_t=no 11769fi 11770rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 11771fi 11772echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 11773echo "${ECHO_T}$ac_cv_type_pid_t" >&6 11774if test $ac_cv_type_pid_t = yes; then 11775 : 11776else 11777 11778cat >>confdefs.h <<_ACEOF 11779#define pid_t int 11780_ACEOF 11781 11782fi 11783 11784echo "$as_me:$LINENO: checking for size_t" >&5 11785echo $ECHO_N "checking for size_t... $ECHO_C" >&6 11786if test "${ac_cv_type_size_t+set}" = set; then 11787 echo $ECHO_N "(cached) $ECHO_C" >&6 11788else 11789 cat >conftest.$ac_ext <<_ACEOF 11790/* confdefs.h. */ 11791_ACEOF 11792cat confdefs.h >>conftest.$ac_ext 11793cat >>conftest.$ac_ext <<_ACEOF 11794/* end confdefs.h. */ 11795$ac_includes_default 11796int 11797main () 11798{ 11799if ((size_t *) 0) 11800 return 0; 11801if (sizeof (size_t)) 11802 return 0; 11803 ; 11804 return 0; 11805} 11806_ACEOF 11807rm -f conftest.$ac_objext 11808if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11809 (eval $ac_compile) 2>conftest.er1 11810 ac_status=$? 11811 grep -v '^ *+' conftest.er1 >conftest.err 11812 rm -f conftest.er1 11813 cat conftest.err >&5 11814 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11815 (exit $ac_status); } && 11816 { ac_try='test -z "$ac_c_werror_flag" 11817 || test ! -s conftest.err' 11818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11819 (eval $ac_try) 2>&5 11820 ac_status=$? 11821 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11822 (exit $ac_status); }; } && 11823 { ac_try='test -s conftest.$ac_objext' 11824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11825 (eval $ac_try) 2>&5 11826 ac_status=$? 11827 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11828 (exit $ac_status); }; }; then 11829 ac_cv_type_size_t=yes 11830else 11831 echo "$as_me: failed program was:" >&5 11832sed 's/^/| /' conftest.$ac_ext >&5 11833 11834ac_cv_type_size_t=no 11835fi 11836rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 11837fi 11838echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 11839echo "${ECHO_T}$ac_cv_type_size_t" >&6 11840if test $ac_cv_type_size_t = yes; then 11841 : 11842else 11843 11844cat >>confdefs.h <<_ACEOF 11845#define size_t unsigned 11846_ACEOF 11847 11848fi 11849 11850echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5 11851echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6 11852if test "${ac_cv_type_uid_t+set}" = set; then 11853 echo $ECHO_N "(cached) $ECHO_C" >&6 11854else 11855 cat >conftest.$ac_ext <<_ACEOF 11856/* confdefs.h. */ 11857_ACEOF 11858cat confdefs.h >>conftest.$ac_ext 11859cat >>conftest.$ac_ext <<_ACEOF 11860/* end confdefs.h. */ 11861#include <sys/types.h> 11862 11863_ACEOF 11864if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11865 $EGREP "uid_t" >/dev/null 2>&1; then 11866 ac_cv_type_uid_t=yes 11867else 11868 ac_cv_type_uid_t=no 11869fi 11870rm -f conftest* 11871 11872fi 11873echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5 11874echo "${ECHO_T}$ac_cv_type_uid_t" >&6 11875if test $ac_cv_type_uid_t = no; then 11876 11877cat >>confdefs.h <<\_ACEOF 11878#define uid_t int 11879_ACEOF 11880 11881 11882cat >>confdefs.h <<\_ACEOF 11883#define gid_t int 11884_ACEOF 11885 11886fi 11887 11888echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 11889echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 11890if test "${ac_cv_header_time+set}" = set; then 11891 echo $ECHO_N "(cached) $ECHO_C" >&6 11892else 11893 cat >conftest.$ac_ext <<_ACEOF 11894/* confdefs.h. */ 11895_ACEOF 11896cat confdefs.h >>conftest.$ac_ext 11897cat >>conftest.$ac_ext <<_ACEOF 11898/* end confdefs.h. */ 11899#include <sys/types.h> 11900#include <sys/time.h> 11901#include <time.h> 11902 11903int 11904main () 11905{ 11906if ((struct tm *) 0) 11907return 0; 11908 ; 11909 return 0; 11910} 11911_ACEOF 11912rm -f conftest.$ac_objext 11913if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11914 (eval $ac_compile) 2>conftest.er1 11915 ac_status=$? 11916 grep -v '^ *+' conftest.er1 >conftest.err 11917 rm -f conftest.er1 11918 cat conftest.err >&5 11919 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11920 (exit $ac_status); } && 11921 { ac_try='test -z "$ac_c_werror_flag" 11922 || test ! -s conftest.err' 11923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11924 (eval $ac_try) 2>&5 11925 ac_status=$? 11926 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11927 (exit $ac_status); }; } && 11928 { ac_try='test -s conftest.$ac_objext' 11929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11930 (eval $ac_try) 2>&5 11931 ac_status=$? 11932 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11933 (exit $ac_status); }; }; then 11934 ac_cv_header_time=yes 11935else 11936 echo "$as_me: failed program was:" >&5 11937sed 's/^/| /' conftest.$ac_ext >&5 11938 11939ac_cv_header_time=no 11940fi 11941rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 11942fi 11943echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 11944echo "${ECHO_T}$ac_cv_header_time" >&6 11945if test $ac_cv_header_time = yes; then 11946 11947cat >>confdefs.h <<\_ACEOF 11948#define TIME_WITH_SYS_TIME 1 11949_ACEOF 11950 11951fi 11952 11953echo "$as_me:$LINENO: checking for ino_t" >&5 11954echo $ECHO_N "checking for ino_t... $ECHO_C" >&6 11955if test "${ac_cv_type_ino_t+set}" = set; then 11956 echo $ECHO_N "(cached) $ECHO_C" >&6 11957else 11958 cat >conftest.$ac_ext <<_ACEOF 11959/* confdefs.h. */ 11960_ACEOF 11961cat confdefs.h >>conftest.$ac_ext 11962cat >>conftest.$ac_ext <<_ACEOF 11963/* end confdefs.h. */ 11964$ac_includes_default 11965int 11966main () 11967{ 11968if ((ino_t *) 0) 11969 return 0; 11970if (sizeof (ino_t)) 11971 return 0; 11972 ; 11973 return 0; 11974} 11975_ACEOF 11976rm -f conftest.$ac_objext 11977if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11978 (eval $ac_compile) 2>conftest.er1 11979 ac_status=$? 11980 grep -v '^ *+' conftest.er1 >conftest.err 11981 rm -f conftest.er1 11982 cat conftest.err >&5 11983 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11984 (exit $ac_status); } && 11985 { ac_try='test -z "$ac_c_werror_flag" 11986 || test ! -s conftest.err' 11987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11988 (eval $ac_try) 2>&5 11989 ac_status=$? 11990 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11991 (exit $ac_status); }; } && 11992 { ac_try='test -s conftest.$ac_objext' 11993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11994 (eval $ac_try) 2>&5 11995 ac_status=$? 11996 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11997 (exit $ac_status); }; }; then 11998 ac_cv_type_ino_t=yes 11999else 12000 echo "$as_me: failed program was:" >&5 12001sed 's/^/| /' conftest.$ac_ext >&5 12002 12003ac_cv_type_ino_t=no 12004fi 12005rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 12006fi 12007echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5 12008echo "${ECHO_T}$ac_cv_type_ino_t" >&6 12009if test $ac_cv_type_ino_t = yes; then 12010 : 12011else 12012 12013cat >>confdefs.h <<_ACEOF 12014#define ino_t long 12015_ACEOF 12016 12017fi 12018 12019echo "$as_me:$LINENO: checking for dev_t" >&5 12020echo $ECHO_N "checking for dev_t... $ECHO_C" >&6 12021if test "${ac_cv_type_dev_t+set}" = set; then 12022 echo $ECHO_N "(cached) $ECHO_C" >&6 12023else 12024 cat >conftest.$ac_ext <<_ACEOF 12025/* confdefs.h. */ 12026_ACEOF 12027cat confdefs.h >>conftest.$ac_ext 12028cat >>conftest.$ac_ext <<_ACEOF 12029/* end confdefs.h. */ 12030$ac_includes_default 12031int 12032main () 12033{ 12034if ((dev_t *) 0) 12035 return 0; 12036if (sizeof (dev_t)) 12037 return 0; 12038 ; 12039 return 0; 12040} 12041_ACEOF 12042rm -f conftest.$ac_objext 12043if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12044 (eval $ac_compile) 2>conftest.er1 12045 ac_status=$? 12046 grep -v '^ *+' conftest.er1 >conftest.err 12047 rm -f conftest.er1 12048 cat conftest.err >&5 12049 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12050 (exit $ac_status); } && 12051 { ac_try='test -z "$ac_c_werror_flag" 12052 || test ! -s conftest.err' 12053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12054 (eval $ac_try) 2>&5 12055 ac_status=$? 12056 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12057 (exit $ac_status); }; } && 12058 { ac_try='test -s conftest.$ac_objext' 12059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12060 (eval $ac_try) 2>&5 12061 ac_status=$? 12062 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12063 (exit $ac_status); }; }; then 12064 ac_cv_type_dev_t=yes 12065else 12066 echo "$as_me: failed program was:" >&5 12067sed 's/^/| /' conftest.$ac_ext >&5 12068 12069ac_cv_type_dev_t=no 12070fi 12071rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 12072fi 12073echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5 12074echo "${ECHO_T}$ac_cv_type_dev_t" >&6 12075if test $ac_cv_type_dev_t = yes; then 12076 : 12077else 12078 12079cat >>confdefs.h <<_ACEOF 12080#define dev_t unsigned 12081_ACEOF 12082 12083fi 12084 12085 12086echo "$as_me:$LINENO: checking for rlim_t" >&5 12087echo $ECHO_N "checking for rlim_t... $ECHO_C" >&6 12088if eval "test \"`echo '$''{'ac_cv_type_rlim_t'+set}'`\" = set"; then 12089 echo "$as_me:$LINENO: result: (cached) $ac_cv_type_rlim_t" >&5 12090echo "${ECHO_T}(cached) $ac_cv_type_rlim_t" >&6 12091else 12092 cat >conftest.$ac_ext <<_ACEOF 12093/* confdefs.h. */ 12094_ACEOF 12095cat confdefs.h >>conftest.$ac_ext 12096cat >>conftest.$ac_ext <<_ACEOF 12097/* end confdefs.h. */ 12098 12099#include <sys/types.h> 12100#if STDC_HEADERS 12101#include <stdlib.h> 12102#include <stddef.h> 12103#endif 12104#ifdef HAVE_SYS_RESOURCE_H 12105#include <sys/resource.h> 12106#endif 12107 12108_ACEOF 12109if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 12110 $EGREP "(^|[^a-zA-Z_0-9])rlim_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 12111 ac_cv_type_rlim_t=yes 12112else 12113 ac_cv_type_rlim_t=no 12114fi 12115rm -f conftest* 12116 12117 echo "$as_me:$LINENO: result: $ac_cv_type_rlim_t" >&5 12118echo "${ECHO_T}$ac_cv_type_rlim_t" >&6 12119fi 12120if test $ac_cv_type_rlim_t = no; then 12121 cat >> confdefs.h <<\EOF 12122#define rlim_t unsigned long 12123EOF 12124fi 12125 12126echo "$as_me:$LINENO: checking for stack_t" >&5 12127echo $ECHO_N "checking for stack_t... $ECHO_C" >&6 12128if eval "test \"`echo '$''{'ac_cv_type_stack_t'+set}'`\" = set"; then 12129 echo "$as_me:$LINENO: result: (cached) $ac_cv_type_stack_t" >&5 12130echo "${ECHO_T}(cached) $ac_cv_type_stack_t" >&6 12131else 12132 cat >conftest.$ac_ext <<_ACEOF 12133/* confdefs.h. */ 12134_ACEOF 12135cat confdefs.h >>conftest.$ac_ext 12136cat >>conftest.$ac_ext <<_ACEOF 12137/* end confdefs.h. */ 12138 12139#include <sys/types.h> 12140#if STDC_HEADERS 12141#include <stdlib.h> 12142#include <stddef.h> 12143#endif 12144#include <signal.h> 12145 12146_ACEOF 12147if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 12148 $EGREP "stack_t" >/dev/null 2>&1; then 12149 ac_cv_type_stack_t=yes 12150else 12151 ac_cv_type_stack_t=no 12152fi 12153rm -f conftest* 12154 12155 echo "$as_me:$LINENO: result: $ac_cv_type_stack_t" >&5 12156echo "${ECHO_T}$ac_cv_type_stack_t" >&6 12157fi 12158if test $ac_cv_type_stack_t = no; then 12159 cat >> confdefs.h <<\EOF 12160#define stack_t struct sigaltstack 12161EOF 12162fi 12163 12164echo "$as_me:$LINENO: checking whether stack_t has an ss_base field" >&5 12165echo $ECHO_N "checking whether stack_t has an ss_base field... $ECHO_C" >&6 12166cat >conftest.$ac_ext <<_ACEOF 12167/* confdefs.h. */ 12168_ACEOF 12169cat confdefs.h >>conftest.$ac_ext 12170cat >>conftest.$ac_ext <<_ACEOF 12171/* end confdefs.h. */ 12172 12173#include <sys/types.h> 12174#if STDC_HEADERS 12175#include <stdlib.h> 12176#include <stddef.h> 12177#endif 12178#include <signal.h> 12179#include "confdefs.h" 12180 12181int 12182main () 12183{ 12184stack_t sigstk; sigstk.ss_base = 0; 12185 ; 12186 return 0; 12187} 12188_ACEOF 12189rm -f conftest.$ac_objext 12190if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12191 (eval $ac_compile) 2>conftest.er1 12192 ac_status=$? 12193 grep -v '^ *+' conftest.er1 >conftest.err 12194 rm -f conftest.er1 12195 cat conftest.err >&5 12196 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12197 (exit $ac_status); } && 12198 { ac_try='test -z "$ac_c_werror_flag" 12199 || test ! -s conftest.err' 12200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12201 (eval $ac_try) 2>&5 12202 ac_status=$? 12203 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12204 (exit $ac_status); }; } && 12205 { ac_try='test -s conftest.$ac_objext' 12206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12207 (eval $ac_try) 2>&5 12208 ac_status=$? 12209 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12210 (exit $ac_status); }; }; then 12211 echo "$as_me:$LINENO: result: yes" >&5 12212echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF 12213#define HAVE_SS_BASE 1 12214_ACEOF 12215 12216else 12217 echo "$as_me: failed program was:" >&5 12218sed 's/^/| /' conftest.$ac_ext >&5 12219 12220echo "$as_me:$LINENO: result: no" >&5 12221echo "${ECHO_T}no" >&6 12222fi 12223rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 12224 12225olibs="$LIBS" 12226echo "$as_me:$LINENO: checking --with-tlib argument" >&5 12227echo $ECHO_N "checking --with-tlib argument... $ECHO_C" >&6 12228 12229# Check whether --with-tlib or --without-tlib was given. 12230if test "${with_tlib+set}" = set; then 12231 withval="$with_tlib" 12232 12233fi; 12234if test -n "$with_tlib"; then 12235 echo "$as_me:$LINENO: result: $with_tlib" >&5 12236echo "${ECHO_T}$with_tlib" >&6 12237 LIBS="$LIBS -l$with_tlib" 12238 echo "$as_me:$LINENO: checking for linking with $with_tlib library" >&5 12239echo $ECHO_N "checking for linking with $with_tlib library... $ECHO_C" >&6 12240 cat >conftest.$ac_ext <<_ACEOF 12241/* confdefs.h. */ 12242_ACEOF 12243cat confdefs.h >>conftest.$ac_ext 12244cat >>conftest.$ac_ext <<_ACEOF 12245/* end confdefs.h. */ 12246 12247int 12248main () 12249{ 12250 12251 ; 12252 return 0; 12253} 12254_ACEOF 12255rm -f conftest.$ac_objext conftest$ac_exeext 12256if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12257 (eval $ac_link) 2>conftest.er1 12258 ac_status=$? 12259 grep -v '^ *+' conftest.er1 >conftest.err 12260 rm -f conftest.er1 12261 cat conftest.err >&5 12262 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12263 (exit $ac_status); } && 12264 { ac_try='test -z "$ac_c_werror_flag" 12265 || test ! -s conftest.err' 12266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12267 (eval $ac_try) 2>&5 12268 ac_status=$? 12269 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12270 (exit $ac_status); }; } && 12271 { ac_try='test -s conftest$ac_exeext' 12272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12273 (eval $ac_try) 2>&5 12274 ac_status=$? 12275 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12276 (exit $ac_status); }; }; then 12277 echo "$as_me:$LINENO: result: OK" >&5 12278echo "${ECHO_T}OK" >&6 12279else 12280 echo "$as_me: failed program was:" >&5 12281sed 's/^/| /' conftest.$ac_ext >&5 12282 12283{ { echo "$as_me:$LINENO: error: FAILED" >&5 12284echo "$as_me: error: FAILED" >&2;} 12285 { (exit 1); exit 1; }; } 12286fi 12287rm -f conftest.err conftest.$ac_objext \ 12288 conftest$ac_exeext conftest.$ac_ext 12289 olibs="$LIBS" 12290else 12291 echo "$as_me:$LINENO: result: empty: automatic terminal library selection" >&5 12292echo "${ECHO_T}empty: automatic terminal library selection" >&6 12293 case "`uname -s 2>/dev/null`" in 12294 OSF1) tlibs="ncurses curses termlib termcap";; 12295 *) tlibs="ncurses termlib termcap curses";; 12296 esac 12297 for libname in $tlibs; do 12298 12299as_ac_Lib=`echo "ac_cv_lib_${libname}''_tgetent" | $as_tr_sh` 12300echo "$as_me:$LINENO: checking for tgetent in -l${libname}" >&5 12301echo $ECHO_N "checking for tgetent in -l${libname}... $ECHO_C" >&6 12302if eval "test \"\${$as_ac_Lib+set}\" = set"; then 12303 echo $ECHO_N "(cached) $ECHO_C" >&6 12304else 12305 ac_check_lib_save_LIBS=$LIBS 12306LIBS="-l${libname} $LIBS" 12307cat >conftest.$ac_ext <<_ACEOF 12308/* confdefs.h. */ 12309_ACEOF 12310cat confdefs.h >>conftest.$ac_ext 12311cat >>conftest.$ac_ext <<_ACEOF 12312/* end confdefs.h. */ 12313 12314/* Override any gcc2 internal prototype to avoid an error. */ 12315#ifdef __cplusplus 12316extern "C" 12317#endif 12318/* We use char because int might match the return type of a gcc2 12319 builtin and then its argument prototype would still apply. */ 12320char tgetent (); 12321int 12322main () 12323{ 12324tgetent (); 12325 ; 12326 return 0; 12327} 12328_ACEOF 12329rm -f conftest.$ac_objext conftest$ac_exeext 12330if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12331 (eval $ac_link) 2>conftest.er1 12332 ac_status=$? 12333 grep -v '^ *+' conftest.er1 >conftest.err 12334 rm -f conftest.er1 12335 cat conftest.err >&5 12336 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12337 (exit $ac_status); } && 12338 { ac_try='test -z "$ac_c_werror_flag" 12339 || test ! -s conftest.err' 12340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12341 (eval $ac_try) 2>&5 12342 ac_status=$? 12343 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12344 (exit $ac_status); }; } && 12345 { ac_try='test -s conftest$ac_exeext' 12346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12347 (eval $ac_try) 2>&5 12348 ac_status=$? 12349 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12350 (exit $ac_status); }; }; then 12351 eval "$as_ac_Lib=yes" 12352else 12353 echo "$as_me: failed program was:" >&5 12354sed 's/^/| /' conftest.$ac_ext >&5 12355 12356eval "$as_ac_Lib=no" 12357fi 12358rm -f conftest.err conftest.$ac_objext \ 12359 conftest$ac_exeext conftest.$ac_ext 12360LIBS=$ac_check_lib_save_LIBS 12361fi 12362echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5 12363echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6 12364if test `eval echo '${'$as_ac_Lib'}'` = yes; then 12365 cat >>confdefs.h <<_ACEOF 12366#define `echo "HAVE_LIB${libname}" | $as_tr_cpp` 1 12367_ACEOF 12368 12369 LIBS="-l${libname} $LIBS" 12370 12371fi 12372 12373 if test "x$olibs" != "x$LIBS"; then 12374 if test "$cross_compiling" = yes; then 12375 res="FAIL" 12376else 12377 cat >conftest.$ac_ext <<_ACEOF 12378/* confdefs.h. */ 12379_ACEOF 12380cat confdefs.h >>conftest.$ac_ext 12381cat >>conftest.$ac_ext <<_ACEOF 12382/* end confdefs.h. */ 12383 12384#ifdef HAVE_TERMCAP_H 12385# include <termcap.h> 12386#endif 12387main() {char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(0); } 12388_ACEOF 12389rm -f conftest$ac_exeext 12390if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12391 (eval $ac_link) 2>&5 12392 ac_status=$? 12393 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12394 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 12395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12396 (eval $ac_try) 2>&5 12397 ac_status=$? 12398 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12399 (exit $ac_status); }; }; then 12400 res="OK" 12401else 12402 echo "$as_me: program exited with status $ac_status" >&5 12403echo "$as_me: failed program was:" >&5 12404sed 's/^/| /' conftest.$ac_ext >&5 12405 12406( exit $ac_status ) 12407res="FAIL" 12408fi 12409rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 12410fi 12411 if test "$res" = "OK"; then 12412 break 12413 fi 12414 echo "$as_me:$LINENO: result: $libname library is not usable" >&5 12415echo "${ECHO_T}$libname library is not usable" >&6 12416 LIBS="$olibs" 12417 fi 12418 done 12419 if test "x$olibs" = "x$LIBS"; then 12420 echo "$as_me:$LINENO: result: no terminal library found" >&5 12421echo "${ECHO_T}no terminal library found" >&6 12422 fi 12423fi 12424 12425if test "x$olibs" = "x$LIBS"; then 12426 echo "$as_me:$LINENO: checking for tgetent()" >&5 12427echo $ECHO_N "checking for tgetent()... $ECHO_C" >&6 12428 cat >conftest.$ac_ext <<_ACEOF 12429/* confdefs.h. */ 12430_ACEOF 12431cat confdefs.h >>conftest.$ac_ext 12432cat >>conftest.$ac_ext <<_ACEOF 12433/* end confdefs.h. */ 12434 12435int 12436main () 12437{ 12438char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist"); 12439 ; 12440 return 0; 12441} 12442_ACEOF 12443rm -f conftest.$ac_objext conftest$ac_exeext 12444if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12445 (eval $ac_link) 2>conftest.er1 12446 ac_status=$? 12447 grep -v '^ *+' conftest.er1 >conftest.err 12448 rm -f conftest.er1 12449 cat conftest.err >&5 12450 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12451 (exit $ac_status); } && 12452 { ac_try='test -z "$ac_c_werror_flag" 12453 || test ! -s conftest.err' 12454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12455 (eval $ac_try) 2>&5 12456 ac_status=$? 12457 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12458 (exit $ac_status); }; } && 12459 { ac_try='test -s conftest$ac_exeext' 12460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12461 (eval $ac_try) 2>&5 12462 ac_status=$? 12463 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12464 (exit $ac_status); }; }; then 12465 echo "$as_me:$LINENO: result: yes" >&5 12466echo "${ECHO_T}yes" >&6 12467else 12468 echo "$as_me: failed program was:" >&5 12469sed 's/^/| /' conftest.$ac_ext >&5 12470 12471{ { echo "$as_me:$LINENO: error: NOT FOUND! 12472 You need to install a terminal library; for example ncurses. 12473 Or specify the name of the library with --with-tlib." >&5 12474echo "$as_me: error: NOT FOUND! 12475 You need to install a terminal library; for example ncurses. 12476 Or specify the name of the library with --with-tlib." >&2;} 12477 { (exit 1); exit 1; }; } 12478fi 12479rm -f conftest.err conftest.$ac_objext \ 12480 conftest$ac_exeext conftest.$ac_ext 12481fi 12482 12483echo "$as_me:$LINENO: checking whether we talk terminfo" >&5 12484echo $ECHO_N "checking whether we talk terminfo... $ECHO_C" >&6 12485if test "$cross_compiling" = yes; then 12486 { { echo "$as_me:$LINENO: error: failed to compile test program." >&5 12487echo "$as_me: error: failed to compile test program." >&2;} 12488 { (exit 1); exit 1; }; } 12489else 12490 cat >conftest.$ac_ext <<_ACEOF 12491/* confdefs.h. */ 12492_ACEOF 12493cat confdefs.h >>conftest.$ac_ext 12494cat >>conftest.$ac_ext <<_ACEOF 12495/* end confdefs.h. */ 12496 12497#ifdef HAVE_TERMCAP_H 12498# include <termcap.h> 12499#endif 12500main() 12501{char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(!strcmp(s==0 ? "" : s, "1")); } 12502_ACEOF 12503rm -f conftest$ac_exeext 12504if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12505 (eval $ac_link) 2>&5 12506 ac_status=$? 12507 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12508 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 12509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12510 (eval $ac_try) 2>&5 12511 ac_status=$? 12512 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12513 (exit $ac_status); }; }; then 12514 echo "$as_me:$LINENO: result: no -- we are in termcap land" >&5 12515echo "${ECHO_T}no -- we are in termcap land" >&6 12516else 12517 echo "$as_me: program exited with status $ac_status" >&5 12518echo "$as_me: failed program was:" >&5 12519sed 's/^/| /' conftest.$ac_ext >&5 12520 12521( exit $ac_status ) 12522echo "$as_me:$LINENO: result: yes -- terminfo spoken here" >&5 12523echo "${ECHO_T}yes -- terminfo spoken here" >&6; cat >>confdefs.h <<\_ACEOF 12524#define TERMINFO 1 12525_ACEOF 12526 12527fi 12528rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 12529fi 12530 12531if test "x$olibs" != "x$LIBS"; then 12532 echo "$as_me:$LINENO: checking what tgetent() returns for an unknown terminal" >&5 12533echo $ECHO_N "checking what tgetent() returns for an unknown terminal... $ECHO_C" >&6 12534 if test "$cross_compiling" = yes; then 12535 { { echo "$as_me:$LINENO: error: failed to compile test program." >&5 12536echo "$as_me: error: failed to compile test program." >&2;} 12537 { (exit 1); exit 1; }; } 12538else 12539 cat >conftest.$ac_ext <<_ACEOF 12540/* confdefs.h. */ 12541_ACEOF 12542cat confdefs.h >>conftest.$ac_ext 12543cat >>conftest.$ac_ext <<_ACEOF 12544/* end confdefs.h. */ 12545 12546#ifdef HAVE_TERMCAP_H 12547# include <termcap.h> 12548#endif 12549main() 12550{char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist"); exit(res != 0); } 12551_ACEOF 12552rm -f conftest$ac_exeext 12553if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12554 (eval $ac_link) 2>&5 12555 ac_status=$? 12556 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12557 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 12558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12559 (eval $ac_try) 2>&5 12560 ac_status=$? 12561 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12562 (exit $ac_status); }; }; then 12563 echo "$as_me:$LINENO: result: zero" >&5 12564echo "${ECHO_T}zero" >&6; cat >>confdefs.h <<\_ACEOF 12565#define TGETENT_ZERO_ERR 0 12566_ACEOF 12567 12568else 12569 echo "$as_me: program exited with status $ac_status" >&5 12570echo "$as_me: failed program was:" >&5 12571sed 's/^/| /' conftest.$ac_ext >&5 12572 12573( exit $ac_status ) 12574echo "$as_me:$LINENO: result: non-zero" >&5 12575echo "${ECHO_T}non-zero" >&6 12576fi 12577rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 12578fi 12579fi 12580 12581echo "$as_me:$LINENO: checking whether termcap.h contains ospeed" >&5 12582echo $ECHO_N "checking whether termcap.h contains ospeed... $ECHO_C" >&6 12583cat >conftest.$ac_ext <<_ACEOF 12584/* confdefs.h. */ 12585_ACEOF 12586cat confdefs.h >>conftest.$ac_ext 12587cat >>conftest.$ac_ext <<_ACEOF 12588/* end confdefs.h. */ 12589 12590#ifdef HAVE_TERMCAP_H 12591# include <termcap.h> 12592#endif 12593 12594int 12595main () 12596{ 12597ospeed = 20000 12598 ; 12599 return 0; 12600} 12601_ACEOF 12602rm -f conftest.$ac_objext conftest$ac_exeext 12603if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12604 (eval $ac_link) 2>conftest.er1 12605 ac_status=$? 12606 grep -v '^ *+' conftest.er1 >conftest.err 12607 rm -f conftest.er1 12608 cat conftest.err >&5 12609 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12610 (exit $ac_status); } && 12611 { ac_try='test -z "$ac_c_werror_flag" 12612 || test ! -s conftest.err' 12613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12614 (eval $ac_try) 2>&5 12615 ac_status=$? 12616 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12617 (exit $ac_status); }; } && 12618 { ac_try='test -s conftest$ac_exeext' 12619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12620 (eval $ac_try) 2>&5 12621 ac_status=$? 12622 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12623 (exit $ac_status); }; }; then 12624 echo "$as_me:$LINENO: result: yes" >&5 12625echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF 12626#define HAVE_OSPEED 1 12627_ACEOF 12628 12629else 12630 echo "$as_me: failed program was:" >&5 12631sed 's/^/| /' conftest.$ac_ext >&5 12632 12633echo "$as_me:$LINENO: result: no" >&5 12634echo "${ECHO_T}no" >&6 12635 echo "$as_me:$LINENO: checking whether ospeed can be extern" >&5 12636echo $ECHO_N "checking whether ospeed can be extern... $ECHO_C" >&6 12637 cat >conftest.$ac_ext <<_ACEOF 12638/* confdefs.h. */ 12639_ACEOF 12640cat confdefs.h >>conftest.$ac_ext 12641cat >>conftest.$ac_ext <<_ACEOF 12642/* end confdefs.h. */ 12643 12644#ifdef HAVE_TERMCAP_H 12645# include <termcap.h> 12646#endif 12647extern short ospeed; 12648 12649int 12650main () 12651{ 12652ospeed = 20000 12653 ; 12654 return 0; 12655} 12656_ACEOF 12657rm -f conftest.$ac_objext conftest$ac_exeext 12658if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12659 (eval $ac_link) 2>conftest.er1 12660 ac_status=$? 12661 grep -v '^ *+' conftest.er1 >conftest.err 12662 rm -f conftest.er1 12663 cat conftest.err >&5 12664 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12665 (exit $ac_status); } && 12666 { ac_try='test -z "$ac_c_werror_flag" 12667 || test ! -s conftest.err' 12668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12669 (eval $ac_try) 2>&5 12670 ac_status=$? 12671 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12672 (exit $ac_status); }; } && 12673 { ac_try='test -s conftest$ac_exeext' 12674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12675 (eval $ac_try) 2>&5 12676 ac_status=$? 12677 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12678 (exit $ac_status); }; }; then 12679 echo "$as_me:$LINENO: result: yes" >&5 12680echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF 12681#define OSPEED_EXTERN 1 12682_ACEOF 12683 12684else 12685 echo "$as_me: failed program was:" >&5 12686sed 's/^/| /' conftest.$ac_ext >&5 12687 12688echo "$as_me:$LINENO: result: no" >&5 12689echo "${ECHO_T}no" >&6 12690fi 12691rm -f conftest.err conftest.$ac_objext \ 12692 conftest$ac_exeext conftest.$ac_ext 12693 12694fi 12695rm -f conftest.err conftest.$ac_objext \ 12696 conftest$ac_exeext conftest.$ac_ext 12697 12698echo "$as_me:$LINENO: checking whether termcap.h contains UP, BC and PC" >&5 12699echo $ECHO_N "checking whether termcap.h contains UP, BC and PC... $ECHO_C" >&6 12700cat >conftest.$ac_ext <<_ACEOF 12701/* confdefs.h. */ 12702_ACEOF 12703cat confdefs.h >>conftest.$ac_ext 12704cat >>conftest.$ac_ext <<_ACEOF 12705/* end confdefs.h. */ 12706 12707#ifdef HAVE_TERMCAP_H 12708# include <termcap.h> 12709#endif 12710 12711int 12712main () 12713{ 12714if (UP == 0 && BC == 0) PC = 1 12715 ; 12716 return 0; 12717} 12718_ACEOF 12719rm -f conftest.$ac_objext conftest$ac_exeext 12720if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12721 (eval $ac_link) 2>conftest.er1 12722 ac_status=$? 12723 grep -v '^ *+' conftest.er1 >conftest.err 12724 rm -f conftest.er1 12725 cat conftest.err >&5 12726 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12727 (exit $ac_status); } && 12728 { ac_try='test -z "$ac_c_werror_flag" 12729 || test ! -s conftest.err' 12730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12731 (eval $ac_try) 2>&5 12732 ac_status=$? 12733 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12734 (exit $ac_status); }; } && 12735 { ac_try='test -s conftest$ac_exeext' 12736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12737 (eval $ac_try) 2>&5 12738 ac_status=$? 12739 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12740 (exit $ac_status); }; }; then 12741 echo "$as_me:$LINENO: result: yes" >&5 12742echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF 12743#define HAVE_UP_BC_PC 1 12744_ACEOF 12745 12746else 12747 echo "$as_me: failed program was:" >&5 12748sed 's/^/| /' conftest.$ac_ext >&5 12749 12750echo "$as_me:$LINENO: result: no" >&5 12751echo "${ECHO_T}no" >&6 12752 echo "$as_me:$LINENO: checking whether UP, BC and PC can be extern" >&5 12753echo $ECHO_N "checking whether UP, BC and PC can be extern... $ECHO_C" >&6 12754 cat >conftest.$ac_ext <<_ACEOF 12755/* confdefs.h. */ 12756_ACEOF 12757cat confdefs.h >>conftest.$ac_ext 12758cat >>conftest.$ac_ext <<_ACEOF 12759/* end confdefs.h. */ 12760 12761#ifdef HAVE_TERMCAP_H 12762# include <termcap.h> 12763#endif 12764extern char *UP, *BC, PC; 12765 12766int 12767main () 12768{ 12769if (UP == 0 && BC == 0) PC = 1 12770 ; 12771 return 0; 12772} 12773_ACEOF 12774rm -f conftest.$ac_objext conftest$ac_exeext 12775if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12776 (eval $ac_link) 2>conftest.er1 12777 ac_status=$? 12778 grep -v '^ *+' conftest.er1 >conftest.err 12779 rm -f conftest.er1 12780 cat conftest.err >&5 12781 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12782 (exit $ac_status); } && 12783 { ac_try='test -z "$ac_c_werror_flag" 12784 || test ! -s conftest.err' 12785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12786 (eval $ac_try) 2>&5 12787 ac_status=$? 12788 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12789 (exit $ac_status); }; } && 12790 { ac_try='test -s conftest$ac_exeext' 12791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12792 (eval $ac_try) 2>&5 12793 ac_status=$? 12794 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12795 (exit $ac_status); }; }; then 12796 echo "$as_me:$LINENO: result: yes" >&5 12797echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF 12798#define UP_BC_PC_EXTERN 1 12799_ACEOF 12800 12801else 12802 echo "$as_me: failed program was:" >&5 12803sed 's/^/| /' conftest.$ac_ext >&5 12804 12805echo "$as_me:$LINENO: result: no" >&5 12806echo "${ECHO_T}no" >&6 12807fi 12808rm -f conftest.err conftest.$ac_objext \ 12809 conftest$ac_exeext conftest.$ac_ext 12810 12811fi 12812rm -f conftest.err conftest.$ac_objext \ 12813 conftest$ac_exeext conftest.$ac_ext 12814 12815echo "$as_me:$LINENO: checking whether tputs() uses outfuntype" >&5 12816echo $ECHO_N "checking whether tputs() uses outfuntype... $ECHO_C" >&6 12817cat >conftest.$ac_ext <<_ACEOF 12818/* confdefs.h. */ 12819_ACEOF 12820cat confdefs.h >>conftest.$ac_ext 12821cat >>conftest.$ac_ext <<_ACEOF 12822/* end confdefs.h. */ 12823 12824#ifdef HAVE_TERMCAP_H 12825# include <termcap.h> 12826#endif 12827 12828int 12829main () 12830{ 12831extern int xx(); tputs("test", 1, (outfuntype)xx) 12832 ; 12833 return 0; 12834} 12835_ACEOF 12836rm -f conftest.$ac_objext 12837if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12838 (eval $ac_compile) 2>conftest.er1 12839 ac_status=$? 12840 grep -v '^ *+' conftest.er1 >conftest.err 12841 rm -f conftest.er1 12842 cat conftest.err >&5 12843 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12844 (exit $ac_status); } && 12845 { ac_try='test -z "$ac_c_werror_flag" 12846 || test ! -s conftest.err' 12847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12848 (eval $ac_try) 2>&5 12849 ac_status=$? 12850 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12851 (exit $ac_status); }; } && 12852 { ac_try='test -s conftest.$ac_objext' 12853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12854 (eval $ac_try) 2>&5 12855 ac_status=$? 12856 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12857 (exit $ac_status); }; }; then 12858 echo "$as_me:$LINENO: result: yes" >&5 12859echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF 12860#define HAVE_OUTFUNTYPE 1 12861_ACEOF 12862 12863else 12864 echo "$as_me: failed program was:" >&5 12865sed 's/^/| /' conftest.$ac_ext >&5 12866 12867echo "$as_me:$LINENO: result: no" >&5 12868echo "${ECHO_T}no" >&6 12869fi 12870rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 12871 12872echo "$as_me:$LINENO: checking whether sys/select.h and sys/time.h may both be included" >&5 12873echo $ECHO_N "checking whether sys/select.h and sys/time.h may both be included... $ECHO_C" >&6 12874cat >conftest.$ac_ext <<_ACEOF 12875/* confdefs.h. */ 12876_ACEOF 12877cat confdefs.h >>conftest.$ac_ext 12878cat >>conftest.$ac_ext <<_ACEOF 12879/* end confdefs.h. */ 12880 12881#include <sys/types.h> 12882#include <sys/time.h> 12883#include <sys/select.h> 12884int 12885main () 12886{ 12887 12888 ; 12889 return 0; 12890} 12891_ACEOF 12892rm -f conftest.$ac_objext 12893if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12894 (eval $ac_compile) 2>conftest.er1 12895 ac_status=$? 12896 grep -v '^ *+' conftest.er1 >conftest.err 12897 rm -f conftest.er1 12898 cat conftest.err >&5 12899 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12900 (exit $ac_status); } && 12901 { ac_try='test -z "$ac_c_werror_flag" 12902 || test ! -s conftest.err' 12903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12904 (eval $ac_try) 2>&5 12905 ac_status=$? 12906 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12907 (exit $ac_status); }; } && 12908 { ac_try='test -s conftest.$ac_objext' 12909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12910 (eval $ac_try) 2>&5 12911 ac_status=$? 12912 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12913 (exit $ac_status); }; }; then 12914 echo "$as_me:$LINENO: result: yes" >&5 12915echo "${ECHO_T}yes" >&6 12916 cat >>confdefs.h <<\_ACEOF 12917#define SYS_SELECT_WITH_SYS_TIME 1 12918_ACEOF 12919 12920else 12921 echo "$as_me: failed program was:" >&5 12922sed 's/^/| /' conftest.$ac_ext >&5 12923 12924echo "$as_me:$LINENO: result: no" >&5 12925echo "${ECHO_T}no" >&6 12926fi 12927rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 12928 12929 12930echo "$as_me:$LINENO: checking for /dev/ptc" >&5 12931echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6 12932if test -r /dev/ptc; then 12933 cat >>confdefs.h <<\_ACEOF 12934#define HAVE_DEV_PTC 1 12935_ACEOF 12936 12937 echo "$as_me:$LINENO: result: yes" >&5 12938echo "${ECHO_T}yes" >&6 12939else 12940 echo "$as_me:$LINENO: result: no" >&5 12941echo "${ECHO_T}no" >&6 12942fi 12943 12944echo "$as_me:$LINENO: checking for SVR4 ptys" >&5 12945echo $ECHO_N "checking for SVR4 ptys... $ECHO_C" >&6 12946if test -c /dev/ptmx ; then 12947 cat >conftest.$ac_ext <<_ACEOF 12948/* confdefs.h. */ 12949_ACEOF 12950cat confdefs.h >>conftest.$ac_ext 12951cat >>conftest.$ac_ext <<_ACEOF 12952/* end confdefs.h. */ 12953 12954int 12955main () 12956{ 12957ptsname(0);grantpt(0);unlockpt(0); 12958 ; 12959 return 0; 12960} 12961_ACEOF 12962rm -f conftest.$ac_objext conftest$ac_exeext 12963if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12964 (eval $ac_link) 2>conftest.er1 12965 ac_status=$? 12966 grep -v '^ *+' conftest.er1 >conftest.err 12967 rm -f conftest.er1 12968 cat conftest.err >&5 12969 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12970 (exit $ac_status); } && 12971 { ac_try='test -z "$ac_c_werror_flag" 12972 || test ! -s conftest.err' 12973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12974 (eval $ac_try) 2>&5 12975 ac_status=$? 12976 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12977 (exit $ac_status); }; } && 12978 { ac_try='test -s conftest$ac_exeext' 12979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12980 (eval $ac_try) 2>&5 12981 ac_status=$? 12982 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12983 (exit $ac_status); }; }; then 12984 echo "$as_me:$LINENO: result: yes" >&5 12985echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF 12986#define HAVE_SVR4_PTYS 1 12987_ACEOF 12988 12989else 12990 echo "$as_me: failed program was:" >&5 12991sed 's/^/| /' conftest.$ac_ext >&5 12992 12993echo "$as_me:$LINENO: result: no" >&5 12994echo "${ECHO_T}no" >&6 12995fi 12996rm -f conftest.err conftest.$ac_objext \ 12997 conftest$ac_exeext conftest.$ac_ext 12998else 12999 echo "$as_me:$LINENO: result: no" >&5 13000echo "${ECHO_T}no" >&6 13001fi 13002 13003echo "$as_me:$LINENO: checking for ptyranges" >&5 13004echo $ECHO_N "checking for ptyranges... $ECHO_C" >&6 13005if test -d /dev/ptym ; then 13006 pdir='/dev/ptym' 13007else 13008 pdir='/dev' 13009fi 13010cat >conftest.$ac_ext <<_ACEOF 13011/* confdefs.h. */ 13012_ACEOF 13013cat confdefs.h >>conftest.$ac_ext 13014cat >>conftest.$ac_ext <<_ACEOF 13015/* end confdefs.h. */ 13016#ifdef M_UNIX 13017 yes; 13018#endif 13019 13020_ACEOF 13021if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 13022 $EGREP "yes" >/dev/null 2>&1; then 13023 ptys=`echo /dev/ptyp??` 13024else 13025 ptys=`echo $pdir/pty??` 13026fi 13027rm -f conftest* 13028 13029if test "$ptys" != "$pdir/pty??" ; then 13030 p0=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\).$/\1/g' | sort -u | tr -d '\012'` 13031 p1=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\)$/\1/g' | sort -u | tr -d '\012'` 13032 cat >>confdefs.h <<_ACEOF 13033#define PTYRANGE0 "$p0" 13034_ACEOF 13035 13036 cat >>confdefs.h <<_ACEOF 13037#define PTYRANGE1 "$p1" 13038_ACEOF 13039 13040 echo "$as_me:$LINENO: result: $p0 / $p1" >&5 13041echo "${ECHO_T}$p0 / $p1" >&6 13042else 13043 echo "$as_me:$LINENO: result: don't know" >&5 13044echo "${ECHO_T}don't know" >&6 13045fi 13046 13047echo "$as_me:$LINENO: checking default tty permissions/group" >&5 13048echo $ECHO_N "checking default tty permissions/group... $ECHO_C" >&6 13049rm -f conftest_grp 13050if test "$cross_compiling" = yes; then 13051 { { echo "$as_me:$LINENO: error: failed to compile test program" >&5 13052echo "$as_me: error: failed to compile test program" >&2;} 13053 { (exit 1); exit 1; }; } 13054else 13055 cat >conftest.$ac_ext <<_ACEOF 13056/* confdefs.h. */ 13057_ACEOF 13058cat confdefs.h >>conftest.$ac_ext 13059cat >>conftest.$ac_ext <<_ACEOF 13060/* end confdefs.h. */ 13061 13062#include <sys/types.h> 13063#include <sys/stat.h> 13064#include <stdio.h> 13065main() 13066{ 13067 struct stat sb; 13068 char *x,*ttyname(); 13069 int om, m; 13070 FILE *fp; 13071 13072 if (!(x = ttyname(0))) exit(1); 13073 if (stat(x, &sb)) exit(1); 13074 om = sb.st_mode; 13075 if (om & 002) exit(0); 13076 m = system("mesg y"); 13077 if (m == -1 || m == 127) exit(1); 13078 if (stat(x, &sb)) exit(1); 13079 m = sb.st_mode; 13080 if (chmod(x, om)) exit(1); 13081 if (m & 002) exit(0); 13082 if (sb.st_gid == getgid()) exit(1); 13083 if (!(fp=fopen("conftest_grp", "w"))) 13084 exit(1); 13085 fprintf(fp, "%d\n", sb.st_gid); 13086 fclose(fp); 13087 exit(0); 13088} 13089 13090_ACEOF 13091rm -f conftest$ac_exeext 13092if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13093 (eval $ac_link) 2>&5 13094 ac_status=$? 13095 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13096 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 13097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13098 (eval $ac_try) 2>&5 13099 ac_status=$? 13100 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13101 (exit $ac_status); }; }; then 13102 13103 if test -f conftest_grp; then 13104 ptygrp=`cat conftest_grp` 13105 echo "$as_me:$LINENO: result: pty mode: 0620, group: $ptygrp" >&5 13106echo "${ECHO_T}pty mode: 0620, group: $ptygrp" >&6 13107 cat >>confdefs.h <<\_ACEOF 13108#define PTYMODE 0620 13109_ACEOF 13110 13111 cat >>confdefs.h <<_ACEOF 13112#define PTYGROUP $ptygrp 13113_ACEOF 13114 13115 else 13116 echo "$as_me:$LINENO: result: ptys are world accessable" >&5 13117echo "${ECHO_T}ptys are world accessable" >&6 13118 fi 13119 13120else 13121 echo "$as_me: program exited with status $ac_status" >&5 13122echo "$as_me: failed program was:" >&5 13123sed 's/^/| /' conftest.$ac_ext >&5 13124 13125( exit $ac_status ) 13126echo "$as_me:$LINENO: result: can't determine - assume ptys are world accessable" >&5 13127echo "${ECHO_T}can't determine - assume ptys are world accessable" >&6 13128fi 13129rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 13130fi 13131rm -f conftest_grp 13132 13133 13134echo "$as_me:$LINENO: checking return type of signal handlers" >&5 13135echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6 13136if test "${ac_cv_type_signal+set}" = set; then 13137 echo $ECHO_N "(cached) $ECHO_C" >&6 13138else 13139 cat >conftest.$ac_ext <<_ACEOF 13140/* confdefs.h. */ 13141_ACEOF 13142cat confdefs.h >>conftest.$ac_ext 13143cat >>conftest.$ac_ext <<_ACEOF 13144/* end confdefs.h. */ 13145#include <sys/types.h> 13146#include <signal.h> 13147#ifdef signal 13148# undef signal 13149#endif 13150#ifdef __cplusplus 13151extern "C" void (*signal (int, void (*)(int)))(int); 13152#else 13153void (*signal ()) (); 13154#endif 13155 13156int 13157main () 13158{ 13159int i; 13160 ; 13161 return 0; 13162} 13163_ACEOF 13164rm -f conftest.$ac_objext 13165if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13166 (eval $ac_compile) 2>conftest.er1 13167 ac_status=$? 13168 grep -v '^ *+' conftest.er1 >conftest.err 13169 rm -f conftest.er1 13170 cat conftest.err >&5 13171 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13172 (exit $ac_status); } && 13173 { ac_try='test -z "$ac_c_werror_flag" 13174 || test ! -s conftest.err' 13175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13176 (eval $ac_try) 2>&5 13177 ac_status=$? 13178 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13179 (exit $ac_status); }; } && 13180 { ac_try='test -s conftest.$ac_objext' 13181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13182 (eval $ac_try) 2>&5 13183 ac_status=$? 13184 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13185 (exit $ac_status); }; }; then 13186 ac_cv_type_signal=void 13187else 13188 echo "$as_me: failed program was:" >&5 13189sed 's/^/| /' conftest.$ac_ext >&5 13190 13191ac_cv_type_signal=int 13192fi 13193rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 13194fi 13195echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 13196echo "${ECHO_T}$ac_cv_type_signal" >&6 13197 13198cat >>confdefs.h <<_ACEOF 13199#define RETSIGTYPE $ac_cv_type_signal 13200_ACEOF 13201 13202 13203 13204if test $ac_cv_type_signal = void; then 13205 cat >>confdefs.h <<\_ACEOF 13206#define SIGRETURN return 13207_ACEOF 13208 13209else 13210 cat >>confdefs.h <<\_ACEOF 13211#define SIGRETURN return 0 13212_ACEOF 13213 13214fi 13215 13216echo "$as_me:$LINENO: checking for struct sigcontext" >&5 13217echo $ECHO_N "checking for struct sigcontext... $ECHO_C" >&6 13218cat >conftest.$ac_ext <<_ACEOF 13219/* confdefs.h. */ 13220_ACEOF 13221cat confdefs.h >>conftest.$ac_ext 13222cat >>conftest.$ac_ext <<_ACEOF 13223/* end confdefs.h. */ 13224 13225#include <signal.h> 13226test_sig() 13227{ 13228 struct sigcontext *scont; 13229 scont = (struct sigcontext *)0; 13230 return 1; 13231} 13232int 13233main () 13234{ 13235 13236 ; 13237 return 0; 13238} 13239_ACEOF 13240rm -f conftest.$ac_objext 13241if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13242 (eval $ac_compile) 2>conftest.er1 13243 ac_status=$? 13244 grep -v '^ *+' conftest.er1 >conftest.err 13245 rm -f conftest.er1 13246 cat conftest.err >&5 13247 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13248 (exit $ac_status); } && 13249 { ac_try='test -z "$ac_c_werror_flag" 13250 || test ! -s conftest.err' 13251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13252 (eval $ac_try) 2>&5 13253 ac_status=$? 13254 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13255 (exit $ac_status); }; } && 13256 { ac_try='test -s conftest.$ac_objext' 13257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13258 (eval $ac_try) 2>&5 13259 ac_status=$? 13260 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13261 (exit $ac_status); }; }; then 13262 echo "$as_me:$LINENO: result: yes" >&5 13263echo "${ECHO_T}yes" >&6 13264 cat >>confdefs.h <<\_ACEOF 13265#define HAVE_SIGCONTEXT 1 13266_ACEOF 13267 13268else 13269 echo "$as_me: failed program was:" >&5 13270sed 's/^/| /' conftest.$ac_ext >&5 13271 13272echo "$as_me:$LINENO: result: no" >&5 13273echo "${ECHO_T}no" >&6 13274fi 13275rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 13276 13277echo "$as_me:$LINENO: checking getcwd implementation" >&5 13278echo $ECHO_N "checking getcwd implementation... $ECHO_C" >&6 13279if test "$cross_compiling" = yes; then 13280 { { echo "$as_me:$LINENO: error: failed to compile test program" >&5 13281echo "$as_me: error: failed to compile test program" >&2;} 13282 { (exit 1); exit 1; }; } 13283else 13284 cat >conftest.$ac_ext <<_ACEOF 13285/* confdefs.h. */ 13286_ACEOF 13287cat confdefs.h >>conftest.$ac_ext 13288cat >>conftest.$ac_ext <<_ACEOF 13289/* end confdefs.h. */ 13290 13291char *dagger[] = { "IFS=pwd", 0 }; 13292main() 13293{ 13294 char buffer[500]; 13295 extern char **environ; 13296 environ = dagger; 13297 return getcwd(buffer, 500) ? 0 : 1; 13298} 13299_ACEOF 13300rm -f conftest$ac_exeext 13301if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13302 (eval $ac_link) 2>&5 13303 ac_status=$? 13304 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13305 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 13306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13307 (eval $ac_try) 2>&5 13308 ac_status=$? 13309 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13310 (exit $ac_status); }; }; then 13311 echo "$as_me:$LINENO: result: it is usable" >&5 13312echo "${ECHO_T}it is usable" >&6 13313else 13314 echo "$as_me: program exited with status $ac_status" >&5 13315echo "$as_me: failed program was:" >&5 13316sed 's/^/| /' conftest.$ac_ext >&5 13317 13318( exit $ac_status ) 13319echo "$as_me:$LINENO: result: it stinks" >&5 13320echo "${ECHO_T}it stinks" >&6 13321 cat >>confdefs.h <<\_ACEOF 13322#define BAD_GETCWD 1 13323_ACEOF 13324 13325fi 13326rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 13327fi 13328 13329 13330 13331 13332 13333 13334 13335 13336 13337 13338 13339 13340 13341 13342 13343 13344 13345 13346 13347 13348 13349 13350 13351 13352 13353 13354 13355 13356 13357 13358 13359 13360 13361 13362 13363 13364 13365 13366 13367 13368 13369 13370 13371 13372 13373 13374 13375for ac_func in bcmp fchdir fchown fseeko fsync ftello getcwd getpseudotty \ 13376 getpwnam getpwuid getrlimit gettimeofday getwd lstat memcmp \ 13377 memset nanosleep opendir putenv qsort readlink select setenv \ 13378 setpgid setsid sigaltstack sigstack sigset sigsetjmp sigaction \ 13379 sigvec strcasecmp strerror strftime stricmp strncasecmp \ 13380 strnicmp strpbrk strtol tgetent towlower towupper iswupper \ 13381 usleep utime utimes 13382do 13383as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 13384echo "$as_me:$LINENO: checking for $ac_func" >&5 13385echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 13386if eval "test \"\${$as_ac_var+set}\" = set"; then 13387 echo $ECHO_N "(cached) $ECHO_C" >&6 13388else 13389 cat >conftest.$ac_ext <<_ACEOF 13390/* confdefs.h. */ 13391_ACEOF 13392cat confdefs.h >>conftest.$ac_ext 13393cat >>conftest.$ac_ext <<_ACEOF 13394/* end confdefs.h. */ 13395/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 13396 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 13397#define $ac_func innocuous_$ac_func 13398 13399/* System header to define __stub macros and hopefully few prototypes, 13400 which can conflict with char $ac_func (); below. 13401 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 13402 <limits.h> exists even on freestanding compilers. */ 13403 13404#ifdef __STDC__ 13405# include <limits.h> 13406#else 13407# include <assert.h> 13408#endif 13409 13410#undef $ac_func 13411 13412/* Override any gcc2 internal prototype to avoid an error. */ 13413#ifdef __cplusplus 13414extern "C" 13415{ 13416#endif 13417/* We use char because int might match the return type of a gcc2 13418 builtin and then its argument prototype would still apply. */ 13419char $ac_func (); 13420/* The GNU C library defines this for functions which it implements 13421 to always fail with ENOSYS. Some functions are actually named 13422 something starting with __ and the normal name is an alias. */ 13423#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 13424choke me 13425#else 13426char (*f) () = $ac_func; 13427#endif 13428#ifdef __cplusplus 13429} 13430#endif 13431 13432int 13433main () 13434{ 13435return f != $ac_func; 13436 ; 13437 return 0; 13438} 13439_ACEOF 13440rm -f conftest.$ac_objext conftest$ac_exeext 13441if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13442 (eval $ac_link) 2>conftest.er1 13443 ac_status=$? 13444 grep -v '^ *+' conftest.er1 >conftest.err 13445 rm -f conftest.er1 13446 cat conftest.err >&5 13447 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13448 (exit $ac_status); } && 13449 { ac_try='test -z "$ac_c_werror_flag" 13450 || test ! -s conftest.err' 13451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13452 (eval $ac_try) 2>&5 13453 ac_status=$? 13454 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13455 (exit $ac_status); }; } && 13456 { ac_try='test -s conftest$ac_exeext' 13457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13458 (eval $ac_try) 2>&5 13459 ac_status=$? 13460 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13461 (exit $ac_status); }; }; then 13462 eval "$as_ac_var=yes" 13463else 13464 echo "$as_me: failed program was:" >&5 13465sed 's/^/| /' conftest.$ac_ext >&5 13466 13467eval "$as_ac_var=no" 13468fi 13469rm -f conftest.err conftest.$ac_objext \ 13470 conftest$ac_exeext conftest.$ac_ext 13471fi 13472echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 13473echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 13474if test `eval echo '${'$as_ac_var'}'` = yes; then 13475 cat >>confdefs.h <<_ACEOF 13476#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 13477_ACEOF 13478 13479fi 13480done 13481 13482 13483echo "$as_me:$LINENO: checking for st_blksize" >&5 13484echo $ECHO_N "checking for st_blksize... $ECHO_C" >&6 13485cat >conftest.$ac_ext <<_ACEOF 13486/* confdefs.h. */ 13487_ACEOF 13488cat confdefs.h >>conftest.$ac_ext 13489cat >>conftest.$ac_ext <<_ACEOF 13490/* end confdefs.h. */ 13491#include <sys/types.h> 13492#include <sys/stat.h> 13493int 13494main () 13495{ 13496 struct stat st; 13497 int n; 13498 13499 stat("/", &st); 13500 n = (int)st.st_blksize; 13501 ; 13502 return 0; 13503} 13504_ACEOF 13505rm -f conftest.$ac_objext 13506if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13507 (eval $ac_compile) 2>conftest.er1 13508 ac_status=$? 13509 grep -v '^ *+' conftest.er1 >conftest.err 13510 rm -f conftest.er1 13511 cat conftest.err >&5 13512 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13513 (exit $ac_status); } && 13514 { ac_try='test -z "$ac_c_werror_flag" 13515 || test ! -s conftest.err' 13516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13517 (eval $ac_try) 2>&5 13518 ac_status=$? 13519 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13520 (exit $ac_status); }; } && 13521 { ac_try='test -s conftest.$ac_objext' 13522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13523 (eval $ac_try) 2>&5 13524 ac_status=$? 13525 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13526 (exit $ac_status); }; }; then 13527 echo "$as_me:$LINENO: result: yes" >&5 13528echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF 13529#define HAVE_ST_BLKSIZE 1 13530_ACEOF 13531 13532else 13533 echo "$as_me: failed program was:" >&5 13534sed 's/^/| /' conftest.$ac_ext >&5 13535 13536echo "$as_me:$LINENO: result: no" >&5 13537echo "${ECHO_T}no" >&6 13538fi 13539rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 13540 13541echo "$as_me:$LINENO: checking whether stat() ignores a trailing slash" >&5 13542echo $ECHO_N "checking whether stat() ignores a trailing slash... $ECHO_C" >&6 13543if test "$cross_compiling" = yes; then 13544 { { echo "$as_me:$LINENO: error: failed to compile test program" >&5 13545echo "$as_me: error: failed to compile test program" >&2;} 13546 { (exit 1); exit 1; }; } 13547else 13548 cat >conftest.$ac_ext <<_ACEOF 13549/* confdefs.h. */ 13550_ACEOF 13551cat confdefs.h >>conftest.$ac_ext 13552cat >>conftest.$ac_ext <<_ACEOF 13553/* end confdefs.h. */ 13554#include <sys/types.h> 13555#include <sys/stat.h> 13556main() {struct stat st; exit(stat("configure/", &st) != 0); } 13557_ACEOF 13558rm -f conftest$ac_exeext 13559if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13560 (eval $ac_link) 2>&5 13561 ac_status=$? 13562 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13563 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 13564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13565 (eval $ac_try) 2>&5 13566 ac_status=$? 13567 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13568 (exit $ac_status); }; }; then 13569 echo "$as_me:$LINENO: result: yes" >&5 13570echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF 13571#define STAT_IGNORES_SLASH 1 13572_ACEOF 13573 13574else 13575 echo "$as_me: program exited with status $ac_status" >&5 13576echo "$as_me: failed program was:" >&5 13577sed 's/^/| /' conftest.$ac_ext >&5 13578 13579( exit $ac_status ) 13580echo "$as_me:$LINENO: result: no" >&5 13581echo "${ECHO_T}no" >&6 13582fi 13583rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 13584fi 13585 13586echo "$as_me:$LINENO: checking for iconv_open()" >&5 13587echo $ECHO_N "checking for iconv_open()... $ECHO_C" >&6 13588save_LIBS="$LIBS" 13589LIBS="$LIBS -liconv" 13590cat >conftest.$ac_ext <<_ACEOF 13591/* confdefs.h. */ 13592_ACEOF 13593cat confdefs.h >>conftest.$ac_ext 13594cat >>conftest.$ac_ext <<_ACEOF 13595/* end confdefs.h. */ 13596 13597#ifdef HAVE_ICONV_H 13598# include <iconv.h> 13599#endif 13600 13601int 13602main () 13603{ 13604iconv_open("fr", "to"); 13605 ; 13606 return 0; 13607} 13608_ACEOF 13609rm -f conftest.$ac_objext conftest$ac_exeext 13610if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13611 (eval $ac_link) 2>conftest.er1 13612 ac_status=$? 13613 grep -v '^ *+' conftest.er1 >conftest.err 13614 rm -f conftest.er1 13615 cat conftest.err >&5 13616 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13617 (exit $ac_status); } && 13618 { ac_try='test -z "$ac_c_werror_flag" 13619 || test ! -s conftest.err' 13620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13621 (eval $ac_try) 2>&5 13622 ac_status=$? 13623 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13624 (exit $ac_status); }; } && 13625 { ac_try='test -s conftest$ac_exeext' 13626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13627 (eval $ac_try) 2>&5 13628 ac_status=$? 13629 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13630 (exit $ac_status); }; }; then 13631 echo "$as_me:$LINENO: result: yes; with -liconv" >&5 13632echo "${ECHO_T}yes; with -liconv" >&6; cat >>confdefs.h <<\_ACEOF 13633#define HAVE_ICONV 1 13634_ACEOF 13635 13636else 13637 echo "$as_me: failed program was:" >&5 13638sed 's/^/| /' conftest.$ac_ext >&5 13639 13640LIBS="$save_LIBS" 13641 cat >conftest.$ac_ext <<_ACEOF 13642/* confdefs.h. */ 13643_ACEOF 13644cat confdefs.h >>conftest.$ac_ext 13645cat >>conftest.$ac_ext <<_ACEOF 13646/* end confdefs.h. */ 13647 13648#ifdef HAVE_ICONV_H 13649# include <iconv.h> 13650#endif 13651 13652int 13653main () 13654{ 13655iconv_open("fr", "to"); 13656 ; 13657 return 0; 13658} 13659_ACEOF 13660rm -f conftest.$ac_objext conftest$ac_exeext 13661if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13662 (eval $ac_link) 2>conftest.er1 13663 ac_status=$? 13664 grep -v '^ *+' conftest.er1 >conftest.err 13665 rm -f conftest.er1 13666 cat conftest.err >&5 13667 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13668 (exit $ac_status); } && 13669 { ac_try='test -z "$ac_c_werror_flag" 13670 || test ! -s conftest.err' 13671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13672 (eval $ac_try) 2>&5 13673 ac_status=$? 13674 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13675 (exit $ac_status); }; } && 13676 { ac_try='test -s conftest$ac_exeext' 13677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13678 (eval $ac_try) 2>&5 13679 ac_status=$? 13680 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13681 (exit $ac_status); }; }; then 13682 echo "$as_me:$LINENO: result: yes" >&5 13683echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF 13684#define HAVE_ICONV 1 13685_ACEOF 13686 13687else 13688 echo "$as_me: failed program was:" >&5 13689sed 's/^/| /' conftest.$ac_ext >&5 13690 13691echo "$as_me:$LINENO: result: no" >&5 13692echo "${ECHO_T}no" >&6 13693fi 13694rm -f conftest.err conftest.$ac_objext \ 13695 conftest$ac_exeext conftest.$ac_ext 13696fi 13697rm -f conftest.err conftest.$ac_objext \ 13698 conftest$ac_exeext conftest.$ac_ext 13699 13700 13701echo "$as_me:$LINENO: checking for nl_langinfo(CODESET)" >&5 13702echo $ECHO_N "checking for nl_langinfo(CODESET)... $ECHO_C" >&6 13703cat >conftest.$ac_ext <<_ACEOF 13704/* confdefs.h. */ 13705_ACEOF 13706cat confdefs.h >>conftest.$ac_ext 13707cat >>conftest.$ac_ext <<_ACEOF 13708/* end confdefs.h. */ 13709 13710#ifdef HAVE_LANGINFO_H 13711# include <langinfo.h> 13712#endif 13713 13714int 13715main () 13716{ 13717char *cs = nl_langinfo(CODESET); 13718 ; 13719 return 0; 13720} 13721_ACEOF 13722rm -f conftest.$ac_objext conftest$ac_exeext 13723if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13724 (eval $ac_link) 2>conftest.er1 13725 ac_status=$? 13726 grep -v '^ *+' conftest.er1 >conftest.err 13727 rm -f conftest.er1 13728 cat conftest.err >&5 13729 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13730 (exit $ac_status); } && 13731 { ac_try='test -z "$ac_c_werror_flag" 13732 || test ! -s conftest.err' 13733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13734 (eval $ac_try) 2>&5 13735 ac_status=$? 13736 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13737 (exit $ac_status); }; } && 13738 { ac_try='test -s conftest$ac_exeext' 13739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13740 (eval $ac_try) 2>&5 13741 ac_status=$? 13742 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13743 (exit $ac_status); }; }; then 13744 echo "$as_me:$LINENO: result: yes" >&5 13745echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF 13746#define HAVE_NL_LANGINFO_CODESET 1 13747_ACEOF 13748 13749else 13750 echo "$as_me: failed program was:" >&5 13751sed 's/^/| /' conftest.$ac_ext >&5 13752 13753echo "$as_me:$LINENO: result: no" >&5 13754echo "${ECHO_T}no" >&6 13755fi 13756rm -f conftest.err conftest.$ac_objext \ 13757 conftest$ac_exeext conftest.$ac_ext 13758 13759echo "$as_me:$LINENO: checking --disable-acl argument" >&5 13760echo $ECHO_N "checking --disable-acl argument... $ECHO_C" >&6 13761# Check whether --enable-acl or --disable-acl was given. 13762if test "${enable_acl+set}" = set; then 13763 enableval="$enable_acl" 13764 13765else 13766 enable_acl="yes" 13767fi; 13768if test "$enable_acl" = "yes"; then 13769echo "$as_me:$LINENO: result: no" >&5 13770echo "${ECHO_T}no" >&6 13771echo "$as_me:$LINENO: checking for acl_get_file in -lposix1e" >&5 13772echo $ECHO_N "checking for acl_get_file in -lposix1e... $ECHO_C" >&6 13773if test "${ac_cv_lib_posix1e_acl_get_file+set}" = set; then 13774 echo $ECHO_N "(cached) $ECHO_C" >&6 13775else 13776 ac_check_lib_save_LIBS=$LIBS 13777LIBS="-lposix1e $LIBS" 13778cat >conftest.$ac_ext <<_ACEOF 13779/* confdefs.h. */ 13780_ACEOF 13781cat confdefs.h >>conftest.$ac_ext 13782cat >>conftest.$ac_ext <<_ACEOF 13783/* end confdefs.h. */ 13784 13785/* Override any gcc2 internal prototype to avoid an error. */ 13786#ifdef __cplusplus 13787extern "C" 13788#endif 13789/* We use char because int might match the return type of a gcc2 13790 builtin and then its argument prototype would still apply. */ 13791char acl_get_file (); 13792int 13793main () 13794{ 13795acl_get_file (); 13796 ; 13797 return 0; 13798} 13799_ACEOF 13800rm -f conftest.$ac_objext conftest$ac_exeext 13801if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13802 (eval $ac_link) 2>conftest.er1 13803 ac_status=$? 13804 grep -v '^ *+' conftest.er1 >conftest.err 13805 rm -f conftest.er1 13806 cat conftest.err >&5 13807 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13808 (exit $ac_status); } && 13809 { ac_try='test -z "$ac_c_werror_flag" 13810 || test ! -s conftest.err' 13811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13812 (eval $ac_try) 2>&5 13813 ac_status=$? 13814 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13815 (exit $ac_status); }; } && 13816 { ac_try='test -s conftest$ac_exeext' 13817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13818 (eval $ac_try) 2>&5 13819 ac_status=$? 13820 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13821 (exit $ac_status); }; }; then 13822 ac_cv_lib_posix1e_acl_get_file=yes 13823else 13824 echo "$as_me: failed program was:" >&5 13825sed 's/^/| /' conftest.$ac_ext >&5 13826 13827ac_cv_lib_posix1e_acl_get_file=no 13828fi 13829rm -f conftest.err conftest.$ac_objext \ 13830 conftest$ac_exeext conftest.$ac_ext 13831LIBS=$ac_check_lib_save_LIBS 13832fi 13833echo "$as_me:$LINENO: result: $ac_cv_lib_posix1e_acl_get_file" >&5 13834echo "${ECHO_T}$ac_cv_lib_posix1e_acl_get_file" >&6 13835if test $ac_cv_lib_posix1e_acl_get_file = yes; then 13836 LIBS="$LIBS -lposix1e" 13837else 13838 echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5 13839echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6 13840if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then 13841 echo $ECHO_N "(cached) $ECHO_C" >&6 13842else 13843 ac_check_lib_save_LIBS=$LIBS 13844LIBS="-lacl $LIBS" 13845cat >conftest.$ac_ext <<_ACEOF 13846/* confdefs.h. */ 13847_ACEOF 13848cat confdefs.h >>conftest.$ac_ext 13849cat >>conftest.$ac_ext <<_ACEOF 13850/* end confdefs.h. */ 13851 13852/* Override any gcc2 internal prototype to avoid an error. */ 13853#ifdef __cplusplus 13854extern "C" 13855#endif 13856/* We use char because int might match the return type of a gcc2 13857 builtin and then its argument prototype would still apply. */ 13858char acl_get_file (); 13859int 13860main () 13861{ 13862acl_get_file (); 13863 ; 13864 return 0; 13865} 13866_ACEOF 13867rm -f conftest.$ac_objext conftest$ac_exeext 13868if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13869 (eval $ac_link) 2>conftest.er1 13870 ac_status=$? 13871 grep -v '^ *+' conftest.er1 >conftest.err 13872 rm -f conftest.er1 13873 cat conftest.err >&5 13874 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13875 (exit $ac_status); } && 13876 { ac_try='test -z "$ac_c_werror_flag" 13877 || test ! -s conftest.err' 13878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13879 (eval $ac_try) 2>&5 13880 ac_status=$? 13881 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13882 (exit $ac_status); }; } && 13883 { ac_try='test -s conftest$ac_exeext' 13884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13885 (eval $ac_try) 2>&5 13886 ac_status=$? 13887 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13888 (exit $ac_status); }; }; then 13889 ac_cv_lib_acl_acl_get_file=yes 13890else 13891 echo "$as_me: failed program was:" >&5 13892sed 's/^/| /' conftest.$ac_ext >&5 13893 13894ac_cv_lib_acl_acl_get_file=no 13895fi 13896rm -f conftest.err conftest.$ac_objext \ 13897 conftest$ac_exeext conftest.$ac_ext 13898LIBS=$ac_check_lib_save_LIBS 13899fi 13900echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5 13901echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6 13902if test $ac_cv_lib_acl_acl_get_file = yes; then 13903 LIBS="$LIBS -lacl" 13904 echo "$as_me:$LINENO: checking for fgetxattr in -lattr" >&5 13905echo $ECHO_N "checking for fgetxattr in -lattr... $ECHO_C" >&6 13906if test "${ac_cv_lib_attr_fgetxattr+set}" = set; then 13907 echo $ECHO_N "(cached) $ECHO_C" >&6 13908else 13909 ac_check_lib_save_LIBS=$LIBS 13910LIBS="-lattr $LIBS" 13911cat >conftest.$ac_ext <<_ACEOF 13912/* confdefs.h. */ 13913_ACEOF 13914cat confdefs.h >>conftest.$ac_ext 13915cat >>conftest.$ac_ext <<_ACEOF 13916/* end confdefs.h. */ 13917 13918/* Override any gcc2 internal prototype to avoid an error. */ 13919#ifdef __cplusplus 13920extern "C" 13921#endif 13922/* We use char because int might match the return type of a gcc2 13923 builtin and then its argument prototype would still apply. */ 13924char fgetxattr (); 13925int 13926main () 13927{ 13928fgetxattr (); 13929 ; 13930 return 0; 13931} 13932_ACEOF 13933rm -f conftest.$ac_objext conftest$ac_exeext 13934if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13935 (eval $ac_link) 2>conftest.er1 13936 ac_status=$? 13937 grep -v '^ *+' conftest.er1 >conftest.err 13938 rm -f conftest.er1 13939 cat conftest.err >&5 13940 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13941 (exit $ac_status); } && 13942 { ac_try='test -z "$ac_c_werror_flag" 13943 || test ! -s conftest.err' 13944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13945 (eval $ac_try) 2>&5 13946 ac_status=$? 13947 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13948 (exit $ac_status); }; } && 13949 { ac_try='test -s conftest$ac_exeext' 13950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13951 (eval $ac_try) 2>&5 13952 ac_status=$? 13953 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13954 (exit $ac_status); }; }; then 13955 ac_cv_lib_attr_fgetxattr=yes 13956else 13957 echo "$as_me: failed program was:" >&5 13958sed 's/^/| /' conftest.$ac_ext >&5 13959 13960ac_cv_lib_attr_fgetxattr=no 13961fi 13962rm -f conftest.err conftest.$ac_objext \ 13963 conftest$ac_exeext conftest.$ac_ext 13964LIBS=$ac_check_lib_save_LIBS 13965fi 13966echo "$as_me:$LINENO: result: $ac_cv_lib_attr_fgetxattr" >&5 13967echo "${ECHO_T}$ac_cv_lib_attr_fgetxattr" >&6 13968if test $ac_cv_lib_attr_fgetxattr = yes; then 13969 LIBS="$LIBS -lattr" 13970fi 13971 13972fi 13973 13974fi 13975 13976 13977echo "$as_me:$LINENO: checking for POSIX ACL support" >&5 13978echo $ECHO_N "checking for POSIX ACL support... $ECHO_C" >&6 13979cat >conftest.$ac_ext <<_ACEOF 13980/* confdefs.h. */ 13981_ACEOF 13982cat confdefs.h >>conftest.$ac_ext 13983cat >>conftest.$ac_ext <<_ACEOF 13984/* end confdefs.h. */ 13985 13986#include <sys/types.h> 13987#ifdef HAVE_SYS_ACL_H 13988# include <sys/acl.h> 13989#endif 13990acl_t acl; 13991int 13992main () 13993{ 13994acl = acl_get_file("foo", ACL_TYPE_ACCESS); 13995 acl_set_file("foo", ACL_TYPE_ACCESS, acl); 13996 acl_free(acl); 13997 ; 13998 return 0; 13999} 14000_ACEOF 14001rm -f conftest.$ac_objext conftest$ac_exeext 14002if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 14003 (eval $ac_link) 2>conftest.er1 14004 ac_status=$? 14005 grep -v '^ *+' conftest.er1 >conftest.err 14006 rm -f conftest.er1 14007 cat conftest.err >&5 14008 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14009 (exit $ac_status); } && 14010 { ac_try='test -z "$ac_c_werror_flag" 14011 || test ! -s conftest.err' 14012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14013 (eval $ac_try) 2>&5 14014 ac_status=$? 14015 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14016 (exit $ac_status); }; } && 14017 { ac_try='test -s conftest$ac_exeext' 14018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14019 (eval $ac_try) 2>&5 14020 ac_status=$? 14021 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14022 (exit $ac_status); }; }; then 14023 echo "$as_me:$LINENO: result: yes" >&5 14024echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF 14025#define HAVE_POSIX_ACL 1 14026_ACEOF 14027 14028else 14029 echo "$as_me: failed program was:" >&5 14030sed 's/^/| /' conftest.$ac_ext >&5 14031 14032echo "$as_me:$LINENO: result: no" >&5 14033echo "${ECHO_T}no" >&6 14034fi 14035rm -f conftest.err conftest.$ac_objext \ 14036 conftest$ac_exeext conftest.$ac_ext 14037 14038echo "$as_me:$LINENO: checking for Solaris ACL support" >&5 14039echo $ECHO_N "checking for Solaris ACL support... $ECHO_C" >&6 14040cat >conftest.$ac_ext <<_ACEOF 14041/* confdefs.h. */ 14042_ACEOF 14043cat confdefs.h >>conftest.$ac_ext 14044cat >>conftest.$ac_ext <<_ACEOF 14045/* end confdefs.h. */ 14046 14047#ifdef HAVE_SYS_ACL_H 14048# include <sys/acl.h> 14049#endif 14050int 14051main () 14052{ 14053acl("foo", GETACLCNT, 0, NULL); 14054 14055 ; 14056 return 0; 14057} 14058_ACEOF 14059rm -f conftest.$ac_objext conftest$ac_exeext 14060if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 14061 (eval $ac_link) 2>conftest.er1 14062 ac_status=$? 14063 grep -v '^ *+' conftest.er1 >conftest.err 14064 rm -f conftest.er1 14065 cat conftest.err >&5 14066 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14067 (exit $ac_status); } && 14068 { ac_try='test -z "$ac_c_werror_flag" 14069 || test ! -s conftest.err' 14070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14071 (eval $ac_try) 2>&5 14072 ac_status=$? 14073 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14074 (exit $ac_status); }; } && 14075 { ac_try='test -s conftest$ac_exeext' 14076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14077 (eval $ac_try) 2>&5 14078 ac_status=$? 14079 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14080 (exit $ac_status); }; }; then 14081 echo "$as_me:$LINENO: result: yes" >&5 14082echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF 14083#define HAVE_SOLARIS_ACL 1 14084_ACEOF 14085 14086else 14087 echo "$as_me: failed program was:" >&5 14088sed 's/^/| /' conftest.$ac_ext >&5 14089 14090echo "$as_me:$LINENO: result: no" >&5 14091echo "${ECHO_T}no" >&6 14092fi 14093rm -f conftest.err conftest.$ac_objext \ 14094 conftest$ac_exeext conftest.$ac_ext 14095 14096echo "$as_me:$LINENO: checking for AIX ACL support" >&5 14097echo $ECHO_N "checking for AIX ACL support... $ECHO_C" >&6 14098cat >conftest.$ac_ext <<_ACEOF 14099/* confdefs.h. */ 14100_ACEOF 14101cat confdefs.h >>conftest.$ac_ext 14102cat >>conftest.$ac_ext <<_ACEOF 14103/* end confdefs.h. */ 14104 14105#ifdef HAVE_SYS_ACL_H 14106# include <sys/acl.h> 14107#endif 14108#ifdef HAVE_SYS_ACCESS_H 14109# include <sys/access.h> 14110#endif 14111#define _ALL_SOURCE 14112 14113#include <sys/stat.h> 14114 14115int aclsize; 14116struct acl *aclent; 14117int 14118main () 14119{ 14120aclsize = sizeof(struct acl); 14121 aclent = (void *)malloc(aclsize); 14122 statacl("foo", STX_NORMAL, aclent, aclsize); 14123 14124 ; 14125 return 0; 14126} 14127_ACEOF 14128rm -f conftest.$ac_objext conftest$ac_exeext 14129if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 14130 (eval $ac_link) 2>conftest.er1 14131 ac_status=$? 14132 grep -v '^ *+' conftest.er1 >conftest.err 14133 rm -f conftest.er1 14134 cat conftest.err >&5 14135 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14136 (exit $ac_status); } && 14137 { ac_try='test -z "$ac_c_werror_flag" 14138 || test ! -s conftest.err' 14139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14140 (eval $ac_try) 2>&5 14141 ac_status=$? 14142 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14143 (exit $ac_status); }; } && 14144 { ac_try='test -s conftest$ac_exeext' 14145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14146 (eval $ac_try) 2>&5 14147 ac_status=$? 14148 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14149 (exit $ac_status); }; }; then 14150 echo "$as_me:$LINENO: result: yes" >&5 14151echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF 14152#define HAVE_AIX_ACL 1 14153_ACEOF 14154 14155else 14156 echo "$as_me: failed program was:" >&5 14157sed 's/^/| /' conftest.$ac_ext >&5 14158 14159echo "$as_me:$LINENO: result: no" >&5 14160echo "${ECHO_T}no" >&6 14161fi 14162rm -f conftest.err conftest.$ac_objext \ 14163 conftest$ac_exeext conftest.$ac_ext 14164else 14165 echo "$as_me:$LINENO: result: yes" >&5 14166echo "${ECHO_T}yes" >&6 14167fi 14168 14169echo "$as_me:$LINENO: checking --disable-gpm argument" >&5 14170echo $ECHO_N "checking --disable-gpm argument... $ECHO_C" >&6 14171# Check whether --enable-gpm or --disable-gpm was given. 14172if test "${enable_gpm+set}" = set; then 14173 enableval="$enable_gpm" 14174 14175else 14176 enable_gpm="yes" 14177fi; 14178 14179if test "$enable_gpm" = "yes"; then 14180 echo "$as_me:$LINENO: result: no" >&5 14181echo "${ECHO_T}no" >&6 14182 echo "$as_me:$LINENO: checking for gpm" >&5 14183echo $ECHO_N "checking for gpm... $ECHO_C" >&6 14184if test "${vi_cv_have_gpm+set}" = set; then 14185 echo $ECHO_N "(cached) $ECHO_C" >&6 14186else 14187 olibs="$LIBS" ; LIBS="-lgpm" 14188 cat >conftest.$ac_ext <<_ACEOF 14189/* confdefs.h. */ 14190_ACEOF 14191cat confdefs.h >>conftest.$ac_ext 14192cat >>conftest.$ac_ext <<_ACEOF 14193/* end confdefs.h. */ 14194#include <gpm.h> 14195 #include <linux/keyboard.h> 14196int 14197main () 14198{ 14199Gpm_GetLibVersion(NULL); 14200 ; 14201 return 0; 14202} 14203_ACEOF 14204rm -f conftest.$ac_objext conftest$ac_exeext 14205if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 14206 (eval $ac_link) 2>conftest.er1 14207 ac_status=$? 14208 grep -v '^ *+' conftest.er1 >conftest.err 14209 rm -f conftest.er1 14210 cat conftest.err >&5 14211 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14212 (exit $ac_status); } && 14213 { ac_try='test -z "$ac_c_werror_flag" 14214 || test ! -s conftest.err' 14215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14216 (eval $ac_try) 2>&5 14217 ac_status=$? 14218 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14219 (exit $ac_status); }; } && 14220 { ac_try='test -s conftest$ac_exeext' 14221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14222 (eval $ac_try) 2>&5 14223 ac_status=$? 14224 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14225 (exit $ac_status); }; }; then 14226 vi_cv_have_gpm=yes 14227else 14228 echo "$as_me: failed program was:" >&5 14229sed 's/^/| /' conftest.$ac_ext >&5 14230 14231vi_cv_have_gpm=no 14232fi 14233rm -f conftest.err conftest.$ac_objext \ 14234 conftest$ac_exeext conftest.$ac_ext 14235 LIBS="$olibs" 14236 14237fi 14238echo "$as_me:$LINENO: result: $vi_cv_have_gpm" >&5 14239echo "${ECHO_T}$vi_cv_have_gpm" >&6 14240 if test $vi_cv_have_gpm = yes; then 14241 LIBS="$LIBS -lgpm" 14242 cat >>confdefs.h <<\_ACEOF 14243#define HAVE_GPM 1 14244_ACEOF 14245 14246 fi 14247else 14248 echo "$as_me:$LINENO: result: yes" >&5 14249echo "${ECHO_T}yes" >&6 14250fi 14251 14252echo "$as_me:$LINENO: checking for rename" >&5 14253echo $ECHO_N "checking for rename... $ECHO_C" >&6 14254cat >conftest.$ac_ext <<_ACEOF 14255/* confdefs.h. */ 14256_ACEOF 14257cat confdefs.h >>conftest.$ac_ext 14258cat >>conftest.$ac_ext <<_ACEOF 14259/* end confdefs.h. */ 14260#include <stdio.h> 14261int 14262main () 14263{ 14264rename("this", "that") 14265 ; 14266 return 0; 14267} 14268_ACEOF 14269rm -f conftest.$ac_objext conftest$ac_exeext 14270if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 14271 (eval $ac_link) 2>conftest.er1 14272 ac_status=$? 14273 grep -v '^ *+' conftest.er1 >conftest.err 14274 rm -f conftest.er1 14275 cat conftest.err >&5 14276 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14277 (exit $ac_status); } && 14278 { ac_try='test -z "$ac_c_werror_flag" 14279 || test ! -s conftest.err' 14280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14281 (eval $ac_try) 2>&5 14282 ac_status=$? 14283 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14284 (exit $ac_status); }; } && 14285 { ac_try='test -s conftest$ac_exeext' 14286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14287 (eval $ac_try) 2>&5 14288 ac_status=$? 14289 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14290 (exit $ac_status); }; }; then 14291 echo "$as_me:$LINENO: result: yes" >&5 14292echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF 14293#define HAVE_RENAME 1 14294_ACEOF 14295 14296else 14297 echo "$as_me: failed program was:" >&5 14298sed 's/^/| /' conftest.$ac_ext >&5 14299 14300echo "$as_me:$LINENO: result: no" >&5 14301echo "${ECHO_T}no" >&6 14302fi 14303rm -f conftest.err conftest.$ac_objext \ 14304 conftest$ac_exeext conftest.$ac_ext 14305 14306echo "$as_me:$LINENO: checking for sysctl" >&5 14307echo $ECHO_N "checking for sysctl... $ECHO_C" >&6 14308cat >conftest.$ac_ext <<_ACEOF 14309/* confdefs.h. */ 14310_ACEOF 14311cat confdefs.h >>conftest.$ac_ext 14312cat >>conftest.$ac_ext <<_ACEOF 14313/* end confdefs.h. */ 14314#include <sys/types.h> 14315#include <sys/sysctl.h> 14316int 14317main () 14318{ 14319 int mib[2], r; 14320 size_t len; 14321 14322 mib[0] = CTL_HW; 14323 mib[1] = HW_USERMEM; 14324 len = sizeof(r); 14325 (void)sysctl(mib, 2, &r, &len, (void *)0, (size_t)0); 14326 14327 ; 14328 return 0; 14329} 14330_ACEOF 14331rm -f conftest.$ac_objext 14332if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 14333 (eval $ac_compile) 2>conftest.er1 14334 ac_status=$? 14335 grep -v '^ *+' conftest.er1 >conftest.err 14336 rm -f conftest.er1 14337 cat conftest.err >&5 14338 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14339 (exit $ac_status); } && 14340 { ac_try='test -z "$ac_c_werror_flag" 14341 || test ! -s conftest.err' 14342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14343 (eval $ac_try) 2>&5 14344 ac_status=$? 14345 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14346 (exit $ac_status); }; } && 14347 { ac_try='test -s conftest.$ac_objext' 14348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14349 (eval $ac_try) 2>&5 14350 ac_status=$? 14351 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14352 (exit $ac_status); }; }; then 14353 echo "$as_me:$LINENO: result: yes" >&5 14354echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF 14355#define HAVE_SYSCTL 1 14356_ACEOF 14357 14358else 14359 echo "$as_me: failed program was:" >&5 14360sed 's/^/| /' conftest.$ac_ext >&5 14361 14362echo "$as_me:$LINENO: result: not usable" >&5 14363echo "${ECHO_T}not usable" >&6 14364fi 14365rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 14366 14367echo "$as_me:$LINENO: checking for sysinfo" >&5 14368echo $ECHO_N "checking for sysinfo... $ECHO_C" >&6 14369cat >conftest.$ac_ext <<_ACEOF 14370/* confdefs.h. */ 14371_ACEOF 14372cat confdefs.h >>conftest.$ac_ext 14373cat >>conftest.$ac_ext <<_ACEOF 14374/* end confdefs.h. */ 14375#include <sys/types.h> 14376#include <sys/sysinfo.h> 14377int 14378main () 14379{ 14380 struct sysinfo sinfo; 14381 int t; 14382 14383 (void)sysinfo(&sinfo); 14384 t = sinfo.totalram; 14385 14386 ; 14387 return 0; 14388} 14389_ACEOF 14390rm -f conftest.$ac_objext 14391if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 14392 (eval $ac_compile) 2>conftest.er1 14393 ac_status=$? 14394 grep -v '^ *+' conftest.er1 >conftest.err 14395 rm -f conftest.er1 14396 cat conftest.err >&5 14397 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14398 (exit $ac_status); } && 14399 { ac_try='test -z "$ac_c_werror_flag" 14400 || test ! -s conftest.err' 14401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14402 (eval $ac_try) 2>&5 14403 ac_status=$? 14404 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14405 (exit $ac_status); }; } && 14406 { ac_try='test -s conftest.$ac_objext' 14407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14408 (eval $ac_try) 2>&5 14409 ac_status=$? 14410 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14411 (exit $ac_status); }; }; then 14412 echo "$as_me:$LINENO: result: yes" >&5 14413echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF 14414#define HAVE_SYSINFO 1 14415_ACEOF 14416 14417else 14418 echo "$as_me: failed program was:" >&5 14419sed 's/^/| /' conftest.$ac_ext >&5 14420 14421echo "$as_me:$LINENO: result: not usable" >&5 14422echo "${ECHO_T}not usable" >&6 14423fi 14424rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 14425 14426echo "$as_me:$LINENO: checking for sysconf" >&5 14427echo $ECHO_N "checking for sysconf... $ECHO_C" >&6 14428cat >conftest.$ac_ext <<_ACEOF 14429/* confdefs.h. */ 14430_ACEOF 14431cat confdefs.h >>conftest.$ac_ext 14432cat >>conftest.$ac_ext <<_ACEOF 14433/* end confdefs.h. */ 14434#include <unistd.h> 14435int 14436main () 14437{ 14438 (void)sysconf(_SC_PAGESIZE); 14439 (void)sysconf(_SC_PHYS_PAGES); 14440 14441 ; 14442 return 0; 14443} 14444_ACEOF 14445rm -f conftest.$ac_objext 14446if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 14447 (eval $ac_compile) 2>conftest.er1 14448 ac_status=$? 14449 grep -v '^ *+' conftest.er1 >conftest.err 14450 rm -f conftest.er1 14451 cat conftest.err >&5 14452 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14453 (exit $ac_status); } && 14454 { ac_try='test -z "$ac_c_werror_flag" 14455 || test ! -s conftest.err' 14456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14457 (eval $ac_try) 2>&5 14458 ac_status=$? 14459 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14460 (exit $ac_status); }; } && 14461 { ac_try='test -s conftest.$ac_objext' 14462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14463 (eval $ac_try) 2>&5 14464 ac_status=$? 14465 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14466 (exit $ac_status); }; }; then 14467 echo "$as_me:$LINENO: result: yes" >&5 14468echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF 14469#define HAVE_SYSCONF 1 14470_ACEOF 14471 14472else 14473 echo "$as_me: failed program was:" >&5 14474sed 's/^/| /' conftest.$ac_ext >&5 14475 14476echo "$as_me:$LINENO: result: not usable" >&5 14477echo "${ECHO_T}not usable" >&6 14478fi 14479rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 14480 14481 14482echo "$as_me:$LINENO: checking size of int" >&5 14483echo $ECHO_N "checking size of int... $ECHO_C" >&6 14484if test "${ac_cv_sizeof_int+set}" = set; then 14485 echo $ECHO_N "(cached) $ECHO_C" >&6 14486else 14487 if test "$cross_compiling" = yes; then 14488 { { echo "$as_me:$LINENO: error: failed to compile test program" >&5 14489echo "$as_me: error: failed to compile test program" >&2;} 14490 { (exit 1); exit 1; }; } 14491else 14492 cat >conftest.$ac_ext <<_ACEOF 14493/* confdefs.h. */ 14494_ACEOF 14495cat confdefs.h >>conftest.$ac_ext 14496cat >>conftest.$ac_ext <<_ACEOF 14497/* end confdefs.h. */ 14498#include <stdio.h> 14499 main() 14500 { 14501 FILE *f=fopen("conftestval", "w"); 14502 if (!f) exit(1); 14503 fprintf(f, "%d\n", (int)sizeof(int)); 14504 exit(0); 14505 } 14506_ACEOF 14507rm -f conftest$ac_exeext 14508if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 14509 (eval $ac_link) 2>&5 14510 ac_status=$? 14511 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14512 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 14513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14514 (eval $ac_try) 2>&5 14515 ac_status=$? 14516 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14517 (exit $ac_status); }; }; then 14518 ac_cv_sizeof_int=`cat conftestval` 14519else 14520 echo "$as_me: program exited with status $ac_status" >&5 14521echo "$as_me: failed program was:" >&5 14522sed 's/^/| /' conftest.$ac_ext >&5 14523 14524( exit $ac_status ) 14525ac_cv_sizeof_int=0 14526fi 14527rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 14528fi 14529fi 14530 14531echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 14532echo "${ECHO_T}$ac_cv_sizeof_int" >&6 14533cat >>confdefs.h <<_ACEOF 14534#define SIZEOF_INT $ac_cv_sizeof_int 14535_ACEOF 14536 14537 14538echo "$as_me:$LINENO: checking whether memmove/bcopy/memcpy handle overlaps" >&5 14539echo $ECHO_N "checking whether memmove/bcopy/memcpy handle overlaps... $ECHO_C" >&6 14540bcopy_test_prog=' 14541main() { 14542 char buf[10]; 14543 strcpy(buf, "abcdefghi"); 14544 mch_memmove(buf, buf + 2, 3); 14545 if (strncmp(buf, "ababcf", 6)) 14546 exit(1); 14547 strcpy(buf, "abcdefghi"); 14548 mch_memmove(buf + 2, buf, 3); 14549 if (strncmp(buf, "cdedef", 6)) 14550 exit(1); 14551 exit(0); /* libc version works properly. */ 14552}' 14553 14554 14555if test "$cross_compiling" = yes; then 14556 { { echo "$as_me:$LINENO: error: failed to compile test program" >&5 14557echo "$as_me: error: failed to compile test program" >&2;} 14558 { (exit 1); exit 1; }; } 14559else 14560 cat >conftest.$ac_ext <<_ACEOF 14561/* confdefs.h. */ 14562_ACEOF 14563cat confdefs.h >>conftest.$ac_ext 14564cat >>conftest.$ac_ext <<_ACEOF 14565/* end confdefs.h. */ 14566#define mch_memmove(s,d,l) memmove(d,s,l) $bcopy_test_prog 14567_ACEOF 14568rm -f conftest$ac_exeext 14569if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 14570 (eval $ac_link) 2>&5 14571 ac_status=$? 14572 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14573 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 14574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14575 (eval $ac_try) 2>&5 14576 ac_status=$? 14577 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14578 (exit $ac_status); }; }; then 14579 cat >>confdefs.h <<\_ACEOF 14580#define USEMEMMOVE 1 14581_ACEOF 14582 echo "$as_me:$LINENO: result: memmove does" >&5 14583echo "${ECHO_T}memmove does" >&6 14584else 14585 echo "$as_me: program exited with status $ac_status" >&5 14586echo "$as_me: failed program was:" >&5 14587sed 's/^/| /' conftest.$ac_ext >&5 14588 14589( exit $ac_status ) 14590if test "$cross_compiling" = yes; then 14591 { { echo "$as_me:$LINENO: error: failed to compile test program" >&5 14592echo "$as_me: error: failed to compile test program" >&2;} 14593 { (exit 1); exit 1; }; } 14594else 14595 cat >conftest.$ac_ext <<_ACEOF 14596/* confdefs.h. */ 14597_ACEOF 14598cat confdefs.h >>conftest.$ac_ext 14599cat >>conftest.$ac_ext <<_ACEOF 14600/* end confdefs.h. */ 14601#define mch_memmove(s,d,l) bcopy(d,s,l) $bcopy_test_prog 14602_ACEOF 14603rm -f conftest$ac_exeext 14604if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 14605 (eval $ac_link) 2>&5 14606 ac_status=$? 14607 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14608 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 14609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14610 (eval $ac_try) 2>&5 14611 ac_status=$? 14612 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14613 (exit $ac_status); }; }; then 14614 cat >>confdefs.h <<\_ACEOF 14615#define USEBCOPY 1 14616_ACEOF 14617 echo "$as_me:$LINENO: result: bcopy does" >&5 14618echo "${ECHO_T}bcopy does" >&6 14619else 14620 echo "$as_me: program exited with status $ac_status" >&5 14621echo "$as_me: failed program was:" >&5 14622sed 's/^/| /' conftest.$ac_ext >&5 14623 14624( exit $ac_status ) 14625if test "$cross_compiling" = yes; then 14626 { { echo "$as_me:$LINENO: error: failed to compile test program" >&5 14627echo "$as_me: error: failed to compile test program" >&2;} 14628 { (exit 1); exit 1; }; } 14629else 14630 cat >conftest.$ac_ext <<_ACEOF 14631/* confdefs.h. */ 14632_ACEOF 14633cat confdefs.h >>conftest.$ac_ext 14634cat >>conftest.$ac_ext <<_ACEOF 14635/* end confdefs.h. */ 14636#define mch_memmove(s,d,l) memcpy(d,s,l) $bcopy_test_prog 14637_ACEOF 14638rm -f conftest$ac_exeext 14639if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 14640 (eval $ac_link) 2>&5 14641 ac_status=$? 14642 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14643 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 14644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14645 (eval $ac_try) 2>&5 14646 ac_status=$? 14647 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14648 (exit $ac_status); }; }; then 14649 cat >>confdefs.h <<\_ACEOF 14650#define USEMEMCPY 1 14651_ACEOF 14652 echo "$as_me:$LINENO: result: memcpy does" >&5 14653echo "${ECHO_T}memcpy does" >&6 14654else 14655 echo "$as_me: program exited with status $ac_status" >&5 14656echo "$as_me: failed program was:" >&5 14657sed 's/^/| /' conftest.$ac_ext >&5 14658 14659( exit $ac_status ) 14660echo "$as_me:$LINENO: result: no" >&5 14661echo "${ECHO_T}no" >&6 14662fi 14663rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 14664fi 14665fi 14666rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 14667fi 14668fi 14669rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 14670fi 14671 14672 14673if test "$enable_multibyte" = "yes"; then 14674 cflags_save=$CFLAGS 14675 ldflags_save=$LDFLAGS 14676 if test -n "$x_includes" ; then 14677 CFLAGS="$CFLAGS -I$x_includes" 14678 LDFLAGS="$X_LIBS $LDFLAGS -lX11" 14679 echo "$as_me:$LINENO: checking whether X_LOCALE needed" >&5 14680echo $ECHO_N "checking whether X_LOCALE needed... $ECHO_C" >&6 14681 cat >conftest.$ac_ext <<_ACEOF 14682/* confdefs.h. */ 14683_ACEOF 14684cat confdefs.h >>conftest.$ac_ext 14685cat >>conftest.$ac_ext <<_ACEOF 14686/* end confdefs.h. */ 14687#include <X11/Xlocale.h> 14688int 14689main () 14690{ 14691 14692 ; 14693 return 0; 14694} 14695_ACEOF 14696rm -f conftest.$ac_objext 14697if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 14698 (eval $ac_compile) 2>conftest.er1 14699 ac_status=$? 14700 grep -v '^ *+' conftest.er1 >conftest.err 14701 rm -f conftest.er1 14702 cat conftest.err >&5 14703 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14704 (exit $ac_status); } && 14705 { ac_try='test -z "$ac_c_werror_flag" 14706 || test ! -s conftest.err' 14707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14708 (eval $ac_try) 2>&5 14709 ac_status=$? 14710 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14711 (exit $ac_status); }; } && 14712 { ac_try='test -s conftest.$ac_objext' 14713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14714 (eval $ac_try) 2>&5 14715 ac_status=$? 14716 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14717 (exit $ac_status); }; }; then 14718 cat >conftest.$ac_ext <<_ACEOF 14719/* confdefs.h. */ 14720_ACEOF 14721cat confdefs.h >>conftest.$ac_ext 14722cat >>conftest.$ac_ext <<_ACEOF 14723/* end confdefs.h. */ 14724 14725/* Override any gcc2 internal prototype to avoid an error. */ 14726#ifdef __cplusplus 14727extern "C" 14728#endif 14729/* We use char because int might match the return type of a gcc2 14730 builtin and then its argument prototype would still apply. */ 14731char _Xsetlocale (); 14732int 14733main () 14734{ 14735_Xsetlocale (); 14736 ; 14737 return 0; 14738} 14739_ACEOF 14740rm -f conftest.$ac_objext conftest$ac_exeext 14741if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 14742 (eval $ac_link) 2>conftest.er1 14743 ac_status=$? 14744 grep -v '^ *+' conftest.er1 >conftest.err 14745 rm -f conftest.er1 14746 cat conftest.err >&5 14747 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14748 (exit $ac_status); } && 14749 { ac_try='test -z "$ac_c_werror_flag" 14750 || test ! -s conftest.err' 14751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14752 (eval $ac_try) 2>&5 14753 ac_status=$? 14754 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14755 (exit $ac_status); }; } && 14756 { ac_try='test -s conftest$ac_exeext' 14757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14758 (eval $ac_try) 2>&5 14759 ac_status=$? 14760 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14761 (exit $ac_status); }; }; then 14762 echo "$as_me:$LINENO: result: yes" >&5 14763echo "${ECHO_T}yes" >&6 14764 cat >>confdefs.h <<\_ACEOF 14765#define X_LOCALE 1 14766_ACEOF 14767 14768else 14769 echo "$as_me: failed program was:" >&5 14770sed 's/^/| /' conftest.$ac_ext >&5 14771 14772echo "$as_me:$LINENO: result: no" >&5 14773echo "${ECHO_T}no" >&6 14774fi 14775rm -f conftest.err conftest.$ac_objext \ 14776 conftest$ac_exeext conftest.$ac_ext 14777else 14778 echo "$as_me: failed program was:" >&5 14779sed 's/^/| /' conftest.$ac_ext >&5 14780 14781echo "$as_me:$LINENO: result: no" >&5 14782echo "${ECHO_T}no" >&6 14783fi 14784rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 14785 fi 14786 CFLAGS=$cflags_save 14787 LDFLAGS=$ldflags_save 14788fi 14789 14790echo "$as_me:$LINENO: checking for _xpg4_setrunelocale in -lxpg4" >&5 14791echo $ECHO_N "checking for _xpg4_setrunelocale in -lxpg4... $ECHO_C" >&6 14792if test "${ac_cv_lib_xpg4__xpg4_setrunelocale+set}" = set; then 14793 echo $ECHO_N "(cached) $ECHO_C" >&6 14794else 14795 ac_check_lib_save_LIBS=$LIBS 14796LIBS="-lxpg4 $LIBS" 14797cat >conftest.$ac_ext <<_ACEOF 14798/* confdefs.h. */ 14799_ACEOF 14800cat confdefs.h >>conftest.$ac_ext 14801cat >>conftest.$ac_ext <<_ACEOF 14802/* end confdefs.h. */ 14803 14804/* Override any gcc2 internal prototype to avoid an error. */ 14805#ifdef __cplusplus 14806extern "C" 14807#endif 14808/* We use char because int might match the return type of a gcc2 14809 builtin and then its argument prototype would still apply. */ 14810char _xpg4_setrunelocale (); 14811int 14812main () 14813{ 14814_xpg4_setrunelocale (); 14815 ; 14816 return 0; 14817} 14818_ACEOF 14819rm -f conftest.$ac_objext conftest$ac_exeext 14820if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 14821 (eval $ac_link) 2>conftest.er1 14822 ac_status=$? 14823 grep -v '^ *+' conftest.er1 >conftest.err 14824 rm -f conftest.er1 14825 cat conftest.err >&5 14826 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14827 (exit $ac_status); } && 14828 { ac_try='test -z "$ac_c_werror_flag" 14829 || test ! -s conftest.err' 14830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14831 (eval $ac_try) 2>&5 14832 ac_status=$? 14833 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14834 (exit $ac_status); }; } && 14835 { ac_try='test -s conftest$ac_exeext' 14836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14837 (eval $ac_try) 2>&5 14838 ac_status=$? 14839 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14840 (exit $ac_status); }; }; then 14841 ac_cv_lib_xpg4__xpg4_setrunelocale=yes 14842else 14843 echo "$as_me: failed program was:" >&5 14844sed 's/^/| /' conftest.$ac_ext >&5 14845 14846ac_cv_lib_xpg4__xpg4_setrunelocale=no 14847fi 14848rm -f conftest.err conftest.$ac_objext \ 14849 conftest$ac_exeext conftest.$ac_ext 14850LIBS=$ac_check_lib_save_LIBS 14851fi 14852echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5 14853echo "${ECHO_T}$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6 14854if test $ac_cv_lib_xpg4__xpg4_setrunelocale = yes; then 14855 LIBS="$LIBS -lxpg4" 14856fi 14857 14858 14859echo "$as_me:$LINENO: checking how to create tags" >&5 14860echo $ECHO_N "checking how to create tags... $ECHO_C" >&6 14861test -f tags && mv tags tags.save 14862if (eval ctags --version /dev/null | grep Exuberant) < /dev/null 1>&5 2>&1; then 14863 TAGPRG="ctags -I INIT+" 14864else 14865 (eval etags /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags" 14866 (eval etags -c /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags -c" 14867 (eval ctags /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags" 14868 (eval ctags -t /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -t" 14869 (eval ctags -ts /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -ts" 14870 (eval ctags -tvs /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -tvs" 14871 (eval ctags -i+m /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -i+m" 14872fi 14873test -f tags.save && mv tags.save tags 14874echo "$as_me:$LINENO: result: $TAGPRG" >&5 14875echo "${ECHO_T}$TAGPRG" >&6 14876 14877echo "$as_me:$LINENO: checking how to run man with a section nr" >&5 14878echo $ECHO_N "checking how to run man with a section nr... $ECHO_C" >&6 14879MANDEF="man" 14880(eval man -s 2 read) < /dev/null > /dev/null 2>&5 && MANDEF="man -s" 14881echo "$as_me:$LINENO: result: $MANDEF" >&5 14882echo "${ECHO_T}$MANDEF" >&6 14883if test "$MANDEF" = "man -s"; then 14884 cat >>confdefs.h <<\_ACEOF 14885#define USEMAN_S 1 14886_ACEOF 14887 14888fi 14889 14890echo "$as_me:$LINENO: checking --disable-nls argument" >&5 14891echo $ECHO_N "checking --disable-nls argument... $ECHO_C" >&6 14892# Check whether --enable-nls or --disable-nls was given. 14893if test "${enable_nls+set}" = set; then 14894 enableval="$enable_nls" 14895 14896else 14897 enable_nls="yes" 14898fi; 14899 14900if test "$enable_nls" = "yes"; then 14901 echo "$as_me:$LINENO: result: no" >&5 14902echo "${ECHO_T}no" >&6 14903 14904 INSTALL_LANGS=install-languages 14905 14906 INSTALL_TOOL_LANGS=install-tool-languages 14907 14908 14909 # Extract the first word of "msgfmt", so it can be a program name with args. 14910set dummy msgfmt; ac_word=$2 14911echo "$as_me:$LINENO: checking for $ac_word" >&5 14912echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 14913if test "${ac_cv_prog_MSGFMT+set}" = set; then 14914 echo $ECHO_N "(cached) $ECHO_C" >&6 14915else 14916 if test -n "$MSGFMT"; then 14917 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test. 14918else 14919as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14920for as_dir in $PATH 14921do 14922 IFS=$as_save_IFS 14923 test -z "$as_dir" && as_dir=. 14924 for ac_exec_ext in '' $ac_executable_extensions; do 14925 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14926 ac_cv_prog_MSGFMT="msgfmt" 14927 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 14928 break 2 14929 fi 14930done 14931done 14932 14933fi 14934fi 14935MSGFMT=$ac_cv_prog_MSGFMT 14936if test -n "$MSGFMT"; then 14937 echo "$as_me:$LINENO: result: $MSGFMT" >&5 14938echo "${ECHO_T}$MSGFMT" >&6 14939else 14940 echo "$as_me:$LINENO: result: no" >&5 14941echo "${ECHO_T}no" >&6 14942fi 14943 14944 echo "$as_me:$LINENO: checking for NLS" >&5 14945echo $ECHO_N "checking for NLS... $ECHO_C" >&6 14946 if test -f po/Makefile; then 14947 have_gettext="no" 14948 if test -n "$MSGFMT"; then 14949 cat >conftest.$ac_ext <<_ACEOF 14950/* confdefs.h. */ 14951_ACEOF 14952cat confdefs.h >>conftest.$ac_ext 14953cat >>conftest.$ac_ext <<_ACEOF 14954/* end confdefs.h. */ 14955#include <libintl.h> 14956int 14957main () 14958{ 14959gettext("Test"); 14960 ; 14961 return 0; 14962} 14963_ACEOF 14964rm -f conftest.$ac_objext conftest$ac_exeext 14965if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 14966 (eval $ac_link) 2>conftest.er1 14967 ac_status=$? 14968 grep -v '^ *+' conftest.er1 >conftest.err 14969 rm -f conftest.er1 14970 cat conftest.err >&5 14971 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14972 (exit $ac_status); } && 14973 { ac_try='test -z "$ac_c_werror_flag" 14974 || test ! -s conftest.err' 14975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14976 (eval $ac_try) 2>&5 14977 ac_status=$? 14978 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14979 (exit $ac_status); }; } && 14980 { ac_try='test -s conftest$ac_exeext' 14981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14982 (eval $ac_try) 2>&5 14983 ac_status=$? 14984 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14985 (exit $ac_status); }; }; then 14986 echo "$as_me:$LINENO: result: gettext() works" >&5 14987echo "${ECHO_T}gettext() works" >&6; have_gettext="yes" 14988else 14989 echo "$as_me: failed program was:" >&5 14990sed 's/^/| /' conftest.$ac_ext >&5 14991 14992olibs=$LIBS 14993 LIBS="$LIBS -lintl" 14994 cat >conftest.$ac_ext <<_ACEOF 14995/* confdefs.h. */ 14996_ACEOF 14997cat confdefs.h >>conftest.$ac_ext 14998cat >>conftest.$ac_ext <<_ACEOF 14999/* end confdefs.h. */ 15000#include <libintl.h> 15001int 15002main () 15003{ 15004gettext("Test"); 15005 ; 15006 return 0; 15007} 15008_ACEOF 15009rm -f conftest.$ac_objext conftest$ac_exeext 15010if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 15011 (eval $ac_link) 2>conftest.er1 15012 ac_status=$? 15013 grep -v '^ *+' conftest.er1 >conftest.err 15014 rm -f conftest.er1 15015 cat conftest.err >&5 15016 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15017 (exit $ac_status); } && 15018 { ac_try='test -z "$ac_c_werror_flag" 15019 || test ! -s conftest.err' 15020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15021 (eval $ac_try) 2>&5 15022 ac_status=$? 15023 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15024 (exit $ac_status); }; } && 15025 { ac_try='test -s conftest$ac_exeext' 15026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15027 (eval $ac_try) 2>&5 15028 ac_status=$? 15029 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15030 (exit $ac_status); }; }; then 15031 echo "$as_me:$LINENO: result: gettext() works with -lintl" >&5 15032echo "${ECHO_T}gettext() works with -lintl" >&6; have_gettext="yes" 15033else 15034 echo "$as_me: failed program was:" >&5 15035sed 's/^/| /' conftest.$ac_ext >&5 15036 15037echo "$as_me:$LINENO: result: gettext() doesn't work" >&5 15038echo "${ECHO_T}gettext() doesn't work" >&6; 15039 LIBS=$olibs 15040fi 15041rm -f conftest.err conftest.$ac_objext \ 15042 conftest$ac_exeext conftest.$ac_ext 15043fi 15044rm -f conftest.err conftest.$ac_objext \ 15045 conftest$ac_exeext conftest.$ac_ext 15046 else 15047 echo "$as_me:$LINENO: result: msgfmt not found - disabled" >&5 15048echo "${ECHO_T}msgfmt not found - disabled" >&6; 15049 fi 15050 if test $have_gettext = "yes"; then 15051 cat >>confdefs.h <<\_ACEOF 15052#define HAVE_GETTEXT 1 15053_ACEOF 15054 15055 MAKEMO=yes 15056 15057 15058for ac_func in bind_textdomain_codeset 15059do 15060as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 15061echo "$as_me:$LINENO: checking for $ac_func" >&5 15062echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 15063if eval "test \"\${$as_ac_var+set}\" = set"; then 15064 echo $ECHO_N "(cached) $ECHO_C" >&6 15065else 15066 cat >conftest.$ac_ext <<_ACEOF 15067/* confdefs.h. */ 15068_ACEOF 15069cat confdefs.h >>conftest.$ac_ext 15070cat >>conftest.$ac_ext <<_ACEOF 15071/* end confdefs.h. */ 15072/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 15073 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 15074#define $ac_func innocuous_$ac_func 15075 15076/* System header to define __stub macros and hopefully few prototypes, 15077 which can conflict with char $ac_func (); below. 15078 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 15079 <limits.h> exists even on freestanding compilers. */ 15080 15081#ifdef __STDC__ 15082# include <limits.h> 15083#else 15084# include <assert.h> 15085#endif 15086 15087#undef $ac_func 15088 15089/* Override any gcc2 internal prototype to avoid an error. */ 15090#ifdef __cplusplus 15091extern "C" 15092{ 15093#endif 15094/* We use char because int might match the return type of a gcc2 15095 builtin and then its argument prototype would still apply. */ 15096char $ac_func (); 15097/* The GNU C library defines this for functions which it implements 15098 to always fail with ENOSYS. Some functions are actually named 15099 something starting with __ and the normal name is an alias. */ 15100#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 15101choke me 15102#else 15103char (*f) () = $ac_func; 15104#endif 15105#ifdef __cplusplus 15106} 15107#endif 15108 15109int 15110main () 15111{ 15112return f != $ac_func; 15113 ; 15114 return 0; 15115} 15116_ACEOF 15117rm -f conftest.$ac_objext conftest$ac_exeext 15118if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 15119 (eval $ac_link) 2>conftest.er1 15120 ac_status=$? 15121 grep -v '^ *+' conftest.er1 >conftest.err 15122 rm -f conftest.er1 15123 cat conftest.err >&5 15124 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15125 (exit $ac_status); } && 15126 { ac_try='test -z "$ac_c_werror_flag" 15127 || test ! -s conftest.err' 15128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15129 (eval $ac_try) 2>&5 15130 ac_status=$? 15131 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15132 (exit $ac_status); }; } && 15133 { ac_try='test -s conftest$ac_exeext' 15134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15135 (eval $ac_try) 2>&5 15136 ac_status=$? 15137 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15138 (exit $ac_status); }; }; then 15139 eval "$as_ac_var=yes" 15140else 15141 echo "$as_me: failed program was:" >&5 15142sed 's/^/| /' conftest.$ac_ext >&5 15143 15144eval "$as_ac_var=no" 15145fi 15146rm -f conftest.err conftest.$ac_objext \ 15147 conftest$ac_exeext conftest.$ac_ext 15148fi 15149echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 15150echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 15151if test `eval echo '${'$as_ac_var'}'` = yes; then 15152 cat >>confdefs.h <<_ACEOF 15153#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 15154_ACEOF 15155 15156fi 15157done 15158 15159 echo "$as_me:$LINENO: checking for _nl_msg_cat_cntr" >&5 15160echo $ECHO_N "checking for _nl_msg_cat_cntr... $ECHO_C" >&6 15161 cat >conftest.$ac_ext <<_ACEOF 15162/* confdefs.h. */ 15163_ACEOF 15164cat confdefs.h >>conftest.$ac_ext 15165cat >>conftest.$ac_ext <<_ACEOF 15166/* end confdefs.h. */ 15167#include <libintl.h> 15168 extern int _nl_msg_cat_cntr; 15169int 15170main () 15171{ 15172++_nl_msg_cat_cntr; 15173 ; 15174 return 0; 15175} 15176_ACEOF 15177rm -f conftest.$ac_objext conftest$ac_exeext 15178if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 15179 (eval $ac_link) 2>conftest.er1 15180 ac_status=$? 15181 grep -v '^ *+' conftest.er1 >conftest.err 15182 rm -f conftest.er1 15183 cat conftest.err >&5 15184 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15185 (exit $ac_status); } && 15186 { ac_try='test -z "$ac_c_werror_flag" 15187 || test ! -s conftest.err' 15188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15189 (eval $ac_try) 2>&5 15190 ac_status=$? 15191 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15192 (exit $ac_status); }; } && 15193 { ac_try='test -s conftest$ac_exeext' 15194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15195 (eval $ac_try) 2>&5 15196 ac_status=$? 15197 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15198 (exit $ac_status); }; }; then 15199 echo "$as_me:$LINENO: result: yes" >&5 15200echo "${ECHO_T}yes" >&6; cat >>confdefs.h <<\_ACEOF 15201#define HAVE_NL_MSG_CAT_CNTR 1 15202_ACEOF 15203 15204else 15205 echo "$as_me: failed program was:" >&5 15206sed 's/^/| /' conftest.$ac_ext >&5 15207 15208echo "$as_me:$LINENO: result: no" >&5 15209echo "${ECHO_T}no" >&6 15210fi 15211rm -f conftest.err conftest.$ac_objext \ 15212 conftest$ac_exeext conftest.$ac_ext 15213 fi 15214 else 15215 echo "$as_me:$LINENO: result: no \"po/Makefile\" - disabled" >&5 15216echo "${ECHO_T}no \"po/Makefile\" - disabled" >&6; 15217 fi 15218else 15219 echo "$as_me:$LINENO: result: yes" >&5 15220echo "${ECHO_T}yes" >&6 15221fi 15222 15223if test "${ac_cv_header_dlfcn_h+set}" = set; then 15224 echo "$as_me:$LINENO: checking for dlfcn.h" >&5 15225echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6 15226if test "${ac_cv_header_dlfcn_h+set}" = set; then 15227 echo $ECHO_N "(cached) $ECHO_C" >&6 15228fi 15229echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5 15230echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6 15231else 15232 # Is the header compilable? 15233echo "$as_me:$LINENO: checking dlfcn.h usability" >&5 15234echo $ECHO_N "checking dlfcn.h usability... $ECHO_C" >&6 15235cat >conftest.$ac_ext <<_ACEOF 15236/* confdefs.h. */ 15237_ACEOF 15238cat confdefs.h >>conftest.$ac_ext 15239cat >>conftest.$ac_ext <<_ACEOF 15240/* end confdefs.h. */ 15241$ac_includes_default 15242#include <dlfcn.h> 15243_ACEOF 15244rm -f conftest.$ac_objext 15245if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 15246 (eval $ac_compile) 2>conftest.er1 15247 ac_status=$? 15248 grep -v '^ *+' conftest.er1 >conftest.err 15249 rm -f conftest.er1 15250 cat conftest.err >&5 15251 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15252 (exit $ac_status); } && 15253 { ac_try='test -z "$ac_c_werror_flag" 15254 || test ! -s conftest.err' 15255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15256 (eval $ac_try) 2>&5 15257 ac_status=$? 15258 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15259 (exit $ac_status); }; } && 15260 { ac_try='test -s conftest.$ac_objext' 15261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15262 (eval $ac_try) 2>&5 15263 ac_status=$? 15264 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15265 (exit $ac_status); }; }; then 15266 ac_header_compiler=yes 15267else 15268 echo "$as_me: failed program was:" >&5 15269sed 's/^/| /' conftest.$ac_ext >&5 15270 15271ac_header_compiler=no 15272fi 15273rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 15274echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 15275echo "${ECHO_T}$ac_header_compiler" >&6 15276 15277# Is the header present? 15278echo "$as_me:$LINENO: checking dlfcn.h presence" >&5 15279echo $ECHO_N "checking dlfcn.h presence... $ECHO_C" >&6 15280cat >conftest.$ac_ext <<_ACEOF 15281/* confdefs.h. */ 15282_ACEOF 15283cat confdefs.h >>conftest.$ac_ext 15284cat >>conftest.$ac_ext <<_ACEOF 15285/* end confdefs.h. */ 15286#include <dlfcn.h> 15287_ACEOF 15288if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 15289 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 15290 ac_status=$? 15291 grep -v '^ *+' conftest.er1 >conftest.err 15292 rm -f conftest.er1 15293 cat conftest.err >&5 15294 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15295 (exit $ac_status); } >/dev/null; then 15296 if test -s conftest.err; then 15297 ac_cpp_err=$ac_c_preproc_warn_flag 15298 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 15299 else 15300 ac_cpp_err= 15301 fi 15302else 15303 ac_cpp_err=yes 15304fi 15305if test -z "$ac_cpp_err"; then 15306 ac_header_preproc=yes 15307else 15308 echo "$as_me: failed program was:" >&5 15309sed 's/^/| /' conftest.$ac_ext >&5 15310 15311 ac_header_preproc=no 15312fi 15313rm -f conftest.err conftest.$ac_ext 15314echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 15315echo "${ECHO_T}$ac_header_preproc" >&6 15316 15317# So? What about this header? 15318case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 15319 yes:no: ) 15320 { echo "$as_me:$LINENO: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&5 15321echo "$as_me: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 15322 { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the compiler's result" >&5 15323echo "$as_me: WARNING: dlfcn.h: proceeding with the compiler's result" >&2;} 15324 ac_header_preproc=yes 15325 ;; 15326 no:yes:* ) 15327 { echo "$as_me:$LINENO: WARNING: dlfcn.h: present but cannot be compiled" >&5 15328echo "$as_me: WARNING: dlfcn.h: present but cannot be compiled" >&2;} 15329 { echo "$as_me:$LINENO: WARNING: dlfcn.h: check for missing prerequisite headers?" >&5 15330echo "$as_me: WARNING: dlfcn.h: check for missing prerequisite headers?" >&2;} 15331 { echo "$as_me:$LINENO: WARNING: dlfcn.h: see the Autoconf documentation" >&5 15332echo "$as_me: WARNING: dlfcn.h: see the Autoconf documentation" >&2;} 15333 { echo "$as_me:$LINENO: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&5 15334echo "$as_me: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&2;} 15335 { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&5 15336echo "$as_me: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&2;} 15337 { echo "$as_me:$LINENO: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&5 15338echo "$as_me: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&2;} 15339 ( 15340 cat <<\_ASBOX 15341## ------------------------------------------ ## 15342## Report this to the AC_PACKAGE_NAME lists. ## 15343## ------------------------------------------ ## 15344_ASBOX 15345 ) | 15346 sed "s/^/$as_me: WARNING: /" >&2 15347 ;; 15348esac 15349echo "$as_me:$LINENO: checking for dlfcn.h" >&5 15350echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6 15351if test "${ac_cv_header_dlfcn_h+set}" = set; then 15352 echo $ECHO_N "(cached) $ECHO_C" >&6 15353else 15354 ac_cv_header_dlfcn_h=$ac_header_preproc 15355fi 15356echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5 15357echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6 15358 15359fi 15360if test $ac_cv_header_dlfcn_h = yes; then 15361 DLL=dlfcn.h 15362else 15363 if test "${ac_cv_header_dl_h+set}" = set; then 15364 echo "$as_me:$LINENO: checking for dl.h" >&5 15365echo $ECHO_N "checking for dl.h... $ECHO_C" >&6 15366if test "${ac_cv_header_dl_h+set}" = set; then 15367 echo $ECHO_N "(cached) $ECHO_C" >&6 15368fi 15369echo "$as_me:$LINENO: result: $ac_cv_header_dl_h" >&5 15370echo "${ECHO_T}$ac_cv_header_dl_h" >&6 15371else 15372 # Is the header compilable? 15373echo "$as_me:$LINENO: checking dl.h usability" >&5 15374echo $ECHO_N "checking dl.h usability... $ECHO_C" >&6 15375cat >conftest.$ac_ext <<_ACEOF 15376/* confdefs.h. */ 15377_ACEOF 15378cat confdefs.h >>conftest.$ac_ext 15379cat >>conftest.$ac_ext <<_ACEOF 15380/* end confdefs.h. */ 15381$ac_includes_default 15382#include <dl.h> 15383_ACEOF 15384rm -f conftest.$ac_objext 15385if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 15386 (eval $ac_compile) 2>conftest.er1 15387 ac_status=$? 15388 grep -v '^ *+' conftest.er1 >conftest.err 15389 rm -f conftest.er1 15390 cat conftest.err >&5 15391 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15392 (exit $ac_status); } && 15393 { ac_try='test -z "$ac_c_werror_flag" 15394 || test ! -s conftest.err' 15395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15396 (eval $ac_try) 2>&5 15397 ac_status=$? 15398 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15399 (exit $ac_status); }; } && 15400 { ac_try='test -s conftest.$ac_objext' 15401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15402 (eval $ac_try) 2>&5 15403 ac_status=$? 15404 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15405 (exit $ac_status); }; }; then 15406 ac_header_compiler=yes 15407else 15408 echo "$as_me: failed program was:" >&5 15409sed 's/^/| /' conftest.$ac_ext >&5 15410 15411ac_header_compiler=no 15412fi 15413rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 15414echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 15415echo "${ECHO_T}$ac_header_compiler" >&6 15416 15417# Is the header present? 15418echo "$as_me:$LINENO: checking dl.h presence" >&5 15419echo $ECHO_N "checking dl.h presence... $ECHO_C" >&6 15420cat >conftest.$ac_ext <<_ACEOF 15421/* confdefs.h. */ 15422_ACEOF 15423cat confdefs.h >>conftest.$ac_ext 15424cat >>conftest.$ac_ext <<_ACEOF 15425/* end confdefs.h. */ 15426#include <dl.h> 15427_ACEOF 15428if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 15429 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 15430 ac_status=$? 15431 grep -v '^ *+' conftest.er1 >conftest.err 15432 rm -f conftest.er1 15433 cat conftest.err >&5 15434 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15435 (exit $ac_status); } >/dev/null; then 15436 if test -s conftest.err; then 15437 ac_cpp_err=$ac_c_preproc_warn_flag 15438 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 15439 else 15440 ac_cpp_err= 15441 fi 15442else 15443 ac_cpp_err=yes 15444fi 15445if test -z "$ac_cpp_err"; then 15446 ac_header_preproc=yes 15447else 15448 echo "$as_me: failed program was:" >&5 15449sed 's/^/| /' conftest.$ac_ext >&5 15450 15451 ac_header_preproc=no 15452fi 15453rm -f conftest.err conftest.$ac_ext 15454echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 15455echo "${ECHO_T}$ac_header_preproc" >&6 15456 15457# So? What about this header? 15458case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 15459 yes:no: ) 15460 { echo "$as_me:$LINENO: WARNING: dl.h: accepted by the compiler, rejected by the preprocessor!" >&5 15461echo "$as_me: WARNING: dl.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 15462 { echo "$as_me:$LINENO: WARNING: dl.h: proceeding with the compiler's result" >&5 15463echo "$as_me: WARNING: dl.h: proceeding with the compiler's result" >&2;} 15464 ac_header_preproc=yes 15465 ;; 15466 no:yes:* ) 15467 { echo "$as_me:$LINENO: WARNING: dl.h: present but cannot be compiled" >&5 15468echo "$as_me: WARNING: dl.h: present but cannot be compiled" >&2;} 15469 { echo "$as_me:$LINENO: WARNING: dl.h: check for missing prerequisite headers?" >&5 15470echo "$as_me: WARNING: dl.h: check for missing prerequisite headers?" >&2;} 15471 { echo "$as_me:$LINENO: WARNING: dl.h: see the Autoconf documentation" >&5 15472echo "$as_me: WARNING: dl.h: see the Autoconf documentation" >&2;} 15473 { echo "$as_me:$LINENO: WARNING: dl.h: section \"Present But Cannot Be Compiled\"" >&5 15474echo "$as_me: WARNING: dl.h: section \"Present But Cannot Be Compiled\"" >&2;} 15475 { echo "$as_me:$LINENO: WARNING: dl.h: proceeding with the preprocessor's result" >&5 15476echo "$as_me: WARNING: dl.h: proceeding with the preprocessor's result" >&2;} 15477 { echo "$as_me:$LINENO: WARNING: dl.h: in the future, the compiler will take precedence" >&5 15478echo "$as_me: WARNING: dl.h: in the future, the compiler will take precedence" >&2;} 15479 ( 15480 cat <<\_ASBOX 15481## ------------------------------------------ ## 15482## Report this to the AC_PACKAGE_NAME lists. ## 15483## ------------------------------------------ ## 15484_ASBOX 15485 ) | 15486 sed "s/^/$as_me: WARNING: /" >&2 15487 ;; 15488esac 15489echo "$as_me:$LINENO: checking for dl.h" >&5 15490echo $ECHO_N "checking for dl.h... $ECHO_C" >&6 15491if test "${ac_cv_header_dl_h+set}" = set; then 15492 echo $ECHO_N "(cached) $ECHO_C" >&6 15493else 15494 ac_cv_header_dl_h=$ac_header_preproc 15495fi 15496echo "$as_me:$LINENO: result: $ac_cv_header_dl_h" >&5 15497echo "${ECHO_T}$ac_cv_header_dl_h" >&6 15498 15499fi 15500if test $ac_cv_header_dl_h = yes; then 15501 DLL=dl.h 15502fi 15503 15504 15505fi 15506 15507 15508if test x${DLL} = xdlfcn.h; then 15509 15510cat >>confdefs.h <<\_ACEOF 15511#define HAVE_DLFCN_H 1 15512_ACEOF 15513 15514 echo "$as_me:$LINENO: checking for dlopen()" >&5 15515echo $ECHO_N "checking for dlopen()... $ECHO_C" >&6 15516 cat >conftest.$ac_ext <<_ACEOF 15517/* confdefs.h. */ 15518_ACEOF 15519cat confdefs.h >>conftest.$ac_ext 15520cat >>conftest.$ac_ext <<_ACEOF 15521/* end confdefs.h. */ 15522 15523int 15524main () 15525{ 15526 15527 extern void* dlopen(); 15528 dlopen(); 15529 15530 ; 15531 return 0; 15532} 15533_ACEOF 15534rm -f conftest.$ac_objext conftest$ac_exeext 15535if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 15536 (eval $ac_link) 2>conftest.er1 15537 ac_status=$? 15538 grep -v '^ *+' conftest.er1 >conftest.err 15539 rm -f conftest.er1 15540 cat conftest.err >&5 15541 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15542 (exit $ac_status); } && 15543 { ac_try='test -z "$ac_c_werror_flag" 15544 || test ! -s conftest.err' 15545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15546 (eval $ac_try) 2>&5 15547 ac_status=$? 15548 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15549 (exit $ac_status); }; } && 15550 { ac_try='test -s conftest$ac_exeext' 15551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15552 (eval $ac_try) 2>&5 15553 ac_status=$? 15554 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15555 (exit $ac_status); }; }; then 15556 echo "$as_me:$LINENO: result: yes" >&5 15557echo "${ECHO_T}yes" >&6; 15558 15559cat >>confdefs.h <<\_ACEOF 15560#define HAVE_DLOPEN 1 15561_ACEOF 15562 15563else 15564 echo "$as_me: failed program was:" >&5 15565sed 's/^/| /' conftest.$ac_ext >&5 15566 15567echo "$as_me:$LINENO: result: no" >&5 15568echo "${ECHO_T}no" >&6; 15569 echo "$as_me:$LINENO: checking for dlopen() in -ldl" >&5 15570echo $ECHO_N "checking for dlopen() in -ldl... $ECHO_C" >&6 15571 olibs=$LIBS 15572 LIBS="$LIBS -ldl" 15573 cat >conftest.$ac_ext <<_ACEOF 15574/* confdefs.h. */ 15575_ACEOF 15576cat confdefs.h >>conftest.$ac_ext 15577cat >>conftest.$ac_ext <<_ACEOF 15578/* end confdefs.h. */ 15579 15580int 15581main () 15582{ 15583 15584 extern void* dlopen(); 15585 dlopen(); 15586 15587 ; 15588 return 0; 15589} 15590_ACEOF 15591rm -f conftest.$ac_objext conftest$ac_exeext 15592if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 15593 (eval $ac_link) 2>conftest.er1 15594 ac_status=$? 15595 grep -v '^ *+' conftest.er1 >conftest.err 15596 rm -f conftest.er1 15597 cat conftest.err >&5 15598 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15599 (exit $ac_status); } && 15600 { ac_try='test -z "$ac_c_werror_flag" 15601 || test ! -s conftest.err' 15602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15603 (eval $ac_try) 2>&5 15604 ac_status=$? 15605 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15606 (exit $ac_status); }; } && 15607 { ac_try='test -s conftest$ac_exeext' 15608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15609 (eval $ac_try) 2>&5 15610 ac_status=$? 15611 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15612 (exit $ac_status); }; }; then 15613 echo "$as_me:$LINENO: result: yes" >&5 15614echo "${ECHO_T}yes" >&6; 15615 15616cat >>confdefs.h <<\_ACEOF 15617#define HAVE_DLOPEN 1 15618_ACEOF 15619 15620else 15621 echo "$as_me: failed program was:" >&5 15622sed 's/^/| /' conftest.$ac_ext >&5 15623 15624echo "$as_me:$LINENO: result: no" >&5 15625echo "${ECHO_T}no" >&6; 15626 LIBS=$olibs 15627fi 15628rm -f conftest.err conftest.$ac_objext \ 15629 conftest$ac_exeext conftest.$ac_ext 15630fi 15631rm -f conftest.err conftest.$ac_objext \ 15632 conftest$ac_exeext conftest.$ac_ext 15633 echo "$as_me:$LINENO: checking for dlsym()" >&5 15634echo $ECHO_N "checking for dlsym()... $ECHO_C" >&6 15635 cat >conftest.$ac_ext <<_ACEOF 15636/* confdefs.h. */ 15637_ACEOF 15638cat confdefs.h >>conftest.$ac_ext 15639cat >>conftest.$ac_ext <<_ACEOF 15640/* end confdefs.h. */ 15641 15642int 15643main () 15644{ 15645 15646 extern void* dlsym(); 15647 dlsym(); 15648 15649 ; 15650 return 0; 15651} 15652_ACEOF 15653rm -f conftest.$ac_objext conftest$ac_exeext 15654if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 15655 (eval $ac_link) 2>conftest.er1 15656 ac_status=$? 15657 grep -v '^ *+' conftest.er1 >conftest.err 15658 rm -f conftest.er1 15659 cat conftest.err >&5 15660 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15661 (exit $ac_status); } && 15662 { ac_try='test -z "$ac_c_werror_flag" 15663 || test ! -s conftest.err' 15664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15665 (eval $ac_try) 2>&5 15666 ac_status=$? 15667 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15668 (exit $ac_status); }; } && 15669 { ac_try='test -s conftest$ac_exeext' 15670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15671 (eval $ac_try) 2>&5 15672 ac_status=$? 15673 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15674 (exit $ac_status); }; }; then 15675 echo "$as_me:$LINENO: result: yes" >&5 15676echo "${ECHO_T}yes" >&6; 15677 15678cat >>confdefs.h <<\_ACEOF 15679#define HAVE_DLSYM 1 15680_ACEOF 15681 15682else 15683 echo "$as_me: failed program was:" >&5 15684sed 's/^/| /' conftest.$ac_ext >&5 15685 15686echo "$as_me:$LINENO: result: no" >&5 15687echo "${ECHO_T}no" >&6; 15688 echo "$as_me:$LINENO: checking for dlsym() in -ldl" >&5 15689echo $ECHO_N "checking for dlsym() in -ldl... $ECHO_C" >&6 15690 olibs=$LIBS 15691 LIBS="$LIBS -ldl" 15692 cat >conftest.$ac_ext <<_ACEOF 15693/* confdefs.h. */ 15694_ACEOF 15695cat confdefs.h >>conftest.$ac_ext 15696cat >>conftest.$ac_ext <<_ACEOF 15697/* end confdefs.h. */ 15698 15699int 15700main () 15701{ 15702 15703 extern void* dlsym(); 15704 dlsym(); 15705 15706 ; 15707 return 0; 15708} 15709_ACEOF 15710rm -f conftest.$ac_objext conftest$ac_exeext 15711if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 15712 (eval $ac_link) 2>conftest.er1 15713 ac_status=$? 15714 grep -v '^ *+' conftest.er1 >conftest.err 15715 rm -f conftest.er1 15716 cat conftest.err >&5 15717 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15718 (exit $ac_status); } && 15719 { ac_try='test -z "$ac_c_werror_flag" 15720 || test ! -s conftest.err' 15721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15722 (eval $ac_try) 2>&5 15723 ac_status=$? 15724 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15725 (exit $ac_status); }; } && 15726 { ac_try='test -s conftest$ac_exeext' 15727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15728 (eval $ac_try) 2>&5 15729 ac_status=$? 15730 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15731 (exit $ac_status); }; }; then 15732 echo "$as_me:$LINENO: result: yes" >&5 15733echo "${ECHO_T}yes" >&6; 15734 15735cat >>confdefs.h <<\_ACEOF 15736#define HAVE_DLSYM 1 15737_ACEOF 15738 15739else 15740 echo "$as_me: failed program was:" >&5 15741sed 's/^/| /' conftest.$ac_ext >&5 15742 15743echo "$as_me:$LINENO: result: no" >&5 15744echo "${ECHO_T}no" >&6; 15745 LIBS=$olibs 15746fi 15747rm -f conftest.err conftest.$ac_objext \ 15748 conftest$ac_exeext conftest.$ac_ext 15749fi 15750rm -f conftest.err conftest.$ac_objext \ 15751 conftest$ac_exeext conftest.$ac_ext 15752elif test x${DLL} = xdl.h; then 15753 15754cat >>confdefs.h <<\_ACEOF 15755#define HAVE_DL_H 1 15756_ACEOF 15757 15758 echo "$as_me:$LINENO: checking for shl_load()" >&5 15759echo $ECHO_N "checking for shl_load()... $ECHO_C" >&6 15760 cat >conftest.$ac_ext <<_ACEOF 15761/* confdefs.h. */ 15762_ACEOF 15763cat confdefs.h >>conftest.$ac_ext 15764cat >>conftest.$ac_ext <<_ACEOF 15765/* end confdefs.h. */ 15766 15767int 15768main () 15769{ 15770 15771 extern void* shl_load(); 15772 shl_load(); 15773 15774 ; 15775 return 0; 15776} 15777_ACEOF 15778rm -f conftest.$ac_objext conftest$ac_exeext 15779if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 15780 (eval $ac_link) 2>conftest.er1 15781 ac_status=$? 15782 grep -v '^ *+' conftest.er1 >conftest.err 15783 rm -f conftest.er1 15784 cat conftest.err >&5 15785 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15786 (exit $ac_status); } && 15787 { ac_try='test -z "$ac_c_werror_flag" 15788 || test ! -s conftest.err' 15789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15790 (eval $ac_try) 2>&5 15791 ac_status=$? 15792 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15793 (exit $ac_status); }; } && 15794 { ac_try='test -s conftest$ac_exeext' 15795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15796 (eval $ac_try) 2>&5 15797 ac_status=$? 15798 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15799 (exit $ac_status); }; }; then 15800 echo "$as_me:$LINENO: result: yes" >&5 15801echo "${ECHO_T}yes" >&6; 15802 15803cat >>confdefs.h <<\_ACEOF 15804#define HAVE_SHL_LOAD 1 15805_ACEOF 15806 15807else 15808 echo "$as_me: failed program was:" >&5 15809sed 's/^/| /' conftest.$ac_ext >&5 15810 15811echo "$as_me:$LINENO: result: no" >&5 15812echo "${ECHO_T}no" >&6; 15813 echo "$as_me:$LINENO: checking for shl_load() in -ldld" >&5 15814echo $ECHO_N "checking for shl_load() in -ldld... $ECHO_C" >&6 15815 olibs=$LIBS 15816 LIBS="$LIBS -ldld" 15817 cat >conftest.$ac_ext <<_ACEOF 15818/* confdefs.h. */ 15819_ACEOF 15820cat confdefs.h >>conftest.$ac_ext 15821cat >>conftest.$ac_ext <<_ACEOF 15822/* end confdefs.h. */ 15823 15824int 15825main () 15826{ 15827 15828 extern void* shl_load(); 15829 shl_load(); 15830 15831 ; 15832 return 0; 15833} 15834_ACEOF 15835rm -f conftest.$ac_objext conftest$ac_exeext 15836if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 15837 (eval $ac_link) 2>conftest.er1 15838 ac_status=$? 15839 grep -v '^ *+' conftest.er1 >conftest.err 15840 rm -f conftest.er1 15841 cat conftest.err >&5 15842 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15843 (exit $ac_status); } && 15844 { ac_try='test -z "$ac_c_werror_flag" 15845 || test ! -s conftest.err' 15846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15847 (eval $ac_try) 2>&5 15848 ac_status=$? 15849 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15850 (exit $ac_status); }; } && 15851 { ac_try='test -s conftest$ac_exeext' 15852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15853 (eval $ac_try) 2>&5 15854 ac_status=$? 15855 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15856 (exit $ac_status); }; }; then 15857 echo "$as_me:$LINENO: result: yes" >&5 15858echo "${ECHO_T}yes" >&6; 15859 15860cat >>confdefs.h <<\_ACEOF 15861#define HAVE_SHL_LOAD 1 15862_ACEOF 15863 15864else 15865 echo "$as_me: failed program was:" >&5 15866sed 's/^/| /' conftest.$ac_ext >&5 15867 15868echo "$as_me:$LINENO: result: no" >&5 15869echo "${ECHO_T}no" >&6; 15870 LIBS=$olibs 15871fi 15872rm -f conftest.err conftest.$ac_objext \ 15873 conftest$ac_exeext conftest.$ac_ext 15874fi 15875rm -f conftest.err conftest.$ac_objext \ 15876 conftest$ac_exeext conftest.$ac_ext 15877fi 15878 15879for ac_header in setjmp.h 15880do 15881as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 15882if eval "test \"\${$as_ac_Header+set}\" = set"; then 15883 echo "$as_me:$LINENO: checking for $ac_header" >&5 15884echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 15885if eval "test \"\${$as_ac_Header+set}\" = set"; then 15886 echo $ECHO_N "(cached) $ECHO_C" >&6 15887fi 15888echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 15889echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 15890else 15891 # Is the header compilable? 15892echo "$as_me:$LINENO: checking $ac_header usability" >&5 15893echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 15894cat >conftest.$ac_ext <<_ACEOF 15895/* confdefs.h. */ 15896_ACEOF 15897cat confdefs.h >>conftest.$ac_ext 15898cat >>conftest.$ac_ext <<_ACEOF 15899/* end confdefs.h. */ 15900$ac_includes_default 15901#include <$ac_header> 15902_ACEOF 15903rm -f conftest.$ac_objext 15904if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 15905 (eval $ac_compile) 2>conftest.er1 15906 ac_status=$? 15907 grep -v '^ *+' conftest.er1 >conftest.err 15908 rm -f conftest.er1 15909 cat conftest.err >&5 15910 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15911 (exit $ac_status); } && 15912 { ac_try='test -z "$ac_c_werror_flag" 15913 || test ! -s conftest.err' 15914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15915 (eval $ac_try) 2>&5 15916 ac_status=$? 15917 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15918 (exit $ac_status); }; } && 15919 { ac_try='test -s conftest.$ac_objext' 15920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15921 (eval $ac_try) 2>&5 15922 ac_status=$? 15923 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15924 (exit $ac_status); }; }; then 15925 ac_header_compiler=yes 15926else 15927 echo "$as_me: failed program was:" >&5 15928sed 's/^/| /' conftest.$ac_ext >&5 15929 15930ac_header_compiler=no 15931fi 15932rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 15933echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 15934echo "${ECHO_T}$ac_header_compiler" >&6 15935 15936# Is the header present? 15937echo "$as_me:$LINENO: checking $ac_header presence" >&5 15938echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 15939cat >conftest.$ac_ext <<_ACEOF 15940/* confdefs.h. */ 15941_ACEOF 15942cat confdefs.h >>conftest.$ac_ext 15943cat >>conftest.$ac_ext <<_ACEOF 15944/* end confdefs.h. */ 15945#include <$ac_header> 15946_ACEOF 15947if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 15948 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 15949 ac_status=$? 15950 grep -v '^ *+' conftest.er1 >conftest.err 15951 rm -f conftest.er1 15952 cat conftest.err >&5 15953 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15954 (exit $ac_status); } >/dev/null; then 15955 if test -s conftest.err; then 15956 ac_cpp_err=$ac_c_preproc_warn_flag 15957 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 15958 else 15959 ac_cpp_err= 15960 fi 15961else 15962 ac_cpp_err=yes 15963fi 15964if test -z "$ac_cpp_err"; then 15965 ac_header_preproc=yes 15966else 15967 echo "$as_me: failed program was:" >&5 15968sed 's/^/| /' conftest.$ac_ext >&5 15969 15970 ac_header_preproc=no 15971fi 15972rm -f conftest.err conftest.$ac_ext 15973echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 15974echo "${ECHO_T}$ac_header_preproc" >&6 15975 15976# So? What about this header? 15977case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 15978 yes:no: ) 15979 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 15980echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 15981 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 15982echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 15983 ac_header_preproc=yes 15984 ;; 15985 no:yes:* ) 15986 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 15987echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 15988 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 15989echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 15990 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 15991echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 15992 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 15993echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 15994 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 15995echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 15996 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 15997echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 15998 ( 15999 cat <<\_ASBOX 16000## ------------------------------------------ ## 16001## Report this to the AC_PACKAGE_NAME lists. ## 16002## ------------------------------------------ ## 16003_ASBOX 16004 ) | 16005 sed "s/^/$as_me: WARNING: /" >&2 16006 ;; 16007esac 16008echo "$as_me:$LINENO: checking for $ac_header" >&5 16009echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 16010if eval "test \"\${$as_ac_Header+set}\" = set"; then 16011 echo $ECHO_N "(cached) $ECHO_C" >&6 16012else 16013 eval "$as_ac_Header=\$ac_header_preproc" 16014fi 16015echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 16016echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 16017 16018fi 16019if test `eval echo '${'$as_ac_Header'}'` = yes; then 16020 cat >>confdefs.h <<_ACEOF 16021#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 16022_ACEOF 16023 16024fi 16025 16026done 16027 16028 16029if test "x$MACOSX" = "xyes" -a -n "$PERL"; then 16030 if echo $LIBS | grep -e '-ldl' >/dev/null; then 16031 LIBS=`echo $LIBS | sed s/-ldl//` 16032 PERL_LIBS="$PERL_LIBS -ldl" 16033 fi 16034fi 16035 16036if test "x$MACOSX" = "xyes" && test "x$CARBON" = "xyes" \ 16037 && test "x$GUITYPE" != "xCARBONGUI"; then 16038 echo "$as_me:$LINENO: checking whether we need -framework Carbon" >&5 16039echo $ECHO_N "checking whether we need -framework Carbon... $ECHO_C" >&6 16040 if test "x$enable_multibyte" = "xyes" || test "x$features" == "xbig" \ 16041 || test "x$features" = "xhuge"; then 16042 LIBS="$LIBS -framework Carbon" 16043 echo "$as_me:$LINENO: result: yes" >&5 16044echo "${ECHO_T}yes" >&6 16045 else 16046 echo "$as_me:$LINENO: result: no" >&5 16047echo "${ECHO_T}no" >&6 16048 fi 16049fi 16050 16051DEPEND_CFLAGS_FILTER= 16052if test "$GCC" = yes; then 16053 gccmajor=`"$CC" --version | sed -e '2,$d;s/^[^0-9]*\([3-9]\)\.[0-9.]*.*$/\1/g'` 16054 if test "$gccmajor" = ""; then 16055 DEPEND_CFLAGS_FILTER="| sed 's+-I */+-isystem /+g'" 16056 fi 16057fi 16058 16059 16060 ac_config_files="$ac_config_files auto/config.mk:config.mk.in" 16061cat >confcache <<\_ACEOF 16062# This file is a shell script that caches the results of configure 16063# tests run on this system so they can be shared between configure 16064# scripts and configure runs, see configure's option --config-cache. 16065# It is not useful on other systems. If it contains results you don't 16066# want to keep, you may remove or edit it. 16067# 16068# config.status only pays attention to the cache file if you give it 16069# the --recheck option to rerun configure. 16070# 16071# `ac_cv_env_foo' variables (set or unset) will be overridden when 16072# loading this file, other *unset* `ac_cv_foo' will be assigned the 16073# following values. 16074 16075_ACEOF 16076 16077# The following way of writing the cache mishandles newlines in values, 16078# but we know of no workaround that is simple, portable, and efficient. 16079# So, don't put newlines in cache variables' values. 16080# Ultrix sh set writes to stderr and can't be redirected directly, 16081# and sets the high bit in the cache file unless we assign to the vars. 16082{ 16083 (set) 2>&1 | 16084 case `(ac_space=' '; set | grep ac_space) 2>&1` in 16085 *ac_space=\ *) 16086 # `set' does not quote correctly, so add quotes (double-quote 16087 # substitution turns \\\\ into \\, and sed turns \\ into \). 16088 sed -n \ 16089 "s/'/'\\\\''/g; 16090 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 16091 ;; 16092 *) 16093 # `set' quotes correctly as required by POSIX, so do not add quotes. 16094 sed -n \ 16095 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 16096 ;; 16097 esac; 16098} | 16099 sed ' 16100 t clear 16101 : clear 16102 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 16103 t end 16104 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 16105 : end' >>confcache 16106if diff $cache_file confcache >/dev/null 2>&1; then :; else 16107 if test -w $cache_file; then 16108 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" 16109 cat confcache >$cache_file 16110 else 16111 echo "not updating unwritable cache $cache_file" 16112 fi 16113fi 16114rm -f confcache 16115 16116test "x$prefix" = xNONE && prefix=$ac_default_prefix 16117# Let make expand exec_prefix. 16118test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 16119 16120# VPATH may cause trouble with some makes, so we remove $(srcdir), 16121# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 16122# trailing colons and then remove the whole line if VPATH becomes empty 16123# (actually we leave an empty line to preserve line numbers). 16124if test "x$srcdir" = x.; then 16125 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 16126s/:*\$(srcdir):*/:/; 16127s/:*\${srcdir}:*/:/; 16128s/:*@srcdir@:*/:/; 16129s/^\([^=]*=[ ]*\):*/\1/; 16130s/:*$//; 16131s/^[^=]*=[ ]*$//; 16132}' 16133fi 16134 16135DEFS=-DHAVE_CONFIG_H 16136 16137ac_libobjs= 16138ac_ltlibobjs= 16139for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 16140 # 1. Remove the extension, and $U if already installed. 16141 ac_i=`echo "$ac_i" | 16142 sed 's/\$U\././;s/\.o$//;s/\.obj$//'` 16143 # 2. Add them. 16144 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" 16145 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' 16146done 16147LIBOBJS=$ac_libobjs 16148 16149LTLIBOBJS=$ac_ltlibobjs 16150 16151 16152 16153: ${CONFIG_STATUS=./config.status} 16154ac_clean_files_save=$ac_clean_files 16155ac_clean_files="$ac_clean_files $CONFIG_STATUS" 16156{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 16157echo "$as_me: creating $CONFIG_STATUS" >&6;} 16158cat >$CONFIG_STATUS <<_ACEOF 16159#! $SHELL 16160# Generated by $as_me. 16161# Run this file to recreate the current configuration. 16162# Compiler output produced by configure, useful for debugging 16163# configure, is in config.log if it exists. 16164 16165debug=false 16166ac_cs_recheck=false 16167ac_cs_silent=false 16168SHELL=\${CONFIG_SHELL-$SHELL} 16169_ACEOF 16170 16171cat >>$CONFIG_STATUS <<\_ACEOF 16172## --------------------- ## 16173## M4sh Initialization. ## 16174## --------------------- ## 16175 16176# Be Bourne compatible 16177if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 16178 emulate sh 16179 NULLCMD=: 16180 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 16181 # is contrary to our usage. Disable this feature. 16182 alias -g '${1+"$@"}'='"$@"' 16183elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 16184 set -o posix 16185fi 16186DUALCASE=1; export DUALCASE # for MKS sh 16187 16188# Support unset when possible. 16189if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 16190 as_unset=unset 16191else 16192 as_unset=false 16193fi 16194 16195 16196# Work around bugs in pre-3.0 UWIN ksh. 16197$as_unset ENV MAIL MAILPATH 16198PS1='$ ' 16199PS2='> ' 16200PS4='+ ' 16201 16202# NLS nuisances. 16203for as_var in \ 16204 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 16205 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 16206 LC_TELEPHONE LC_TIME 16207do 16208 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 16209 eval $as_var=C; export $as_var 16210 else 16211 $as_unset $as_var 16212 fi 16213done 16214 16215# Required to use basename. 16216if expr a : '\(a\)' >/dev/null 2>&1; then 16217 as_expr=expr 16218else 16219 as_expr=false 16220fi 16221 16222if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 16223 as_basename=basename 16224else 16225 as_basename=false 16226fi 16227 16228 16229# Name of the executable. 16230as_me=`$as_basename "$0" || 16231$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 16232 X"$0" : 'X\(//\)$' \| \ 16233 X"$0" : 'X\(/\)$' \| \ 16234 . : '\(.\)' 2>/dev/null || 16235echo X/"$0" | 16236 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 16237 /^X\/\(\/\/\)$/{ s//\1/; q; } 16238 /^X\/\(\/\).*/{ s//\1/; q; } 16239 s/.*/./; q'` 16240 16241 16242# PATH needs CR, and LINENO needs CR and PATH. 16243# Avoid depending upon Character Ranges. 16244as_cr_letters='abcdefghijklmnopqrstuvwxyz' 16245as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 16246as_cr_Letters=$as_cr_letters$as_cr_LETTERS 16247as_cr_digits='0123456789' 16248as_cr_alnum=$as_cr_Letters$as_cr_digits 16249 16250# The user is always right. 16251if test "${PATH_SEPARATOR+set}" != set; then 16252 echo "#! /bin/sh" >conf$$.sh 16253 echo "exit 0" >>conf$$.sh 16254 chmod +x conf$$.sh 16255 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 16256 PATH_SEPARATOR=';' 16257 else 16258 PATH_SEPARATOR=: 16259 fi 16260 rm -f conf$$.sh 16261fi 16262 16263 16264 as_lineno_1=$LINENO 16265 as_lineno_2=$LINENO 16266 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 16267 test "x$as_lineno_1" != "x$as_lineno_2" && 16268 test "x$as_lineno_3" = "x$as_lineno_2" || { 16269 # Find who we are. Look in the path if we contain no path at all 16270 # relative or not. 16271 case $0 in 16272 *[\\/]* ) as_myself=$0 ;; 16273 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16274for as_dir in $PATH 16275do 16276 IFS=$as_save_IFS 16277 test -z "$as_dir" && as_dir=. 16278 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 16279done 16280 16281 ;; 16282 esac 16283 # We did not find ourselves, most probably we were run as `sh COMMAND' 16284 # in which case we are not to be found in the path. 16285 if test "x$as_myself" = x; then 16286 as_myself=$0 16287 fi 16288 if test ! -f "$as_myself"; then 16289 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 16290echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} 16291 { (exit 1); exit 1; }; } 16292 fi 16293 case $CONFIG_SHELL in 16294 '') 16295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16296for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 16297do 16298 IFS=$as_save_IFS 16299 test -z "$as_dir" && as_dir=. 16300 for as_base in sh bash ksh sh5; do 16301 case $as_dir in 16302 /*) 16303 if ("$as_dir/$as_base" -c ' 16304 as_lineno_1=$LINENO 16305 as_lineno_2=$LINENO 16306 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 16307 test "x$as_lineno_1" != "x$as_lineno_2" && 16308 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 16309 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 16310 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 16311 CONFIG_SHELL=$as_dir/$as_base 16312 export CONFIG_SHELL 16313 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 16314 fi;; 16315 esac 16316 done 16317done 16318;; 16319 esac 16320 16321 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 16322 # uniformly replaced by the line number. The first 'sed' inserts a 16323 # line-number line before each line; the second 'sed' does the real 16324 # work. The second script uses 'N' to pair each line-number line 16325 # with the numbered line, and appends trailing '-' during 16326 # substitution so that $LINENO is not a special case at line end. 16327 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 16328 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 16329 sed '=' <$as_myself | 16330 sed ' 16331 N 16332 s,$,-, 16333 : loop 16334 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 16335 t loop 16336 s,-$,, 16337 s,^['$as_cr_digits']*\n,, 16338 ' >$as_me.lineno && 16339 chmod +x $as_me.lineno || 16340 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 16341echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} 16342 { (exit 1); exit 1; }; } 16343 16344 # Don't try to exec as it changes $[0], causing all sort of problems 16345 # (the dirname of $[0] is not the place where we might find the 16346 # original and so on. Autoconf is especially sensible to this). 16347 . ./$as_me.lineno 16348 # Exit status is that of the last command. 16349 exit 16350} 16351 16352 16353case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 16354 *c*,-n*) ECHO_N= ECHO_C=' 16355' ECHO_T=' ' ;; 16356 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 16357 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 16358esac 16359 16360if expr a : '\(a\)' >/dev/null 2>&1; then 16361 as_expr=expr 16362else 16363 as_expr=false 16364fi 16365 16366rm -f conf$$ conf$$.exe conf$$.file 16367echo >conf$$.file 16368if ln -s conf$$.file conf$$ 2>/dev/null; then 16369 # We could just check for DJGPP; but this test a) works b) is more generic 16370 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 16371 if test -f conf$$.exe; then 16372 # Don't use ln at all; we don't have any links 16373 as_ln_s='cp -p' 16374 else 16375 as_ln_s='ln -s' 16376 fi 16377elif ln conf$$.file conf$$ 2>/dev/null; then 16378 as_ln_s=ln 16379else 16380 as_ln_s='cp -p' 16381fi 16382rm -f conf$$ conf$$.exe conf$$.file 16383 16384if mkdir -p . 2>/dev/null; then 16385 as_mkdir_p=: 16386else 16387 test -d ./-p && rmdir ./-p 16388 as_mkdir_p=false 16389fi 16390 16391as_executable_p="test -f" 16392 16393# Sed expression to map a string onto a valid CPP name. 16394as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 16395 16396# Sed expression to map a string onto a valid variable name. 16397as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 16398 16399 16400# IFS 16401# We need space, tab and new line, in precisely that order. 16402as_nl=' 16403' 16404IFS=" $as_nl" 16405 16406# CDPATH. 16407$as_unset CDPATH 16408 16409exec 6>&1 16410 16411# Open the log real soon, to keep \$[0] and so on meaningful, and to 16412# report actual input values of CONFIG_FILES etc. instead of their 16413# values after options handling. Logging --version etc. is OK. 16414exec 5>>auto/config.log 16415{ 16416 echo 16417 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 16418## Running $as_me. ## 16419_ASBOX 16420} >&5 16421cat >&5 <<_CSEOF 16422 16423This file was extended by $as_me, which was 16424generated by GNU Autoconf 2.59. Invocation command line was 16425 16426 CONFIG_FILES = $CONFIG_FILES 16427 CONFIG_HEADERS = $CONFIG_HEADERS 16428 CONFIG_LINKS = $CONFIG_LINKS 16429 CONFIG_COMMANDS = $CONFIG_COMMANDS 16430 $ $0 $@ 16431 16432_CSEOF 16433echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 16434echo >&5 16435_ACEOF 16436 16437# Files that config.status was made for. 16438if test -n "$ac_config_files"; then 16439 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS 16440fi 16441 16442if test -n "$ac_config_headers"; then 16443 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS 16444fi 16445 16446if test -n "$ac_config_links"; then 16447 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS 16448fi 16449 16450if test -n "$ac_config_commands"; then 16451 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS 16452fi 16453 16454cat >>$CONFIG_STATUS <<\_ACEOF 16455 16456ac_cs_usage="\ 16457\`$as_me' instantiates files from templates according to the 16458current configuration. 16459 16460Usage: $0 [OPTIONS] [FILE]... 16461 16462 -h, --help print this help, then exit 16463 -V, --version print version number, then exit 16464 -q, --quiet do not print progress messages 16465 -d, --debug don't remove temporary files 16466 --recheck update $as_me by reconfiguring in the same conditions 16467 --file=FILE[:TEMPLATE] 16468 instantiate the configuration file FILE 16469 --header=FILE[:TEMPLATE] 16470 instantiate the configuration header FILE 16471 16472Configuration files: 16473$config_files 16474 16475Configuration headers: 16476$config_headers 16477 16478Report bugs to <[email protected]>." 16479_ACEOF 16480 16481cat >>$CONFIG_STATUS <<_ACEOF 16482ac_cs_version="\\ 16483config.status 16484configured by $0, generated by GNU Autoconf 2.59, 16485 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" 16486 16487Copyright (C) 2003 Free Software Foundation, Inc. 16488This config.status script is free software; the Free Software Foundation 16489gives unlimited permission to copy, distribute and modify it." 16490srcdir=$srcdir 16491_ACEOF 16492 16493cat >>$CONFIG_STATUS <<\_ACEOF 16494# If no file are specified by the user, then we need to provide default 16495# value. By we need to know if files were specified by the user. 16496ac_need_defaults=: 16497while test $# != 0 16498do 16499 case $1 in 16500 --*=*) 16501 ac_option=`expr "x$1" : 'x\([^=]*\)='` 16502 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` 16503 ac_shift=: 16504 ;; 16505 -*) 16506 ac_option=$1 16507 ac_optarg=$2 16508 ac_shift=shift 16509 ;; 16510 *) # This is not an option, so the user has probably given explicit 16511 # arguments. 16512 ac_option=$1 16513 ac_need_defaults=false;; 16514 esac 16515 16516 case $ac_option in 16517 # Handling of the options. 16518_ACEOF 16519cat >>$CONFIG_STATUS <<\_ACEOF 16520 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 16521 ac_cs_recheck=: ;; 16522 --version | --vers* | -V ) 16523 echo "$ac_cs_version"; exit 0 ;; 16524 --he | --h) 16525 # Conflict between --help and --header 16526 { { echo "$as_me:$LINENO: error: ambiguous option: $1 16527Try \`$0 --help' for more information." >&5 16528echo "$as_me: error: ambiguous option: $1 16529Try \`$0 --help' for more information." >&2;} 16530 { (exit 1); exit 1; }; };; 16531 --help | --hel | -h ) 16532 echo "$ac_cs_usage"; exit 0 ;; 16533 --debug | --d* | -d ) 16534 debug=: ;; 16535 --file | --fil | --fi | --f ) 16536 $ac_shift 16537 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 16538 ac_need_defaults=false;; 16539 --header | --heade | --head | --hea ) 16540 $ac_shift 16541 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 16542 ac_need_defaults=false;; 16543 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 16544 | -silent | --silent | --silen | --sile | --sil | --si | --s) 16545 ac_cs_silent=: ;; 16546 16547 # This is an error. 16548 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 16549Try \`$0 --help' for more information." >&5 16550echo "$as_me: error: unrecognized option: $1 16551Try \`$0 --help' for more information." >&2;} 16552 { (exit 1); exit 1; }; } ;; 16553 16554 *) ac_config_targets="$ac_config_targets $1" ;; 16555 16556 esac 16557 shift 16558done 16559 16560ac_configure_extra_args= 16561 16562if $ac_cs_silent; then 16563 exec 6>/dev/null 16564 ac_configure_extra_args="$ac_configure_extra_args --silent" 16565fi 16566 16567_ACEOF 16568cat >>$CONFIG_STATUS <<_ACEOF 16569if \$ac_cs_recheck; then 16570 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 16571 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 16572fi 16573 16574_ACEOF 16575 16576 16577 16578 16579 16580cat >>$CONFIG_STATUS <<\_ACEOF 16581for ac_config_target in $ac_config_targets 16582do 16583 case "$ac_config_target" in 16584 # Handling of arguments. 16585 "auto/config.mk" ) CONFIG_FILES="$CONFIG_FILES auto/config.mk:config.mk.in" ;; 16586 "auto/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS auto/config.h:config.h.in" ;; 16587 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 16588echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 16589 { (exit 1); exit 1; }; };; 16590 esac 16591done 16592 16593# If the user did not use the arguments to specify the items to instantiate, 16594# then the envvar interface is used. Set only those that are not. 16595# We use the long form for the default assignment because of an extremely 16596# bizarre bug on SunOS 4.1.3. 16597if $ac_need_defaults; then 16598 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 16599 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 16600fi 16601 16602# Have a temporary directory for convenience. Make it in the build tree 16603# simply because there is no reason to put it here, and in addition, 16604# creating and moving files from /tmp can sometimes cause problems. 16605# Create a temporary directory, and hook for its removal unless debugging. 16606$debug || 16607{ 16608 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 16609 trap '{ (exit 1); exit 1; }' 1 2 13 15 16610} 16611 16612# Create a (secure) tmp directory for tmp files. 16613 16614{ 16615 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && 16616 test -n "$tmp" && test -d "$tmp" 16617} || 16618{ 16619 tmp=./confstat$$-$RANDOM 16620 (umask 077 && mkdir $tmp) 16621} || 16622{ 16623 echo "$me: cannot create a temporary directory in ." >&2 16624 { (exit 1); exit 1; } 16625} 16626 16627_ACEOF 16628 16629cat >>$CONFIG_STATUS <<_ACEOF 16630 16631# 16632# CONFIG_FILES section. 16633# 16634 16635# No need to generate the scripts if there are no CONFIG_FILES. 16636# This happens for instance when ./config.status config.h 16637if test -n "\$CONFIG_FILES"; then 16638 # Protect against being on the right side of a sed subst in config.status. 16639 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; 16640 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF 16641s,@SHELL@,$SHELL,;t t 16642s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t 16643s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t 16644s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t 16645s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t 16646s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t 16647s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t 16648s,@exec_prefix@,$exec_prefix,;t t 16649s,@prefix@,$prefix,;t t 16650s,@program_transform_name@,$program_transform_name,;t t 16651s,@bindir@,$bindir,;t t 16652s,@sbindir@,$sbindir,;t t 16653s,@libexecdir@,$libexecdir,;t t 16654s,@datadir@,$datadir,;t t 16655s,@sysconfdir@,$sysconfdir,;t t 16656s,@sharedstatedir@,$sharedstatedir,;t t 16657s,@localstatedir@,$localstatedir,;t t 16658s,@libdir@,$libdir,;t t 16659s,@includedir@,$includedir,;t t 16660s,@oldincludedir@,$oldincludedir,;t t 16661s,@infodir@,$infodir,;t t 16662s,@mandir@,$mandir,;t t 16663s,@build_alias@,$build_alias,;t t 16664s,@host_alias@,$host_alias,;t t 16665s,@target_alias@,$target_alias,;t t 16666s,@DEFS@,$DEFS,;t t 16667s,@ECHO_C@,$ECHO_C,;t t 16668s,@ECHO_N@,$ECHO_N,;t t 16669s,@ECHO_T@,$ECHO_T,;t t 16670s,@LIBS@,$LIBS,;t t 16671s,@SET_MAKE@,$SET_MAKE,;t t 16672s,@CC@,$CC,;t t 16673s,@CFLAGS@,$CFLAGS,;t t 16674s,@LDFLAGS@,$LDFLAGS,;t t 16675s,@CPPFLAGS@,$CPPFLAGS,;t t 16676s,@ac_ct_CC@,$ac_ct_CC,;t t 16677s,@EXEEXT@,$EXEEXT,;t t 16678s,@OBJEXT@,$OBJEXT,;t t 16679s,@CPP@,$CPP,;t t 16680s,@EGREP@,$EGREP,;t t 16681s,@AWK@,$AWK,;t t 16682s,@STRIP@,$STRIP,;t t 16683s,@CPP_MM@,$CPP_MM,;t t 16684s,@OS_EXTRA_SRC@,$OS_EXTRA_SRC,;t t 16685s,@OS_EXTRA_OBJ@,$OS_EXTRA_OBJ,;t t 16686s,@VIMNAME@,$VIMNAME,;t t 16687s,@EXNAME@,$EXNAME,;t t 16688s,@VIEWNAME@,$VIEWNAME,;t t 16689s,@line_break@,$line_break,;t t 16690s,@dovimdiff@,$dovimdiff,;t t 16691s,@dogvimdiff@,$dogvimdiff,;t t 16692s,@compiledby@,$compiledby,;t t 16693s,@vi_cv_path_mzscheme@,$vi_cv_path_mzscheme,;t t 16694s,@MZSCHEME_SRC@,$MZSCHEME_SRC,;t t 16695s,@MZSCHEME_OBJ@,$MZSCHEME_OBJ,;t t 16696s,@MZSCHEME_PRO@,$MZSCHEME_PRO,;t t 16697s,@MZSCHEME_LIBS@,$MZSCHEME_LIBS,;t t 16698s,@MZSCHEME_CFLAGS@,$MZSCHEME_CFLAGS,;t t 16699s,@vi_cv_path_perl@,$vi_cv_path_perl,;t t 16700s,@vi_cv_perllib@,$vi_cv_perllib,;t t 16701s,@shrpenv@,$shrpenv,;t t 16702s,@PERL_SRC@,$PERL_SRC,;t t 16703s,@PERL_OBJ@,$PERL_OBJ,;t t 16704s,@PERL_PRO@,$PERL_PRO,;t t 16705s,@PERL_CFLAGS@,$PERL_CFLAGS,;t t 16706s,@PERL_LIBS@,$PERL_LIBS,;t t 16707s,@vi_cv_path_python@,$vi_cv_path_python,;t t 16708s,@PYTHON_CONFDIR@,$PYTHON_CONFDIR,;t t 16709s,@PYTHON_LIBS@,$PYTHON_LIBS,;t t 16710s,@PYTHON_GETPATH_CFLAGS@,$PYTHON_GETPATH_CFLAGS,;t t 16711s,@PYTHON_CFLAGS@,$PYTHON_CFLAGS,;t t 16712s,@PYTHON_SRC@,$PYTHON_SRC,;t t 16713s,@PYTHON_OBJ@,$PYTHON_OBJ,;t t 16714s,@vi_cv_path_tcl@,$vi_cv_path_tcl,;t t 16715s,@TCL_SRC@,$TCL_SRC,;t t 16716s,@TCL_OBJ@,$TCL_OBJ,;t t 16717s,@TCL_PRO@,$TCL_PRO,;t t 16718s,@TCL_CFLAGS@,$TCL_CFLAGS,;t t 16719s,@TCL_LIBS@,$TCL_LIBS,;t t 16720s,@vi_cv_path_ruby@,$vi_cv_path_ruby,;t t 16721s,@RUBY_SRC@,$RUBY_SRC,;t t 16722s,@RUBY_OBJ@,$RUBY_OBJ,;t t 16723s,@RUBY_PRO@,$RUBY_PRO,;t t 16724s,@RUBY_CFLAGS@,$RUBY_CFLAGS,;t t 16725s,@RUBY_LIBS@,$RUBY_LIBS,;t t 16726s,@WORKSHOP_SRC@,$WORKSHOP_SRC,;t t 16727s,@WORKSHOP_OBJ@,$WORKSHOP_OBJ,;t t 16728s,@NETBEANS_SRC@,$NETBEANS_SRC,;t t 16729s,@NETBEANS_OBJ@,$NETBEANS_OBJ,;t t 16730s,@SNIFF_SRC@,$SNIFF_SRC,;t t 16731s,@SNIFF_OBJ@,$SNIFF_OBJ,;t t 16732s,@xmkmfpath@,$xmkmfpath,;t t 16733s,@X_CFLAGS@,$X_CFLAGS,;t t 16734s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t 16735s,@X_LIBS@,$X_LIBS,;t t 16736s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t 16737s,@X_LIB@,$X_LIB,;t t 16738s,@MOC@,$MOC,;t t 16739s,@KDE_CONFIG@,$KDE_CONFIG,;t t 16740s,@KDE_LIBS@,$KDE_LIBS,;t t 16741s,@KDE_INCLUDES@,$KDE_INCLUDES,;t t 16742s,@KDE_PREFIX@,$KDE_PREFIX,;t t 16743s,@CXX@,$CXX,;t t 16744s,@CXXFLAGS@,$CXXFLAGS,;t t 16745s,@ac_ct_CXX@,$ac_ct_CXX,;t t 16746s,@QT_LIBS@,$QT_LIBS,;t t 16747s,@QT_INCLUDES@,$QT_INCLUDES,;t t 16748s,@ROOTQT@,$ROOTQT,;t t 16749s,@GTK_CONFIG@,$GTK_CONFIG,;t t 16750s,@GTK12_CONFIG@,$GTK12_CONFIG,;t t 16751s,@PKG_CONFIG@,$PKG_CONFIG,;t t 16752s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t 16753s,@GTK_LIBS@,$GTK_LIBS,;t t 16754s,@GTK_LIBNAME@,$GTK_LIBNAME,;t t 16755s,@GNOME_LIBS@,$GNOME_LIBS,;t t 16756s,@GNOME_LIBDIR@,$GNOME_LIBDIR,;t t 16757s,@GNOME_INCLUDEDIR@,$GNOME_INCLUDEDIR,;t t 16758s,@GNOME_CONFIG@,$GNOME_CONFIG,;t t 16759s,@MOTIF_LIBNAME@,$MOTIF_LIBNAME,;t t 16760s,@NARROW_PROTO@,$NARROW_PROTO,;t t 16761s,@GUI_INC_LOC@,$GUI_INC_LOC,;t t 16762s,@GUI_LIB_LOC@,$GUI_LIB_LOC,;t t 16763s,@GUITYPE@,$GUITYPE,;t t 16764s,@GUI_X_LIBS@,$GUI_X_LIBS,;t t 16765s,@HANGULIN_SRC@,$HANGULIN_SRC,;t t 16766s,@HANGULIN_OBJ@,$HANGULIN_OBJ,;t t 16767s,@TAGPRG@,$TAGPRG,;t t 16768s,@INSTALL_LANGS@,$INSTALL_LANGS,;t t 16769s,@INSTALL_TOOL_LANGS@,$INSTALL_TOOL_LANGS,;t t 16770s,@MSGFMT@,$MSGFMT,;t t 16771s,@MAKEMO@,$MAKEMO,;t t 16772s,@DEPEND_CFLAGS_FILTER@,$DEPEND_CFLAGS_FILTER,;t t 16773s,@LIBOBJS@,$LIBOBJS,;t t 16774s,@LTLIBOBJS@,$LTLIBOBJS,;t t 16775CEOF 16776 16777_ACEOF 16778 16779 cat >>$CONFIG_STATUS <<\_ACEOF 16780 # Split the substitutions into bite-sized pieces for seds with 16781 # small command number limits, like on Digital OSF/1 and HP-UX. 16782 ac_max_sed_lines=48 16783 ac_sed_frag=1 # Number of current file. 16784 ac_beg=1 # First line for current file. 16785 ac_end=$ac_max_sed_lines # Line after last line for current file. 16786 ac_more_lines=: 16787 ac_sed_cmds= 16788 while $ac_more_lines; do 16789 if test $ac_beg -gt 1; then 16790 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 16791 else 16792 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 16793 fi 16794 if test ! -s $tmp/subs.frag; then 16795 ac_more_lines=false 16796 else 16797 # The purpose of the label and of the branching condition is to 16798 # speed up the sed processing (if there are no `@' at all, there 16799 # is no need to browse any of the substitutions). 16800 # These are the two extra sed commands mentioned above. 16801 (echo ':t 16802 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed 16803 if test -z "$ac_sed_cmds"; then 16804 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" 16805 else 16806 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" 16807 fi 16808 ac_sed_frag=`expr $ac_sed_frag + 1` 16809 ac_beg=$ac_end 16810 ac_end=`expr $ac_end + $ac_max_sed_lines` 16811 fi 16812 done 16813 if test -z "$ac_sed_cmds"; then 16814 ac_sed_cmds=cat 16815 fi 16816fi # test -n "$CONFIG_FILES" 16817 16818_ACEOF 16819cat >>$CONFIG_STATUS <<\_ACEOF 16820for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue 16821 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 16822 case $ac_file in 16823 - | *:- | *:-:* ) # input from stdin 16824 cat >$tmp/stdin 16825 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 16826 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 16827 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 16828 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 16829 * ) ac_file_in=$ac_file.in ;; 16830 esac 16831 16832 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. 16833 ac_dir=`(dirname "$ac_file") 2>/dev/null || 16834$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16835 X"$ac_file" : 'X\(//\)[^/]' \| \ 16836 X"$ac_file" : 'X\(//\)$' \| \ 16837 X"$ac_file" : 'X\(/\)' \| \ 16838 . : '\(.\)' 2>/dev/null || 16839echo X"$ac_file" | 16840 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 16841 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 16842 /^X\(\/\/\)$/{ s//\1/; q; } 16843 /^X\(\/\).*/{ s//\1/; q; } 16844 s/.*/./; q'` 16845 { if $as_mkdir_p; then 16846 mkdir -p "$ac_dir" 16847 else 16848 as_dir="$ac_dir" 16849 as_dirs= 16850 while test ! -d "$as_dir"; do 16851 as_dirs="$as_dir $as_dirs" 16852 as_dir=`(dirname "$as_dir") 2>/dev/null || 16853$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16854 X"$as_dir" : 'X\(//\)[^/]' \| \ 16855 X"$as_dir" : 'X\(//\)$' \| \ 16856 X"$as_dir" : 'X\(/\)' \| \ 16857 . : '\(.\)' 2>/dev/null || 16858echo X"$as_dir" | 16859 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 16860 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 16861 /^X\(\/\/\)$/{ s//\1/; q; } 16862 /^X\(\/\).*/{ s//\1/; q; } 16863 s/.*/./; q'` 16864 done 16865 test ! -n "$as_dirs" || mkdir $as_dirs 16866 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 16867echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 16868 { (exit 1); exit 1; }; }; } 16869 16870 ac_builddir=. 16871 16872if test "$ac_dir" != .; then 16873 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 16874 # A "../" for each directory in $ac_dir_suffix. 16875 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 16876else 16877 ac_dir_suffix= ac_top_builddir= 16878fi 16879 16880case $srcdir in 16881 .) # No --srcdir option. We are building in place. 16882 ac_srcdir=. 16883 if test -z "$ac_top_builddir"; then 16884 ac_top_srcdir=. 16885 else 16886 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 16887 fi ;; 16888 [\\/]* | ?:[\\/]* ) # Absolute path. 16889 ac_srcdir=$srcdir$ac_dir_suffix; 16890 ac_top_srcdir=$srcdir ;; 16891 *) # Relative path. 16892 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 16893 ac_top_srcdir=$ac_top_builddir$srcdir ;; 16894esac 16895 16896# Do not use `cd foo && pwd` to compute absolute paths, because 16897# the directories may not exist. 16898case `pwd` in 16899.) ac_abs_builddir="$ac_dir";; 16900*) 16901 case "$ac_dir" in 16902 .) ac_abs_builddir=`pwd`;; 16903 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 16904 *) ac_abs_builddir=`pwd`/"$ac_dir";; 16905 esac;; 16906esac 16907case $ac_abs_builddir in 16908.) ac_abs_top_builddir=${ac_top_builddir}.;; 16909*) 16910 case ${ac_top_builddir}. in 16911 .) ac_abs_top_builddir=$ac_abs_builddir;; 16912 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 16913 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 16914 esac;; 16915esac 16916case $ac_abs_builddir in 16917.) ac_abs_srcdir=$ac_srcdir;; 16918*) 16919 case $ac_srcdir in 16920 .) ac_abs_srcdir=$ac_abs_builddir;; 16921 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 16922 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 16923 esac;; 16924esac 16925case $ac_abs_builddir in 16926.) ac_abs_top_srcdir=$ac_top_srcdir;; 16927*) 16928 case $ac_top_srcdir in 16929 .) ac_abs_top_srcdir=$ac_abs_builddir;; 16930 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 16931 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 16932 esac;; 16933esac 16934 16935 16936 16937 if test x"$ac_file" != x-; then 16938 { echo "$as_me:$LINENO: creating $ac_file" >&5 16939echo "$as_me: creating $ac_file" >&6;} 16940 rm -f "$ac_file" 16941 fi 16942 # Let's still pretend it is `configure' which instantiates (i.e., don't 16943 # use $as_me), people would be surprised to read: 16944 # /* config.h. Generated by config.status. */ 16945 if test x"$ac_file" = x-; then 16946 configure_input= 16947 else 16948 configure_input="$ac_file. " 16949 fi 16950 configure_input=$configure_input"Generated from `echo $ac_file_in | 16951 sed 's,.*/,,'` by configure." 16952 16953 # First look for the input files in the build tree, otherwise in the 16954 # src tree. 16955 ac_file_inputs=`IFS=: 16956 for f in $ac_file_in; do 16957 case $f in 16958 -) echo $tmp/stdin ;; 16959 [\\/$]*) 16960 # Absolute (can't be DOS-style, as IFS=:) 16961 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 16962echo "$as_me: error: cannot find input file: $f" >&2;} 16963 { (exit 1); exit 1; }; } 16964 echo "$f";; 16965 *) # Relative 16966 if test -f "$f"; then 16967 # Build tree 16968 echo "$f" 16969 elif test -f "$srcdir/$f"; then 16970 # Source tree 16971 echo "$srcdir/$f" 16972 else 16973 # /dev/null tree 16974 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 16975echo "$as_me: error: cannot find input file: $f" >&2;} 16976 { (exit 1); exit 1; }; } 16977 fi;; 16978 esac 16979 done` || { (exit 1); exit 1; } 16980_ACEOF 16981cat >>$CONFIG_STATUS <<_ACEOF 16982 sed "$ac_vpsub 16983$extrasub 16984_ACEOF 16985cat >>$CONFIG_STATUS <<\_ACEOF 16986:t 16987/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 16988s,@configure_input@,$configure_input,;t t 16989s,@srcdir@,$ac_srcdir,;t t 16990s,@abs_srcdir@,$ac_abs_srcdir,;t t 16991s,@top_srcdir@,$ac_top_srcdir,;t t 16992s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t 16993s,@builddir@,$ac_builddir,;t t 16994s,@abs_builddir@,$ac_abs_builddir,;t t 16995s,@top_builddir@,$ac_top_builddir,;t t 16996s,@abs_top_builddir@,$ac_abs_top_builddir,;t t 16997" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out 16998 rm -f $tmp/stdin 16999 if test x"$ac_file" != x-; then 17000 mv $tmp/out $ac_file 17001 else 17002 cat $tmp/out 17003 rm -f $tmp/out 17004 fi 17005 17006done 17007_ACEOF 17008cat >>$CONFIG_STATUS <<\_ACEOF 17009 17010# 17011# CONFIG_HEADER section. 17012# 17013 17014# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where 17015# NAME is the cpp macro being defined and VALUE is the value it is being given. 17016# 17017# ac_d sets the value in "#define NAME VALUE" lines. 17018ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' 17019ac_dB='[ ].*$,\1#\2' 17020ac_dC=' ' 17021ac_dD=',;t' 17022# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 17023ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 17024ac_uB='$,\1#\2define\3' 17025ac_uC=' ' 17026ac_uD=',;t' 17027 17028for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue 17029 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 17030 case $ac_file in 17031 - | *:- | *:-:* ) # input from stdin 17032 cat >$tmp/stdin 17033 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 17034 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 17035 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 17036 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 17037 * ) ac_file_in=$ac_file.in ;; 17038 esac 17039 17040 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 17041echo "$as_me: creating $ac_file" >&6;} 17042 17043 # First look for the input files in the build tree, otherwise in the 17044 # src tree. 17045 ac_file_inputs=`IFS=: 17046 for f in $ac_file_in; do 17047 case $f in 17048 -) echo $tmp/stdin ;; 17049 [\\/$]*) 17050 # Absolute (can't be DOS-style, as IFS=:) 17051 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 17052echo "$as_me: error: cannot find input file: $f" >&2;} 17053 { (exit 1); exit 1; }; } 17054 # Do quote $f, to prevent DOS paths from being IFS'd. 17055 echo "$f";; 17056 *) # Relative 17057 if test -f "$f"; then 17058 # Build tree 17059 echo "$f" 17060 elif test -f "$srcdir/$f"; then 17061 # Source tree 17062 echo "$srcdir/$f" 17063 else 17064 # /dev/null tree 17065 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 17066echo "$as_me: error: cannot find input file: $f" >&2;} 17067 { (exit 1); exit 1; }; } 17068 fi;; 17069 esac 17070 done` || { (exit 1); exit 1; } 17071 # Remove the trailing spaces. 17072 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in 17073 17074_ACEOF 17075 17076# Transform confdefs.h into two sed scripts, `conftest.defines' and 17077# `conftest.undefs', that substitutes the proper values into 17078# config.h.in to produce config.h. The first handles `#define' 17079# templates, and the second `#undef' templates. 17080# And first: Protect against being on the right side of a sed subst in 17081# config.status. Protect against being in an unquoted here document 17082# in config.status. 17083rm -f conftest.defines conftest.undefs 17084# Using a here document instead of a string reduces the quoting nightmare. 17085# Putting comments in sed scripts is not portable. 17086# 17087# `end' is used to avoid that the second main sed command (meant for 17088# 0-ary CPP macros) applies to n-ary macro definitions. 17089# See the Autoconf documentation for `clear'. 17090cat >confdef2sed.sed <<\_ACEOF 17091s/[\\&,]/\\&/g 17092s,[\\$`],\\&,g 17093t clear 17094: clear 17095s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp 17096t end 17097s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp 17098: end 17099_ACEOF 17100# If some macros were called several times there might be several times 17101# the same #defines, which is useless. Nevertheless, we may not want to 17102# sort them, since we want the *last* AC-DEFINE to be honored. 17103uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines 17104sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs 17105rm -f confdef2sed.sed 17106 17107# This sed command replaces #undef with comments. This is necessary, for 17108# example, in the case of _POSIX_SOURCE, which is predefined and required 17109# on some systems where configure will not decide to define it. 17110cat >>conftest.undefs <<\_ACEOF 17111s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, 17112_ACEOF 17113 17114# Break up conftest.defines because some shells have a limit on the size 17115# of here documents, and old seds have small limits too (100 cmds). 17116echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS 17117echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS 17118echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS 17119echo ' :' >>$CONFIG_STATUS 17120rm -f conftest.tail 17121while grep . conftest.defines >/dev/null 17122do 17123 # Write a limited-size here document to $tmp/defines.sed. 17124 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS 17125 # Speed up: don't consider the non `#define' lines. 17126 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS 17127 # Work around the forget-to-reset-the-flag bug. 17128 echo 't clr' >>$CONFIG_STATUS 17129 echo ': clr' >>$CONFIG_STATUS 17130 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS 17131 echo 'CEOF 17132 sed -f $tmp/defines.sed $tmp/in >$tmp/out 17133 rm -f $tmp/in 17134 mv $tmp/out $tmp/in 17135' >>$CONFIG_STATUS 17136 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail 17137 rm -f conftest.defines 17138 mv conftest.tail conftest.defines 17139done 17140rm -f conftest.defines 17141echo ' fi # grep' >>$CONFIG_STATUS 17142echo >>$CONFIG_STATUS 17143 17144# Break up conftest.undefs because some shells have a limit on the size 17145# of here documents, and old seds have small limits too (100 cmds). 17146echo ' # Handle all the #undef templates' >>$CONFIG_STATUS 17147rm -f conftest.tail 17148while grep . conftest.undefs >/dev/null 17149do 17150 # Write a limited-size here document to $tmp/undefs.sed. 17151 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS 17152 # Speed up: don't consider the non `#undef' 17153 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS 17154 # Work around the forget-to-reset-the-flag bug. 17155 echo 't clr' >>$CONFIG_STATUS 17156 echo ': clr' >>$CONFIG_STATUS 17157 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS 17158 echo 'CEOF 17159 sed -f $tmp/undefs.sed $tmp/in >$tmp/out 17160 rm -f $tmp/in 17161 mv $tmp/out $tmp/in 17162' >>$CONFIG_STATUS 17163 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail 17164 rm -f conftest.undefs 17165 mv conftest.tail conftest.undefs 17166done 17167rm -f conftest.undefs 17168 17169cat >>$CONFIG_STATUS <<\_ACEOF 17170 # Let's still pretend it is `configure' which instantiates (i.e., don't 17171 # use $as_me), people would be surprised to read: 17172 # /* config.h. Generated by config.status. */ 17173 if test x"$ac_file" = x-; then 17174 echo "/* Generated by configure. */" >$tmp/config.h 17175 else 17176 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h 17177 fi 17178 cat $tmp/in >>$tmp/config.h 17179 rm -f $tmp/in 17180 if test x"$ac_file" != x-; then 17181 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then 17182 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 17183echo "$as_me: $ac_file is unchanged" >&6;} 17184 else 17185 ac_dir=`(dirname "$ac_file") 2>/dev/null || 17186$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17187 X"$ac_file" : 'X\(//\)[^/]' \| \ 17188 X"$ac_file" : 'X\(//\)$' \| \ 17189 X"$ac_file" : 'X\(/\)' \| \ 17190 . : '\(.\)' 2>/dev/null || 17191echo X"$ac_file" | 17192 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 17193 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 17194 /^X\(\/\/\)$/{ s//\1/; q; } 17195 /^X\(\/\).*/{ s//\1/; q; } 17196 s/.*/./; q'` 17197 { if $as_mkdir_p; then 17198 mkdir -p "$ac_dir" 17199 else 17200 as_dir="$ac_dir" 17201 as_dirs= 17202 while test ! -d "$as_dir"; do 17203 as_dirs="$as_dir $as_dirs" 17204 as_dir=`(dirname "$as_dir") 2>/dev/null || 17205$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17206 X"$as_dir" : 'X\(//\)[^/]' \| \ 17207 X"$as_dir" : 'X\(//\)$' \| \ 17208 X"$as_dir" : 'X\(/\)' \| \ 17209 . : '\(.\)' 2>/dev/null || 17210echo X"$as_dir" | 17211 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 17212 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 17213 /^X\(\/\/\)$/{ s//\1/; q; } 17214 /^X\(\/\).*/{ s//\1/; q; } 17215 s/.*/./; q'` 17216 done 17217 test ! -n "$as_dirs" || mkdir $as_dirs 17218 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 17219echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 17220 { (exit 1); exit 1; }; }; } 17221 17222 rm -f $ac_file 17223 mv $tmp/config.h $ac_file 17224 fi 17225 else 17226 cat $tmp/config.h 17227 rm -f $tmp/config.h 17228 fi 17229done 17230_ACEOF 17231 17232cat >>$CONFIG_STATUS <<\_ACEOF 17233 17234{ (exit 0); exit 0; } 17235_ACEOF 17236chmod +x $CONFIG_STATUS 17237ac_clean_files=$ac_clean_files_save 17238 17239 17240# configure is writing to config.log, and then calls config.status. 17241# config.status does its own redirection, appending to config.log. 17242# Unfortunately, on DOS this fails, as config.log is still kept open 17243# by configure, so config.status won't be able to write to it; its 17244# output is simply discarded. So we exec the FD to /dev/null, 17245# effectively closing config.log, so it can be properly (re)opened and 17246# appended to by config.status. When coming back to configure, we 17247# need to make the FD available again. 17248if test "$no_create" != yes; then 17249 ac_cs_success=: 17250 ac_config_status_args= 17251 test "$silent" = yes && 17252 ac_config_status_args="$ac_config_status_args --quiet" 17253 exec 5>/dev/null 17254 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 17255 exec 5>>auto/config.log 17256 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 17257 # would make configure fail if this is the last instruction. 17258 $ac_cs_success || { (exit 1); exit 1; } 17259fi 17260 17261 17262