1#! /bin/sh 2 3# Guess values for system-dependent variables and create Makefiles. 4# Generated automatically using autoconf version 2.13 5# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. 6# 7# This configure script is free software; the Free Software Foundation 8# gives unlimited permission to copy, distribute and modify it. 9 10# Defaults: 11ac_help= 12ac_default_prefix=/usr/local 13# Any additions from configure.in: 14ac_help="$ac_help 15 --disable-darwin Disable Darwin (Mac OS X) support." 16ac_help="$ac_help 17 --with-vim-name=NAME what to call the Vim executable" 18ac_help="$ac_help 19 --with-ex-name=NAME what to call the Ex executable" 20ac_help="$ac_help 21 --with-view-name=NAME what to call the View executable" 22ac_help="$ac_help 23 --with-global-runtime=DIR global runtime directory in 'runtimepath'" 24ac_help="$ac_help 25 --with-modified-by=NAME name of who modified a release version" 26ac_help="$ac_help 27 --with-features=TYPE tiny, small, normal, big or huge (default: normal)" 28ac_help="$ac_help 29 --with-compiledby=NAME name to show in :version message" 30ac_help="$ac_help 31 --disable-xsmp Disable XSMP session management" 32ac_help="$ac_help 33 --disable-xsmp-interact Disable XSMP interaction" 34ac_help="$ac_help 35 --enable-perlinterp Include Perl interpreter." 36ac_help="$ac_help 37 --enable-pythoninterp Include Python interpreter." 38ac_help="$ac_help 39 --with-python-config-dir=PATH Python's config directory" 40ac_help="$ac_help 41 --enable-tclinterp Include Tcl interpreter." 42ac_help="$ac_help 43 --with-tclsh=PATH which tclsh to use (default: tclsh8.0)" 44ac_help="$ac_help 45 --enable-rubyinterp Include Ruby interpreter." 46ac_help="$ac_help 47 --enable-cscope Include cscope interface." 48ac_help="$ac_help 49 --enable-workshop Include Sun Visual Workshop support." 50ac_help="$ac_help 51 --disable-netbeans Disable NetBeans integration support." 52ac_help="$ac_help 53 --enable-sniff Include Sniff interface." 54ac_help="$ac_help 55 --enable-multibyte Include multibyte editing support." 56ac_help="$ac_help 57 --enable-hangulinput Include Hangul input support." 58ac_help="$ac_help 59 --enable-xim Include XIM input support." 60ac_help="$ac_help 61 --enable-fontset Include X fontset output support." 62ac_help="$ac_help 63 --with-x use the X Window System" 64ac_help="$ac_help 65 --enable-gui[=OPTS] X11 GUI [default=auto] [OPTS=auto/no/gtk/gtk2/gnome/gnome2/kde/motif/athena/neXtaw/beos/photon/carbon]" 66ac_help="$ac_help 67 --enable-kde-check If auto-select GUI, check for KDE [default=no]" 68ac_help="$ac_help 69 --enable-gtk-check If auto-select GUI, check for GTK [default=yes]" 70ac_help="$ac_help 71 --enable-gtk2-check If GTK GUI, check for GTK+ 2 [default=yes]" 72ac_help="$ac_help 73 --enable-gnome-check If GTK GUI, check for GNOME [default=no]" 74ac_help="$ac_help 75 --enable-motif-check If auto-select GUI, check for Motif [default=yes]" 76ac_help="$ac_help 77 --enable-athena-check If auto-select GUI, check for Athena [default=yes]" 78ac_help="$ac_help 79 --enable-nextaw-check If auto-select GUI, check for neXtaw [default=yes]" 80ac_help="$ac_help 81 --enable-carbon-check If auto-select GUI, check for Carbon [default=yes]" 82ac_help="$ac_help 83 --with-qt-dir=DIR Specify prefix of QT files" 84ac_help="$ac_help 85 --with-qt-includes=DIR Specify location of Qt headers" 86ac_help="$ac_help 87 --with-qt-libs=DIR Specify location of Qt libraries" 88ac_help="$ac_help 89 --enable-kde-toolbar if KDE GUI is selected, enable a KDE-look toolbar [default=no]" 90ac_help="$ac_help 91 --disable-rpath Disable rpath." 92ac_help="$ac_help 93 --with-kde-prefix=PFX Prefix where KDE is installed (optional)" 94ac_help="$ac_help 95 --with-kde-includes=DIR Specify location of KDE headers" 96ac_help="$ac_help 97 --with-kde-libs=DIR Specify location of KDE libraries" 98ac_help="$ac_help 99 --disable-kdetest Do not try to compile and run a test KDE program" 100ac_help="$ac_help 101 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)" 102ac_help="$ac_help 103 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)" 104ac_help="$ac_help 105 --disable-gtktest Do not try to compile and run a test GTK program" 106ac_help="$ac_help 107 --with-gnome-includes=DIR Specify location of GNOME headers" 108ac_help="$ac_help 109 --with-gnome-libs=DIR Specify location of GNOME libs" 110ac_help="$ac_help 111 --with-gnome Specify prefix for GNOME files" 112ac_help="$ac_help 113 --with-motif-lib=STRING Library for Motif " 114ac_help="$ac_help 115 --with-tlib=library terminal library to be used " 116ac_help="$ac_help 117 --disable-acl Don't check for ACL support." 118ac_help="$ac_help 119 --disable-gpm Don't use gpm (Linux mouse daemon)." 120ac_help="$ac_help 121 --disable-nls Don't support NLS (gettext())." 122 123# Initialize some variables set by options. 124# The variables have the same names as the options, with 125# dashes changed to underlines. 126build=NONE 127cache_file=./config.cache 128exec_prefix=NONE 129host=NONE 130no_create= 131nonopt=NONE 132no_recursion= 133prefix=NONE 134program_prefix=NONE 135program_suffix=NONE 136program_transform_name=s,x,x, 137silent= 138site= 139srcdir= 140target=NONE 141verbose= 142x_includes=NONE 143x_libraries=NONE 144bindir='${exec_prefix}/bin' 145sbindir='${exec_prefix}/sbin' 146libexecdir='${exec_prefix}/libexec' 147datadir='${prefix}/share' 148sysconfdir='${prefix}/etc' 149sharedstatedir='${prefix}/com' 150localstatedir='${prefix}/var' 151libdir='${exec_prefix}/lib' 152includedir='${prefix}/include' 153oldincludedir='/usr/include' 154infodir='${prefix}/info' 155mandir='${prefix}/man' 156 157# Initialize some other variables. 158subdirs= 159MFLAGS= MAKEFLAGS= 160SHELL=${CONFIG_SHELL-/bin/sh} 161# Maximum number of lines to put in a shell here document. 162ac_max_here_lines=12 163 164ac_prev= 165for ac_option 166do 167 168 # If the previous option needs an argument, assign it. 169 if test -n "$ac_prev"; then 170 eval "$ac_prev=\$ac_option" 171 ac_prev= 172 continue 173 fi 174 175 case "$ac_option" in 176 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; 177 *) ac_optarg= ;; 178 esac 179 180 # Accept the important Cygnus configure options, so we can diagnose typos. 181 182 case "$ac_option" in 183 184 -bindir | --bindir | --bindi | --bind | --bin | --bi) 185 ac_prev=bindir ;; 186 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 187 bindir="$ac_optarg" ;; 188 189 -build | --build | --buil | --bui | --bu) 190 ac_prev=build ;; 191 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 192 build="$ac_optarg" ;; 193 194 -cache-file | --cache-file | --cache-fil | --cache-fi \ 195 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 196 ac_prev=cache_file ;; 197 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 198 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 199 cache_file="$ac_optarg" ;; 200 201 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) 202 ac_prev=datadir ;; 203 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 204 | --da=*) 205 datadir="$ac_optarg" ;; 206 207 -disable-* | --disable-*) 208 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` 209 # Reject names that are not valid shell variable names. 210 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then 211 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } 212 fi 213 ac_feature=`echo $ac_feature| sed 's/-/_/g'` 214 eval "enable_${ac_feature}=no" ;; 215 216 -enable-* | --enable-*) 217 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` 218 # Reject names that are not valid shell variable names. 219 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then 220 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } 221 fi 222 ac_feature=`echo $ac_feature| sed 's/-/_/g'` 223 case "$ac_option" in 224 *=*) ;; 225 *) ac_optarg=yes ;; 226 esac 227 eval "enable_${ac_feature}='$ac_optarg'" ;; 228 229 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 230 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 231 | --exec | --exe | --ex) 232 ac_prev=exec_prefix ;; 233 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 234 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 235 | --exec=* | --exe=* | --ex=*) 236 exec_prefix="$ac_optarg" ;; 237 238 -gas | --gas | --ga | --g) 239 # Obsolete; use --with-gas. 240 with_gas=yes ;; 241 242 -help | --help | --hel | --he) 243 # Omit some internal or obsolete options to make the list less imposing. 244 # This message is too long to be a string in the A/UX 3.1 sh. 245 cat << EOF 246Usage: configure [options] [host] 247Options: [defaults in brackets after descriptions] 248Configuration: 249 --cache-file=FILE cache test results in FILE 250 --help print this message 251 --no-create do not create output files 252 --quiet, --silent do not print \`checking...' messages 253 --version print the version of autoconf that created configure 254Directory and file names: 255 --prefix=PREFIX install architecture-independent files in PREFIX 256 [$ac_default_prefix] 257 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 258 [same as prefix] 259 --bindir=DIR user executables in DIR [EPREFIX/bin] 260 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] 261 --libexecdir=DIR program executables in DIR [EPREFIX/libexec] 262 --datadir=DIR read-only architecture-independent data in DIR 263 [PREFIX/share] 264 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] 265 --sharedstatedir=DIR modifiable architecture-independent data in DIR 266 [PREFIX/com] 267 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] 268 --libdir=DIR object code libraries in DIR [EPREFIX/lib] 269 --includedir=DIR C header files in DIR [PREFIX/include] 270 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] 271 --infodir=DIR info documentation in DIR [PREFIX/info] 272 --mandir=DIR man documentation in DIR [PREFIX/man] 273 --srcdir=DIR find the sources in DIR [configure dir or ..] 274 --program-prefix=PREFIX prepend PREFIX to installed program names 275 --program-suffix=SUFFIX append SUFFIX to installed program names 276 --program-transform-name=PROGRAM 277 run sed PROGRAM on installed program names 278EOF 279 cat << EOF 280Host type: 281 --build=BUILD configure for building on BUILD [BUILD=HOST] 282 --host=HOST configure for HOST [guessed] 283 --target=TARGET configure for TARGET [TARGET=HOST] 284Features and packages: 285 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 286 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 287 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 288 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 289 --x-includes=DIR X include files are in DIR 290 --x-libraries=DIR X library files are in DIR 291EOF 292 if test -n "$ac_help"; then 293 echo "--enable and --with options recognized:$ac_help" 294 fi 295 exit 0 ;; 296 297 -host | --host | --hos | --ho) 298 ac_prev=host ;; 299 -host=* | --host=* | --hos=* | --ho=*) 300 host="$ac_optarg" ;; 301 302 -includedir | --includedir | --includedi | --included | --include \ 303 | --includ | --inclu | --incl | --inc) 304 ac_prev=includedir ;; 305 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 306 | --includ=* | --inclu=* | --incl=* | --inc=*) 307 includedir="$ac_optarg" ;; 308 309 -infodir | --infodir | --infodi | --infod | --info | --inf) 310 ac_prev=infodir ;; 311 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 312 infodir="$ac_optarg" ;; 313 314 -libdir | --libdir | --libdi | --libd) 315 ac_prev=libdir ;; 316 -libdir=* | --libdir=* | --libdi=* | --libd=*) 317 libdir="$ac_optarg" ;; 318 319 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 320 | --libexe | --libex | --libe) 321 ac_prev=libexecdir ;; 322 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 323 | --libexe=* | --libex=* | --libe=*) 324 libexecdir="$ac_optarg" ;; 325 326 -localstatedir | --localstatedir | --localstatedi | --localstated \ 327 | --localstate | --localstat | --localsta | --localst \ 328 | --locals | --local | --loca | --loc | --lo) 329 ac_prev=localstatedir ;; 330 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 331 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 332 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 333 localstatedir="$ac_optarg" ;; 334 335 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 336 ac_prev=mandir ;; 337 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 338 mandir="$ac_optarg" ;; 339 340 -nfp | --nfp | --nf) 341 # Obsolete; use --without-fp. 342 with_fp=no ;; 343 344 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 345 | --no-cr | --no-c) 346 no_create=yes ;; 347 348 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 349 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 350 no_recursion=yes ;; 351 352 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 353 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 354 | --oldin | --oldi | --old | --ol | --o) 355 ac_prev=oldincludedir ;; 356 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 357 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 358 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 359 oldincludedir="$ac_optarg" ;; 360 361 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 362 ac_prev=prefix ;; 363 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 364 prefix="$ac_optarg" ;; 365 366 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 367 | --program-pre | --program-pr | --program-p) 368 ac_prev=program_prefix ;; 369 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 370 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 371 program_prefix="$ac_optarg" ;; 372 373 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 374 | --program-suf | --program-su | --program-s) 375 ac_prev=program_suffix ;; 376 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 377 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 378 program_suffix="$ac_optarg" ;; 379 380 -program-transform-name | --program-transform-name \ 381 | --program-transform-nam | --program-transform-na \ 382 | --program-transform-n | --program-transform- \ 383 | --program-transform | --program-transfor \ 384 | --program-transfo | --program-transf \ 385 | --program-trans | --program-tran \ 386 | --progr-tra | --program-tr | --program-t) 387 ac_prev=program_transform_name ;; 388 -program-transform-name=* | --program-transform-name=* \ 389 | --program-transform-nam=* | --program-transform-na=* \ 390 | --program-transform-n=* | --program-transform-=* \ 391 | --program-transform=* | --program-transfor=* \ 392 | --program-transfo=* | --program-transf=* \ 393 | --program-trans=* | --program-tran=* \ 394 | --progr-tra=* | --program-tr=* | --program-t=*) 395 program_transform_name="$ac_optarg" ;; 396 397 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 398 | -silent | --silent | --silen | --sile | --sil) 399 silent=yes ;; 400 401 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 402 ac_prev=sbindir ;; 403 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 404 | --sbi=* | --sb=*) 405 sbindir="$ac_optarg" ;; 406 407 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 408 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 409 | --sharedst | --shareds | --shared | --share | --shar \ 410 | --sha | --sh) 411 ac_prev=sharedstatedir ;; 412 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 413 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 414 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 415 | --sha=* | --sh=*) 416 sharedstatedir="$ac_optarg" ;; 417 418 -site | --site | --sit) 419 ac_prev=site ;; 420 -site=* | --site=* | --sit=*) 421 site="$ac_optarg" ;; 422 423 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 424 ac_prev=srcdir ;; 425 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 426 srcdir="$ac_optarg" ;; 427 428 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 429 | --syscon | --sysco | --sysc | --sys | --sy) 430 ac_prev=sysconfdir ;; 431 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 432 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 433 sysconfdir="$ac_optarg" ;; 434 435 -target | --target | --targe | --targ | --tar | --ta | --t) 436 ac_prev=target ;; 437 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 438 target="$ac_optarg" ;; 439 440 -v | -verbose | --verbose | --verbos | --verbo | --verb) 441 verbose=yes ;; 442 443 -version | --version | --versio | --versi | --vers) 444 echo "configure generated by autoconf version 2.13" 445 exit 0 ;; 446 447 -with-* | --with-*) 448 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` 449 # Reject names that are not valid shell variable names. 450 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then 451 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } 452 fi 453 ac_package=`echo $ac_package| sed 's/-/_/g'` 454 case "$ac_option" in 455 *=*) ;; 456 *) ac_optarg=yes ;; 457 esac 458 eval "with_${ac_package}='$ac_optarg'" ;; 459 460 -without-* | --without-*) 461 ac_package=`echo $ac_option|sed -e 's/-*without-//'` 462 # Reject names that are not valid shell variable names. 463 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then 464 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } 465 fi 466 ac_package=`echo $ac_package| sed 's/-/_/g'` 467 eval "with_${ac_package}=no" ;; 468 469 --x) 470 # Obsolete; use --with-x. 471 with_x=yes ;; 472 473 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 474 | --x-incl | --x-inc | --x-in | --x-i) 475 ac_prev=x_includes ;; 476 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 477 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 478 x_includes="$ac_optarg" ;; 479 480 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 481 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 482 ac_prev=x_libraries ;; 483 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 484 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 485 x_libraries="$ac_optarg" ;; 486 487 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } 488 ;; 489 490 *) 491 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then 492 echo "configure: warning: $ac_option: invalid host type" 1>&2 493 fi 494 if test "x$nonopt" != xNONE; then 495 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } 496 fi 497 nonopt="$ac_option" 498 ;; 499 500 esac 501done 502 503if test -n "$ac_prev"; then 504 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } 505fi 506 507trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 508 509# File descriptor usage: 510# 0 standard input 511# 1 file creation 512# 2 errors and warnings 513# 3 some systems may open it to /dev/tty 514# 4 used on the Kubota Titan 515# 6 checking for... messages and results 516# 5 compiler messages saved in config.log 517if test "$silent" = yes; then 518 exec 6>/dev/null 519else 520 exec 6>&1 521fi 522exec 5>auto/config.log 523 524echo "\ 525This file contains any messages produced by compilers while 526running configure, to aid debugging if configure makes a mistake. 527" 1>&5 528 529# Strip out --no-create and --no-recursion so they do not pile up. 530# Also quote any args containing shell metacharacters. 531ac_configure_args= 532for ac_arg 533do 534 case "$ac_arg" in 535 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 536 | --no-cr | --no-c) ;; 537 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 538 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; 539 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) 540 ac_configure_args="$ac_configure_args '$ac_arg'" ;; 541 *) ac_configure_args="$ac_configure_args $ac_arg" ;; 542 esac 543done 544 545# NLS nuisances. 546# Only set these to C if already set. These must not be set unconditionally 547# because not all systems understand e.g. LANG=C (notably SCO). 548# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! 549# Non-C LC_CTYPE values break the ctype check. 550if test "${LANG+set}" = set; then LANG=C; export LANG; fi 551if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi 552if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi 553if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi 554 555# confdefs.h avoids OS command line length limits that DEFS can exceed. 556rm -rf conftest* confdefs.h 557# AIX cpp loses on an empty file, so make sure it contains at least a newline. 558echo > confdefs.h 559 560# A filename unique to this package, relative to the directory that 561# configure is in, which we can look for to find out if srcdir is correct. 562ac_unique_file=vim.h 563 564# Find the source files, if location was not specified. 565if test -z "$srcdir"; then 566 ac_srcdir_defaulted=yes 567 # Try the directory containing this script, then its parent. 568 ac_prog=$0 569 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` 570 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. 571 srcdir=$ac_confdir 572 if test ! -r $srcdir/$ac_unique_file; then 573 srcdir=.. 574 fi 575else 576 ac_srcdir_defaulted=no 577fi 578if test ! -r $srcdir/$ac_unique_file; then 579 if test "$ac_srcdir_defaulted" = yes; then 580 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } 581 else 582 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } 583 fi 584fi 585srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` 586 587# Prefer explicitly selected file to automatically selected ones. 588if test -z "$CONFIG_SITE"; then 589 if test "x$prefix" != xNONE; then 590 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 591 else 592 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 593 fi 594fi 595for ac_site_file in $CONFIG_SITE; do 596 if test -r "$ac_site_file"; then 597 echo "loading site script $ac_site_file" 598 . "$ac_site_file" 599 fi 600done 601 602if test -r "$cache_file"; then 603 echo "loading cache $cache_file" 604 . $cache_file 605else 606 echo "creating cache $cache_file" 607 > $cache_file 608fi 609 610ac_ext=c 611# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 612ac_cpp='$CPP $CPPFLAGS' 613ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 614ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 615cross_compiling=$ac_cv_prog_cc_cross 616 617ac_exeext= 618ac_objext=o 619if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then 620 # Stardent Vistra SVR4 grep lacks -e, says [email protected]. 621 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then 622 ac_n= ac_c=' 623' ac_t=' ' 624 else 625 ac_n=-n ac_c= ac_t= 626 fi 627else 628 ac_n= ac_c='\c' ac_t= 629fi 630 631 632 633 634cat >> confdefs.h <<\EOF 635#define UNIX 1 636EOF 637 638echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 639echo "configure:640: checking whether ${MAKE-make} sets \${MAKE}" >&5 640set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` 641if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then 642 echo $ac_n "(cached) $ac_c" 1>&6 643else 644 cat > conftestmake <<\EOF 645all: 646 @echo 'ac_maketemp="${MAKE}"' 647EOF 648# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 649eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` 650if test -n "$ac_maketemp"; then 651 eval ac_cv_prog_make_${ac_make}_set=yes 652else 653 eval ac_cv_prog_make_${ac_make}_set=no 654fi 655rm -f conftestmake 656fi 657if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 658 echo "$ac_t""yes" 1>&6 659 SET_MAKE= 660else 661 echo "$ac_t""no" 1>&6 662 SET_MAKE="MAKE=${MAKE-make}" 663fi 664 665 666# Extract the first word of "gcc", so it can be a program name with args. 667set dummy gcc; ac_word=$2 668echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 669echo "configure:670: checking for $ac_word" >&5 670if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 671 echo $ac_n "(cached) $ac_c" 1>&6 672else 673 if test -n "$CC"; then 674 ac_cv_prog_CC="$CC" # Let the user override the test. 675else 676 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 677 ac_dummy="$PATH" 678 for ac_dir in $ac_dummy; do 679 test -z "$ac_dir" && ac_dir=. 680 if test -f $ac_dir/$ac_word; then 681 ac_cv_prog_CC="gcc" 682 break 683 fi 684 done 685 IFS="$ac_save_ifs" 686fi 687fi 688CC="$ac_cv_prog_CC" 689if test -n "$CC"; then 690 echo "$ac_t""$CC" 1>&6 691else 692 echo "$ac_t""no" 1>&6 693fi 694 695if test -z "$CC"; then 696 # Extract the first word of "cc", so it can be a program name with args. 697set dummy cc; ac_word=$2 698echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 699echo "configure:700: checking for $ac_word" >&5 700if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 701 echo $ac_n "(cached) $ac_c" 1>&6 702else 703 if test -n "$CC"; then 704 ac_cv_prog_CC="$CC" # Let the user override the test. 705else 706 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 707 ac_prog_rejected=no 708 ac_dummy="$PATH" 709 for ac_dir in $ac_dummy; do 710 test -z "$ac_dir" && ac_dir=. 711 if test -f $ac_dir/$ac_word; then 712 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then 713 ac_prog_rejected=yes 714 continue 715 fi 716 ac_cv_prog_CC="cc" 717 break 718 fi 719 done 720 IFS="$ac_save_ifs" 721if test $ac_prog_rejected = yes; then 722 # We found a bogon in the path, so make sure we never use it. 723 set dummy $ac_cv_prog_CC 724 shift 725 if test $# -gt 0; then 726 # We chose a different compiler from the bogus one. 727 # However, it has the same basename, so the bogon will be chosen 728 # first if we set CC to just the basename; use the full file name. 729 shift 730 set dummy "$ac_dir/$ac_word" "$@" 731 shift 732 ac_cv_prog_CC="$@" 733 fi 734fi 735fi 736fi 737CC="$ac_cv_prog_CC" 738if test -n "$CC"; then 739 echo "$ac_t""$CC" 1>&6 740else 741 echo "$ac_t""no" 1>&6 742fi 743 744 if test -z "$CC"; then 745 case "`uname -s`" in 746 *win32* | *WIN32*) 747 # Extract the first word of "cl", so it can be a program name with args. 748set dummy cl; ac_word=$2 749echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 750echo "configure:751: checking for $ac_word" >&5 751if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 752 echo $ac_n "(cached) $ac_c" 1>&6 753else 754 if test -n "$CC"; then 755 ac_cv_prog_CC="$CC" # Let the user override the test. 756else 757 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 758 ac_dummy="$PATH" 759 for ac_dir in $ac_dummy; do 760 test -z "$ac_dir" && ac_dir=. 761 if test -f $ac_dir/$ac_word; then 762 ac_cv_prog_CC="cl" 763 break 764 fi 765 done 766 IFS="$ac_save_ifs" 767fi 768fi 769CC="$ac_cv_prog_CC" 770if test -n "$CC"; then 771 echo "$ac_t""$CC" 1>&6 772else 773 echo "$ac_t""no" 1>&6 774fi 775 ;; 776 esac 777 fi 778 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } 779fi 780 781echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 782echo "configure:783: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 783 784ac_ext=c 785# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 786ac_cpp='$CPP $CPPFLAGS' 787ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 788ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 789cross_compiling=$ac_cv_prog_cc_cross 790 791cat > conftest.$ac_ext << EOF 792 793#line 794 "configure" 794#include "confdefs.h" 795 796main(){return(0);} 797EOF 798if { (eval echo configure:799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 799 ac_cv_prog_cc_works=yes 800 # If we can't run a trivial program, we are probably using a cross compiler. 801 if (./conftest; exit) 2>/dev/null; then 802 ac_cv_prog_cc_cross=no 803 else 804 ac_cv_prog_cc_cross=yes 805 fi 806else 807 echo "configure: failed program was:" >&5 808 cat conftest.$ac_ext >&5 809 ac_cv_prog_cc_works=no 810fi 811rm -fr conftest* 812ac_ext=c 813# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 814ac_cpp='$CPP $CPPFLAGS' 815ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 816ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 817cross_compiling=$ac_cv_prog_cc_cross 818 819echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 820if test $ac_cv_prog_cc_works = no; then 821 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } 822fi 823echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 824echo "configure:825: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 825echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 826cross_compiling=$ac_cv_prog_cc_cross 827 828echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 829echo "configure:830: checking whether we are using GNU C" >&5 830if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then 831 echo $ac_n "(cached) $ac_c" 1>&6 832else 833 cat > conftest.c <<EOF 834#ifdef __GNUC__ 835 yes; 836#endif 837EOF 838if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:839: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 839 ac_cv_prog_gcc=yes 840else 841 ac_cv_prog_gcc=no 842fi 843fi 844 845echo "$ac_t""$ac_cv_prog_gcc" 1>&6 846 847if test $ac_cv_prog_gcc = yes; then 848 GCC=yes 849else 850 GCC= 851fi 852 853ac_test_CFLAGS="${CFLAGS+set}" 854ac_save_CFLAGS="$CFLAGS" 855CFLAGS= 856echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 857echo "configure:858: checking whether ${CC-cc} accepts -g" >&5 858if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then 859 echo $ac_n "(cached) $ac_c" 1>&6 860else 861 echo 'void f(){}' > conftest.c 862if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then 863 ac_cv_prog_cc_g=yes 864else 865 ac_cv_prog_cc_g=no 866fi 867rm -f conftest* 868 869fi 870 871echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 872if test "$ac_test_CFLAGS" = set; then 873 CFLAGS="$ac_save_CFLAGS" 874elif test $ac_cv_prog_cc_g = yes; then 875 if test "$GCC" = yes; then 876 CFLAGS="-g -O2" 877 else 878 CFLAGS="-g" 879 fi 880else 881 if test "$GCC" = yes; then 882 CFLAGS="-O2" 883 else 884 CFLAGS= 885 fi 886fi 887 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 888echo "configure:889: checking how to run the C preprocessor" >&5 889# On Suns, sometimes $CPP names a directory. 890if test -n "$CPP" && test -d "$CPP"; then 891 CPP= 892fi 893if test -z "$CPP"; then 894if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then 895 echo $ac_n "(cached) $ac_c" 1>&6 896else 897 # This must be in double quotes, not single quotes, because CPP may get 898 # substituted into the Makefile and "${CC-cc}" will confuse make. 899 CPP="${CC-cc} -E" 900 # On the NeXT, cc -E runs the code through the compiler's parser, 901 # not just through cpp. 902 cat > conftest.$ac_ext <<EOF 903#line 904 "configure" 904#include "confdefs.h" 905#include <assert.h> 906Syntax Error 907EOF 908ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 909{ (eval echo configure:910: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 910ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 911if test -z "$ac_err"; then 912 : 913else 914 echo "$ac_err" >&5 915 echo "configure: failed program was:" >&5 916 cat conftest.$ac_ext >&5 917 rm -rf conftest* 918 CPP="${CC-cc} -E -traditional-cpp" 919 cat > conftest.$ac_ext <<EOF 920#line 921 "configure" 921#include "confdefs.h" 922#include <assert.h> 923Syntax Error 924EOF 925ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 926{ (eval echo configure:927: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 927ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 928if test -z "$ac_err"; then 929 : 930else 931 echo "$ac_err" >&5 932 echo "configure: failed program was:" >&5 933 cat conftest.$ac_ext >&5 934 rm -rf conftest* 935 CPP="${CC-cc} -nologo -E" 936 cat > conftest.$ac_ext <<EOF 937#line 938 "configure" 938#include "confdefs.h" 939#include <assert.h> 940Syntax Error 941EOF 942ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 943{ (eval echo configure:944: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 944ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 945if test -z "$ac_err"; then 946 : 947else 948 echo "$ac_err" >&5 949 echo "configure: failed program was:" >&5 950 cat conftest.$ac_ext >&5 951 rm -rf conftest* 952 CPP=/lib/cpp 953fi 954rm -f conftest* 955fi 956rm -f conftest* 957fi 958rm -f conftest* 959 ac_cv_prog_CPP="$CPP" 960fi 961 CPP="$ac_cv_prog_CPP" 962else 963 ac_cv_prog_CPP="$CPP" 964fi 965echo "$ac_t""$CPP" 1>&6 966 cat > conftest.$ac_ext <<EOF 967#line 968 "configure" 968#include "confdefs.h" 969 970EOF 971if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 972 egrep "" >/dev/null 2>&1; then 973 : 974fi 975rm -f conftest* 976 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6 977echo "configure:978: checking for POSIXized ISC" >&5 978if test -d /etc/conf/kconfig.d && 979 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1 980then 981 echo "$ac_t""yes" 1>&6 982 ISC=yes # If later tests want to check for ISC. 983 cat >> confdefs.h <<\EOF 984#define _POSIX_SOURCE 1 985EOF 986 987 if test "$GCC" = yes; then 988 CC="$CC -posix" 989 else 990 CC="$CC -Xp" 991 fi 992else 993 echo "$ac_t""no" 1>&6 994 ISC= 995fi 996 for ac_prog in mawk gawk nawk awk 997do 998# Extract the first word of "$ac_prog", so it can be a program name with args. 999set dummy $ac_prog; ac_word=$2 1000echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1001echo "configure:1002: checking for $ac_word" >&5 1002if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then 1003 echo $ac_n "(cached) $ac_c" 1>&6 1004else 1005 if test -n "$AWK"; then 1006 ac_cv_prog_AWK="$AWK" # Let the user override the test. 1007else 1008 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1009 ac_dummy="$PATH" 1010 for ac_dir in $ac_dummy; do 1011 test -z "$ac_dir" && ac_dir=. 1012 if test -f $ac_dir/$ac_word; then 1013 ac_cv_prog_AWK="$ac_prog" 1014 break 1015 fi 1016 done 1017 IFS="$ac_save_ifs" 1018fi 1019fi 1020AWK="$ac_cv_prog_AWK" 1021if test -n "$AWK"; then 1022 echo "$ac_t""$AWK" 1>&6 1023else 1024 echo "$ac_t""no" 1>&6 1025fi 1026 1027test -n "$AWK" && break 1028done 1029 1030# Extract the first word of "strip", so it can be a program name with args. 1031set dummy strip; ac_word=$2 1032echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1033echo "configure:1034: checking for $ac_word" >&5 1034if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then 1035 echo $ac_n "(cached) $ac_c" 1>&6 1036else 1037 if test -n "$STRIP"; then 1038 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 1039else 1040 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1041 ac_dummy="$PATH" 1042 for ac_dir in $ac_dummy; do 1043 test -z "$ac_dir" && ac_dir=. 1044 if test -f $ac_dir/$ac_word; then 1045 ac_cv_prog_STRIP="strip" 1046 break 1047 fi 1048 done 1049 IFS="$ac_save_ifs" 1050 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":" 1051fi 1052fi 1053STRIP="$ac_cv_prog_STRIP" 1054if test -n "$STRIP"; then 1055 echo "$ac_t""$STRIP" 1>&6 1056else 1057 echo "$ac_t""no" 1>&6 1058fi 1059 1060 1061echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6 1062echo "configure:1063: checking for Cygwin environment" >&5 1063if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then 1064 echo $ac_n "(cached) $ac_c" 1>&6 1065else 1066 cat > conftest.$ac_ext <<EOF 1067#line 1068 "configure" 1068#include "confdefs.h" 1069 1070int main() { 1071 1072#ifndef __CYGWIN__ 1073#define __CYGWIN__ __CYGWIN32__ 1074#endif 1075return __CYGWIN__; 1076; return 0; } 1077EOF 1078if { (eval echo configure:1079: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1079 rm -rf conftest* 1080 ac_cv_cygwin=yes 1081else 1082 echo "configure: failed program was:" >&5 1083 cat conftest.$ac_ext >&5 1084 rm -rf conftest* 1085 ac_cv_cygwin=no 1086fi 1087rm -f conftest* 1088rm -f conftest* 1089fi 1090 1091echo "$ac_t""$ac_cv_cygwin" 1>&6 1092CYGWIN= 1093test "$ac_cv_cygwin" = yes && CYGWIN=yes 1094echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6 1095echo "configure:1096: checking for mingw32 environment" >&5 1096if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then 1097 echo $ac_n "(cached) $ac_c" 1>&6 1098else 1099 cat > conftest.$ac_ext <<EOF 1100#line 1101 "configure" 1101#include "confdefs.h" 1102 1103int main() { 1104return __MINGW32__; 1105; return 0; } 1106EOF 1107if { (eval echo configure:1108: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1108 rm -rf conftest* 1109 ac_cv_mingw32=yes 1110else 1111 echo "configure: failed program was:" >&5 1112 cat conftest.$ac_ext >&5 1113 rm -rf conftest* 1114 ac_cv_mingw32=no 1115fi 1116rm -f conftest* 1117rm -f conftest* 1118fi 1119 1120echo "$ac_t""$ac_cv_mingw32" 1>&6 1121MINGW32= 1122test "$ac_cv_mingw32" = yes && MINGW32=yes 1123 1124 1125echo $ac_n "checking for executable suffix""... $ac_c" 1>&6 1126echo "configure:1127: checking for executable suffix" >&5 1127if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then 1128 echo $ac_n "(cached) $ac_c" 1>&6 1129else 1130 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then 1131 ac_cv_exeext=.exe 1132else 1133 rm -f conftest* 1134 echo 'int main () { return 0; }' > conftest.$ac_ext 1135 ac_cv_exeext= 1136 if { (eval echo configure:1137: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then 1137 for file in conftest.*; do 1138 case $file in 1139 *.c | *.o | *.obj) ;; 1140 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;; 1141 esac 1142 done 1143 else 1144 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; } 1145 fi 1146 rm -f conftest* 1147 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no 1148fi 1149fi 1150 1151EXEEXT="" 1152test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext} 1153echo "$ac_t""${ac_cv_exeext}" 1>&6 1154ac_exeext=$EXEEXT 1155 1156 1157if test -z "$CFLAGS"; then 1158 CFLAGS="-O" 1159 test "$GCC" = yes && CFLAGS="-O2 -fno-strength-reduce -Wall" 1160fi 1161if test "$GCC" = yes; then 1162 gccversion=`"$CC" --version | sed -e '2,$d;s/^[^0-9]*\([0-9]\.[0-9.]*\).*$/\1/g'` 1163 if test "$gccversion" = "3.0.1" -o "$gccversion" = "3.0.2"; then 1164 echo 'GCC 3.0.x has a bug in the optimizer, disabling "-O#"' 1165 CFLAGS=`echo "$CFLAGS" | sed 's/-O[23456789]/-O/'` 1166 else 1167 if test "$gccversion" = "3.1" -o "$gccversion" = "3.2" -o "$gccversion" = "3.2.1" && `echo "$CFLAGS" | grep -v fno-strength-reduce >/dev/null`; then 1168 echo 'GCC 3.1 and 3.2 have a bug in the optimizer, adding "-fno-strength-reduce"' 1169 CFLAGS="$CFLAGS -fno-strength-reduce" 1170 fi 1171 fi 1172fi 1173 1174if test "$cross_compiling" = yes; then 1175 { echo "configure: error: cannot compile a simple program, check CC and CFLAGS 1176 (cross compiling doesn't work)" 1>&2; exit 1; } 1177fi 1178 1179test "$GCC" = yes && CPP_MM=M; 1180 1181if test -f ./toolcheck; then 1182 echo "checking for buggy tools" 1>&6 1183echo "configure:1184: checking for buggy tools" >&5 1184 sh ./toolcheck 1>&6 1185fi 1186 1187OS_EXTRA_SRC=""; OS_EXTRA_OBJ="" 1188 1189echo $ac_n "checking for BeOS""... $ac_c" 1>&6 1190echo "configure:1191: checking for BeOS" >&5 1191case `uname` in 1192 BeOS) OS_EXTRA_SRC=os_beos.c; OS_EXTRA_OBJ=objects/os_beos.o 1193 BEOS=yes; echo "$ac_t""yes" 1>&6;; 1194 *) BEOS=no; echo "$ac_t""no" 1>&6;; 1195esac 1196 1197echo $ac_n "checking for QNX""... $ac_c" 1>&6 1198echo "configure:1199: checking for QNX" >&5 1199case `uname` in 1200 QNX) OS_EXTRA_SRC=os_qnx.c; OS_EXTRA_OBJ=objects/os_qnx.o 1201 test -z "$with_x" && with_x=no 1202 QNX=yes; echo "$ac_t""yes" 1>&6;; 1203 *) QNX=no; echo "$ac_t""no" 1>&6;; 1204esac 1205 1206DEFAULT_VIMNAME=vim 1207echo $ac_n "checking for Darwin (Mac OS X)""... $ac_c" 1>&6 1208echo "configure:1209: checking for Darwin (Mac OS X)" >&5 1209if test "`(uname) 2>/dev/null`" = Darwin; then 1210 echo "$ac_t""yes" 1>&6 1211 1212 echo $ac_n "checking --disable-darwin argument""... $ac_c" 1>&6 1213echo "configure:1214: checking --disable-darwin argument" >&5 1214 # Check whether --enable-darwin or --disable-darwin was given. 1215if test "${enable_darwin+set}" = set; then 1216 enableval="$enable_darwin" 1217 : 1218else 1219 enable_darwin="yes" 1220fi 1221 1222 if test "$enable_darwin" = "yes"; then 1223 echo "$ac_t""no" 1>&6 1224 echo $ac_n "checking if Darwin files are there""... $ac_c" 1>&6 1225echo "configure:1226: checking if Darwin files are there" >&5 1226 if test -f os_macosx.c; then 1227 echo "$ac_t""yes" 1>&6 1228 else 1229 echo "$ac_t""no, Darwin support disabled" 1>&6 1230 enable_darwin=no 1231 fi 1232 else 1233 echo "$ac_t""yes, Darwin support excluded" 1>&6 1234 fi 1235 1236 if test "$enable_darwin" = "yes"; then 1237 MACOSX=yes 1238 OS_EXTRA_SCR="os_macosx.c"; 1239 OS_EXTRA_OBJ="objects/os_macosx.o" 1240 CPPFLAGS="$CPPFLAGS -DMACOS_X_UNIX -I/Developer/Headers/FlatCarbon -no-cpp-precomp" 1241 1242 ac_safe=`echo "Carbon/Carbon.h" | sed 'y%./+-%__p_%'` 1243echo $ac_n "checking for Carbon/Carbon.h""... $ac_c" 1>&6 1244echo "configure:1245: checking for Carbon/Carbon.h" >&5 1245if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 1246 echo $ac_n "(cached) $ac_c" 1>&6 1247else 1248 cat > conftest.$ac_ext <<EOF 1249#line 1250 "configure" 1250#include "confdefs.h" 1251#include <Carbon/Carbon.h> 1252EOF 1253ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1254{ (eval echo configure:1255: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1255ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1256if test -z "$ac_err"; then 1257 rm -rf conftest* 1258 eval "ac_cv_header_$ac_safe=yes" 1259else 1260 echo "$ac_err" >&5 1261 echo "configure: failed program was:" >&5 1262 cat conftest.$ac_ext >&5 1263 rm -rf conftest* 1264 eval "ac_cv_header_$ac_safe=no" 1265fi 1266rm -f conftest* 1267fi 1268if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 1269 echo "$ac_t""yes" 1>&6 1270 CARBON=yes 1271else 1272 echo "$ac_t""no" 1>&6 1273fi 1274 1275 if test "x$CARBON" = "xyes"; then 1276 if test -z "$with_x"; then 1277 with_x=no 1278 DEFAULT_VIMNAME=Vim 1279 fi 1280 fi 1281 fi 1282else 1283 echo "$ac_t""no" 1>&6 1284fi 1285 1286 1287 1288 1289have_local_include='' 1290have_local_lib='' 1291if test "$GCC" = yes; then 1292 echo 'void f(){}' > conftest.c 1293 have_local_include=`${CC-cc} -no-cpp-precomp -c -v conftest.c 2>&1 | grep '/usr/local/include'` 1294 have_local_lib=`${CC-cc} -c -v conftest.c 2>&1 | grep '/usr/local/lib'` 1295 rm -f conftest.c conftest.o 1296fi 1297if test -z "$have_local_lib" -a -d /usr/local/lib; then 1298 tt=`echo "$LDFLAGS" | sed -e 's+-L/usr/local/lib ++g' -e 's+-L/usr/local/lib$++g'` 1299 if test "$tt" = "$LDFLAGS"; then 1300 LDFLAGS="$LDFLAGS -L/usr/local/lib" 1301 fi 1302fi 1303if test -z "$have_local_include" -a -d /usr/local/include; then 1304 tt=`echo "$CPPFLAGS" | sed -e 's+-I/usr/local/include ++g' -e 's+-I/usr/local/include$++g'` 1305 if test "$tt" = "$CPPFLAGS"; then 1306 CPPFLAGS="$CPPFLAGS -I/usr/local/include" 1307 fi 1308fi 1309 1310echo $ac_n "checking --with-vim-name argument""... $ac_c" 1>&6 1311echo "configure:1312: checking --with-vim-name argument" >&5 1312# Check whether --with-vim-name or --without-vim-name was given. 1313if test "${with_vim_name+set}" = set; then 1314 withval="$with_vim_name" 1315 VIMNAME="$withval"; echo "$ac_t""$VIMNAME" 1>&6 1316else 1317 VIMNAME="$DEFAULT_VIMNAME"; echo "$ac_t""Defaulting to $VIMNAME" 1>&6 1318fi 1319 1320 1321echo $ac_n "checking --with-ex-name argument""... $ac_c" 1>&6 1322echo "configure:1323: checking --with-ex-name argument" >&5 1323# Check whether --with-ex-name or --without-ex-name was given. 1324if test "${with_ex_name+set}" = set; then 1325 withval="$with_ex_name" 1326 EXNAME="$withval"; echo "$ac_t""$EXNAME" 1>&6 1327else 1328 EXNAME="ex"; echo "$ac_t""Defaulting to ex" 1>&6 1329fi 1330 1331 1332echo $ac_n "checking --with-view-name argument""... $ac_c" 1>&6 1333echo "configure:1334: checking --with-view-name argument" >&5 1334# Check whether --with-view-name or --without-view-name was given. 1335if test "${with_view_name+set}" = set; then 1336 withval="$with_view_name" 1337 VIEWNAME="$withval"; echo "$ac_t""$VIEWNAME" 1>&6 1338else 1339 VIEWNAME="view"; echo "$ac_t""Defaulting to view" 1>&6 1340fi 1341 1342 1343 1344echo $ac_n "checking --with-global-runtime argument""... $ac_c" 1>&6 1345echo "configure:1346: checking --with-global-runtime argument" >&5 1346# Check whether --with-global-runtime or --without-global-runtime was given. 1347if test "${with_global_runtime+set}" = set; then 1348 withval="$with_global_runtime" 1349 echo "$ac_t""$withval" 1>&6; cat >> confdefs.h <<EOF 1350#define RUNTIME_GLOBAL "$withval" 1351EOF 1352 1353else 1354 echo "$ac_t""no" 1>&6 1355fi 1356 1357 1358echo $ac_n "checking --with-modified-by argument""... $ac_c" 1>&6 1359echo "configure:1360: checking --with-modified-by argument" >&5 1360# Check whether --with-modified-by or --without-modified-by was given. 1361if test "${with_modified_by+set}" = set; then 1362 withval="$with_modified_by" 1363 echo "$ac_t""$withval" 1>&6; cat >> confdefs.h <<EOF 1364#define MODIFIED_BY "$withval" 1365EOF 1366 1367else 1368 echo "$ac_t""no" 1>&6 1369fi 1370 1371 1372echo $ac_n "checking if character set is EBCDIC""... $ac_c" 1>&6 1373echo "configure:1374: checking if character set is EBCDIC" >&5 1374cat > conftest.$ac_ext <<EOF 1375#line 1376 "configure" 1376#include "confdefs.h" 1377 1378int main() { 1379 /* TryCompile function for CharSet. 1380 Treat any failure as ASCII for compatibility with existing art. 1381 Use compile-time rather than run-time tests for cross-compiler 1382 tolerance. */ 1383#if '0'!=240 1384make an error "Character set is not EBCDIC" 1385#endif 1386; return 0; } 1387EOF 1388if { (eval echo configure:1389: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1389 rm -rf conftest* 1390 # TryCompile action if true 1391cf_cv_ebcdic=yes 1392else 1393 echo "configure: failed program was:" >&5 1394 cat conftest.$ac_ext >&5 1395 rm -rf conftest* 1396 # TryCompile action if false 1397cf_cv_ebcdic=no 1398fi 1399rm -f conftest* 1400# end of TryCompile ]) 1401# end of CacheVal CvEbcdic 1402echo "$ac_t""$cf_cv_ebcdic" 1>&6 1403case "$cf_cv_ebcdic" in #(vi 1404 yes) cat >> confdefs.h <<\EOF 1405#define EBCDIC 1 1406EOF 1407 1408 line_break='"\\n"' 1409 ;; 1410 *) line_break='"\\012"';; 1411esac 1412 1413 1414if test "$cf_cv_ebcdic" = "yes"; then 1415echo $ac_n "checking for OS/390 Unix""... $ac_c" 1>&6 1416echo "configure:1417: checking for OS/390 Unix" >&5 1417case `uname` in 1418 OS/390) OS390Unix="yes"; 1419 if test "$CC" = "cc"; then 1420 ccm="$_CC_CCMODE" 1421 ccn="CC" 1422 else 1423 if test "$CC" = "c89"; then 1424 ccm="$_CC_C89MODE" 1425 ccn="C89" 1426 else 1427 ccm=1 1428 fi 1429 fi 1430 if test "$ccm" != "1"; then 1431 echo "" 1432 echo "------------------------------------------" 1433 echo " On OS/390 Unix, the environment variable" 1434 echo " __CC_${ccn}MODE must be set to \"1\"!" 1435 echo " Do:" 1436 echo " export _CC_${ccn}MODE=1" 1437 echo " and then call configure again." 1438 echo "------------------------------------------" 1439 exit 1 1440 fi 1441 CFLAGS="$CFLAGS -D_ALL_SOURCE"; LDFLAGS="$LDFLAGS -Wl,EDIT=NO" 1442 echo "$ac_t""yes" 1>&6 1443 ;; 1444 *) OS390Unix="no"; 1445 echo "$ac_t""no" 1>&6 1446 ;; 1447esac 1448fi 1449 1450 1451 1452echo $ac_n "checking --with-features argument""... $ac_c" 1>&6 1453echo "configure:1454: checking --with-features argument" >&5 1454# Check whether --with-features or --without-features was given. 1455if test "${with_features+set}" = set; then 1456 withval="$with_features" 1457 features="$withval"; echo "$ac_t""$features" 1>&6 1458else 1459 features="normal"; echo "$ac_t""Defaulting to normal" 1>&6 1460fi 1461 1462 1463dovimdiff="" 1464dogvimdiff="" 1465case "$features" in 1466 tiny) cat >> confdefs.h <<\EOF 1467#define FEAT_TINY 1 1468EOF 1469 ;; 1470 small) cat >> confdefs.h <<\EOF 1471#define FEAT_SMALL 1 1472EOF 1473 ;; 1474 normal) cat >> confdefs.h <<\EOF 1475#define FEAT_NORMAL 1 1476EOF 1477 dovimdiff="installvimdiff"; 1478 dogvimdiff="installgvimdiff" ;; 1479 big) cat >> confdefs.h <<\EOF 1480#define FEAT_BIG 1 1481EOF 1482 dovimdiff="installvimdiff"; 1483 dogvimdiff="installgvimdiff" ;; 1484 huge) cat >> confdefs.h <<\EOF 1485#define FEAT_HUGE 1 1486EOF 1487 dovimdiff="installvimdiff"; 1488 dogvimdiff="installgvimdiff" ;; 1489 *) echo "$ac_t""Sorry, $features is not supported" 1>&6 ;; 1490esac 1491 1492 1493 1494 1495echo $ac_n "checking --with-compiledby argument""... $ac_c" 1>&6 1496echo "configure:1497: checking --with-compiledby argument" >&5 1497# Check whether --with-compiledby or --without-compiledby was given. 1498if test "${with_compiledby+set}" = set; then 1499 withval="$with_compiledby" 1500 compiledby="$withval"; echo "$ac_t""$withval" 1>&6 1501else 1502 compiledby=""; echo "$ac_t""no" 1>&6 1503fi 1504 1505 1506 1507echo $ac_n "checking --disable-xsmp argument""... $ac_c" 1>&6 1508echo "configure:1509: checking --disable-xsmp argument" >&5 1509# Check whether --enable-xsmp or --disable-xsmp was given. 1510if test "${enable_xsmp+set}" = set; then 1511 enableval="$enable_xsmp" 1512 : 1513else 1514 enable_xsmp="yes" 1515fi 1516 1517 1518if test "$enable_xsmp" = "yes"; then 1519 echo "$ac_t""no" 1>&6 1520 echo $ac_n "checking --disable-xsmp-interact argument""... $ac_c" 1>&6 1521echo "configure:1522: checking --disable-xsmp-interact argument" >&5 1522 # Check whether --enable-xsmp-interact or --disable-xsmp-interact was given. 1523if test "${enable_xsmp_interact+set}" = set; then 1524 enableval="$enable_xsmp_interact" 1525 : 1526else 1527 enable_xsmp_interact="yes" 1528fi 1529 1530 if test "$enable_xsmp_interact" = "yes"; then 1531 echo "$ac_t""no" 1>&6 1532 cat >> confdefs.h <<\EOF 1533#define USE_XSMP_INTERACT 1 1534EOF 1535 1536 else 1537 echo "$ac_t""yes" 1>&6 1538 fi 1539else 1540 echo "$ac_t""yes" 1>&6 1541fi 1542 1543echo $ac_n "checking --enable-perlinterp argument""... $ac_c" 1>&6 1544echo "configure:1545: checking --enable-perlinterp argument" >&5 1545# Check whether --enable-perlinterp or --disable-perlinterp was given. 1546if test "${enable_perlinterp+set}" = set; then 1547 enableval="$enable_perlinterp" 1548 : 1549else 1550 enable_perlinterp="no" 1551fi 1552 1553echo "$ac_t""$enable_perlinterp" 1>&6 1554if test "$enable_perlinterp" = "yes"; then 1555 1556 # Extract the first word of "perl", so it can be a program name with args. 1557set dummy perl; ac_word=$2 1558echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1559echo "configure:1560: checking for $ac_word" >&5 1560if eval "test \"`echo '$''{'ac_cv_path_vi_cv_path_perl'+set}'`\" = set"; then 1561 echo $ac_n "(cached) $ac_c" 1>&6 1562else 1563 case "$vi_cv_path_perl" in 1564 /*) 1565 ac_cv_path_vi_cv_path_perl="$vi_cv_path_perl" # Let the user override the test with a path. 1566 ;; 1567 ?:/*) 1568 ac_cv_path_vi_cv_path_perl="$vi_cv_path_perl" # Let the user override the test with a dos path. 1569 ;; 1570 *) 1571 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1572 ac_dummy="$PATH" 1573 for ac_dir in $ac_dummy; do 1574 test -z "$ac_dir" && ac_dir=. 1575 if test -f $ac_dir/$ac_word; then 1576 ac_cv_path_vi_cv_path_perl="$ac_dir/$ac_word" 1577 break 1578 fi 1579 done 1580 IFS="$ac_save_ifs" 1581 ;; 1582esac 1583fi 1584vi_cv_path_perl="$ac_cv_path_vi_cv_path_perl" 1585if test -n "$vi_cv_path_perl"; then 1586 echo "$ac_t""$vi_cv_path_perl" 1>&6 1587else 1588 echo "$ac_t""no" 1>&6 1589fi 1590 1591 if test "X$vi_cv_path_perl" != "X"; then 1592 echo $ac_n "checking Perl version""... $ac_c" 1>&6 1593echo "configure:1594: checking Perl version" >&5 1594 if $vi_cv_path_perl -e 'require 5.003_01' >/dev/null 2>/dev/null; then 1595 eval `$vi_cv_path_perl -V:usethreads` 1596 if test "X$usethreads" = "XUNKNOWN" -o "X$usethreads" = "Xundef"; then 1597 badthreads=no 1598 else 1599 if $vi_cv_path_perl -e 'require 5.6.0' >/dev/null 2>/dev/null; then 1600 eval `$vi_cv_path_perl -V:use5005threads` 1601 if test "X$use5005threads" = "XUNKNOWN" -o "X$use5005threads" = "Xundef"; then 1602 badthreads=no 1603 else 1604 badthreads=yes 1605 echo "$ac_t"">>> Perl > 5.6 with 5.5 threads cannot be used <<<" 1>&6 1606 fi 1607 else 1608 badthreads=yes 1609 echo "$ac_t"">>> Perl 5.5 with threads cannot be used <<<" 1>&6 1610 fi 1611 fi 1612 if test $badthreads = no; then 1613 echo "$ac_t""OK" 1>&6 1614 eval `$vi_cv_path_perl -V:shrpenv` 1615 if test "X$shrpenv" = "XUNKNOWN"; then # pre 5.003_04 1616 shrpenv="" 1617 fi 1618 vi_cv_perllib=`$vi_cv_path_perl -MConfig -e 'print $Config{privlibexp}'` 1619 1620 perlcppflags=`$vi_cv_path_perl -Mlib=$srcdir -MExtUtils::Embed \ 1621 -e 'ccflags;perl_inc;print"\n"' | sed -e 's/-fno[^ ]*//'` 1622 perllibs=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed -e 'ldopts' | \ 1623 sed -e '/Warning/d' -e '/Note (probably harmless)/d' \ 1624 -e 's/-bE:perl.exp//' -e 's/-lc //'` 1625 perlldflags=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed \ 1626 -e 'ccdlflags' | sed -e 's/-bE:perl.exp//'` 1627 1628 echo $ac_n "checking if compile and link flags for Perl are sane""... $ac_c" 1>&6 1629echo "configure:1630: checking if compile and link flags for Perl are sane" >&5 1630 cflags_save=$CFLAGS 1631 libs_save=$LIBS 1632 ldflags_save=$LDFLAGS 1633 CFLAGS="$CFLAGS $perlcppflags" 1634 LIBS="$LIBS $perllibs" 1635 LDFLAGS="$perlldflags $LDFLAGS" 1636 cat > conftest.$ac_ext <<EOF 1637#line 1638 "configure" 1638#include "confdefs.h" 1639 1640int main() { 1641 1642; return 0; } 1643EOF 1644if { (eval echo configure:1645: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1645 rm -rf conftest* 1646 echo "$ac_t""yes" 1>&6; perl_ok=yes 1647else 1648 echo "configure: failed program was:" >&5 1649 cat conftest.$ac_ext >&5 1650 rm -rf conftest* 1651 echo "$ac_t""no: PERL DISABLED" 1>&6; perl_ok=no 1652fi 1653rm -f conftest* 1654 CFLAGS=$cflags_save 1655 LIBS=$libs_save 1656 LDFLAGS=$ldflags_save 1657 if test $perl_ok = yes; then 1658 if test "X$perlcppflags" != "X"; then 1659 PERL_CFLAGS="$perlcppflags" 1660 fi 1661 if test "X$perlldflags" != "X"; then 1662 LDFLAGS="$perlldflags $LDFLAGS" 1663 fi 1664 PERL_LIBS=$perllibs 1665 PERL_SRC="auto/if_perl.c if_perlsfio.c" 1666 PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o" 1667 PERL_PRO="if_perl.pro if_perlsfio.pro" 1668 cat >> confdefs.h <<\EOF 1669#define FEAT_PERL 1 1670EOF 1671 1672 fi 1673 fi 1674 else 1675 echo "$ac_t"">>> too old; need Perl version 5.003_01 or later <<<" 1>&6 1676 fi 1677 fi 1678 1679 if test "x$MACOSX" = "xyes"; then 1680 dir=/System/Library/Perl 1681 darwindir=$dir/darwin 1682 if test -d $darwindir; then 1683 PERL=/usr/bin/perl 1684 else 1685 dir=/System/Library/Perl/5.8.1 1686 darwindir=$dir/darwin-thread-multi-2level 1687 if test -d $darwindir; then 1688 PERL=/usr/bin/perl 1689 fi 1690 fi 1691 if test -n "$PERL"; then 1692 PERL_DIR="$dir" 1693 PERL_CFLAGS="-DFEAT_PERL -I$darwindir/CORE" 1694 PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o $darwindir/auto/DynaLoader/DynaLoader.a" 1695 PERL_LIBS="-L$darwindir/CORE -lperl" 1696 fi 1697 fi 1698fi 1699 1700 1701 1702 1703 1704 1705 1706echo $ac_n "checking --enable-pythoninterp argument""... $ac_c" 1>&6 1707echo "configure:1708: checking --enable-pythoninterp argument" >&5 1708# Check whether --enable-pythoninterp or --disable-pythoninterp was given. 1709if test "${enable_pythoninterp+set}" = set; then 1710 enableval="$enable_pythoninterp" 1711 : 1712else 1713 enable_pythoninterp="no" 1714fi 1715 1716echo "$ac_t""$enable_pythoninterp" 1>&6 1717if test "$enable_pythoninterp" = "yes"; then 1718 # Extract the first word of "python", so it can be a program name with args. 1719set dummy python; ac_word=$2 1720echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1721echo "configure:1722: checking for $ac_word" >&5 1722if eval "test \"`echo '$''{'ac_cv_path_vi_cv_path_python'+set}'`\" = set"; then 1723 echo $ac_n "(cached) $ac_c" 1>&6 1724else 1725 case "$vi_cv_path_python" in 1726 /*) 1727 ac_cv_path_vi_cv_path_python="$vi_cv_path_python" # Let the user override the test with a path. 1728 ;; 1729 ?:/*) 1730 ac_cv_path_vi_cv_path_python="$vi_cv_path_python" # Let the user override the test with a dos path. 1731 ;; 1732 *) 1733 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1734 ac_dummy="$PATH" 1735 for ac_dir in $ac_dummy; do 1736 test -z "$ac_dir" && ac_dir=. 1737 if test -f $ac_dir/$ac_word; then 1738 ac_cv_path_vi_cv_path_python="$ac_dir/$ac_word" 1739 break 1740 fi 1741 done 1742 IFS="$ac_save_ifs" 1743 ;; 1744esac 1745fi 1746vi_cv_path_python="$ac_cv_path_vi_cv_path_python" 1747if test -n "$vi_cv_path_python"; then 1748 echo "$ac_t""$vi_cv_path_python" 1>&6 1749else 1750 echo "$ac_t""no" 1>&6 1751fi 1752 1753 if test "X$vi_cv_path_python" != "X"; then 1754 1755 echo $ac_n "checking Python version""... $ac_c" 1>&6 1756echo "configure:1757: checking Python version" >&5 1757if eval "test \"`echo '$''{'vi_cv_var_python_version'+set}'`\" = set"; then 1758 echo $ac_n "(cached) $ac_c" 1>&6 1759else 1760 vi_cv_var_python_version=` 1761 ${vi_cv_path_python} -c 'import sys; print sys.version[:3]'` 1762 1763fi 1764 1765echo "$ac_t""$vi_cv_var_python_version" 1>&6 1766 1767 echo $ac_n "checking Python is 1.4 or better""... $ac_c" 1>&6 1768echo "configure:1769: checking Python is 1.4 or better" >&5 1769 if ${vi_cv_path_python} -c \ 1770 "import sys; sys.exit(${vi_cv_var_python_version} < 1.4)" 1771 then 1772 echo "$ac_t""yep" 1>&6 1773 1774 echo $ac_n "checking Python's install prefix""... $ac_c" 1>&6 1775echo "configure:1776: checking Python's install prefix" >&5 1776if eval "test \"`echo '$''{'vi_cv_path_python_pfx'+set}'`\" = set"; then 1777 echo $ac_n "(cached) $ac_c" 1>&6 1778else 1779 vi_cv_path_python_pfx=` 1780 ${vi_cv_path_python} -c \ 1781 "import sys; print sys.prefix"` 1782fi 1783 1784echo "$ac_t""$vi_cv_path_python_pfx" 1>&6 1785 1786 echo $ac_n "checking Python's execution prefix""... $ac_c" 1>&6 1787echo "configure:1788: checking Python's execution prefix" >&5 1788if eval "test \"`echo '$''{'vi_cv_path_python_epfx'+set}'`\" = set"; then 1789 echo $ac_n "(cached) $ac_c" 1>&6 1790else 1791 vi_cv_path_python_epfx=` 1792 ${vi_cv_path_python} -c \ 1793 "import sys; print sys.exec_prefix"` 1794fi 1795 1796echo "$ac_t""$vi_cv_path_python_epfx" 1>&6 1797 1798 1799 if eval "test \"`echo '$''{'vi_cv_path_pythonpath'+set}'`\" = set"; then 1800 echo $ac_n "(cached) $ac_c" 1>&6 1801else 1802 vi_cv_path_pythonpath=` 1803 unset PYTHONPATH; 1804 ${vi_cv_path_python} -c \ 1805 "import sys, string; print string.join(sys.path,':')"` 1806fi 1807 1808 1809 1810 # Check whether --with-python-config-dir or --without-python-config-dir was given. 1811if test "${with_python_config_dir+set}" = set; then 1812 withval="$with_python_config_dir" 1813 vi_cv_path_python_conf="${withval}" 1814fi 1815 1816 1817 echo $ac_n "checking Python's configuration directory""... $ac_c" 1>&6 1818echo "configure:1819: checking Python's configuration directory" >&5 1819if eval "test \"`echo '$''{'vi_cv_path_python_conf'+set}'`\" = set"; then 1820 echo $ac_n "(cached) $ac_c" 1>&6 1821else 1822 1823 vi_cv_path_python_conf= 1824 for path in "${vi_cv_path_python_pfx}" "${vi_cv_path_python_epfx}"; do 1825 for subdir in lib share; do 1826 d="${path}/${subdir}/python${vi_cv_var_python_version}/config" 1827 if test -d "$d" && test -f "$d/config.c"; then 1828 vi_cv_path_python_conf="$d" 1829 fi 1830 done 1831 done 1832 1833fi 1834 1835echo "$ac_t""$vi_cv_path_python_conf" 1>&6 1836 1837 PYTHON_CONFDIR="${vi_cv_path_python_conf}" 1838 1839 if test "X$PYTHON_CONFDIR" = "X"; then 1840 echo "$ac_t""can't find it!" 1>&6 1841 else 1842 1843 if eval "test \"`echo '$''{'vi_cv_path_python_plibs'+set}'`\" = set"; then 1844 echo $ac_n "(cached) $ac_c" 1>&6 1845else 1846 1847 tmp_mkf="/tmp/Makefile-conf$$" 1848 cat ${PYTHON_CONFDIR}/Makefile - <<'eof' >${tmp_mkf} 1849__: 1850 @echo "python_MODLIBS='$(MODLIBS)'" 1851 @echo "python_LIBS='$(LIBS)'" 1852 @echo "python_SYSLIBS='$(SYSLIBS)'" 1853 @echo "python_LINKFORSHARED='$(LINKFORSHARED)'" 1854eof 1855 eval "`cd ${PYTHON_CONFDIR} && make -f ${tmp_mkf} __ | sed '/ directory /d'`" 1856 rm -f ${tmp_mkf} 1857 if test "x$MACOSX" = "xyes" && ${vi_cv_path_python} -c \ 1858 "import sys; sys.exit(${vi_cv_var_python_version} < 2.3)"; then 1859 vi_cv_path_python_plibs="-framework Python" 1860 else 1861 if test "${vi_cv_var_python_version}" = "1.4"; then 1862 vi_cv_path_python_plibs="${PYTHON_CONFDIR}/libModules.a ${PYTHON_CONFDIR}/libPython.a ${PYTHON_CONFDIR}/libObjects.a ${PYTHON_CONFDIR}/libParser.a" 1863 else 1864 vi_cv_path_python_plibs="-L${PYTHON_CONFDIR} -lpython${vi_cv_var_python_version}" 1865 fi 1866 vi_cv_path_python_plibs="${vi_cv_path_python_plibs} ${python_MODLIBS} ${python_LIBS} ${python_SYSLIBS} ${python_LINKFORSHARED}" 1867 vi_cv_path_python_plibs=`echo $vi_cv_path_python_plibs | sed s/-ltermcap//` 1868 fi 1869 1870fi 1871 1872 1873 PYTHON_LIBS="${vi_cv_path_python_plibs}" 1874 if test "${vi_cv_path_python_pfx}" = "${vi_cv_path_python_epfx}"; then 1875 PYTHON_CFLAGS="-I${vi_cv_path_python_pfx}/include/python${vi_cv_var_python_version}" 1876 else 1877 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}" 1878 fi 1879 PYTHON_SRC="if_python.c" 1880 if test "x$MACOSX" = "xyes"; then 1881 PYTHON_OBJ="objects/if_python.o" 1882 else 1883 PYTHON_OBJ="objects/if_python.o objects/py_config.o" 1884 fi 1885 if test "${vi_cv_var_python_version}" = "1.4"; then 1886 PYTHON_OBJ="$PYTHON_OBJ objects/py_getpath.o" 1887 fi 1888 PYTHON_GETPATH_CFLAGS="-DPYTHONPATH='\"${vi_cv_path_pythonpath}\"' -DPREFIX='\"${vi_cv_path_python_pfx}\"' -DEXEC_PREFIX='\"${vi_cv_path_python_epfx}\"'" 1889 1890 echo $ac_n "checking if -pthread should be used""... $ac_c" 1>&6 1891echo "configure:1892: checking if -pthread should be used" >&5 1892 threadsafe_flag= 1893 thread_lib= 1894 if test "x$MACOSX" != "xyes"; then 1895 test "$GCC" = yes && threadsafe_flag="-pthread" 1896 if test "`(uname) 2>/dev/null`" = FreeBSD; then 1897 threadsafe_flag="-D_THREAD_SAFE" 1898 thread_lib="-pthread" 1899 fi 1900 fi 1901 libs_save_old=$LIBS 1902 if test -n "$threadsafe_flag"; then 1903 cflags_save=$CFLAGS 1904 CFLAGS="$CFLAGS $threadsafe_flag" 1905 LIBS="$LIBS $thread_lib" 1906 cat > conftest.$ac_ext <<EOF 1907#line 1908 "configure" 1908#include "confdefs.h" 1909 1910int main() { 1911 1912; return 0; } 1913EOF 1914if { (eval echo configure:1915: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1915 rm -rf conftest* 1916 echo "$ac_t""yes" 1>&6; PYTHON_CFLAGS="$PYTHON_CFLAGS $threadsafe_flag" 1917else 1918 echo "configure: failed program was:" >&5 1919 cat conftest.$ac_ext >&5 1920 rm -rf conftest* 1921 echo "$ac_t""no" 1>&6; LIBS=$libs_save_old 1922 1923fi 1924rm -f conftest* 1925 CFLAGS=$cflags_save 1926 else 1927 echo "$ac_t""no" 1>&6 1928 fi 1929 1930 echo $ac_n "checking if compile and link flags for Python are sane""... $ac_c" 1>&6 1931echo "configure:1932: checking if compile and link flags for Python are sane" >&5 1932 cflags_save=$CFLAGS 1933 libs_save=$LIBS 1934 CFLAGS="$CFLAGS $PYTHON_CFLAGS" 1935 LIBS="$LIBS $PYTHON_LIBS" 1936 cat > conftest.$ac_ext <<EOF 1937#line 1938 "configure" 1938#include "confdefs.h" 1939 1940int main() { 1941 1942; return 0; } 1943EOF 1944if { (eval echo configure:1945: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1945 rm -rf conftest* 1946 echo "$ac_t""yes" 1>&6; python_ok=yes 1947else 1948 echo "configure: failed program was:" >&5 1949 cat conftest.$ac_ext >&5 1950 rm -rf conftest* 1951 echo "$ac_t""no: PYTHON DISABLED" 1>&6; python_ok=no 1952fi 1953rm -f conftest* 1954 CFLAGS=$cflags_save 1955 LIBS=$libs_save 1956 if test $python_ok = yes; then 1957 cat >> confdefs.h <<\EOF 1958#define FEAT_PYTHON 1 1959EOF 1960 1961 else 1962 LIBS=$libs_save_old 1963 PYTHON_SRC= 1964 PYTHON_OBJ= 1965 PYTHON_LIBS= 1966 PYTHON_CFLAGS= 1967 fi 1968 1969 fi 1970 else 1971 echo "$ac_t""too old" 1>&6 1972 fi 1973 fi 1974fi 1975 1976 1977 1978 1979 1980 1981 1982echo $ac_n "checking --enable-tclinterp argument""... $ac_c" 1>&6 1983echo "configure:1984: checking --enable-tclinterp argument" >&5 1984# Check whether --enable-tclinterp or --disable-tclinterp was given. 1985if test "${enable_tclinterp+set}" = set; then 1986 enableval="$enable_tclinterp" 1987 : 1988else 1989 enable_tclinterp="no" 1990fi 1991 1992echo "$ac_t""$enable_tclinterp" 1>&6 1993 1994if test "$enable_tclinterp" = "yes"; then 1995 1996 echo $ac_n "checking --with-tclsh argument""... $ac_c" 1>&6 1997echo "configure:1998: checking --with-tclsh argument" >&5 1998 # Check whether --with-tclsh or --without-tclsh was given. 1999if test "${with_tclsh+set}" = set; then 2000 withval="$with_tclsh" 2001 tclsh_name="$withval"; echo "$ac_t""$tclsh_name" 1>&6 2002else 2003 tclsh_name="tclsh8.0"; echo "$ac_t""no" 1>&6 2004fi 2005 2006 # Extract the first word of "$tclsh_name", so it can be a program name with args. 2007set dummy $tclsh_name; ac_word=$2 2008echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 2009echo "configure:2010: checking for $ac_word" >&5 2010if eval "test \"`echo '$''{'ac_cv_path_vi_cv_path_tcl'+set}'`\" = set"; then 2011 echo $ac_n "(cached) $ac_c" 1>&6 2012else 2013 case "$vi_cv_path_tcl" in 2014 /*) 2015 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path. 2016 ;; 2017 ?:/*) 2018 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a dos path. 2019 ;; 2020 *) 2021 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 2022 ac_dummy="$PATH" 2023 for ac_dir in $ac_dummy; do 2024 test -z "$ac_dir" && ac_dir=. 2025 if test -f $ac_dir/$ac_word; then 2026 ac_cv_path_vi_cv_path_tcl="$ac_dir/$ac_word" 2027 break 2028 fi 2029 done 2030 IFS="$ac_save_ifs" 2031 ;; 2032esac 2033fi 2034vi_cv_path_tcl="$ac_cv_path_vi_cv_path_tcl" 2035if test -n "$vi_cv_path_tcl"; then 2036 echo "$ac_t""$vi_cv_path_tcl" 1>&6 2037else 2038 echo "$ac_t""no" 1>&6 2039fi 2040 2041 2042 2043 if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.0"; then 2044 tclsh_name="tclsh8.2" 2045 # Extract the first word of "$tclsh_name", so it can be a program name with args. 2046set dummy $tclsh_name; ac_word=$2 2047echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 2048echo "configure:2049: checking for $ac_word" >&5 2049if eval "test \"`echo '$''{'ac_cv_path_vi_cv_path_tcl'+set}'`\" = set"; then 2050 echo $ac_n "(cached) $ac_c" 1>&6 2051else 2052 case "$vi_cv_path_tcl" in 2053 /*) 2054 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path. 2055 ;; 2056 ?:/*) 2057 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a dos path. 2058 ;; 2059 *) 2060 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 2061 ac_dummy="$PATH" 2062 for ac_dir in $ac_dummy; do 2063 test -z "$ac_dir" && ac_dir=. 2064 if test -f $ac_dir/$ac_word; then 2065 ac_cv_path_vi_cv_path_tcl="$ac_dir/$ac_word" 2066 break 2067 fi 2068 done 2069 IFS="$ac_save_ifs" 2070 ;; 2071esac 2072fi 2073vi_cv_path_tcl="$ac_cv_path_vi_cv_path_tcl" 2074if test -n "$vi_cv_path_tcl"; then 2075 echo "$ac_t""$vi_cv_path_tcl" 1>&6 2076else 2077 echo "$ac_t""no" 1>&6 2078fi 2079 2080 fi 2081 if test "X$vi_cv_path_tcl" = "X"; then 2082 tclsh_name="tclsh" 2083 # Extract the first word of "$tclsh_name", so it can be a program name with args. 2084set dummy $tclsh_name; ac_word=$2 2085echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 2086echo "configure:2087: checking for $ac_word" >&5 2087if eval "test \"`echo '$''{'ac_cv_path_vi_cv_path_tcl'+set}'`\" = set"; then 2088 echo $ac_n "(cached) $ac_c" 1>&6 2089else 2090 case "$vi_cv_path_tcl" in 2091 /*) 2092 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path. 2093 ;; 2094 ?:/*) 2095 ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a dos path. 2096 ;; 2097 *) 2098 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 2099 ac_dummy="$PATH" 2100 for ac_dir in $ac_dummy; do 2101 test -z "$ac_dir" && ac_dir=. 2102 if test -f $ac_dir/$ac_word; then 2103 ac_cv_path_vi_cv_path_tcl="$ac_dir/$ac_word" 2104 break 2105 fi 2106 done 2107 IFS="$ac_save_ifs" 2108 ;; 2109esac 2110fi 2111vi_cv_path_tcl="$ac_cv_path_vi_cv_path_tcl" 2112if test -n "$vi_cv_path_tcl"; then 2113 echo "$ac_t""$vi_cv_path_tcl" 1>&6 2114else 2115 echo "$ac_t""no" 1>&6 2116fi 2117 2118 fi 2119 if test "X$vi_cv_path_tcl" != "X"; then 2120 echo $ac_n "checking Tcl version""... $ac_c" 1>&6 2121echo "configure:2122: checking Tcl version" >&5 2122 if echo 'exit [expr [info tclversion] < 8.0]' | $vi_cv_path_tcl - ; then 2123 tclver=`echo 'puts [info tclversion]' | $vi_cv_path_tcl -` 2124 echo "$ac_t""$tclver - OK" 1>&6; 2125 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 -` 2126 2127 echo $ac_n "checking for location of Tcl include""... $ac_c" 1>&6 2128echo "configure:2129: checking for location of Tcl include" >&5 2129 if test "x$MACOSX" != "xyes"; then 2130 tclinc="$tclloc/include $tclloc/include/tcl $tclloc/include/tcl$tclver /usr/local/include" 2131 else 2132 tclinc="/System/Library/Frameworks/Tcl.framework/Headers" 2133 fi 2134 for try in $tclinc; do 2135 if test -f "$try/tcl.h"; then 2136 echo "$ac_t""$try/tcl.h" 1>&6 2137 TCL_INC=$try 2138 break 2139 fi 2140 done 2141 if test -z "$TCL_INC"; then 2142 echo "$ac_t""<not found>" 1>&6 2143 SKIP_TCL=YES 2144 fi 2145 if test -z "$SKIP_TCL"; then 2146 echo $ac_n "checking for location of tclConfig.sh script""... $ac_c" 1>&6 2147echo "configure:2148: checking for location of tclConfig.sh script" >&5 2148 if test "x$MACOSX" != "xyes"; then 2149 tclcnf=`echo $tclinc | sed s/include/lib/g` 2150 else 2151 tclcnf="/System/Library/Frameworks/Tcl.framework" 2152 fi 2153 for try in $tclcnf; do 2154 if test -f $try/tclConfig.sh; then 2155 echo "$ac_t""$try/tclConfig.sh" 1>&6 2156 . $try/tclConfig.sh 2157 TCL_LIBS=`eval echo "$TCL_LIB_SPEC $TCL_LIBS"` 2158 TCL_DEFS=`echo $TCL_DEFS | tr ' ' '\012' | sed -e '/^-[^D]/d' -e '/-D[^_]/d' -e 's/-D_/ -D_/' | tr -d '\012'` 2159 break 2160 fi 2161 done 2162 if test -z "$TCL_LIBS"; then 2163 echo "$ac_t""<not found>" 1>&6 2164 echo $ac_n "checking for Tcl library by myself""... $ac_c" 1>&6 2165echo "configure:2166: checking for Tcl library by myself" >&5 2166 tcllib=`echo $tclinc | sed s/include/lib/g` 2167 for ext in .so .a ; do 2168 for ver in "" $tclver ; do 2169 for try in $tcllib ; do 2170 trylib=tcl$ver$ext 2171 if test -f $try/lib$trylib ; then 2172 echo "$ac_t""$try/lib$trylib" 1>&6 2173 TCL_LIBS="-L$try -ltcl$ver -ldl -lm" 2174 if test "`(uname) 2>/dev/null`" = SunOS && 2175 uname -r | grep '^5' >/dev/null; then 2176 TCL_LIBS="$TCL_LIBS -R $try" 2177 fi 2178 break 3 2179 fi 2180 done 2181 done 2182 done 2183 if test -z "$TCL_LIBS"; then 2184 echo "$ac_t""<not found>" 1>&6 2185 SKIP_TCL=YES 2186 fi 2187 fi 2188 if test -z "$SKIP_TCL"; then 2189 cat >> confdefs.h <<\EOF 2190#define FEAT_TCL 1 2191EOF 2192 2193 TCL_SRC=if_tcl.c 2194 TCL_OBJ=objects/if_tcl.o 2195 TCL_PRO=if_tcl.pro 2196 TCL_CFLAGS="-I$TCL_INC $TCL_DEFS" 2197 fi 2198 fi 2199 else 2200 echo "$ac_t""too old; need Tcl version 8.0 or later" 1>&6 2201 fi 2202 fi 2203fi 2204 2205 2206 2207 2208 2209 2210echo $ac_n "checking --enable-rubyinterp argument""... $ac_c" 1>&6 2211echo "configure:2212: checking --enable-rubyinterp argument" >&5 2212# Check whether --enable-rubyinterp or --disable-rubyinterp was given. 2213if test "${enable_rubyinterp+set}" = set; then 2214 enableval="$enable_rubyinterp" 2215 : 2216else 2217 enable_rubyinterp="no" 2218fi 2219 2220echo "$ac_t""$enable_rubyinterp" 1>&6 2221if test "$enable_rubyinterp" = "yes"; then 2222 2223 # Extract the first word of "ruby", so it can be a program name with args. 2224set dummy ruby; ac_word=$2 2225echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 2226echo "configure:2227: checking for $ac_word" >&5 2227if eval "test \"`echo '$''{'ac_cv_path_vi_cv_path_ruby'+set}'`\" = set"; then 2228 echo $ac_n "(cached) $ac_c" 1>&6 2229else 2230 case "$vi_cv_path_ruby" in 2231 /*) 2232 ac_cv_path_vi_cv_path_ruby="$vi_cv_path_ruby" # Let the user override the test with a path. 2233 ;; 2234 ?:/*) 2235 ac_cv_path_vi_cv_path_ruby="$vi_cv_path_ruby" # Let the user override the test with a dos path. 2236 ;; 2237 *) 2238 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 2239 ac_dummy="$PATH" 2240 for ac_dir in $ac_dummy; do 2241 test -z "$ac_dir" && ac_dir=. 2242 if test -f $ac_dir/$ac_word; then 2243 ac_cv_path_vi_cv_path_ruby="$ac_dir/$ac_word" 2244 break 2245 fi 2246 done 2247 IFS="$ac_save_ifs" 2248 ;; 2249esac 2250fi 2251vi_cv_path_ruby="$ac_cv_path_vi_cv_path_ruby" 2252if test -n "$vi_cv_path_ruby"; then 2253 echo "$ac_t""$vi_cv_path_ruby" 1>&6 2254else 2255 echo "$ac_t""no" 1>&6 2256fi 2257 2258 if test "X$vi_cv_path_ruby" != "X"; then 2259 echo $ac_n "checking Ruby version""... $ac_c" 1>&6 2260echo "configure:2261: checking Ruby version" >&5 2261 if $vi_cv_path_ruby -e 'VERSION >= "1.6.0" or exit 1' >/dev/null 2>/dev/null; then 2262 echo "$ac_t""OK" 1>&6 2263 echo $ac_n "checking Ruby header files""... $ac_c" 1>&6 2264echo "configure:2265: checking Ruby header files" >&5 2265 rubyhdrdir=`$vi_cv_path_ruby -r mkmf -e 'print Config::CONFIG["archdir"] || $hdrdir' 2>/dev/null` 2266 if test "X$rubyhdrdir" != "X"; then 2267 echo "$ac_t""$rubyhdrdir" 1>&6 2268 RUBY_CFLAGS="-I$rubyhdrdir" 2269 rubylibs=`$vi_cv_path_ruby -r rbconfig -e 'print Config::CONFIG["LIBS"]'` 2270 if test "X$rubylibs" != "X"; then 2271 RUBY_LIBS="$rubylibs" 2272 fi 2273 librubyarg=`$vi_cv_path_ruby -r rbconfig -e 'print Config.expand(Config::CONFIG["LIBRUBYARG"])'` 2274 if test -f "$rubyhdrdir/$librubyarg"; then 2275 librubyarg="$rubyhdrdir/$librubyarg" 2276 else 2277 rubylibdir=`$vi_cv_path_ruby -r rbconfig -e 'print Config.expand(Config::CONFIG["libdir"])'` 2278 if test -f "$rubylibdir/$librubyarg"; then 2279 librubyarg="$rubylibdir/$librubyarg" 2280 elif test "$librubyarg" = "libruby.a"; then 2281 librubyarg="-lruby" 2282 else 2283 librubyarg=`$vi_cv_path_ruby -r rbconfig -e "print '$librubyarg'.gsub(/-L\./, %'-L#{Config.expand(Config::CONFIG[\"libdir\"])}')"` 2284 fi 2285 fi 2286 2287 if test "X$librubyarg" != "X"; then 2288 RUBY_LIBS="$librubyarg $RUBY_LIBS" 2289 fi 2290 rubyldflags=`$vi_cv_path_ruby -r rbconfig -e 'print Config::CONFIG["LDFLAGS"]'` 2291 if test "X$rubyldflags" != "X"; then 2292 LDFLAGS="$rubyldflags $LDFLAGS" 2293 fi 2294 RUBY_SRC="if_ruby.c" 2295 RUBY_OBJ="objects/if_ruby.o" 2296 RUBY_PRO="if_ruby.pro" 2297 cat >> confdefs.h <<\EOF 2298#define FEAT_RUBY 1 2299EOF 2300 2301 else 2302 echo "$ac_t""not found" 1>&6 2303 fi 2304 else 2305 echo "$ac_t""too old; need Ruby version 1.6.0 or later" 1>&6 2306 fi 2307 fi 2308fi 2309 2310 2311 2312 2313 2314 2315echo $ac_n "checking --enable-cscope argument""... $ac_c" 1>&6 2316echo "configure:2317: checking --enable-cscope argument" >&5 2317# Check whether --enable-cscope or --disable-cscope was given. 2318if test "${enable_cscope+set}" = set; then 2319 enableval="$enable_cscope" 2320 : 2321else 2322 enable_cscope="no" 2323fi 2324 2325echo "$ac_t""$enable_cscope" 1>&6 2326if test "$enable_cscope" = "yes"; then 2327 cat >> confdefs.h <<\EOF 2328#define FEAT_CSCOPE 1 2329EOF 2330 2331fi 2332 2333echo $ac_n "checking --enable-workshop argument""... $ac_c" 1>&6 2334echo "configure:2335: checking --enable-workshop argument" >&5 2335# Check whether --enable-workshop or --disable-workshop was given. 2336if test "${enable_workshop+set}" = set; then 2337 enableval="$enable_workshop" 2338 : 2339else 2340 enable_workshop="no" 2341fi 2342 2343echo "$ac_t""$enable_workshop" 1>&6 2344if test "$enable_workshop" = "yes"; then 2345 cat >> confdefs.h <<\EOF 2346#define FEAT_SUN_WORKSHOP 1 2347EOF 2348 2349 WORKSHOP_SRC="workshop.c integration.c" 2350 2351 WORKSHOP_OBJ="objects/workshop.o objects/integration.o" 2352 2353 if test "${enable_gui-xxx}" = xxx; then 2354 enable_gui=motif 2355 fi 2356fi 2357 2358echo $ac_n "checking --disable-netbeans argument""... $ac_c" 1>&6 2359echo "configure:2360: checking --disable-netbeans argument" >&5 2360# Check whether --enable-netbeans or --disable-netbeans was given. 2361if test "${enable_netbeans+set}" = set; then 2362 enableval="$enable_netbeans" 2363 : 2364else 2365 enable_netbeans="yes" 2366fi 2367 2368if test "$enable_netbeans" = "yes"; then 2369 echo "$ac_t""no" 1>&6 2370 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6 2371echo "configure:2372: checking for socket in -lsocket" >&5 2372ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'` 2373if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 2374 echo $ac_n "(cached) $ac_c" 1>&6 2375else 2376 ac_save_LIBS="$LIBS" 2377LIBS="-lsocket $LIBS" 2378cat > conftest.$ac_ext <<EOF 2379#line 2380 "configure" 2380#include "confdefs.h" 2381/* Override any gcc2 internal prototype to avoid an error. */ 2382/* We use char because int might match the return type of a gcc2 2383 builtin and then its argument prototype would still apply. */ 2384char socket(); 2385 2386int main() { 2387socket() 2388; return 0; } 2389EOF 2390if { (eval echo configure:2391: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2391 rm -rf conftest* 2392 eval "ac_cv_lib_$ac_lib_var=yes" 2393else 2394 echo "configure: failed program was:" >&5 2395 cat conftest.$ac_ext >&5 2396 rm -rf conftest* 2397 eval "ac_cv_lib_$ac_lib_var=no" 2398fi 2399rm -f conftest* 2400LIBS="$ac_save_LIBS" 2401 2402fi 2403if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 2404 echo "$ac_t""yes" 1>&6 2405 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \ 2406 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 2407 cat >> confdefs.h <<EOF 2408#define $ac_tr_lib 1 2409EOF 2410 2411 LIBS="-lsocket $LIBS" 2412 2413else 2414 echo "$ac_t""no" 1>&6 2415fi 2416 2417 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 2418echo "configure:2419: checking for gethostbyname in -lnsl" >&5 2419ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` 2420if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 2421 echo $ac_n "(cached) $ac_c" 1>&6 2422else 2423 ac_save_LIBS="$LIBS" 2424LIBS="-lnsl $LIBS" 2425cat > conftest.$ac_ext <<EOF 2426#line 2427 "configure" 2427#include "confdefs.h" 2428/* Override any gcc2 internal prototype to avoid an error. */ 2429/* We use char because int might match the return type of a gcc2 2430 builtin and then its argument prototype would still apply. */ 2431char gethostbyname(); 2432 2433int main() { 2434gethostbyname() 2435; return 0; } 2436EOF 2437if { (eval echo configure:2438: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2438 rm -rf conftest* 2439 eval "ac_cv_lib_$ac_lib_var=yes" 2440else 2441 echo "configure: failed program was:" >&5 2442 cat conftest.$ac_ext >&5 2443 rm -rf conftest* 2444 eval "ac_cv_lib_$ac_lib_var=no" 2445fi 2446rm -f conftest* 2447LIBS="$ac_save_LIBS" 2448 2449fi 2450if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 2451 echo "$ac_t""yes" 1>&6 2452 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \ 2453 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 2454 cat >> confdefs.h <<EOF 2455#define $ac_tr_lib 1 2456EOF 2457 2458 LIBS="-lnsl $LIBS" 2459 2460else 2461 echo "$ac_t""no" 1>&6 2462fi 2463 2464 echo $ac_n "checking whether compiling netbeans integration is possible""... $ac_c" 1>&6 2465echo "configure:2466: checking whether compiling netbeans integration is possible" >&5 2466 cat > conftest.$ac_ext <<EOF 2467#line 2468 "configure" 2468#include "confdefs.h" 2469 2470#include <stdio.h> 2471#include <stdlib.h> 2472#include <stdarg.h> 2473#include <fcntl.h> 2474#include <netdb.h> 2475#include <netinet/in.h> 2476#include <errno.h> 2477#include <sys/types.h> 2478#include <sys/socket.h> 2479 /* Check bitfields */ 2480 struct nbbuf { 2481 unsigned int initDone:1; 2482 ushort signmaplen; 2483 }; 2484 2485int main() { 2486 2487 /* Check creating a socket. */ 2488 struct sockaddr_in server; 2489 (void)socket(AF_INET, SOCK_STREAM, 0); 2490 (void)htons(100); 2491 (void)gethostbyname("microsoft.com"); 2492 if (errno == ECONNREFUSED) 2493 (void)connect(1, (struct sockaddr *)&server, sizeof(server)); 2494 2495; return 0; } 2496EOF 2497if { (eval echo configure:2498: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2498 rm -rf conftest* 2499 echo "$ac_t""yes" 1>&6 2500else 2501 echo "configure: failed program was:" >&5 2502 cat conftest.$ac_ext >&5 2503 rm -rf conftest* 2504 echo "$ac_t""no" 1>&6; enable_netbeans="no" 2505fi 2506rm -f conftest* 2507else 2508 echo "$ac_t""yes" 1>&6 2509fi 2510if test "$enable_netbeans" = "yes"; then 2511 cat >> confdefs.h <<\EOF 2512#define FEAT_NETBEANS_INTG 1 2513EOF 2514 2515 NETBEANS_SRC="netbeans.c" 2516 2517 NETBEANS_OBJ="objects/netbeans.o" 2518 2519fi 2520 2521echo $ac_n "checking --enable-sniff argument""... $ac_c" 1>&6 2522echo "configure:2523: checking --enable-sniff argument" >&5 2523# Check whether --enable-sniff or --disable-sniff was given. 2524if test "${enable_sniff+set}" = set; then 2525 enableval="$enable_sniff" 2526 : 2527else 2528 enable_sniff="no" 2529fi 2530 2531echo "$ac_t""$enable_sniff" 1>&6 2532if test "$enable_sniff" = "yes"; then 2533 cat >> confdefs.h <<\EOF 2534#define FEAT_SNIFF 1 2535EOF 2536 2537 SNIFF_SRC="if_sniff.c" 2538 2539 SNIFF_OBJ="objects/if_sniff.o" 2540 2541fi 2542 2543echo $ac_n "checking --enable-multibyte argument""... $ac_c" 1>&6 2544echo "configure:2545: checking --enable-multibyte argument" >&5 2545# Check whether --enable-multibyte or --disable-multibyte was given. 2546if test "${enable_multibyte+set}" = set; then 2547 enableval="$enable_multibyte" 2548 : 2549else 2550 enable_multibyte="no" 2551fi 2552 2553echo "$ac_t""$enable_multibyte" 1>&6 2554if test "$enable_multibyte" = "yes"; then 2555 cat >> confdefs.h <<\EOF 2556#define FEAT_MBYTE 1 2557EOF 2558 2559fi 2560 2561echo $ac_n "checking --enable-hangulinput argument""... $ac_c" 1>&6 2562echo "configure:2563: checking --enable-hangulinput argument" >&5 2563# Check whether --enable-hangulinput or --disable-hangulinput was given. 2564if test "${enable_hangulinput+set}" = set; then 2565 enableval="$enable_hangulinput" 2566 : 2567else 2568 enable_hangulinput="no" 2569fi 2570 2571echo "$ac_t""$enable_hangulinput" 1>&6 2572 2573echo $ac_n "checking --enable-xim argument""... $ac_c" 1>&6 2574echo "configure:2575: checking --enable-xim argument" >&5 2575# Check whether --enable-xim or --disable-xim was given. 2576if test "${enable_xim+set}" = set; then 2577 enableval="$enable_xim" 2578 echo "$ac_t""$enable_xim" 1>&6 2579else 2580 enable_xim="auto"; echo "$ac_t""defaulting to auto" 1>&6 2581fi 2582 2583 2584echo $ac_n "checking --enable-fontset argument""... $ac_c" 1>&6 2585echo "configure:2586: checking --enable-fontset argument" >&5 2586# Check whether --enable-fontset or --disable-fontset was given. 2587if test "${enable_fontset+set}" = set; then 2588 enableval="$enable_fontset" 2589 : 2590else 2591 enable_fontset="no" 2592fi 2593 2594echo "$ac_t""$enable_fontset" 1>&6 2595 2596test -z "$with_x" && with_x=yes 2597test "${enable_gui-yes}" != no -a "x$MACOSX" != "xyes" -a "x$QNX" != "xyes" && with_x=yes 2598if test "$with_x" = no; then 2599 echo "$ac_t""defaulting to: don't HAVE_X11" 1>&6 2600else 2601 2602 # Extract the first word of "xmkmf", so it can be a program name with args. 2603set dummy xmkmf; ac_word=$2 2604echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 2605echo "configure:2606: checking for $ac_word" >&5 2606if eval "test \"`echo '$''{'ac_cv_path_xmkmfpath'+set}'`\" = set"; then 2607 echo $ac_n "(cached) $ac_c" 1>&6 2608else 2609 case "$xmkmfpath" in 2610 /*) 2611 ac_cv_path_xmkmfpath="$xmkmfpath" # Let the user override the test with a path. 2612 ;; 2613 ?:/*) 2614 ac_cv_path_xmkmfpath="$xmkmfpath" # Let the user override the test with a dos path. 2615 ;; 2616 *) 2617 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 2618 ac_dummy="$PATH" 2619 for ac_dir in $ac_dummy; do 2620 test -z "$ac_dir" && ac_dir=. 2621 if test -f $ac_dir/$ac_word; then 2622 ac_cv_path_xmkmfpath="$ac_dir/$ac_word" 2623 break 2624 fi 2625 done 2626 IFS="$ac_save_ifs" 2627 ;; 2628esac 2629fi 2630xmkmfpath="$ac_cv_path_xmkmfpath" 2631if test -n "$xmkmfpath"; then 2632 echo "$ac_t""$xmkmfpath" 1>&6 2633else 2634 echo "$ac_t""no" 1>&6 2635fi 2636 2637 2638 # If we find X, set shell vars x_includes and x_libraries to the 2639# paths, otherwise set no_x=yes. 2640# Uses ac_ vars as temps to allow command line to override cache and checks. 2641# --without-x overrides everything else, but does not touch the cache. 2642echo $ac_n "checking for X""... $ac_c" 1>&6 2643echo "configure:2644: checking for X" >&5 2644 2645# Check whether --with-x or --without-x was given. 2646if test "${with_x+set}" = set; then 2647 withval="$with_x" 2648 : 2649fi 2650 2651# $have_x is `yes', `no', `disabled', or empty when we do not yet know. 2652if test "x$with_x" = xno; then 2653 # The user explicitly disabled X. 2654 have_x=disabled 2655else 2656 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then 2657 # Both variables are already set. 2658 have_x=yes 2659 else 2660if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then 2661 echo $ac_n "(cached) $ac_c" 1>&6 2662else 2663 # One or both of the vars are not set, and there is no cached value. 2664ac_x_includes=NO ac_x_libraries=NO 2665rm -fr conftestdir 2666if mkdir conftestdir; then 2667 cd conftestdir 2668 # Make sure to not put "make" in the Imakefile rules, since we grep it out. 2669 cat > Imakefile <<'EOF' 2670acfindx: 2671 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' 2672EOF 2673 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then 2674 # GNU make sometimes prints "make[1]: Entering...", which would confuse us. 2675 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` 2676 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. 2677 for ac_extension in a so sl; do 2678 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && 2679 test -f $ac_im_libdir/libX11.$ac_extension; then 2680 ac_im_usrlibdir=$ac_im_libdir; break 2681 fi 2682 done 2683 # Screen out bogus values from the imake configuration. They are 2684 # bogus both because they are the default anyway, and because 2685 # using them would break gcc on systems where it needs fixed includes. 2686 case "$ac_im_incroot" in 2687 /usr/include) ;; 2688 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;; 2689 esac 2690 case "$ac_im_usrlibdir" in 2691 /usr/lib | /lib) ;; 2692 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;; 2693 esac 2694 fi 2695 cd .. 2696 rm -fr conftestdir 2697fi 2698 2699if test "$ac_x_includes" = NO; then 2700 # Guess where to find include files, by looking for this one X11 .h file. 2701 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h 2702 2703 # First, try using that file with no special directory specified. 2704cat > conftest.$ac_ext <<EOF 2705#line 2706 "configure" 2706#include "confdefs.h" 2707#include <$x_direct_test_include> 2708EOF 2709ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2710{ (eval echo configure:2711: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2711ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2712if test -z "$ac_err"; then 2713 rm -rf conftest* 2714 # We can compile using X headers with no special include directory. 2715ac_x_includes= 2716else 2717 echo "$ac_err" >&5 2718 echo "configure: failed program was:" >&5 2719 cat conftest.$ac_ext >&5 2720 rm -rf conftest* 2721 # Look for the header file in a standard set of common directories. 2722# Check X11 before X11Rn because it is often a symlink to the current release. 2723 for ac_dir in \ 2724 /usr/X11/include \ 2725 /usr/X11R6/include \ 2726 /usr/X11R5/include \ 2727 /usr/X11R4/include \ 2728 \ 2729 /usr/include/X11 \ 2730 /usr/include/X11R6 \ 2731 /usr/include/X11R5 \ 2732 /usr/include/X11R4 \ 2733 \ 2734 /usr/local/X11/include \ 2735 /usr/local/X11R6/include \ 2736 /usr/local/X11R5/include \ 2737 /usr/local/X11R4/include \ 2738 \ 2739 /usr/local/include/X11 \ 2740 /usr/local/include/X11R6 \ 2741 /usr/local/include/X11R5 \ 2742 /usr/local/include/X11R4 \ 2743 \ 2744 /usr/X386/include \ 2745 /usr/x386/include \ 2746 /usr/XFree86/include/X11 \ 2747 \ 2748 /usr/include \ 2749 /usr/local/include \ 2750 /usr/unsupported/include \ 2751 /usr/athena/include \ 2752 /usr/local/x11r5/include \ 2753 /usr/lpp/Xamples/include \ 2754 \ 2755 /usr/openwin/include \ 2756 /usr/openwin/share/include \ 2757 ; \ 2758 do 2759 if test -r "$ac_dir/$x_direct_test_include"; then 2760 ac_x_includes=$ac_dir 2761 break 2762 fi 2763 done 2764fi 2765rm -f conftest* 2766fi # $ac_x_includes = NO 2767 2768if test "$ac_x_libraries" = NO; then 2769 # Check for the libraries. 2770 2771 test -z "$x_direct_test_library" && x_direct_test_library=Xt 2772 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc 2773 2774 # See if we find them without any special options. 2775 # Don't add to $LIBS permanently. 2776 ac_save_LIBS="$LIBS" 2777 LIBS="-l$x_direct_test_library $LIBS" 2778cat > conftest.$ac_ext <<EOF 2779#line 2780 "configure" 2780#include "confdefs.h" 2781 2782int main() { 2783${x_direct_test_function}() 2784; return 0; } 2785EOF 2786if { (eval echo configure:2787: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2787 rm -rf conftest* 2788 LIBS="$ac_save_LIBS" 2789# We can link X programs with no special library path. 2790ac_x_libraries= 2791else 2792 echo "configure: failed program was:" >&5 2793 cat conftest.$ac_ext >&5 2794 rm -rf conftest* 2795 LIBS="$ac_save_LIBS" 2796# First see if replacing the include by lib works. 2797# Check X11 before X11Rn because it is often a symlink to the current release. 2798for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \ 2799 /usr/X11/lib \ 2800 /usr/X11R6/lib \ 2801 /usr/X11R5/lib \ 2802 /usr/X11R4/lib \ 2803 \ 2804 /usr/lib/X11 \ 2805 /usr/lib/X11R6 \ 2806 /usr/lib/X11R5 \ 2807 /usr/lib/X11R4 \ 2808 \ 2809 /usr/local/X11/lib \ 2810 /usr/local/X11R6/lib \ 2811 /usr/local/X11R5/lib \ 2812 /usr/local/X11R4/lib \ 2813 \ 2814 /usr/local/lib/X11 \ 2815 /usr/local/lib/X11R6 \ 2816 /usr/local/lib/X11R5 \ 2817 /usr/local/lib/X11R4 \ 2818 \ 2819 /usr/X386/lib \ 2820 /usr/x386/lib \ 2821 /usr/XFree86/lib/X11 \ 2822 \ 2823 /usr/lib \ 2824 /usr/local/lib \ 2825 /usr/unsupported/lib \ 2826 /usr/athena/lib \ 2827 /usr/local/x11r5/lib \ 2828 /usr/lpp/Xamples/lib \ 2829 /lib/usr/lib/X11 \ 2830 \ 2831 /usr/openwin/lib \ 2832 /usr/openwin/share/lib \ 2833 ; \ 2834do 2835 for ac_extension in a so sl; do 2836 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then 2837 ac_x_libraries=$ac_dir 2838 break 2 2839 fi 2840 done 2841done 2842fi 2843rm -f conftest* 2844fi # $ac_x_libraries = NO 2845 2846if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then 2847 # Didn't find X anywhere. Cache the known absence of X. 2848 ac_cv_have_x="have_x=no" 2849else 2850 # Record where we found X for the cache. 2851 ac_cv_have_x="have_x=yes \ 2852 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" 2853fi 2854fi 2855 fi 2856 eval "$ac_cv_have_x" 2857fi # $with_x != no 2858 2859if test "$have_x" != yes; then 2860 echo "$ac_t""$have_x" 1>&6 2861 no_x=yes 2862else 2863 # If each of the values was on the command line, it overrides each guess. 2864 test "x$x_includes" = xNONE && x_includes=$ac_x_includes 2865 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 2866 # Update the cache value to reflect the command line values. 2867 ac_cv_have_x="have_x=yes \ 2868 ac_x_includes=$x_includes ac_x_libraries=$x_libraries" 2869 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6 2870fi 2871 2872if test "$no_x" = yes; then 2873 # Not all programs may use this symbol, but it does not hurt to define it. 2874 cat >> confdefs.h <<\EOF 2875#define X_DISPLAY_MISSING 1 2876EOF 2877 2878 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= 2879else 2880 if test -n "$x_includes"; then 2881 X_CFLAGS="$X_CFLAGS -I$x_includes" 2882 fi 2883 2884 # It would also be nice to do this for all -L options, not just this one. 2885 if test -n "$x_libraries"; then 2886 X_LIBS="$X_LIBS -L$x_libraries" 2887 # For Solaris; some versions of Sun CC require a space after -R and 2888 # others require no space. Words are not sufficient . . . . 2889 case "`(uname -sr) 2>/dev/null`" in 2890 "SunOS 5"*) 2891 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6 2892echo "configure:2893: checking whether -R must be followed by a space" >&5 2893 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries" 2894 cat > conftest.$ac_ext <<EOF 2895#line 2896 "configure" 2896#include "confdefs.h" 2897 2898int main() { 2899 2900; return 0; } 2901EOF 2902if { (eval echo configure:2903: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2903 rm -rf conftest* 2904 ac_R_nospace=yes 2905else 2906 echo "configure: failed program was:" >&5 2907 cat conftest.$ac_ext >&5 2908 rm -rf conftest* 2909 ac_R_nospace=no 2910fi 2911rm -f conftest* 2912 if test $ac_R_nospace = yes; then 2913 echo "$ac_t""no" 1>&6 2914 X_LIBS="$X_LIBS -R$x_libraries" 2915 else 2916 LIBS="$ac_xsave_LIBS -R $x_libraries" 2917 cat > conftest.$ac_ext <<EOF 2918#line 2919 "configure" 2919#include "confdefs.h" 2920 2921int main() { 2922 2923; return 0; } 2924EOF 2925if { (eval echo configure:2926: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2926 rm -rf conftest* 2927 ac_R_space=yes 2928else 2929 echo "configure: failed program was:" >&5 2930 cat conftest.$ac_ext >&5 2931 rm -rf conftest* 2932 ac_R_space=no 2933fi 2934rm -f conftest* 2935 if test $ac_R_space = yes; then 2936 echo "$ac_t""yes" 1>&6 2937 X_LIBS="$X_LIBS -R $x_libraries" 2938 else 2939 echo "$ac_t""neither works" 1>&6 2940 fi 2941 fi 2942 LIBS="$ac_xsave_LIBS" 2943 esac 2944 fi 2945 2946 # Check for system-dependent libraries X programs must link with. 2947 # Do this before checking for the system-independent R6 libraries 2948 # (-lICE), since we may need -lsocket or whatever for X linking. 2949 2950 if test "$ISC" = yes; then 2951 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" 2952 else 2953 # [email protected] says this is needed for Ultrix, if the X 2954 # libraries were built with DECnet support. And [email protected] says 2955 # the Alpha needs dnet_stub (dnet does not exist). 2956 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 2957echo "configure:2958: checking for dnet_ntoa in -ldnet" >&5 2958ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` 2959if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 2960 echo $ac_n "(cached) $ac_c" 1>&6 2961else 2962 ac_save_LIBS="$LIBS" 2963LIBS="-ldnet $LIBS" 2964cat > conftest.$ac_ext <<EOF 2965#line 2966 "configure" 2966#include "confdefs.h" 2967/* Override any gcc2 internal prototype to avoid an error. */ 2968/* We use char because int might match the return type of a gcc2 2969 builtin and then its argument prototype would still apply. */ 2970char dnet_ntoa(); 2971 2972int main() { 2973dnet_ntoa() 2974; return 0; } 2975EOF 2976if { (eval echo configure:2977: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2977 rm -rf conftest* 2978 eval "ac_cv_lib_$ac_lib_var=yes" 2979else 2980 echo "configure: failed program was:" >&5 2981 cat conftest.$ac_ext >&5 2982 rm -rf conftest* 2983 eval "ac_cv_lib_$ac_lib_var=no" 2984fi 2985rm -f conftest* 2986LIBS="$ac_save_LIBS" 2987 2988fi 2989if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 2990 echo "$ac_t""yes" 1>&6 2991 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" 2992else 2993 echo "$ac_t""no" 1>&6 2994fi 2995 2996 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 2997 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6 2998echo "configure:2999: checking for dnet_ntoa in -ldnet_stub" >&5 2999ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'` 3000if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 3001 echo $ac_n "(cached) $ac_c" 1>&6 3002else 3003 ac_save_LIBS="$LIBS" 3004LIBS="-ldnet_stub $LIBS" 3005cat > conftest.$ac_ext <<EOF 3006#line 3007 "configure" 3007#include "confdefs.h" 3008/* Override any gcc2 internal prototype to avoid an error. */ 3009/* We use char because int might match the return type of a gcc2 3010 builtin and then its argument prototype would still apply. */ 3011char dnet_ntoa(); 3012 3013int main() { 3014dnet_ntoa() 3015; return 0; } 3016EOF 3017if { (eval echo configure:3018: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3018 rm -rf conftest* 3019 eval "ac_cv_lib_$ac_lib_var=yes" 3020else 3021 echo "configure: failed program was:" >&5 3022 cat conftest.$ac_ext >&5 3023 rm -rf conftest* 3024 eval "ac_cv_lib_$ac_lib_var=no" 3025fi 3026rm -f conftest* 3027LIBS="$ac_save_LIBS" 3028 3029fi 3030if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 3031 echo "$ac_t""yes" 1>&6 3032 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" 3033else 3034 echo "$ac_t""no" 1>&6 3035fi 3036 3037 fi 3038 3039 # [email protected] says -lnsl (and -lsocket) are needed for his 386/AT, 3040 # to get the SysV transport functions. 3041 # [email protected] says the Pyramis MIS-ES running DC/OSx (SVR4) 3042 # needs -lnsl. 3043 # The nsl library prevents programs from opening the X display 3044 # on Irix 5.2, according to [email protected]. 3045 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 3046echo "configure:3047: checking for gethostbyname" >&5 3047if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then 3048 echo $ac_n "(cached) $ac_c" 1>&6 3049else 3050 cat > conftest.$ac_ext <<EOF 3051#line 3052 "configure" 3052#include "confdefs.h" 3053/* System header to define __stub macros and hopefully few prototypes, 3054 which can conflict with char gethostbyname(); below. */ 3055#include <assert.h> 3056/* Override any gcc2 internal prototype to avoid an error. */ 3057/* We use char because int might match the return type of a gcc2 3058 builtin and then its argument prototype would still apply. */ 3059char gethostbyname(); 3060 3061int main() { 3062 3063/* The GNU C library defines this for functions which it implements 3064 to always fail with ENOSYS. Some functions are actually named 3065 something starting with __ and the normal name is an alias. */ 3066#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) 3067choke me 3068#else 3069gethostbyname(); 3070#endif 3071 3072; return 0; } 3073EOF 3074if { (eval echo configure:3075: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3075 rm -rf conftest* 3076 eval "ac_cv_func_gethostbyname=yes" 3077else 3078 echo "configure: failed program was:" >&5 3079 cat conftest.$ac_ext >&5 3080 rm -rf conftest* 3081 eval "ac_cv_func_gethostbyname=no" 3082fi 3083rm -f conftest* 3084fi 3085 3086if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then 3087 echo "$ac_t""yes" 1>&6 3088 : 3089else 3090 echo "$ac_t""no" 1>&6 3091fi 3092 3093 if test $ac_cv_func_gethostbyname = no; then 3094 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 3095echo "configure:3096: checking for gethostbyname in -lnsl" >&5 3096ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` 3097if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 3098 echo $ac_n "(cached) $ac_c" 1>&6 3099else 3100 ac_save_LIBS="$LIBS" 3101LIBS="-lnsl $LIBS" 3102cat > conftest.$ac_ext <<EOF 3103#line 3104 "configure" 3104#include "confdefs.h" 3105/* Override any gcc2 internal prototype to avoid an error. */ 3106/* We use char because int might match the return type of a gcc2 3107 builtin and then its argument prototype would still apply. */ 3108char gethostbyname(); 3109 3110int main() { 3111gethostbyname() 3112; return 0; } 3113EOF 3114if { (eval echo configure:3115: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3115 rm -rf conftest* 3116 eval "ac_cv_lib_$ac_lib_var=yes" 3117else 3118 echo "configure: failed program was:" >&5 3119 cat conftest.$ac_ext >&5 3120 rm -rf conftest* 3121 eval "ac_cv_lib_$ac_lib_var=no" 3122fi 3123rm -f conftest* 3124LIBS="$ac_save_LIBS" 3125 3126fi 3127if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 3128 echo "$ac_t""yes" 1>&6 3129 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" 3130else 3131 echo "$ac_t""no" 1>&6 3132fi 3133 3134 fi 3135 3136 # [email protected] says without -lsocket, 3137 # socket/setsockopt and other routines are undefined under SCO ODT 3138 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary 3139 # on later versions), says [email protected]: it contains 3140 # gethostby* variants that don't use the nameserver (or something). 3141 # -lsocket must be given before -lnsl if both are needed. 3142 # We assume that if connect needs -lnsl, so does gethostbyname. 3143 echo $ac_n "checking for connect""... $ac_c" 1>&6 3144echo "configure:3145: checking for connect" >&5 3145if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then 3146 echo $ac_n "(cached) $ac_c" 1>&6 3147else 3148 cat > conftest.$ac_ext <<EOF 3149#line 3150 "configure" 3150#include "confdefs.h" 3151/* System header to define __stub macros and hopefully few prototypes, 3152 which can conflict with char connect(); below. */ 3153#include <assert.h> 3154/* Override any gcc2 internal prototype to avoid an error. */ 3155/* We use char because int might match the return type of a gcc2 3156 builtin and then its argument prototype would still apply. */ 3157char connect(); 3158 3159int main() { 3160 3161/* The GNU C library defines this for functions which it implements 3162 to always fail with ENOSYS. Some functions are actually named 3163 something starting with __ and the normal name is an alias. */ 3164#if defined (__stub_connect) || defined (__stub___connect) 3165choke me 3166#else 3167connect(); 3168#endif 3169 3170; return 0; } 3171EOF 3172if { (eval echo configure:3173: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3173 rm -rf conftest* 3174 eval "ac_cv_func_connect=yes" 3175else 3176 echo "configure: failed program was:" >&5 3177 cat conftest.$ac_ext >&5 3178 rm -rf conftest* 3179 eval "ac_cv_func_connect=no" 3180fi 3181rm -f conftest* 3182fi 3183 3184if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then 3185 echo "$ac_t""yes" 1>&6 3186 : 3187else 3188 echo "$ac_t""no" 1>&6 3189fi 3190 3191 if test $ac_cv_func_connect = no; then 3192 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6 3193echo "configure:3194: checking for connect in -lsocket" >&5 3194ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'` 3195if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 3196 echo $ac_n "(cached) $ac_c" 1>&6 3197else 3198 ac_save_LIBS="$LIBS" 3199LIBS="-lsocket $X_EXTRA_LIBS $LIBS" 3200cat > conftest.$ac_ext <<EOF 3201#line 3202 "configure" 3202#include "confdefs.h" 3203/* Override any gcc2 internal prototype to avoid an error. */ 3204/* We use char because int might match the return type of a gcc2 3205 builtin and then its argument prototype would still apply. */ 3206char connect(); 3207 3208int main() { 3209connect() 3210; return 0; } 3211EOF 3212if { (eval echo configure:3213: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3213 rm -rf conftest* 3214 eval "ac_cv_lib_$ac_lib_var=yes" 3215else 3216 echo "configure: failed program was:" >&5 3217 cat conftest.$ac_ext >&5 3218 rm -rf conftest* 3219 eval "ac_cv_lib_$ac_lib_var=no" 3220fi 3221rm -f conftest* 3222LIBS="$ac_save_LIBS" 3223 3224fi 3225if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 3226 echo "$ac_t""yes" 1>&6 3227 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" 3228else 3229 echo "$ac_t""no" 1>&6 3230fi 3231 3232 fi 3233 3234 # [email protected] says -lposix is necessary on A/UX. 3235 echo $ac_n "checking for remove""... $ac_c" 1>&6 3236echo "configure:3237: checking for remove" >&5 3237if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then 3238 echo $ac_n "(cached) $ac_c" 1>&6 3239else 3240 cat > conftest.$ac_ext <<EOF 3241#line 3242 "configure" 3242#include "confdefs.h" 3243/* System header to define __stub macros and hopefully few prototypes, 3244 which can conflict with char remove(); below. */ 3245#include <assert.h> 3246/* Override any gcc2 internal prototype to avoid an error. */ 3247/* We use char because int might match the return type of a gcc2 3248 builtin and then its argument prototype would still apply. */ 3249char remove(); 3250 3251int main() { 3252 3253/* The GNU C library defines this for functions which it implements 3254 to always fail with ENOSYS. Some functions are actually named 3255 something starting with __ and the normal name is an alias. */ 3256#if defined (__stub_remove) || defined (__stub___remove) 3257choke me 3258#else 3259remove(); 3260#endif 3261 3262; return 0; } 3263EOF 3264if { (eval echo configure:3265: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3265 rm -rf conftest* 3266 eval "ac_cv_func_remove=yes" 3267else 3268 echo "configure: failed program was:" >&5 3269 cat conftest.$ac_ext >&5 3270 rm -rf conftest* 3271 eval "ac_cv_func_remove=no" 3272fi 3273rm -f conftest* 3274fi 3275 3276if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then 3277 echo "$ac_t""yes" 1>&6 3278 : 3279else 3280 echo "$ac_t""no" 1>&6 3281fi 3282 3283 if test $ac_cv_func_remove = no; then 3284 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6 3285echo "configure:3286: checking for remove in -lposix" >&5 3286ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'` 3287if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 3288 echo $ac_n "(cached) $ac_c" 1>&6 3289else 3290 ac_save_LIBS="$LIBS" 3291LIBS="-lposix $LIBS" 3292cat > conftest.$ac_ext <<EOF 3293#line 3294 "configure" 3294#include "confdefs.h" 3295/* Override any gcc2 internal prototype to avoid an error. */ 3296/* We use char because int might match the return type of a gcc2 3297 builtin and then its argument prototype would still apply. */ 3298char remove(); 3299 3300int main() { 3301remove() 3302; return 0; } 3303EOF 3304if { (eval echo configure:3305: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3305 rm -rf conftest* 3306 eval "ac_cv_lib_$ac_lib_var=yes" 3307else 3308 echo "configure: failed program was:" >&5 3309 cat conftest.$ac_ext >&5 3310 rm -rf conftest* 3311 eval "ac_cv_lib_$ac_lib_var=no" 3312fi 3313rm -f conftest* 3314LIBS="$ac_save_LIBS" 3315 3316fi 3317if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 3318 echo "$ac_t""yes" 1>&6 3319 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" 3320else 3321 echo "$ac_t""no" 1>&6 3322fi 3323 3324 fi 3325 3326 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 3327 echo $ac_n "checking for shmat""... $ac_c" 1>&6 3328echo "configure:3329: checking for shmat" >&5 3329if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then 3330 echo $ac_n "(cached) $ac_c" 1>&6 3331else 3332 cat > conftest.$ac_ext <<EOF 3333#line 3334 "configure" 3334#include "confdefs.h" 3335/* System header to define __stub macros and hopefully few prototypes, 3336 which can conflict with char shmat(); below. */ 3337#include <assert.h> 3338/* Override any gcc2 internal prototype to avoid an error. */ 3339/* We use char because int might match the return type of a gcc2 3340 builtin and then its argument prototype would still apply. */ 3341char shmat(); 3342 3343int main() { 3344 3345/* The GNU C library defines this for functions which it implements 3346 to always fail with ENOSYS. Some functions are actually named 3347 something starting with __ and the normal name is an alias. */ 3348#if defined (__stub_shmat) || defined (__stub___shmat) 3349choke me 3350#else 3351shmat(); 3352#endif 3353 3354; return 0; } 3355EOF 3356if { (eval echo configure:3357: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3357 rm -rf conftest* 3358 eval "ac_cv_func_shmat=yes" 3359else 3360 echo "configure: failed program was:" >&5 3361 cat conftest.$ac_ext >&5 3362 rm -rf conftest* 3363 eval "ac_cv_func_shmat=no" 3364fi 3365rm -f conftest* 3366fi 3367 3368if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then 3369 echo "$ac_t""yes" 1>&6 3370 : 3371else 3372 echo "$ac_t""no" 1>&6 3373fi 3374 3375 if test $ac_cv_func_shmat = no; then 3376 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6 3377echo "configure:3378: checking for shmat in -lipc" >&5 3378ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'` 3379if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 3380 echo $ac_n "(cached) $ac_c" 1>&6 3381else 3382 ac_save_LIBS="$LIBS" 3383LIBS="-lipc $LIBS" 3384cat > conftest.$ac_ext <<EOF 3385#line 3386 "configure" 3386#include "confdefs.h" 3387/* Override any gcc2 internal prototype to avoid an error. */ 3388/* We use char because int might match the return type of a gcc2 3389 builtin and then its argument prototype would still apply. */ 3390char shmat(); 3391 3392int main() { 3393shmat() 3394; return 0; } 3395EOF 3396if { (eval echo configure:3397: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3397 rm -rf conftest* 3398 eval "ac_cv_lib_$ac_lib_var=yes" 3399else 3400 echo "configure: failed program was:" >&5 3401 cat conftest.$ac_ext >&5 3402 rm -rf conftest* 3403 eval "ac_cv_lib_$ac_lib_var=no" 3404fi 3405rm -f conftest* 3406LIBS="$ac_save_LIBS" 3407 3408fi 3409if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 3410 echo "$ac_t""yes" 1>&6 3411 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" 3412else 3413 echo "$ac_t""no" 1>&6 3414fi 3415 3416 fi 3417 fi 3418 3419 # Check for libraries that X11R6 Xt/Xaw programs need. 3420 ac_save_LDFLAGS="$LDFLAGS" 3421 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" 3422 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to 3423 # check for ICE first), but we must link in the order -lSM -lICE or 3424 # we get undefined symbols. So assume we have SM if we have ICE. 3425 # These have to be linked with before -lX11, unlike the other 3426 # libraries we check for below, so use a different variable. 3427 # [email protected], [email protected]. 3428 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6 3429echo "configure:3430: checking for IceConnectionNumber in -lICE" >&5 3430ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'` 3431if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 3432 echo $ac_n "(cached) $ac_c" 1>&6 3433else 3434 ac_save_LIBS="$LIBS" 3435LIBS="-lICE $X_EXTRA_LIBS $LIBS" 3436cat > conftest.$ac_ext <<EOF 3437#line 3438 "configure" 3438#include "confdefs.h" 3439/* Override any gcc2 internal prototype to avoid an error. */ 3440/* We use char because int might match the return type of a gcc2 3441 builtin and then its argument prototype would still apply. */ 3442char IceConnectionNumber(); 3443 3444int main() { 3445IceConnectionNumber() 3446; return 0; } 3447EOF 3448if { (eval echo configure:3449: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3449 rm -rf conftest* 3450 eval "ac_cv_lib_$ac_lib_var=yes" 3451else 3452 echo "configure: failed program was:" >&5 3453 cat conftest.$ac_ext >&5 3454 rm -rf conftest* 3455 eval "ac_cv_lib_$ac_lib_var=no" 3456fi 3457rm -f conftest* 3458LIBS="$ac_save_LIBS" 3459 3460fi 3461if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 3462 echo "$ac_t""yes" 1>&6 3463 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" 3464else 3465 echo "$ac_t""no" 1>&6 3466fi 3467 3468 LDFLAGS="$ac_save_LDFLAGS" 3469 3470fi 3471 3472 3473 if test "$OS390Unix" = "yes"; then 3474 CFLAGS="$CFLAGS -W c,dll" 3475 LDFLAGS="$LDFLAGS -W l,dll" 3476 X_EXTRA_LIBS="$X_EXTRA_LIBS -lSM -lICE -lXmu" 3477 fi 3478 3479 3480 if test -d "$x_includes" && test ! -d "$x_libraries"; then 3481 x_libraries=`echo "$x_includes" | sed s/include/lib/` 3482 echo "$ac_t""Corrected X libraries to $x_libraries" 1>&6 3483 X_LIBS="$X_LIBS -L$x_libraries" 3484 if test "`(uname) 2>/dev/null`" = SunOS && 3485 uname -r | grep '^5' >/dev/null; then 3486 X_LIBS="$X_LIBS -R $x_libraries" 3487 fi 3488 fi 3489 3490 if test -d "$x_libraries" && test ! -d "$x_includes"; then 3491 x_includes=`echo "$x_libraries" | sed s/lib/include/` 3492 echo "$ac_t""Corrected X includes to $x_includes" 1>&6 3493 X_CFLAGS="$X_CFLAGS -I$x_includes" 3494 fi 3495 3496 X_CFLAGS="`echo $X_CFLAGS\ | sed 's%-I/usr/include %%'`" 3497 X_LIBS="`echo $X_LIBS\ | sed 's%-L/usr/lib %%'`" 3498 X_LIBS="`echo $X_LIBS\ | sed -e 's%-R/usr/lib %%' -e 's%-R /usr/lib %%'`" 3499 3500 3501 echo $ac_n "checking if X11 header files can be found""... $ac_c" 1>&6 3502echo "configure:3503: checking if X11 header files can be found" >&5 3503 cflags_save=$CFLAGS 3504 CFLAGS="$CFLAGS $X_CFLAGS" 3505 cat > conftest.$ac_ext <<EOF 3506#line 3507 "configure" 3507#include "confdefs.h" 3508#include <X11/Xlib.h> 3509int main() { 3510 3511; return 0; } 3512EOF 3513if { (eval echo configure:3514: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3514 rm -rf conftest* 3515 echo "$ac_t""yes" 1>&6 3516else 3517 echo "configure: failed program was:" >&5 3518 cat conftest.$ac_ext >&5 3519 rm -rf conftest* 3520 echo "$ac_t""no" 1>&6; no_x=yes 3521fi 3522rm -f conftest* 3523 CFLAGS=$cflags_save 3524 3525 if test "${no_x-no}" = yes; then 3526 with_x=no 3527 else 3528 cat >> confdefs.h <<\EOF 3529#define HAVE_X11 1 3530EOF 3531 3532 X_LIB="-lXt -lX11"; 3533 3534 3535 ac_save_LDFLAGS="$LDFLAGS" 3536 LDFLAGS="-L$x_libraries $LDFLAGS" 3537 3538 echo $ac_n "checking for _XdmcpAuthDoIt in -lXdmcp""... $ac_c" 1>&6 3539echo "configure:3540: checking for _XdmcpAuthDoIt in -lXdmcp" >&5 3540ac_lib_var=`echo Xdmcp'_'_XdmcpAuthDoIt | sed 'y%./+-%__p_%'` 3541if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 3542 echo $ac_n "(cached) $ac_c" 1>&6 3543else 3544 ac_save_LIBS="$LIBS" 3545LIBS="-lXdmcp -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS -lXdmcp $LIBS" 3546cat > conftest.$ac_ext <<EOF 3547#line 3548 "configure" 3548#include "confdefs.h" 3549/* Override any gcc2 internal prototype to avoid an error. */ 3550/* We use char because int might match the return type of a gcc2 3551 builtin and then its argument prototype would still apply. */ 3552char _XdmcpAuthDoIt(); 3553 3554int main() { 3555_XdmcpAuthDoIt() 3556; return 0; } 3557EOF 3558if { (eval echo configure:3559: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3559 rm -rf conftest* 3560 eval "ac_cv_lib_$ac_lib_var=yes" 3561else 3562 echo "configure: failed program was:" >&5 3563 cat conftest.$ac_ext >&5 3564 rm -rf conftest* 3565 eval "ac_cv_lib_$ac_lib_var=no" 3566fi 3567rm -f conftest* 3568LIBS="$ac_save_LIBS" 3569 3570fi 3571if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 3572 echo "$ac_t""yes" 1>&6 3573 X_EXTRA_LIBS="$X_EXTRA_LIBS -lXdmcp" 3574else 3575 echo "$ac_t""no" 1>&6 3576fi 3577 3578 3579 echo $ac_n "checking for IceOpenConnection in -lICE""... $ac_c" 1>&6 3580echo "configure:3581: checking for IceOpenConnection in -lICE" >&5 3581ac_lib_var=`echo ICE'_'IceOpenConnection | sed 'y%./+-%__p_%'` 3582if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 3583 echo $ac_n "(cached) $ac_c" 1>&6 3584else 3585 ac_save_LIBS="$LIBS" 3586LIBS="-lICE $X_EXTRA_LIBS $LIBS" 3587cat > conftest.$ac_ext <<EOF 3588#line 3589 "configure" 3589#include "confdefs.h" 3590/* Override any gcc2 internal prototype to avoid an error. */ 3591/* We use char because int might match the return type of a gcc2 3592 builtin and then its argument prototype would still apply. */ 3593char IceOpenConnection(); 3594 3595int main() { 3596IceOpenConnection() 3597; return 0; } 3598EOF 3599if { (eval echo configure:3600: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3600 rm -rf conftest* 3601 eval "ac_cv_lib_$ac_lib_var=yes" 3602else 3603 echo "configure: failed program was:" >&5 3604 cat conftest.$ac_ext >&5 3605 rm -rf conftest* 3606 eval "ac_cv_lib_$ac_lib_var=no" 3607fi 3608rm -f conftest* 3609LIBS="$ac_save_LIBS" 3610 3611fi 3612if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 3613 echo "$ac_t""yes" 1>&6 3614 X_EXTRA_LIBS="$X_EXTRA_LIBS -lSM -lICE" 3615else 3616 echo "$ac_t""no" 1>&6 3617fi 3618 3619 3620 LDFLAGS="$X_LIBS $ac_save_LDFLAGS" 3621 echo $ac_n "checking for XpmCreatePixmapFromData in -lXpm""... $ac_c" 1>&6 3622echo "configure:3623: checking for XpmCreatePixmapFromData in -lXpm" >&5 3623ac_lib_var=`echo Xpm'_'XpmCreatePixmapFromData | sed 'y%./+-%__p_%'` 3624if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 3625 echo $ac_n "(cached) $ac_c" 1>&6 3626else 3627 ac_save_LIBS="$LIBS" 3628LIBS="-lXpm -lXt $X_PRE_LIBS -lXpm -lX11 $X_EXTRA_LIBS $LIBS" 3629cat > conftest.$ac_ext <<EOF 3630#line 3631 "configure" 3631#include "confdefs.h" 3632/* Override any gcc2 internal prototype to avoid an error. */ 3633/* We use char because int might match the return type of a gcc2 3634 builtin and then its argument prototype would still apply. */ 3635char XpmCreatePixmapFromData(); 3636 3637int main() { 3638XpmCreatePixmapFromData() 3639; return 0; } 3640EOF 3641if { (eval echo configure:3642: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3642 rm -rf conftest* 3643 eval "ac_cv_lib_$ac_lib_var=yes" 3644else 3645 echo "configure: failed program was:" >&5 3646 cat conftest.$ac_ext >&5 3647 rm -rf conftest* 3648 eval "ac_cv_lib_$ac_lib_var=no" 3649fi 3650rm -f conftest* 3651LIBS="$ac_save_LIBS" 3652 3653fi 3654if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 3655 echo "$ac_t""yes" 1>&6 3656 X_PRE_LIBS="$X_PRE_LIBS -lXpm" 3657else 3658 echo "$ac_t""no" 1>&6 3659fi 3660 3661 3662 echo $ac_n "checking if X11 header files implicitly declare return values""... $ac_c" 1>&6 3663echo "configure:3664: checking if X11 header files implicitly declare return values" >&5 3664 cflags_save=$CFLAGS 3665 CFLAGS="$CFLAGS $X_CFLAGS -Werror" 3666 cat > conftest.$ac_ext <<EOF 3667#line 3668 "configure" 3668#include "confdefs.h" 3669#include <X11/Xlib.h> 3670int main() { 3671 3672; return 0; } 3673EOF 3674if { (eval echo configure:3675: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3675 rm -rf conftest* 3676 echo "$ac_t""no" 1>&6 3677else 3678 echo "configure: failed program was:" >&5 3679 cat conftest.$ac_ext >&5 3680 rm -rf conftest* 3681 CFLAGS="$CFLAGS -Wno-implicit-int" 3682 cat > conftest.$ac_ext <<EOF 3683#line 3684 "configure" 3684#include "confdefs.h" 3685#include <X11/Xlib.h> 3686int main() { 3687 3688; return 0; } 3689EOF 3690if { (eval echo configure:3691: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3691 rm -rf conftest* 3692 echo "$ac_t""yes" 1>&6; cflags_save="$cflags_save -Wno-implicit-int" 3693else 3694 echo "configure: failed program was:" >&5 3695 cat conftest.$ac_ext >&5 3696 rm -rf conftest* 3697 echo "$ac_t""test failed" 1>&6 3698 3699fi 3700rm -f conftest* 3701 3702fi 3703rm -f conftest* 3704 CFLAGS=$cflags_save 3705 3706 LDFLAGS="$ac_save_LDFLAGS" 3707 3708 fi 3709fi 3710 3711test "x$with_x" = xno -a "x$BEOS" != "xyes" -a "x$MACOSX" != "xyes" -a "x$QNX" != "xyes" && enable_gui=no 3712 3713echo $ac_n "checking --enable-gui argument""... $ac_c" 1>&6 3714echo "configure:3715: checking --enable-gui argument" >&5 3715# Check whether --enable-gui or --disable-gui was given. 3716if test "${enable_gui+set}" = set; then 3717 enableval="$enable_gui" 3718 : 3719else 3720 enable_gui="auto" 3721fi 3722 3723 3724enable_gui_canon=`echo "_$enable_gui" | \ 3725 sed 's/[ _+-]//g;y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'` 3726 3727SKIP_GTK=YES 3728SKIP_GTK2=YES 3729SKIP_GNOME=YES 3730SKIP_KDE=YES 3731SKIP_MOTIF=YES 3732SKIP_ATHENA=YES 3733SKIP_NEXTAW=YES 3734SKIP_PHOTON=YES 3735SKIP_BEOS=YES 3736SKIP_CARBON=YES 3737GUITYPE=NONE 3738 3739if test "x$BEOS" = "xyes"; then 3740 SKIP_BEOS= 3741 case "$enable_gui_canon" in 3742 no) echo "$ac_t""no GUI support" 1>&6 3743 SKIP_BEOS=YES ;; 3744 yes|"") echo "$ac_t""yes - automatic GUI support" 1>&6 ;; 3745 auto) echo "$ac_t""auto - automatic GUI support" 1>&6 ;; 3746 beos) echo "$ac_t""BeOS GUI support" 1>&6 ;; 3747 *) echo "$ac_t""Sorry, $enable_gui GUI is not supported" 1>&6 3748 SKIP_BEOS=YES ;; 3749 esac 3750 3751elif test "x$QNX" = "xyes" -a "x$with_x" = "xno" ; then 3752 SKIP_PHOTON= 3753 case "$enable_gui_canon" in 3754 no) echo "$ac_t""no GUI support" 1>&6 3755 SKIP_PHOTON=YES ;; 3756 yes|"") echo "$ac_t""yes - automatic GUI support" 1>&6 ;; 3757 auto) echo "$ac_t""auto - automatic GUI support" 1>&6 ;; 3758 photon) echo "$ac_t""Photon GUI support" 1>&6 ;; 3759 *) echo "$ac_t""Sorry, $enable_gui GUI is not supported" 1>&6 3760 SKIP_PHOTON=YES ;; 3761 esac 3762 3763elif test "x$MACOSX" = "xyes" -a "x$with_x" = "xno" ; then 3764 SKIP_CARBON= 3765 case "$enable_gui_canon" in 3766 no) echo "$ac_t""no GUI support" 1>&6 3767 SKIP_CARBON=YES ;; 3768 yes|"") echo "$ac_t""yes - automatic GUI support" 1>&6 ;; 3769 auto) echo "$ac_t""auto - automatic GUI support" 1>&6 ;; 3770 carbon) echo "$ac_t""Carbon GUI support" 1>&6 ;; 3771 *) echo "$ac_t""Sorry, $enable_gui GUI is not supported" 1>&6 3772 SKIP_CARBON=YES ;; 3773 esac 3774 3775else 3776 3777 case "$enable_gui_canon" in 3778 no|none) echo "$ac_t""no GUI support" 1>&6 ;; 3779 yes|""|auto) echo "$ac_t""yes/auto - automatic GUI support" 1>&6 3780 SKIP_GTK= 3781 SKIP_GTK2= 3782 SKIP_GNOME= 3783 SKIP_MOTIF= 3784 SKIP_ATHENA= 3785 SKIP_NEXTAW= 3786 SKIP_CARBON=;; 3787 kde|Kde|KDE) echo "$ac_t""KDE 2.x or 3.x GUI support" 1>&6 3788 SKIP_KDE=;; 3789 gtk) echo "$ac_t""GTK+ 1.x GUI support" 1>&6 3790 SKIP_GTK=;; 3791 gtk2) echo "$ac_t""GTK+ 2.x GUI support" 1>&6 3792 SKIP_GTK= 3793 SKIP_GTK2=;; 3794 gnome) echo "$ac_t""GNOME 1.x GUI support" 1>&6 3795 SKIP_GNOME= 3796 SKIP_GTK=;; 3797 gnome2) echo "$ac_t""GNOME 2.x GUI support" 1>&6 3798 SKIP_GNOME= 3799 SKIP_GTK= 3800 SKIP_GTK2=;; 3801 motif) echo "$ac_t""Motif GUI support" 1>&6 3802 SKIP_MOTIF=;; 3803 athena) echo "$ac_t""Athena GUI support" 1>&6 3804 SKIP_ATHENA=;; 3805 nextaw) echo "$ac_t""neXtaw GUI support" 1>&6 3806 SKIP_NEXTAW=;; 3807 *) echo "$ac_t""Sorry, $enable_gui GUI is not supported" 1>&6 ;; 3808 esac 3809 3810fi 3811 3812if test "x$SKIP_KDE" != "xYES" -a "$enable_gui_canon" != "kde"; then 3813 echo $ac_n "checking whether or not to look for KDE""... $ac_c" 1>&6 3814echo "configure:3815: checking whether or not to look for KDE" >&5 3815 # Check whether --enable-kde-check or --disable-kde-check was given. 3816if test "${enable_kde_check+set}" = set; then 3817 enableval="$enable_kde_check" 3818 : 3819else 3820 enable_kde_check="no" 3821fi 3822 3823 echo "$ac_t""$enable_kde_check" 1>&6; 3824 if test "x$enable_kde_check" = "xno"; then 3825 SKIP_KDE=YES 3826 fi 3827fi 3828 3829if test "x$SKIP_GTK" != "xYES" -a "$enable_gui_canon" != "gtk" -a "$enable_gui_canon" != "gtk2"; then 3830 echo $ac_n "checking whether or not to look for GTK""... $ac_c" 1>&6 3831echo "configure:3832: checking whether or not to look for GTK" >&5 3832 # Check whether --enable-gtk-check or --disable-gtk-check was given. 3833if test "${enable_gtk_check+set}" = set; then 3834 enableval="$enable_gtk_check" 3835 : 3836else 3837 enable_gtk_check="yes" 3838fi 3839 3840 echo "$ac_t""$enable_gtk_check" 1>&6 3841 if test "x$enable_gtk_check" = "xno"; then 3842 SKIP_GTK=YES 3843 SKIP_GNOME=YES 3844 fi 3845fi 3846 3847if test "x$SKIP_GTK2" != "xYES" -a "$enable_gui_canon" != "gtk2" \ 3848 -a "$enable_gui_canon" != "gnome2"; then 3849 echo $ac_n "checking whether or not to look for GTK+ 2""... $ac_c" 1>&6 3850echo "configure:3851: checking whether or not to look for GTK+ 2" >&5 3851 # Check whether --enable-gtk2-check or --disable-gtk2-check was given. 3852if test "${enable_gtk2_check+set}" = set; then 3853 enableval="$enable_gtk2_check" 3854 : 3855else 3856 enable_gtk2_check="yes" 3857fi 3858 3859 echo "$ac_t""$enable_gtk2_check" 1>&6 3860 if test "x$enable_gtk2_check" = "xno"; then 3861 SKIP_GTK2=YES 3862 fi 3863fi 3864 3865if test "x$SKIP_GNOME" != "xYES" -a "$enable_gui_canon" != "gnome" \ 3866 -a "$enable_gui_canon" != "gnome2"; then 3867 echo $ac_n "checking whether or not to look for GNOME""... $ac_c" 1>&6 3868echo "configure:3869: checking whether or not to look for GNOME" >&5 3869 # Check whether --enable-gnome-check or --disable-gnome-check was given. 3870if test "${enable_gnome_check+set}" = set; then 3871 enableval="$enable_gnome_check" 3872 : 3873else 3874 enable_gnome_check="no" 3875fi 3876 3877 echo "$ac_t""$enable_gnome_check" 1>&6 3878 if test "x$enable_gnome_check" = "xno"; then 3879 SKIP_GNOME=YES 3880 fi 3881fi 3882 3883if test "x$SKIP_MOTIF" != "xYES" -a "$enable_gui_canon" != "motif"; then 3884 echo $ac_n "checking whether or not to look for Motif""... $ac_c" 1>&6 3885echo "configure:3886: checking whether or not to look for Motif" >&5 3886 # Check whether --enable-motif-check or --disable-motif-check was given. 3887if test "${enable_motif_check+set}" = set; then 3888 enableval="$enable_motif_check" 3889 : 3890else 3891 enable_motif_check="yes" 3892fi 3893 3894 echo "$ac_t""$enable_motif_check" 1>&6 3895 if test "x$enable_motif_check" = "xno"; then 3896 SKIP_MOTIF=YES 3897 fi 3898fi 3899 3900if test "x$SKIP_ATHENA" != "xYES" -a "$enable_gui_canon" != "athena"; then 3901 echo $ac_n "checking whether or not to look for Athena""... $ac_c" 1>&6 3902echo "configure:3903: checking whether or not to look for Athena" >&5 3903 # Check whether --enable-athena-check or --disable-athena-check was given. 3904if test "${enable_athena_check+set}" = set; then 3905 enableval="$enable_athena_check" 3906 : 3907else 3908 enable_athena_check="yes" 3909fi 3910 3911 echo "$ac_t""$enable_athena_check" 1>&6 3912 if test "x$enable_athena_check" = "xno"; then 3913 SKIP_ATHENA=YES 3914 fi 3915fi 3916 3917if test "x$SKIP_NEXTAW" != "xYES" -a "$enable_gui_canon" != "nextaw"; then 3918 echo $ac_n "checking whether or not to look for neXtaw""... $ac_c" 1>&6 3919echo "configure:3920: checking whether or not to look for neXtaw" >&5 3920 # Check whether --enable-nextaw-check or --disable-nextaw-check was given. 3921if test "${enable_nextaw_check+set}" = set; then 3922 enableval="$enable_nextaw_check" 3923 : 3924else 3925 enable_nextaw_check="yes" 3926fi 3927 3928 echo "$ac_t""$enable_nextaw_check" 1>&6; 3929 if test "x$enable_nextaw_check" = "xno"; then 3930 SKIP_NEXTAW=YES 3931 fi 3932fi 3933 3934if test "x$SKIP_CARBON" != "xYES" -a "$enable_gui_canon" != "carbon"; then 3935 echo $ac_n "checking whether or not to look for Carbon""... $ac_c" 1>&6 3936echo "configure:3937: checking whether or not to look for Carbon" >&5 3937 # Check whether --enable-carbon-check or --disable-carbon-check was given. 3938if test "${enable_carbon_check+set}" = set; then 3939 enableval="$enable_carbon_check" 3940 : 3941else 3942 enable_carbon_check="yes" 3943fi 3944 3945 echo "$ac_t""$enable_carbon_check" 1>&6; 3946 if test "x$enable_carbon_check" = "xno"; then 3947 SKIP_CARBON=YES 3948 fi 3949fi 3950 3951 3952if test -z "$SKIP_KDE"; then 3953# Check whether --with-qt-dir or --without-qt-dir was given. 3954if test "${with_qt_dir+set}" = set; then 3955 withval="$with_qt_dir" 3956 3957 ROOTQT="$withval" 3958 MOC="$withval"/bin/moc 3959 QT_INCLUDES="$withval"/include 3960 QT_LIBS="$withval"/lib 3961 3962fi 3963 3964 3965if test "x$ROOTQT" = "x"; then 3966 if test -z "$QTDIR"; then 3967 # Extract the first word of "moc", so it can be a program name with args. 3968set dummy moc; ac_word=$2 3969echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 3970echo "configure:3971: checking for $ac_word" >&5 3971if eval "test \"`echo '$''{'ac_cv_path_MOC'+set}'`\" = set"; then 3972 echo $ac_n "(cached) $ac_c" 1>&6 3973else 3974 case "$MOC" in 3975 /*) 3976 ac_cv_path_MOC="$MOC" # Let the user override the test with a path. 3977 ;; 3978 ?:/*) 3979 ac_cv_path_MOC="$MOC" # Let the user override the test with a dos path. 3980 ;; 3981 *) 3982 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 3983 ac_dummy="$PATH" 3984 for ac_dir in $ac_dummy; do 3985 test -z "$ac_dir" && ac_dir=. 3986 if test -f $ac_dir/$ac_word; then 3987 ac_cv_path_MOC="$ac_dir/$ac_word" 3988 break 3989 fi 3990 done 3991 IFS="$ac_save_ifs" 3992 test -z "$ac_cv_path_MOC" && ac_cv_path_MOC="no" 3993 ;; 3994esac 3995fi 3996MOC="$ac_cv_path_MOC" 3997if test -n "$MOC"; then 3998 echo "$ac_t""$MOC" 1>&6 3999else 4000 echo "$ac_t""no" 1>&6 4001fi 4002 4003 if text"x$MOC" = "x"; then 4004 { echo "configure: error: could not find Qt directory" 1>&2; exit 1; } 4005 else 4006 ROOTQT=`echo $MOC | sed 's+/bin/moc++'` 4007 fi 4008 else 4009 ROOTQT="$QTDIR" 4010 fi 4011fi 4012MOC="$ROOTQT"/bin/moc 4013QT_INCLUDES="$ROOTQT"/include 4014QT_LIBS="$ROOTQT"/lib 4015 4016# Check whether --with-qt-includes or --without-qt-includes was given. 4017if test "${with_qt_includes+set}" = set; then 4018 withval="$with_qt_includes" 4019 QT_INCLUDES="$withval" 4020 4021fi 4022 4023 4024# Check whether --with-qt-libraries or --without-qt-libraries was given. 4025if test "${with_qt_libraries+set}" = set; then 4026 withval="$with_qt_libraries" 4027 QT_LIBS="$withval" 4028 4029fi 4030 4031 4032if test "x$QT_LIBS" = "x" ; then 4033 QT_LIBS="$ROOTQT"/lib 4034fi 4035if test "x$QT_INCLUDES" = "x" ; then 4036 QT_INCLUDES="$ROOTQT"/include 4037fi 4038 4039echo $ac_n "checking whether or not to use a KDE Toolbar in KVim""... $ac_c" 1>&6 4040echo "configure:4041: checking whether or not to use a KDE Toolbar in KVim" >&5 4041# Check whether --enable-kde-toolbar or --disable-kde-toolbar was given. 4042if test "${enable_kde_toolbar+set}" = set; then 4043 enableval="$enable_kde_toolbar" 4044 : 4045else 4046 enable_kde_toolbar="no" 4047fi 4048 4049if test "x$enable_kde_toolbar" != "xno"; then 4050 cat >> confdefs.h <<\EOF 4051#define FEAT_KDETOOLBAR 1 4052EOF 4053 4054fi 4055echo "$ac_t""$enable_kde_toolbar" 1>&6; 4056fi 4057 4058 4059if test -z "$SKIP_KDE"; then 4060 4061 4062echo $ac_n "checking --disable-rpath argument""... $ac_c" 1>&6 4063echo "configure:4064: checking --disable-rpath argument" >&5 4064# Check whether --enable-rpath or --disable-rpath was given. 4065if test "${enable_rpath+set}" = set; then 4066 enableval="$enable_rpath" 4067 : 4068else 4069 enable_rpath="yes" 4070fi 4071 4072if test "$enable_rpath" = "yes"; then 4073 echo "$ac_t""no" 1>&6 4074else 4075 echo "$ac_t""yes" 1>&6 4076fi 4077 4078echo $ac_n "checking --with-kde-prefix argument""... $ac_c" 1>&6 4079echo "configure:4080: checking --with-kde-prefix argument" >&5 4080# Check whether --with-kde-prefix or --without-kde-prefix was given. 4081if test "${with_kde_prefix+set}" = set; then 4082 withval="$with_kde_prefix" 4083 kde_config_prefix="$withval"; 4084echo "$ac_t""$kde_config_prefix" 1>&6 4085else 4086 kde_config_prefix="";echo "$ac_t""no" 1>&6 4087fi 4088 4089 4090# Check whether --with-kde-includes or --without-kde-includes was given. 4091if test "${with_kde_includes+set}" = set; then 4092 withval="$with_kde_includes" 4093 KDE_INCLUDES="$withval" 4094 4095fi 4096 4097 4098# Check whether --with-kde-libraries or --without-kde-libraries was given. 4099if test "${with_kde_libraries+set}" = set; then 4100 withval="$with_kde_libraries" 4101 KDE_LIBS="$withval" 4102 4103fi 4104 4105 4106echo $ac_n "checking --disable-kdetest argument""... $ac_c" 1>&6 4107echo "configure:4108: checking --disable-kdetest argument" >&5 4108# Check whether --enable-kdetest or --disable-kdetest was given. 4109if test "${enable_kdetest+set}" = set; then 4110 enableval="$enable_kdetest" 4111 enable_kdetest=yes 4112fi 4113 4114 4115if test "x$enable_kdetest" = "xyes" ; then 4116 echo "$ac_t""kde test enabled" 1>&6 4117else 4118 echo "$ac_t""kde test disabled" 1>&6 4119fi 4120 4121if test "x$kde_config_prefix" != "x" ; then 4122 kde_config_args="" 4123 KDE_CONFIG=$kde_config_prefix/bin/kde-config 4124fi 4125 4126if test "X$KDE_CONFIG" = "X"; then 4127 # Extract the first word of "kde-config", so it can be a program name with args. 4128set dummy kde-config; ac_word=$2 4129echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 4130echo "configure:4131: checking for $ac_word" >&5 4131if eval "test \"`echo '$''{'ac_cv_path_KDE_CONFIG'+set}'`\" = set"; then 4132 echo $ac_n "(cached) $ac_c" 1>&6 4133else 4134 case "$KDE_CONFIG" in 4135 /*) 4136 ac_cv_path_KDE_CONFIG="$KDE_CONFIG" # Let the user override the test with a path. 4137 ;; 4138 ?:/*) 4139 ac_cv_path_KDE_CONFIG="$KDE_CONFIG" # Let the user override the test with a dos path. 4140 ;; 4141 *) 4142 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 4143 ac_dummy="$PATH" 4144 for ac_dir in $ac_dummy; do 4145 test -z "$ac_dir" && ac_dir=. 4146 if test -f $ac_dir/$ac_word; then 4147 ac_cv_path_KDE_CONFIG="$ac_dir/$ac_word" 4148 break 4149 fi 4150 done 4151 IFS="$ac_save_ifs" 4152 test -z "$ac_cv_path_KDE_CONFIG" && ac_cv_path_KDE_CONFIG="no" 4153 ;; 4154esac 4155fi 4156KDE_CONFIG="$ac_cv_path_KDE_CONFIG" 4157if test -n "$KDE_CONFIG"; then 4158 echo "$ac_t""$KDE_CONFIG" 1>&6 4159else 4160 echo "$ac_t""no" 1>&6 4161fi 4162 4163else 4164 echo "$ac_t""Using KDE configuration program $KDE_CONFIG" 1>&6 4165fi 4166 4167if test "X$KDE_CONFIG" != "X" ; then 4168 4169 if test "X$KDE_CONFIG" != "X"; then 4170 min_kde_version=2.0.0 4171 echo $ac_n "checking for KDE version >= $min_kde_version""... $ac_c" 1>&6 4172echo "configure:4173: checking for KDE version >= $min_kde_version" >&5 4173 no_kde="" 4174 if test "$KDE_CONFIG" = "no" ; then 4175 no_kde=yes 4176 else 4177 KDE_PREFIX=`$KDE_CONFIG $kde_config_args --prefix` 4178 if test "x$KDE_LIBS" = "x"; then 4179 KDE_LIBS="$KDE_PREFIX/lib" 4180 fi 4181 if test "x$KDE_INCLUDES" = "x"; then 4182 KDE_INCLUDES="$KDE_PREFIX/include" 4183 if test -d "$KDE_INCLUDES/kde"; then 4184 KDE_INCLUDES="$KDE_INCLUDES/kde" 4185 fi 4186 fi 4187 kde_major_version=`$KDE_CONFIG --version | grep KDE | \ 4188sed 's/KDE:\ //' | sed 's/\([0-9]*\).\([0-9]*.*\)/\1/'` 4189 kde_minor_version=`$KDE_CONFIG --version | grep KDE | \ 4190sed 's/KDE:\ //' | sed 's/\([0-9]*\).\([0-9]*.*\)/\2/'` 4191 4192 qt_major_version=`$KDE_CONFIG --version | grep Qt | sed -e \ 4193's/Qt:\ //' | sed 's/\([0-9]*\).\([0-9]*.*\)/\1/'` 4194 qt_minor_version=`$KDE_CONFIG --version | grep Qt | sed -e \ 4195's/Qt:\ //' | sed 's/\([0-9]*\).\([0-9]*.*\)/\2/'` 4196 4197 if test "x$enable-kdetest" = "xyes" ; then 4198 ac_save_LIBS="$LIBS" 4199 LIBS="$LIBS $KDE_LIBS" 4200 4201 if test "$cross_compiling" = yes; then 4202 echo $ac_n "cross compiling KDE ? ? how can i remove that ? :)" 4203else 4204 cat > conftest.$ac_ext <<EOF 4205#line 4206 "configure" 4206#include "confdefs.h" 4207 4208#include <stdio.h> 4209int 4210main() 4211{ return 0; } 4212 4213EOF 4214if { (eval echo configure:4215: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 4215then 4216 : 4217else 4218 echo "configure: failed program was:" >&5 4219 cat conftest.$ac_ext >&5 4220 rm -fr conftest* 4221 no_kde=yes 4222fi 4223rm -fr conftest* 4224fi 4225 4226 LIBS="$ac_save_LIBS" 4227 fi 4228 fi 4229 if test "x$no_kde" = x ; then 4230 echo "$ac_t""found KDE $kde_major_version.$kde_minor_version" 1>&6 4231 GUI_LIB_LOC="-L$KDE_LIBS -lkdeui -lkdecore -lDCOP" 4232 GUI_INC_LOC="-I$KDE_INCLUDES" 4233 KDEDIR="$KDE_PREFIX" 4234 else 4235 echo "$ac_t""no" 1>&6 4236 KDE_LIBS="" 4237 : 4238 fi 4239else 4240 echo "$ac_t""no" 1>&6 4241 KDE_LIBS="" 4242 : 4243fi 4244 4245 4246 4247 4248 if test "x$KDE_PREFIX" != "x"; then 4249 echo $ac_n "checking for QT version $qt_major_version.x""... $ac_c" 1>&6 4250echo "configure:4251: checking for QT version $qt_major_version.x" >&5 4251 if test "x$ROOTQT" != "x" ; then 4252 GUI_INC_LOC="-I$QT_INCLUDES $GUI_INC_LOC" 4253 if test $qt_major_version -lt 2; then 4254 { echo "configure: error: Your QT version is prior to 2.0; KDE 2.x and 3.x require at least QT 2" 1>&2; exit 1; } 4255 fi 4256 if test "`(uname) 2>/dev/null`" = "FreeBSD"; then 4257 CFLAGS="$CFLAGS -D_THREAD_SAFE" 4258 CXXFLAGS="$CXXFLAGS -D_THREAD_SAFE" 4259 GUI_LIB_LOC="$GUI_LIB_LOC -pthread" 4260 LIBS="$LIBS -pthread" 4261 fi 4262 4263 if test "x$enable_rpath" = "xyes"; then 4264 if test $qt_major_version = 2; then 4265 GUI_LIB_LOC="-L$KDE_LIBS -lkfile -L$QT_LIBS -lqt $GUI_LIB_LOC \ 4266-Wl,--rpath -Wl,$KDE_LIBS -Wl,--rpath -Wl,$QT_LIBS" 4267 else 4268 GUI_LIB_LOC="-L$KDE_LIBS -lkio -L$QT_LIBS -lqt-mt $GUI_LIB_LOC \ 4269-Wl,--rpath -Wl,$KDE_LIBS -Wl,--rpath -Wl,$QT_LIBS" 4270 fi 4271 else 4272 if test $qt_major_version = 2; then 4273 GUI_LIB_LOC="-L$KDE_LIBS -lkfile -L$QT_LIBS -lqt $GUI_LIB_LOC" 4274 else 4275 GUI_LIB_LOC="-L$KDE_LIBS -lkio -L$QT_LIBS -lqt-mt $GUI_LIB_LOC" 4276 fi 4277 fi 4278 4279 GUI_INC_LOC="`echo $GUI_INC_LOC\ | sed 's%-I/usr/include %%'`" 4280 4281 echo "$ac_t""found $qt_major_version.$qt_minor_version in $ROOTQT" 1>&6 4282 SKIP_GTK=YES 4283 SKIP_ATHENA=YES 4284 SKIP_MOTIF=YES 4285 GUITYPE=KDE 4286 4287 4288 4289 4290 4291 cat >> confdefs.h <<\EOF 4292#define FEAT_GUI_KDE 1 4293EOF 4294 4295 else 4296 { echo "configure: error: Detected QT version mismatched" 1>&2; exit 1; } 4297 fi 4298 else 4299 { echo "configure: error: Could not find KDE installation prefix" 1>&2; exit 1; } 4300 fi 4301fi 4302fi 4303 4304if test "x$MACOSX" = "xyes" -a -z "$SKIP_CARBON" -a "x$CARBON" = "xyes"; then 4305 echo $ac_n "checking for Carbon GUI""... $ac_c" 1>&6 4306echo "configure:4307: checking for Carbon GUI" >&5 4307 echo "$ac_t""yes" 1>&6; 4308 GUITYPE=CARBONGUI 4309 SKIP_GTK=YES; 4310 SKIP_GTK2=YES; 4311 SKIP_GNOME=YES; 4312 SKIP_MOTIF=YES; 4313 SKIP_ATHENA=YES; 4314 SKIP_NEXTAW=YES; 4315 SKIP_PHOTON=YES; 4316 SKIP_BEOS=YES; 4317 SKIP_CARBON=YES 4318fi 4319 4320 4321 4322 4323 4324 4325 4326 4327 4328if test -z "$SKIP_GTK"; then 4329 4330 echo $ac_n "checking --with-gtk-prefix argument""... $ac_c" 1>&6 4331echo "configure:4332: checking --with-gtk-prefix argument" >&5 4332 # Check whether --with-gtk-prefix or --without-gtk-prefix was given. 4333if test "${with_gtk_prefix+set}" = set; then 4334 withval="$with_gtk_prefix" 4335 gtk_config_prefix="$withval"; echo "$ac_t""$gtk_config_prefix" 1>&6 4336else 4337 gtk_config_prefix=""; echo "$ac_t""no" 1>&6 4338fi 4339 4340 4341 echo $ac_n "checking --with-gtk-exec-prefix argument""... $ac_c" 1>&6 4342echo "configure:4343: checking --with-gtk-exec-prefix argument" >&5 4343 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. 4344if test "${with_gtk_exec_prefix+set}" = set; then 4345 withval="$with_gtk_exec_prefix" 4346 gtk_config_exec_prefix="$withval"; echo "$ac_t""$gtk_config_prefix" 1>&6 4347else 4348 gtk_config_exec_prefix=""; echo "$ac_t""no" 1>&6 4349fi 4350 4351 4352 echo $ac_n "checking --disable-gtktest argument""... $ac_c" 1>&6 4353echo "configure:4354: checking --disable-gtktest argument" >&5 4354 # Check whether --enable-gtktest or --disable-gtktest was given. 4355if test "${enable_gtktest+set}" = set; then 4356 enableval="$enable_gtktest" 4357 : 4358else 4359 enable_gtktest=yes 4360fi 4361 4362 if test "x$enable_gtktest" = "xyes" ; then 4363 echo "$ac_t""gtk test enabled" 1>&6 4364 else 4365 echo "$ac_t""gtk test disabled" 1>&6 4366 fi 4367 4368 if test "x$gtk_config_prefix" != "x" ; then 4369 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" 4370 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config 4371 fi 4372 if test "x$gtk_config_exec_prefix" != "x" ; then 4373 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" 4374 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config 4375 fi 4376 if test "X$GTK_CONFIG" = "X"; then 4377 # Extract the first word of "gtk-config", so it can be a program name with args. 4378set dummy gtk-config; ac_word=$2 4379echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 4380echo "configure:4381: checking for $ac_word" >&5 4381if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then 4382 echo $ac_n "(cached) $ac_c" 1>&6 4383else 4384 case "$GTK_CONFIG" in 4385 /*) 4386 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. 4387 ;; 4388 ?:/*) 4389 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path. 4390 ;; 4391 *) 4392 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 4393 ac_dummy="$PATH" 4394 for ac_dir in $ac_dummy; do 4395 test -z "$ac_dir" && ac_dir=. 4396 if test -f $ac_dir/$ac_word; then 4397 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word" 4398 break 4399 fi 4400 done 4401 IFS="$ac_save_ifs" 4402 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" 4403 ;; 4404esac 4405fi 4406GTK_CONFIG="$ac_cv_path_GTK_CONFIG" 4407if test -n "$GTK_CONFIG"; then 4408 echo "$ac_t""$GTK_CONFIG" 1>&6 4409else 4410 echo "$ac_t""no" 1>&6 4411fi 4412 4413 if test "X$GTK_CONFIG" = "Xno"; then 4414 # Extract the first word of "gtk12-config", so it can be a program name with args. 4415set dummy gtk12-config; ac_word=$2 4416echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 4417echo "configure:4418: checking for $ac_word" >&5 4418if eval "test \"`echo '$''{'ac_cv_path_GTK12_CONFIG'+set}'`\" = set"; then 4419 echo $ac_n "(cached) $ac_c" 1>&6 4420else 4421 case "$GTK12_CONFIG" in 4422 /*) 4423 ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a path. 4424 ;; 4425 ?:/*) 4426 ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a dos path. 4427 ;; 4428 *) 4429 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 4430 ac_dummy="$PATH" 4431 for ac_dir in $ac_dummy; do 4432 test -z "$ac_dir" && ac_dir=. 4433 if test -f $ac_dir/$ac_word; then 4434 ac_cv_path_GTK12_CONFIG="$ac_dir/$ac_word" 4435 break 4436 fi 4437 done 4438 IFS="$ac_save_ifs" 4439 test -z "$ac_cv_path_GTK12_CONFIG" && ac_cv_path_GTK12_CONFIG="no" 4440 ;; 4441esac 4442fi 4443GTK12_CONFIG="$ac_cv_path_GTK12_CONFIG" 4444if test -n "$GTK12_CONFIG"; then 4445 echo "$ac_t""$GTK12_CONFIG" 1>&6 4446else 4447 echo "$ac_t""no" 1>&6 4448fi 4449 4450 GTK_CONFIG="$GTK12_CONFIG" 4451 fi 4452 else 4453 echo "$ac_t""Using GTK configuration program $GTK_CONFIG" 1>&6 4454 fi 4455 if test "X$PKG_CONFIG" = "X"; then 4456 # Extract the first word of "pkg-config", so it can be a program name with args. 4457set dummy pkg-config; ac_word=$2 4458echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 4459echo "configure:4460: checking for $ac_word" >&5 4460if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then 4461 echo $ac_n "(cached) $ac_c" 1>&6 4462else 4463 case "$PKG_CONFIG" in 4464 /*) 4465 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4466 ;; 4467 ?:/*) 4468 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path. 4469 ;; 4470 *) 4471 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 4472 ac_dummy="$PATH" 4473 for ac_dir in $ac_dummy; do 4474 test -z "$ac_dir" && ac_dir=. 4475 if test -f $ac_dir/$ac_word; then 4476 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word" 4477 break 4478 fi 4479 done 4480 IFS="$ac_save_ifs" 4481 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" 4482 ;; 4483esac 4484fi 4485PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4486if test -n "$PKG_CONFIG"; then 4487 echo "$ac_t""$PKG_CONFIG" 1>&6 4488else 4489 echo "$ac_t""no" 1>&6 4490fi 4491 4492 fi 4493 4494 if test "x$GTK_CONFIG:$PKG_CONFIG" != "xno:no"; then 4495 if test "X$SKIP_GTK2" != "XYES"; then 4496 4497 if test "X$GTK_CONFIG" != "Xno" -o "X$PKG_CONFIG" != "Xno"; then 4498 { 4499 min_gtk_version=2.2.0 4500 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6 4501echo "configure:4502: checking for GTK - version >= $min_gtk_version" >&5 4502 no_gtk="" 4503 if (test "X$SKIP_GTK2" != "XYES" -a "X$PKG_CONFIG" != "Xno") \ 4504 && $PKG_CONFIG --exists gtk+-2.0; then 4505 { 4506 GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0` 4507 GTK_LIBS=`$PKG_CONFIG --libs gtk+-2.0` 4508 gtk_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ 4509 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'` 4510 gtk_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ 4511 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'` 4512 gtk_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ 4513 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'` 4514 } 4515 elif test "X$GTK_CONFIG" != "Xno"; then 4516 { 4517 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` 4518 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` 4519 gtk_major_version=`$GTK_CONFIG $gtk_config_args --version | \ 4520 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'` 4521 gtk_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ 4522 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'` 4523 gtk_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ 4524 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'` 4525 } 4526 else 4527 no_gtk=yes 4528 fi 4529 4530 if test "x$enable_gtktest" = "xyes" -a "x$no_gtk" = "x"; then 4531 { 4532 ac_save_CFLAGS="$CFLAGS" 4533 ac_save_LIBS="$LIBS" 4534 CFLAGS="$CFLAGS $GTK_CFLAGS" 4535 LIBS="$LIBS $GTK_LIBS" 4536 4537 rm -f conf.gtktest 4538 if test "$cross_compiling" = yes; then 4539 echo $ac_n "cross compiling; assumed OK... $ac_c" 4540else 4541 cat > conftest.$ac_ext <<EOF 4542#line 4543 "configure" 4543#include "confdefs.h" 4544 4545#include <gtk/gtk.h> 4546#include <stdio.h> 4547 4548int 4549main () 4550{ 4551int major, minor, micro; 4552char *tmp_version; 4553 4554system ("touch conf.gtktest"); 4555 4556/* HP/UX 9 (%@#!) writes to sscanf strings */ 4557tmp_version = g_strdup("$min_gtk_version"); 4558if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { 4559 printf("%s, bad version string\n", "$min_gtk_version"); 4560 exit(1); 4561 } 4562 4563if ((gtk_major_version > major) || 4564 ((gtk_major_version == major) && (gtk_minor_version > minor)) || 4565 ((gtk_major_version == major) && (gtk_minor_version == minor) && 4566 (gtk_micro_version >= micro))) 4567{ 4568 return 0; 4569} 4570return 1; 4571} 4572 4573EOF 4574if { (eval echo configure:4575: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 4575then 4576 : 4577else 4578 echo "configure: failed program was:" >&5 4579 cat conftest.$ac_ext >&5 4580 rm -fr conftest* 4581 no_gtk=yes 4582fi 4583rm -fr conftest* 4584fi 4585 4586 CFLAGS="$ac_save_CFLAGS" 4587 LIBS="$ac_save_LIBS" 4588 } 4589 fi 4590 if test "x$no_gtk" = x ; then 4591 if test "x$enable_gtktest" = "xyes"; then 4592 echo "$ac_t""yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" 1>&6 4593 else 4594 echo "$ac_t""found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" 1>&6 4595 fi 4596 GTK_LIBNAME="$GTK_LIBS" 4597 GUI_INC_LOC="$GTK_CFLAGS" 4598 else 4599 { 4600 echo "$ac_t""no" 1>&6 4601 GTK_CFLAGS="" 4602 GTK_LIBS="" 4603 : 4604 } 4605 fi 4606 } 4607 else 4608 GTK_CFLAGS="" 4609 GTK_LIBS="" 4610 : 4611 fi 4612 4613 4614 rm -f conf.gtktest 4615 4616 if test "x$GTK_CFLAGS" != "x"; then 4617 SKIP_ATHENA=YES 4618 SKIP_NEXTAW=YES 4619 SKIP_MOTIF=YES 4620 GUITYPE=GTK 4621 4622 fi 4623 fi 4624 4625 if test "x$GUITYPE" != "xGTK"; then 4626 SKIP_GTK2=YES 4627 4628 if test "X$GTK_CONFIG" != "Xno" -o "X$PKG_CONFIG" != "Xno"; then 4629 { 4630 min_gtk_version=1.1.16 4631 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6 4632echo "configure:4633: checking for GTK - version >= $min_gtk_version" >&5 4633 no_gtk="" 4634 if (test "X$SKIP_GTK2" != "XYES" -a "X$PKG_CONFIG" != "Xno") \ 4635 && $PKG_CONFIG --exists gtk+-2.0; then 4636 { 4637 GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0` 4638 GTK_LIBS=`$PKG_CONFIG --libs gtk+-2.0` 4639 gtk_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ 4640 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'` 4641 gtk_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ 4642 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'` 4643 gtk_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ 4644 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'` 4645 } 4646 elif test "X$GTK_CONFIG" != "Xno"; then 4647 { 4648 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` 4649 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` 4650 gtk_major_version=`$GTK_CONFIG $gtk_config_args --version | \ 4651 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'` 4652 gtk_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ 4653 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'` 4654 gtk_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ 4655 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'` 4656 } 4657 else 4658 no_gtk=yes 4659 fi 4660 4661 if test "x$enable_gtktest" = "xyes" -a "x$no_gtk" = "x"; then 4662 { 4663 ac_save_CFLAGS="$CFLAGS" 4664 ac_save_LIBS="$LIBS" 4665 CFLAGS="$CFLAGS $GTK_CFLAGS" 4666 LIBS="$LIBS $GTK_LIBS" 4667 4668 rm -f conf.gtktest 4669 if test "$cross_compiling" = yes; then 4670 echo $ac_n "cross compiling; assumed OK... $ac_c" 4671else 4672 cat > conftest.$ac_ext <<EOF 4673#line 4674 "configure" 4674#include "confdefs.h" 4675 4676#include <gtk/gtk.h> 4677#include <stdio.h> 4678 4679int 4680main () 4681{ 4682int major, minor, micro; 4683char *tmp_version; 4684 4685system ("touch conf.gtktest"); 4686 4687/* HP/UX 9 (%@#!) writes to sscanf strings */ 4688tmp_version = g_strdup("$min_gtk_version"); 4689if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { 4690 printf("%s, bad version string\n", "$min_gtk_version"); 4691 exit(1); 4692 } 4693 4694if ((gtk_major_version > major) || 4695 ((gtk_major_version == major) && (gtk_minor_version > minor)) || 4696 ((gtk_major_version == major) && (gtk_minor_version == minor) && 4697 (gtk_micro_version >= micro))) 4698{ 4699 return 0; 4700} 4701return 1; 4702} 4703 4704EOF 4705if { (eval echo configure:4706: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 4706then 4707 : 4708else 4709 echo "configure: failed program was:" >&5 4710 cat conftest.$ac_ext >&5 4711 rm -fr conftest* 4712 no_gtk=yes 4713fi 4714rm -fr conftest* 4715fi 4716 4717 CFLAGS="$ac_save_CFLAGS" 4718 LIBS="$ac_save_LIBS" 4719 } 4720 fi 4721 if test "x$no_gtk" = x ; then 4722 if test "x$enable_gtktest" = "xyes"; then 4723 echo "$ac_t""yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" 1>&6 4724 else 4725 echo "$ac_t""found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" 1>&6 4726 fi 4727 GTK_LIBNAME="$GTK_LIBS" 4728 GUI_INC_LOC="$GTK_CFLAGS" 4729 else 4730 { 4731 echo "$ac_t""no" 1>&6 4732 GTK_CFLAGS="" 4733 GTK_LIBS="" 4734 : 4735 } 4736 fi 4737 } 4738 else 4739 GTK_CFLAGS="" 4740 GTK_LIBS="" 4741 : 4742 fi 4743 4744 4745 rm -f conf.gtktest 4746 4747 if test "x$GTK_CFLAGS" != "x"; then 4748 SKIP_ATHENA=YES 4749 SKIP_NEXTAW=YES 4750 SKIP_MOTIF=YES 4751 GUITYPE=GTK 4752 4753 fi 4754 fi 4755 fi 4756 if test "x$GUITYPE" = "xGTK"; then 4757 if test "$gtk_major_version" = 1 -a "0$gtk_minor_version" -lt 2 \ 4758 -o "$gtk_major_version" = 1 -a "$gtk_minor_version" = 2 -a "0$gtk_micro_version" -lt 3; then 4759 echo "$ac_t""this GTK version is old; version 1.2.3 or later is recommended" 1>&6 4760 else 4761 { 4762 if test "0$gtk_major_version" -ge 2; then 4763 cat >> confdefs.h <<\EOF 4764#define HAVE_GTK2 1 4765EOF 4766 4767 if test "$gtk_minor_version" = 1 -a "0$gtk_micro_version" -ge 1 \ 4768 || test "0$gtk_minor_version" -ge 2 \ 4769 || test "0$gtk_major_version" -gt 2; then 4770 cat >> confdefs.h <<\EOF 4771#define HAVE_GTK_MULTIHEAD 1 4772EOF 4773 4774 fi 4775 fi 4776 if test -z "$SKIP_GNOME"; then 4777 { 4778 4779 4780 4781 4782 4783 # Check whether --with-gnome-includes or --without-gnome-includes was given. 4784if test "${with_gnome_includes+set}" = set; then 4785 withval="$with_gnome_includes" 4786 CFLAGS="$CFLAGS -I$withval" 4787 4788fi 4789 4790 4791 # Check whether --with-gnome-libs or --without-gnome-libs was given. 4792if test "${with_gnome_libs+set}" = set; then 4793 withval="$with_gnome_libs" 4794 LDFLAGS="$LDFLAGS -L$withval" gnome_prefix=$withval 4795 4796fi 4797 4798 4799 # Check whether --with-gnome or --without-gnome was given. 4800if test "${with_gnome+set}" = set; then 4801 withval="$with_gnome" 4802 if test x$withval = xyes; then 4803 want_gnome=yes 4804 have_gnome=yes 4805 else 4806 if test "x$withval" = xno; then 4807 want_gnome=no 4808 else 4809 want_gnome=yes 4810 LDFLAGS="$LDFLAGS -L$withval/lib" 4811 CFLAGS="$CFLAGS -I$withval/include" 4812 gnome_prefix=$withval/lib 4813 fi 4814 fi 4815else 4816 want_gnome=yes 4817fi 4818 4819 4820 if test "x$want_gnome" = xyes -a "0$gtk_major_version" -ge 2; then 4821 { 4822 echo $ac_n "checking for libgnomeui-2.0""... $ac_c" 1>&6 4823echo "configure:4824: checking for libgnomeui-2.0" >&5 4824 if $PKG_CONFIG --exists libgnomeui-2.0; then 4825 echo "$ac_t""yes" 1>&6 4826 GNOME_LIBS=`$PKG_CONFIG --libs-only-l libgnomeui-2.0` 4827 GNOME_LIBDIR=`$PKG_CONFIG --libs-only-L libgnomeui-2.0` 4828 GNOME_INCLUDEDIR=`$PKG_CONFIG --cflags libgnomeui-2.0` 4829 have_gnome=yes 4830 else 4831 echo "$ac_t""not found" 1>&6 4832 if test "x" = xfail; then 4833 { echo "configure: error: Could not find libgnomeui-2.0 via pkg-config" 1>&2; exit 1; } 4834 fi 4835 fi 4836 } 4837 elif test "x$want_gnome" = xyes; then 4838 { 4839 # Extract the first word of "gnome-config", so it can be a program name with args. 4840set dummy gnome-config; ac_word=$2 4841echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 4842echo "configure:4843: checking for $ac_word" >&5 4843if eval "test \"`echo '$''{'ac_cv_path_GNOME_CONFIG'+set}'`\" = set"; then 4844 echo $ac_n "(cached) $ac_c" 1>&6 4845else 4846 case "$GNOME_CONFIG" in 4847 /*) 4848 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path. 4849 ;; 4850 ?:/*) 4851 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a dos path. 4852 ;; 4853 *) 4854 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 4855 ac_dummy="$PATH" 4856 for ac_dir in $ac_dummy; do 4857 test -z "$ac_dir" && ac_dir=. 4858 if test -f $ac_dir/$ac_word; then 4859 ac_cv_path_GNOME_CONFIG="$ac_dir/$ac_word" 4860 break 4861 fi 4862 done 4863 IFS="$ac_save_ifs" 4864 test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no" 4865 ;; 4866esac 4867fi 4868GNOME_CONFIG="$ac_cv_path_GNOME_CONFIG" 4869if test -n "$GNOME_CONFIG"; then 4870 echo "$ac_t""$GNOME_CONFIG" 1>&6 4871else 4872 echo "$ac_t""no" 1>&6 4873fi 4874 4875 if test "$GNOME_CONFIG" = "no"; then 4876 no_gnome_config="yes" 4877 else 4878 echo $ac_n "checking if $GNOME_CONFIG works""... $ac_c" 1>&6 4879echo "configure:4880: checking if $GNOME_CONFIG works" >&5 4880 if $GNOME_CONFIG --libs-only-l gnome >/dev/null 2>&1; then 4881 echo "$ac_t""yes" 1>&6 4882 GNOME_LIBS="`$GNOME_CONFIG --libs-only-l gnome gnomeui`" 4883 GNOME_LIBDIR="`$GNOME_CONFIG --libs-only-L gnorba gnomeui`" 4884 GNOME_INCLUDEDIR="`$GNOME_CONFIG --cflags gnorba gnomeui`" 4885 have_gnome=yes 4886 else 4887 echo "$ac_t""no" 1>&6 4888 no_gnome_config="yes" 4889 fi 4890 fi 4891 4892 if test x$exec_prefix = xNONE; then 4893 if test x$prefix = xNONE; then 4894 gnome_prefix=$ac_default_prefix/lib 4895 else 4896 gnome_prefix=$prefix/lib 4897 fi 4898 else 4899 gnome_prefix=`eval echo \`echo $libdir\`` 4900 fi 4901 4902 if test "$no_gnome_config" = "yes"; then 4903 echo $ac_n "checking for gnomeConf.sh file in $gnome_prefix""... $ac_c" 1>&6 4904echo "configure:4905: checking for gnomeConf.sh file in $gnome_prefix" >&5 4905 if test -f $gnome_prefix/gnomeConf.sh; then 4906 echo "$ac_t""found" 1>&6 4907 echo "loading gnome configuration from" \ 4908 "$gnome_prefix/gnomeConf.sh" 4909 . $gnome_prefix/gnomeConf.sh 4910 have_gnome=yes 4911 else 4912 echo "$ac_t""not found" 1>&6 4913 if test x = xfail; then 4914 { echo "configure: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" 1>&2; exit 1; } 4915 fi 4916 fi 4917 fi 4918 } 4919 fi 4920 4921 if test x$have_gnome = xyes ; then 4922 cat >> confdefs.h <<\EOF 4923#define FEAT_GUI_GNOME 1 4924EOF 4925 4926 GUI_INC_LOC="$GUI_INC_LOC $GNOME_INCLUDEDIR" 4927 GTK_LIBNAME="$GTK_LIBNAME $GNOME_LIBDIR $GNOME_LIBS" 4928 fi 4929 } 4930 fi 4931 } 4932 fi 4933 fi 4934fi 4935 4936 4937if test -z "$SKIP_MOTIF"; then 4938 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" 4939 GUI_INC_LOC="`echo $GUI_INC_LOC|sed 's%-I%%g'`" 4940 4941 echo $ac_n "checking for location of Motif GUI includes""... $ac_c" 1>&6 4942echo "configure:4943: checking for location of Motif GUI includes" >&5 4943 gui_includes="`echo $x_includes|sed 's%/^/^/*$%%'` `echo "$gui_XXX" | sed s/XXX/include/g` $GUI_INC_LOC" 4944 GUI_INC_LOC= 4945 for try in $gui_includes; do 4946 if test -f "$try/Xm/Xm.h"; then 4947 GUI_INC_LOC=$try 4948 fi 4949 done 4950 if test -n "$GUI_INC_LOC"; then 4951 if test "$GUI_INC_LOC" = /usr/include; then 4952 GUI_INC_LOC= 4953 echo "$ac_t""in default path" 1>&6 4954 else 4955 echo "$ac_t""$GUI_INC_LOC" 1>&6 4956 fi 4957 else 4958 echo "$ac_t""<not found>" 1>&6 4959 SKIP_MOTIF=YES 4960 fi 4961fi 4962 4963 4964if test -z "$SKIP_MOTIF"; then 4965 echo $ac_n "checking --with-motif-lib argument""... $ac_c" 1>&6 4966echo "configure:4967: checking --with-motif-lib argument" >&5 4967 # Check whether --with-motif-lib or --without-motif-lib was given. 4968if test "${with_motif_lib+set}" = set; then 4969 withval="$with_motif_lib" 4970 MOTIF_LIBNAME="${withval}" 4971fi 4972 4973 4974 if test -n "$MOTIF_LIBNAME"; then 4975 echo "$ac_t""$MOTIF_LIBNAME" 1>&6 4976 GUI_LIB_LOC= 4977 else 4978 echo "$ac_t""no" 1>&6 4979 4980 GUI_LIB_LOC="`echo $GUI_LIB_LOC|sed 's%-L%%g'`" 4981 4982 echo $ac_n "checking for location of Motif GUI libs""... $ac_c" 1>&6 4983echo "configure:4984: checking for location of Motif GUI libs" >&5 4984 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" 4985 GUI_LIB_LOC= 4986 for try in $gui_libs; do 4987 for libtry in "$try"/libXm.a "$try"/libXm.so* "$try"/libXm.sl; do 4988 if test -f "$libtry"; then 4989 GUI_LIB_LOC=$try 4990 fi 4991 done 4992 done 4993 if test -n "$GUI_LIB_LOC"; then 4994 if test "$GUI_LIB_LOC" = /usr/lib; then 4995 GUI_LIB_LOC= 4996 echo "$ac_t""in default path" 1>&6 4997 else 4998 if test -n "$GUI_LIB_LOC"; then 4999 echo "$ac_t""$GUI_LIB_LOC" 1>&6 5000 if test "`(uname) 2>/dev/null`" = SunOS && 5001 uname -r | grep '^5' >/dev/null; then 5002 GUI_LIB_LOC="$GUI_LIB_LOC -R $GUI_LIB_LOC" 5003 fi 5004 fi 5005 fi 5006 MOTIF_LIBNAME=-lXm 5007 else 5008 echo "$ac_t""<not found>" 1>&6 5009 SKIP_MOTIF=YES 5010 fi 5011 fi 5012fi 5013 5014if test -z "$SKIP_MOTIF"; then 5015 SKIP_ATHENA=YES 5016 SKIP_NEXTAW=YES 5017 GUITYPE=MOTIF 5018 5019fi 5020 5021 5022GUI_X_LIBS= 5023 5024if test -z "$SKIP_ATHENA"; then 5025 echo $ac_n "checking if Athena header files can be found""... $ac_c" 1>&6 5026echo "configure:5027: checking if Athena header files can be found" >&5 5027 cflags_save=$CFLAGS 5028 CFLAGS="$CFLAGS $X_CFLAGS" 5029 cat > conftest.$ac_ext <<EOF 5030#line 5031 "configure" 5031#include "confdefs.h" 5032 5033#include <X11/Intrinsic.h> 5034#include <X11/Xaw/Paned.h> 5035int main() { 5036 5037; return 0; } 5038EOF 5039if { (eval echo configure:5040: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 5040 rm -rf conftest* 5041 echo "$ac_t""yes" 1>&6 5042else 5043 echo "configure: failed program was:" >&5 5044 cat conftest.$ac_ext >&5 5045 rm -rf conftest* 5046 echo "$ac_t""no" 1>&6; SKIP_ATHENA=YES 5047fi 5048rm -f conftest* 5049 CFLAGS=$cflags_save 5050fi 5051 5052if test -z "$SKIP_ATHENA"; then 5053 GUITYPE=ATHENA 5054fi 5055 5056if test -z "$SKIP_NEXTAW"; then 5057 echo $ac_n "checking if neXtaw header files can be found""... $ac_c" 1>&6 5058echo "configure:5059: checking if neXtaw header files can be found" >&5 5059 cflags_save=$CFLAGS 5060 CFLAGS="$CFLAGS $X_CFLAGS" 5061 cat > conftest.$ac_ext <<EOF 5062#line 5063 "configure" 5063#include "confdefs.h" 5064 5065#include <X11/Intrinsic.h> 5066#include <X11/neXtaw/Paned.h> 5067int main() { 5068 5069; return 0; } 5070EOF 5071if { (eval echo configure:5072: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 5072 rm -rf conftest* 5073 echo "$ac_t""yes" 1>&6 5074else 5075 echo "configure: failed program was:" >&5 5076 cat conftest.$ac_ext >&5 5077 rm -rf conftest* 5078 echo "$ac_t""no" 1>&6; SKIP_NEXTAW=YES 5079fi 5080rm -f conftest* 5081 CFLAGS=$cflags_save 5082fi 5083 5084if test -z "$SKIP_NEXTAW"; then 5085 GUITYPE=NEXTAW 5086fi 5087 5088if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then 5089 if test -n "$GUI_INC_LOC"; then 5090 GUI_INC_LOC=-I"`echo $GUI_INC_LOC|sed 's%-I%%'`" 5091 fi 5092 if test -n "$GUI_LIB_LOC"; then 5093 GUI_LIB_LOC=-L"`echo $GUI_LIB_LOC|sed 's%-L%%'`" 5094 fi 5095 5096 ldflags_save=$LDFLAGS 5097 LDFLAGS="$X_LIBS $LDFLAGS" 5098 echo $ac_n "checking for XShapeQueryExtension in -lXext""... $ac_c" 1>&6 5099echo "configure:5100: checking for XShapeQueryExtension in -lXext" >&5 5100ac_lib_var=`echo Xext'_'XShapeQueryExtension | sed 'y%./+-%__p_%'` 5101if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 5102 echo $ac_n "(cached) $ac_c" 1>&6 5103else 5104 ac_save_LIBS="$LIBS" 5105LIBS="-lXext -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS" 5106cat > conftest.$ac_ext <<EOF 5107#line 5108 "configure" 5108#include "confdefs.h" 5109/* Override any gcc2 internal prototype to avoid an error. */ 5110/* We use char because int might match the return type of a gcc2 5111 builtin and then its argument prototype would still apply. */ 5112char XShapeQueryExtension(); 5113 5114int main() { 5115XShapeQueryExtension() 5116; return 0; } 5117EOF 5118if { (eval echo configure:5119: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5119 rm -rf conftest* 5120 eval "ac_cv_lib_$ac_lib_var=yes" 5121else 5122 echo "configure: failed program was:" >&5 5123 cat conftest.$ac_ext >&5 5124 rm -rf conftest* 5125 eval "ac_cv_lib_$ac_lib_var=no" 5126fi 5127rm -f conftest* 5128LIBS="$ac_save_LIBS" 5129 5130fi 5131if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 5132 echo "$ac_t""yes" 1>&6 5133 GUI_X_LIBS="-lXext" 5134else 5135 echo "$ac_t""no" 1>&6 5136fi 5137 5138 echo $ac_n "checking for wslen in -lw""... $ac_c" 1>&6 5139echo "configure:5140: checking for wslen in -lw" >&5 5140ac_lib_var=`echo w'_'wslen | sed 'y%./+-%__p_%'` 5141if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 5142 echo $ac_n "(cached) $ac_c" 1>&6 5143else 5144 ac_save_LIBS="$LIBS" 5145LIBS="-lw $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS" 5146cat > conftest.$ac_ext <<EOF 5147#line 5148 "configure" 5148#include "confdefs.h" 5149/* Override any gcc2 internal prototype to avoid an error. */ 5150/* We use char because int might match the return type of a gcc2 5151 builtin and then its argument prototype would still apply. */ 5152char wslen(); 5153 5154int main() { 5155wslen() 5156; return 0; } 5157EOF 5158if { (eval echo configure:5159: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5159 rm -rf conftest* 5160 eval "ac_cv_lib_$ac_lib_var=yes" 5161else 5162 echo "configure: failed program was:" >&5 5163 cat conftest.$ac_ext >&5 5164 rm -rf conftest* 5165 eval "ac_cv_lib_$ac_lib_var=no" 5166fi 5167rm -f conftest* 5168LIBS="$ac_save_LIBS" 5169 5170fi 5171if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 5172 echo "$ac_t""yes" 1>&6 5173 X_EXTRA_LIBS="$X_EXTRA_LIBS -lw" 5174else 5175 echo "$ac_t""no" 1>&6 5176fi 5177 5178 echo $ac_n "checking for dlsym in -ldl""... $ac_c" 1>&6 5179echo "configure:5180: checking for dlsym in -ldl" >&5 5180ac_lib_var=`echo dl'_'dlsym | sed 'y%./+-%__p_%'` 5181if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 5182 echo $ac_n "(cached) $ac_c" 1>&6 5183else 5184 ac_save_LIBS="$LIBS" 5185LIBS="-ldl $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS" 5186cat > conftest.$ac_ext <<EOF 5187#line 5188 "configure" 5188#include "confdefs.h" 5189/* Override any gcc2 internal prototype to avoid an error. */ 5190/* We use char because int might match the return type of a gcc2 5191 builtin and then its argument prototype would still apply. */ 5192char dlsym(); 5193 5194int main() { 5195dlsym() 5196; return 0; } 5197EOF 5198if { (eval echo configure:5199: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5199 rm -rf conftest* 5200 eval "ac_cv_lib_$ac_lib_var=yes" 5201else 5202 echo "configure: failed program was:" >&5 5203 cat conftest.$ac_ext >&5 5204 rm -rf conftest* 5205 eval "ac_cv_lib_$ac_lib_var=no" 5206fi 5207rm -f conftest* 5208LIBS="$ac_save_LIBS" 5209 5210fi 5211if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 5212 echo "$ac_t""yes" 1>&6 5213 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldl" 5214else 5215 echo "$ac_t""no" 1>&6 5216fi 5217 5218 echo $ac_n "checking for XmuCreateStippledPixmap in -lXmu""... $ac_c" 1>&6 5219echo "configure:5220: checking for XmuCreateStippledPixmap in -lXmu" >&5 5220ac_lib_var=`echo Xmu'_'XmuCreateStippledPixmap | sed 'y%./+-%__p_%'` 5221if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 5222 echo $ac_n "(cached) $ac_c" 1>&6 5223else 5224 ac_save_LIBS="$LIBS" 5225LIBS="-lXmu $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS" 5226cat > conftest.$ac_ext <<EOF 5227#line 5228 "configure" 5228#include "confdefs.h" 5229/* Override any gcc2 internal prototype to avoid an error. */ 5230/* We use char because int might match the return type of a gcc2 5231 builtin and then its argument prototype would still apply. */ 5232char XmuCreateStippledPixmap(); 5233 5234int main() { 5235XmuCreateStippledPixmap() 5236; return 0; } 5237EOF 5238if { (eval echo configure:5239: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5239 rm -rf conftest* 5240 eval "ac_cv_lib_$ac_lib_var=yes" 5241else 5242 echo "configure: failed program was:" >&5 5243 cat conftest.$ac_ext >&5 5244 rm -rf conftest* 5245 eval "ac_cv_lib_$ac_lib_var=no" 5246fi 5247rm -f conftest* 5248LIBS="$ac_save_LIBS" 5249 5250fi 5251if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 5252 echo "$ac_t""yes" 1>&6 5253 GUI_X_LIBS="-lXmu $GUI_X_LIBS" 5254else 5255 echo "$ac_t""no" 1>&6 5256fi 5257 5258 if test -z "$SKIP_MOTIF"; then 5259 echo $ac_n "checking for XpEndJob in -lXp""... $ac_c" 1>&6 5260echo "configure:5261: checking for XpEndJob in -lXp" >&5 5261ac_lib_var=`echo Xp'_'XpEndJob | sed 'y%./+-%__p_%'` 5262if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 5263 echo $ac_n "(cached) $ac_c" 1>&6 5264else 5265 ac_save_LIBS="$LIBS" 5266LIBS="-lXp $GUI_X_LIBS -lXm -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS" 5267cat > conftest.$ac_ext <<EOF 5268#line 5269 "configure" 5269#include "confdefs.h" 5270/* Override any gcc2 internal prototype to avoid an error. */ 5271/* We use char because int might match the return type of a gcc2 5272 builtin and then its argument prototype would still apply. */ 5273char XpEndJob(); 5274 5275int main() { 5276XpEndJob() 5277; return 0; } 5278EOF 5279if { (eval echo configure:5280: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5280 rm -rf conftest* 5281 eval "ac_cv_lib_$ac_lib_var=yes" 5282else 5283 echo "configure: failed program was:" >&5 5284 cat conftest.$ac_ext >&5 5285 rm -rf conftest* 5286 eval "ac_cv_lib_$ac_lib_var=no" 5287fi 5288rm -f conftest* 5289LIBS="$ac_save_LIBS" 5290 5291fi 5292if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 5293 echo "$ac_t""yes" 1>&6 5294 GUI_X_LIBS="-lXp $GUI_X_LIBS" 5295else 5296 echo "$ac_t""no" 1>&6 5297fi 5298 5299 fi 5300 LDFLAGS=$ldflags_save 5301 5302 echo $ac_n "checking for extra X11 defines""... $ac_c" 1>&6 5303echo "configure:5304: checking for extra X11 defines" >&5 5304 NARROW_PROTO= 5305 rm -fr conftestdir 5306 if mkdir conftestdir; then 5307 cd conftestdir 5308 cat > Imakefile <<'EOF' 5309acfindx: 5310 @echo 'NARROW_PROTO="${PROTO_DEFINES}"' 5311EOF 5312 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then 5313 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` 5314 fi 5315 cd .. 5316 rm -fr conftestdir 5317 fi 5318 if test -z "$NARROW_PROTO"; then 5319 echo "$ac_t""no" 1>&6 5320 else 5321 echo "$ac_t""$NARROW_PROTO" 1>&6 5322 fi 5323 5324fi 5325 5326if test "$enable_xsmp" = "yes"; then 5327 cppflags_save=$CPPFLAGS 5328 CPPFLAGS="$CPPFLAGS $X_CFLAGS" 5329 for ac_hdr in X11/SM/SMlib.h 5330do 5331ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 5332echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 5333echo "configure:5334: checking for $ac_hdr" >&5 5334if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 5335 echo $ac_n "(cached) $ac_c" 1>&6 5336else 5337 cat > conftest.$ac_ext <<EOF 5338#line 5339 "configure" 5339#include "confdefs.h" 5340#include <$ac_hdr> 5341EOF 5342ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5343{ (eval echo configure:5344: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5344ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 5345if test -z "$ac_err"; then 5346 rm -rf conftest* 5347 eval "ac_cv_header_$ac_safe=yes" 5348else 5349 echo "$ac_err" >&5 5350 echo "configure: failed program was:" >&5 5351 cat conftest.$ac_ext >&5 5352 rm -rf conftest* 5353 eval "ac_cv_header_$ac_safe=no" 5354fi 5355rm -f conftest* 5356fi 5357if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 5358 echo "$ac_t""yes" 1>&6 5359 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 5360 cat >> confdefs.h <<EOF 5361#define $ac_tr_hdr 1 5362EOF 5363 5364else 5365 echo "$ac_t""no" 1>&6 5366fi 5367done 5368 5369 CPPFLAGS=$cppflags_save 5370fi 5371 5372 5373if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF" -o -z "$SKIP_GTK"; then 5374 cppflags_save=$CPPFLAGS 5375 CPPFLAGS="$CPPFLAGS $X_CFLAGS" 5376 for ac_hdr in X11/xpm.h X11/Sunkeysym.h 5377do 5378ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 5379echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 5380echo "configure:5381: checking for $ac_hdr" >&5 5381if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 5382 echo $ac_n "(cached) $ac_c" 1>&6 5383else 5384 cat > conftest.$ac_ext <<EOF 5385#line 5386 "configure" 5386#include "confdefs.h" 5387#include <$ac_hdr> 5388EOF 5389ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5390{ (eval echo configure:5391: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5391ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 5392if test -z "$ac_err"; then 5393 rm -rf conftest* 5394 eval "ac_cv_header_$ac_safe=yes" 5395else 5396 echo "$ac_err" >&5 5397 echo "configure: failed program was:" >&5 5398 cat conftest.$ac_ext >&5 5399 rm -rf conftest* 5400 eval "ac_cv_header_$ac_safe=no" 5401fi 5402rm -f conftest* 5403fi 5404if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 5405 echo "$ac_t""yes" 1>&6 5406 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 5407 cat >> confdefs.h <<EOF 5408#define $ac_tr_hdr 1 5409EOF 5410 5411else 5412 echo "$ac_t""no" 1>&6 5413fi 5414done 5415 5416 5417 if test ! "$enable_xim" = "no"; then 5418 echo $ac_n "checking for XIMText in X11/Xlib.h""... $ac_c" 1>&6 5419echo "configure:5420: checking for XIMText in X11/Xlib.h" >&5 5420 cat > conftest.$ac_ext <<EOF 5421#line 5422 "configure" 5422#include "confdefs.h" 5423#include <X11/Xlib.h> 5424EOF 5425if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5426 egrep "XIMText" >/dev/null 2>&1; then 5427 rm -rf conftest* 5428 echo "$ac_t""yes" 1>&6 5429else 5430 rm -rf conftest* 5431 echo "$ac_t""no; xim has been disabled" 1>&6; enable_xim = "no" 5432fi 5433rm -f conftest* 5434 5435 fi 5436 CPPFLAGS=$cppflags_save 5437 5438 if test "$enable_xim" = "auto" -a "$enable_hangulinput" != "yes" \ 5439 -a "x$GUITYPE" != "xNONE" ; then 5440 echo "$ac_t""X GUI selected; xim has been enabled" 1>&6 5441 enable_xim="yes" 5442 fi 5443fi 5444 5445if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then 5446 cppflags_save=$CPPFLAGS 5447 CPPFLAGS="$CPPFLAGS $X_CFLAGS" 5448 for ac_hdr in X11/Xmu/Editres.h 5449do 5450ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 5451echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 5452echo "configure:5453: checking for $ac_hdr" >&5 5453if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 5454 echo $ac_n "(cached) $ac_c" 1>&6 5455else 5456 cat > conftest.$ac_ext <<EOF 5457#line 5458 "configure" 5458#include "confdefs.h" 5459#include <$ac_hdr> 5460EOF 5461ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5462{ (eval echo configure:5463: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5463ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 5464if test -z "$ac_err"; then 5465 rm -rf conftest* 5466 eval "ac_cv_header_$ac_safe=yes" 5467else 5468 echo "$ac_err" >&5 5469 echo "configure: failed program was:" >&5 5470 cat conftest.$ac_ext >&5 5471 rm -rf conftest* 5472 eval "ac_cv_header_$ac_safe=no" 5473fi 5474rm -f conftest* 5475fi 5476if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 5477 echo "$ac_t""yes" 1>&6 5478 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 5479 cat >> confdefs.h <<EOF 5480#define $ac_tr_hdr 1 5481EOF 5482 5483else 5484 echo "$ac_t""no" 1>&6 5485fi 5486done 5487 5488 CPPFLAGS=$cppflags_save 5489fi 5490 5491if test -z "$SKIP_MOTIF"; then 5492 cppflags_save=$CPPFLAGS 5493 CPPFLAGS="$CPPFLAGS $X_CFLAGS" 5494 for ac_hdr in Xm/Xm.h Xm/XpmP.h 5495do 5496ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 5497echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 5498echo "configure:5499: checking for $ac_hdr" >&5 5499if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 5500 echo $ac_n "(cached) $ac_c" 1>&6 5501else 5502 cat > conftest.$ac_ext <<EOF 5503#line 5504 "configure" 5504#include "confdefs.h" 5505#include <$ac_hdr> 5506EOF 5507ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5508{ (eval echo configure:5509: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5509ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 5510if test -z "$ac_err"; then 5511 rm -rf conftest* 5512 eval "ac_cv_header_$ac_safe=yes" 5513else 5514 echo "$ac_err" >&5 5515 echo "configure: failed program was:" >&5 5516 cat conftest.$ac_ext >&5 5517 rm -rf conftest* 5518 eval "ac_cv_header_$ac_safe=no" 5519fi 5520rm -f conftest* 5521fi 5522if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 5523 echo "$ac_t""yes" 1>&6 5524 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 5525 cat >> confdefs.h <<EOF 5526#define $ac_tr_hdr 1 5527EOF 5528 5529else 5530 echo "$ac_t""no" 1>&6 5531fi 5532done 5533 5534 CPPFLAGS=$cppflags_save 5535fi 5536 5537if test "x$GUITYPE" = "xNONE" -a "$enable_xim" = "yes"; then 5538 echo "$ac_t""no GUI selected; xim has been disabled" 1>&6 5539 enable_xim="no" 5540fi 5541if test "x$GUITYPE" = "xNONE" -a "$enable_fontset" = "yes"; then 5542 echo "$ac_t""no GUI selected; fontset has been disabled" 1>&6 5543 enable_fontset="no" 5544fi 5545if test "x$GUITYPE:$enable_fontset" = "xGTK:yes" -a "0$gtk_major_version" -ge 2; then 5546 echo "$ac_t""GTK+ 2 GUI selected; fontset has been disabled" 1>&6 5547 enable_fontset="no" 5548fi 5549 5550if test -z "$SKIP_BEOS"; then 5551 GUITYPE=BEOSGUI 5552fi 5553 5554if test -z "$SKIP_PHOTON"; then 5555 GUITYPE=PHOTONGUI 5556fi 5557 5558 5559 5560 5561 5562 5563if test "$enable_workshop" = "yes" -a -n "$SKIP_MOTIF"; then 5564 { echo "configure: error: cannot use workshop without Motif" 1>&2; exit 1; } 5565fi 5566 5567if test "$enable_xim" = "yes"; then 5568 cat >> confdefs.h <<\EOF 5569#define FEAT_XIM 1 5570EOF 5571 5572fi 5573if test "$enable_fontset" = "yes"; then 5574 cat >> confdefs.h <<\EOF 5575#define FEAT_XFONTSET 1 5576EOF 5577 5578fi 5579 5580 5581 5582 5583if test "$enable_hangulinput" = "yes"; then 5584 if test "x$GUITYPE" = "xNONE"; then 5585 echo "$ac_t""no GUI selected; hangul input has been disabled" 1>&6 5586 enable_hangulinput=no 5587 else 5588 cat >> confdefs.h <<\EOF 5589#define FEAT_HANGULIN 1 5590EOF 5591 5592 HANGULIN_SRC=hangulin.c 5593 5594 HANGULIN_OBJ=objects/hangulin.o 5595 5596 fi 5597fi 5598 5599 5600echo $ac_n "checking quality of toupper""... $ac_c" 1>&6 5601echo "configure:5602: checking quality of toupper" >&5 5602if test "$cross_compiling" = yes; then 5603 { echo "configure: error: failed to compile test program" 1>&2; exit 1; } 5604else 5605 cat > conftest.$ac_ext <<EOF 5606#line 5607 "configure" 5607#include "confdefs.h" 5608#include <ctype.h> 5609main() { exit(toupper('A') == 'A' && tolower('z') == 'z'); } 5610EOF 5611if { (eval echo configure:5612: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 5612then 5613 cat >> confdefs.h <<\EOF 5614#define BROKEN_TOUPPER 1 5615EOF 5616 echo "$ac_t""bad" 1>&6 5617else 5618 echo "configure: failed program was:" >&5 5619 cat conftest.$ac_ext >&5 5620 rm -fr conftest* 5621 echo "$ac_t""good" 1>&6 5622fi 5623rm -fr conftest* 5624fi 5625 5626 5627echo $ac_n "checking whether __DATE__ and __TIME__ work""... $ac_c" 1>&6 5628echo "configure:5629: checking whether __DATE__ and __TIME__ work" >&5 5629cat > conftest.$ac_ext <<EOF 5630#line 5631 "configure" 5631#include "confdefs.h" 5632 5633int main() { 5634printf("(" __DATE__ " " __TIME__ ")"); 5635; return 0; } 5636EOF 5637if { (eval echo configure:5638: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 5638 rm -rf conftest* 5639 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF 5640#define HAVE_DATE_TIME 1 5641EOF 5642 5643else 5644 echo "configure: failed program was:" >&5 5645 cat conftest.$ac_ext >&5 5646 rm -rf conftest* 5647 echo "$ac_t""no" 1>&6 5648fi 5649rm -f conftest* 5650 5651ac_safe=`echo "elf.h" | sed 'y%./+-%__p_%'` 5652echo $ac_n "checking for elf.h""... $ac_c" 1>&6 5653echo "configure:5654: checking for elf.h" >&5 5654if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 5655 echo $ac_n "(cached) $ac_c" 1>&6 5656else 5657 cat > conftest.$ac_ext <<EOF 5658#line 5659 "configure" 5659#include "confdefs.h" 5660#include <elf.h> 5661EOF 5662ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5663{ (eval echo configure:5664: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5664ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 5665if test -z "$ac_err"; then 5666 rm -rf conftest* 5667 eval "ac_cv_header_$ac_safe=yes" 5668else 5669 echo "$ac_err" >&5 5670 echo "configure: failed program was:" >&5 5671 cat conftest.$ac_ext >&5 5672 rm -rf conftest* 5673 eval "ac_cv_header_$ac_safe=no" 5674fi 5675rm -f conftest* 5676fi 5677if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 5678 echo "$ac_t""yes" 1>&6 5679 HAS_ELF=1 5680else 5681 echo "$ac_t""no" 1>&6 5682fi 5683 5684if test "$HAS_ELF" = 1; then 5685 echo $ac_n "checking for main in -lelf""... $ac_c" 1>&6 5686echo "configure:5687: checking for main in -lelf" >&5 5687ac_lib_var=`echo elf'_'main | sed 'y%./+-%__p_%'` 5688if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 5689 echo $ac_n "(cached) $ac_c" 1>&6 5690else 5691 ac_save_LIBS="$LIBS" 5692LIBS="-lelf $LIBS" 5693cat > conftest.$ac_ext <<EOF 5694#line 5695 "configure" 5695#include "confdefs.h" 5696 5697int main() { 5698main() 5699; return 0; } 5700EOF 5701if { (eval echo configure:5702: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5702 rm -rf conftest* 5703 eval "ac_cv_lib_$ac_lib_var=yes" 5704else 5705 echo "configure: failed program was:" >&5 5706 cat conftest.$ac_ext >&5 5707 rm -rf conftest* 5708 eval "ac_cv_lib_$ac_lib_var=no" 5709fi 5710rm -f conftest* 5711LIBS="$ac_save_LIBS" 5712 5713fi 5714if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 5715 echo "$ac_t""yes" 1>&6 5716 ac_tr_lib=HAVE_LIB`echo elf | sed -e 's/[^a-zA-Z0-9_]/_/g' \ 5717 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 5718 cat >> confdefs.h <<EOF 5719#define $ac_tr_lib 1 5720EOF 5721 5722 LIBS="-lelf $LIBS" 5723 5724else 5725 echo "$ac_t""no" 1>&6 5726fi 5727 5728fi 5729 5730ac_header_dirent=no 5731for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h 5732do 5733ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 5734echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6 5735echo "configure:5736: checking for $ac_hdr that defines DIR" >&5 5736if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then 5737 echo $ac_n "(cached) $ac_c" 1>&6 5738else 5739 cat > conftest.$ac_ext <<EOF 5740#line 5741 "configure" 5741#include "confdefs.h" 5742#include <sys/types.h> 5743#include <$ac_hdr> 5744int main() { 5745DIR *dirp = 0; 5746; return 0; } 5747EOF 5748if { (eval echo configure:5749: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 5749 rm -rf conftest* 5750 eval "ac_cv_header_dirent_$ac_safe=yes" 5751else 5752 echo "configure: failed program was:" >&5 5753 cat conftest.$ac_ext >&5 5754 rm -rf conftest* 5755 eval "ac_cv_header_dirent_$ac_safe=no" 5756fi 5757rm -f conftest* 5758fi 5759if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then 5760 echo "$ac_t""yes" 1>&6 5761 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 5762 cat >> confdefs.h <<EOF 5763#define $ac_tr_hdr 1 5764EOF 5765 ac_header_dirent=$ac_hdr; break 5766else 5767 echo "$ac_t""no" 1>&6 5768fi 5769done 5770# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 5771if test $ac_header_dirent = dirent.h; then 5772echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6 5773echo "configure:5774: checking for opendir in -ldir" >&5 5774ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'` 5775if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 5776 echo $ac_n "(cached) $ac_c" 1>&6 5777else 5778 ac_save_LIBS="$LIBS" 5779LIBS="-ldir $LIBS" 5780cat > conftest.$ac_ext <<EOF 5781#line 5782 "configure" 5782#include "confdefs.h" 5783/* Override any gcc2 internal prototype to avoid an error. */ 5784/* We use char because int might match the return type of a gcc2 5785 builtin and then its argument prototype would still apply. */ 5786char opendir(); 5787 5788int main() { 5789opendir() 5790; return 0; } 5791EOF 5792if { (eval echo configure:5793: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5793 rm -rf conftest* 5794 eval "ac_cv_lib_$ac_lib_var=yes" 5795else 5796 echo "configure: failed program was:" >&5 5797 cat conftest.$ac_ext >&5 5798 rm -rf conftest* 5799 eval "ac_cv_lib_$ac_lib_var=no" 5800fi 5801rm -f conftest* 5802LIBS="$ac_save_LIBS" 5803 5804fi 5805if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 5806 echo "$ac_t""yes" 1>&6 5807 LIBS="$LIBS -ldir" 5808else 5809 echo "$ac_t""no" 1>&6 5810fi 5811 5812else 5813echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6 5814echo "configure:5815: checking for opendir in -lx" >&5 5815ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'` 5816if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 5817 echo $ac_n "(cached) $ac_c" 1>&6 5818else 5819 ac_save_LIBS="$LIBS" 5820LIBS="-lx $LIBS" 5821cat > conftest.$ac_ext <<EOF 5822#line 5823 "configure" 5823#include "confdefs.h" 5824/* Override any gcc2 internal prototype to avoid an error. */ 5825/* We use char because int might match the return type of a gcc2 5826 builtin and then its argument prototype would still apply. */ 5827char opendir(); 5828 5829int main() { 5830opendir() 5831; return 0; } 5832EOF 5833if { (eval echo configure:5834: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5834 rm -rf conftest* 5835 eval "ac_cv_lib_$ac_lib_var=yes" 5836else 5837 echo "configure: failed program was:" >&5 5838 cat conftest.$ac_ext >&5 5839 rm -rf conftest* 5840 eval "ac_cv_lib_$ac_lib_var=no" 5841fi 5842rm -f conftest* 5843LIBS="$ac_save_LIBS" 5844 5845fi 5846if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 5847 echo "$ac_t""yes" 1>&6 5848 LIBS="$LIBS -lx" 5849else 5850 echo "$ac_t""no" 1>&6 5851fi 5852 5853fi 5854 5855 5856echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 5857echo "configure:5858: checking for ANSI C header files" >&5 5858if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then 5859 echo $ac_n "(cached) $ac_c" 1>&6 5860else 5861 cat > conftest.$ac_ext <<EOF 5862#line 5863 "configure" 5863#include "confdefs.h" 5864#include <stdlib.h> 5865#include <stdarg.h> 5866#include <string.h> 5867#include <float.h> 5868EOF 5869ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5870{ (eval echo configure:5871: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5871ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 5872if test -z "$ac_err"; then 5873 rm -rf conftest* 5874 ac_cv_header_stdc=yes 5875else 5876 echo "$ac_err" >&5 5877 echo "configure: failed program was:" >&5 5878 cat conftest.$ac_ext >&5 5879 rm -rf conftest* 5880 ac_cv_header_stdc=no 5881fi 5882rm -f conftest* 5883 5884if test $ac_cv_header_stdc = yes; then 5885 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 5886cat > conftest.$ac_ext <<EOF 5887#line 5888 "configure" 5888#include "confdefs.h" 5889#include <string.h> 5890EOF 5891if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5892 egrep "memchr" >/dev/null 2>&1; then 5893 : 5894else 5895 rm -rf conftest* 5896 ac_cv_header_stdc=no 5897fi 5898rm -f conftest* 5899 5900fi 5901 5902if test $ac_cv_header_stdc = yes; then 5903 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 5904cat > conftest.$ac_ext <<EOF 5905#line 5906 "configure" 5906#include "confdefs.h" 5907#include <stdlib.h> 5908EOF 5909if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5910 egrep "free" >/dev/null 2>&1; then 5911 : 5912else 5913 rm -rf conftest* 5914 ac_cv_header_stdc=no 5915fi 5916rm -f conftest* 5917 5918fi 5919 5920if test $ac_cv_header_stdc = yes; then 5921 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 5922if test "$cross_compiling" = yes; then 5923 : 5924else 5925 cat > conftest.$ac_ext <<EOF 5926#line 5927 "configure" 5927#include "confdefs.h" 5928#include <ctype.h> 5929#define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 5930#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 5931#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 5932int main () { int i; for (i = 0; i < 256; i++) 5933if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); 5934exit (0); } 5935 5936EOF 5937if { (eval echo configure:5938: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 5938then 5939 : 5940else 5941 echo "configure: failed program was:" >&5 5942 cat conftest.$ac_ext >&5 5943 rm -fr conftest* 5944 ac_cv_header_stdc=no 5945fi 5946rm -fr conftest* 5947fi 5948 5949fi 5950fi 5951 5952echo "$ac_t""$ac_cv_header_stdc" 1>&6 5953if test $ac_cv_header_stdc = yes; then 5954 cat >> confdefs.h <<\EOF 5955#define STDC_HEADERS 1 5956EOF 5957 5958fi 5959 5960echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6 5961echo "configure:5962: checking for sys/wait.h that is POSIX.1 compatible" >&5 5962if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then 5963 echo $ac_n "(cached) $ac_c" 1>&6 5964else 5965 cat > conftest.$ac_ext <<EOF 5966#line 5967 "configure" 5967#include "confdefs.h" 5968#include <sys/types.h> 5969#include <sys/wait.h> 5970#ifndef WEXITSTATUS 5971#define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) 5972#endif 5973#ifndef WIFEXITED 5974#define WIFEXITED(stat_val) (((stat_val) & 255) == 0) 5975#endif 5976int main() { 5977int s; 5978wait (&s); 5979s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 5980; return 0; } 5981EOF 5982if { (eval echo configure:5983: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 5983 rm -rf conftest* 5984 ac_cv_header_sys_wait_h=yes 5985else 5986 echo "configure: failed program was:" >&5 5987 cat conftest.$ac_ext >&5 5988 rm -rf conftest* 5989 ac_cv_header_sys_wait_h=no 5990fi 5991rm -f conftest* 5992fi 5993 5994echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6 5995if test $ac_cv_header_sys_wait_h = yes; then 5996 cat >> confdefs.h <<\EOF 5997#define HAVE_SYS_WAIT_H 1 5998EOF 5999 6000fi 6001 6002 6003if test $ac_cv_header_sys_wait_h = no; then 6004 echo $ac_n "checking for sys/wait.h that defines union wait""... $ac_c" 1>&6 6005echo "configure:6006: checking for sys/wait.h that defines union wait" >&5 6006 cat > conftest.$ac_ext <<EOF 6007#line 6008 "configure" 6008#include "confdefs.h" 6009#include <sys/wait.h> 6010int main() { 6011union wait xx, yy; xx = yy 6012; return 0; } 6013EOF 6014if { (eval echo configure:6015: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 6015 rm -rf conftest* 6016 echo "$ac_t""yes" 1>&6 6017 cat >> confdefs.h <<\EOF 6018#define HAVE_SYS_WAIT_H 1 6019EOF 6020 6021 cat >> confdefs.h <<\EOF 6022#define HAVE_UNION_WAIT 1 6023EOF 6024 6025else 6026 echo "configure: failed program was:" >&5 6027 cat conftest.$ac_ext >&5 6028 rm -rf conftest* 6029 echo "$ac_t""no" 1>&6 6030fi 6031rm -f conftest* 6032fi 6033 6034for ac_hdr in stdarg.h stdlib.h string.h sys/select.h sys/utsname.h \ 6035 termcap.h fcntl.h sgtty.h sys/ioctl.h sys/time.h termio.h \ 6036 iconv.h langinfo.h unistd.h stropts.h errno.h \ 6037 sys/resource.h sys/systeminfo.h locale.h \ 6038 sys/stream.h sys/ptem.h termios.h libc.h sys/statfs.h \ 6039 poll.h sys/poll.h pwd.h utime.h sys/param.h libintl.h \ 6040 libgen.h util/debug.h util/msg18n.h frame.h pthread_np.h \ 6041 sys/acl.h sys/access.h sys/sysctl.h sys/sysinfo.h wchar.h 6042do 6043ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 6044echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 6045echo "configure:6046: checking for $ac_hdr" >&5 6046if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 6047 echo $ac_n "(cached) $ac_c" 1>&6 6048else 6049 cat > conftest.$ac_ext <<EOF 6050#line 6051 "configure" 6051#include "confdefs.h" 6052#include <$ac_hdr> 6053EOF 6054ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6055{ (eval echo configure:6056: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6056ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 6057if test -z "$ac_err"; then 6058 rm -rf conftest* 6059 eval "ac_cv_header_$ac_safe=yes" 6060else 6061 echo "$ac_err" >&5 6062 echo "configure: failed program was:" >&5 6063 cat conftest.$ac_ext >&5 6064 rm -rf conftest* 6065 eval "ac_cv_header_$ac_safe=no" 6066fi 6067rm -f conftest* 6068fi 6069if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 6070 echo "$ac_t""yes" 1>&6 6071 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 6072 cat >> confdefs.h <<EOF 6073#define $ac_tr_hdr 1 6074EOF 6075 6076else 6077 echo "$ac_t""no" 1>&6 6078fi 6079done 6080 6081 6082if test "x$MACOSX" != "xyes"; then 6083 for ac_hdr in strings.h 6084do 6085ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 6086echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 6087echo "configure:6088: checking for $ac_hdr" >&5 6088if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 6089 echo $ac_n "(cached) $ac_c" 1>&6 6090else 6091 cat > conftest.$ac_ext <<EOF 6092#line 6093 "configure" 6093#include "confdefs.h" 6094#include <$ac_hdr> 6095EOF 6096ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6097{ (eval echo configure:6098: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6098ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 6099if test -z "$ac_err"; then 6100 rm -rf conftest* 6101 eval "ac_cv_header_$ac_safe=yes" 6102else 6103 echo "$ac_err" >&5 6104 echo "configure: failed program was:" >&5 6105 cat conftest.$ac_ext >&5 6106 rm -rf conftest* 6107 eval "ac_cv_header_$ac_safe=no" 6108fi 6109rm -f conftest* 6110fi 6111if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 6112 echo "$ac_t""yes" 1>&6 6113 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 6114 cat >> confdefs.h <<EOF 6115#define $ac_tr_hdr 1 6116EOF 6117 6118else 6119 echo "$ac_t""no" 1>&6 6120fi 6121done 6122 6123fi 6124 6125echo $ac_n "checking if strings.h can be included after string.h""... $ac_c" 1>&6 6126echo "configure:6127: checking if strings.h can be included after string.h" >&5 6127cppflags_save=$CPPFLAGS 6128CPPFLAGS="$CPPFLAGS $X_CFLAGS" 6129cat > conftest.$ac_ext <<EOF 6130#line 6131 "configure" 6131#include "confdefs.h" 6132 6133#if defined(_AIX) && !defined(_AIX51) && !defined(_NO_PROTO) 6134# define _NO_PROTO /* like in os_unix.h, causes conflict for AIX (Winn) */ 6135 /* but don't do it on AIX 5.1 (Uribarri) */ 6136#endif 6137#ifdef HAVE_XM_XM_H 6138# include <Xm/Xm.h> /* This breaks it for HP-UX 11 (Squassabia) */ 6139#endif 6140#ifdef HAVE_STRING_H 6141# include <string.h> 6142#endif 6143#if defined(HAVE_STRINGS_H) 6144# include <strings.h> 6145#endif 6146 6147int main() { 6148int i; i = 0; 6149; return 0; } 6150EOF 6151if { (eval echo configure:6152: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 6152 rm -rf conftest* 6153 echo "$ac_t""yes" 1>&6 6154else 6155 echo "configure: failed program was:" >&5 6156 cat conftest.$ac_ext >&5 6157 rm -rf conftest* 6158 cat >> confdefs.h <<\EOF 6159#define NO_STRINGS_WITH_STRING_H 1 6160EOF 6161 6162 echo "$ac_t""no" 1>&6 6163fi 6164rm -f conftest* 6165CPPFLAGS=$cppflags_save 6166 6167if test $ac_cv_prog_gcc = yes; then 6168 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6 6169echo "configure:6170: checking whether ${CC-cc} needs -traditional" >&5 6170if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then 6171 echo $ac_n "(cached) $ac_c" 1>&6 6172else 6173 ac_pattern="Autoconf.*'x'" 6174 cat > conftest.$ac_ext <<EOF 6175#line 6176 "configure" 6176#include "confdefs.h" 6177#include <sgtty.h> 6178Autoconf TIOCGETP 6179EOF 6180if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6181 egrep "$ac_pattern" >/dev/null 2>&1; then 6182 rm -rf conftest* 6183 ac_cv_prog_gcc_traditional=yes 6184else 6185 rm -rf conftest* 6186 ac_cv_prog_gcc_traditional=no 6187fi 6188rm -f conftest* 6189 6190 6191 if test $ac_cv_prog_gcc_traditional = no; then 6192 cat > conftest.$ac_ext <<EOF 6193#line 6194 "configure" 6194#include "confdefs.h" 6195#include <termio.h> 6196Autoconf TCGETA 6197EOF 6198if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6199 egrep "$ac_pattern" >/dev/null 2>&1; then 6200 rm -rf conftest* 6201 ac_cv_prog_gcc_traditional=yes 6202fi 6203rm -f conftest* 6204 6205 fi 6206fi 6207 6208echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6 6209 if test $ac_cv_prog_gcc_traditional = yes; then 6210 CC="$CC -traditional" 6211 fi 6212fi 6213 6214echo $ac_n "checking for working const""... $ac_c" 1>&6 6215echo "configure:6216: checking for working const" >&5 6216if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then 6217 echo $ac_n "(cached) $ac_c" 1>&6 6218else 6219 cat > conftest.$ac_ext <<EOF 6220#line 6221 "configure" 6221#include "confdefs.h" 6222 6223int main() { 6224 6225/* Ultrix mips cc rejects this. */ 6226typedef int charset[2]; const charset x; 6227/* SunOS 4.1.1 cc rejects this. */ 6228char const *const *ccp; 6229char **p; 6230/* NEC SVR4.0.2 mips cc rejects this. */ 6231struct point {int x, y;}; 6232static struct point const zero = {0,0}; 6233/* AIX XL C 1.02.0.0 rejects this. 6234 It does not let you subtract one const X* pointer from another in an arm 6235 of an if-expression whose if-part is not a constant expression */ 6236const char *g = "string"; 6237ccp = &g + (g ? g-g : 0); 6238/* HPUX 7.0 cc rejects these. */ 6239++ccp; 6240p = (char**) ccp; 6241ccp = (char const *const *) p; 6242{ /* SCO 3.2v4 cc rejects this. */ 6243 char *t; 6244 char const *s = 0 ? (char *) 0 : (char const *) 0; 6245 6246 *t++ = 0; 6247} 6248{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 6249 int x[] = {25, 17}; 6250 const int *foo = &x[0]; 6251 ++foo; 6252} 6253{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 6254 typedef const int *iptr; 6255 iptr p = 0; 6256 ++p; 6257} 6258{ /* AIX XL C 1.02.0.0 rejects this saying 6259 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 6260 struct s { int j; const int *ap[3]; }; 6261 struct s *b; b->j = 5; 6262} 6263{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 6264 const int foo = 10; 6265} 6266 6267; return 0; } 6268EOF 6269if { (eval echo configure:6270: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 6270 rm -rf conftest* 6271 ac_cv_c_const=yes 6272else 6273 echo "configure: failed program was:" >&5 6274 cat conftest.$ac_ext >&5 6275 rm -rf conftest* 6276 ac_cv_c_const=no 6277fi 6278rm -f conftest* 6279fi 6280 6281echo "$ac_t""$ac_cv_c_const" 1>&6 6282if test $ac_cv_c_const = no; then 6283 cat >> confdefs.h <<\EOF 6284#define const 6285EOF 6286 6287fi 6288 6289echo $ac_n "checking for mode_t""... $ac_c" 1>&6 6290echo "configure:6291: checking for mode_t" >&5 6291if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then 6292 echo $ac_n "(cached) $ac_c" 1>&6 6293else 6294 cat > conftest.$ac_ext <<EOF 6295#line 6296 "configure" 6296#include "confdefs.h" 6297#include <sys/types.h> 6298#if STDC_HEADERS 6299#include <stdlib.h> 6300#include <stddef.h> 6301#endif 6302EOF 6303if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6304 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 6305 rm -rf conftest* 6306 ac_cv_type_mode_t=yes 6307else 6308 rm -rf conftest* 6309 ac_cv_type_mode_t=no 6310fi 6311rm -f conftest* 6312 6313fi 6314echo "$ac_t""$ac_cv_type_mode_t" 1>&6 6315if test $ac_cv_type_mode_t = no; then 6316 cat >> confdefs.h <<\EOF 6317#define mode_t int 6318EOF 6319 6320fi 6321 6322echo $ac_n "checking for off_t""... $ac_c" 1>&6 6323echo "configure:6324: checking for off_t" >&5 6324if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then 6325 echo $ac_n "(cached) $ac_c" 1>&6 6326else 6327 cat > conftest.$ac_ext <<EOF 6328#line 6329 "configure" 6329#include "confdefs.h" 6330#include <sys/types.h> 6331#if STDC_HEADERS 6332#include <stdlib.h> 6333#include <stddef.h> 6334#endif 6335EOF 6336if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6337 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 6338 rm -rf conftest* 6339 ac_cv_type_off_t=yes 6340else 6341 rm -rf conftest* 6342 ac_cv_type_off_t=no 6343fi 6344rm -f conftest* 6345 6346fi 6347echo "$ac_t""$ac_cv_type_off_t" 1>&6 6348if test $ac_cv_type_off_t = no; then 6349 cat >> confdefs.h <<\EOF 6350#define off_t long 6351EOF 6352 6353fi 6354 6355echo $ac_n "checking for pid_t""... $ac_c" 1>&6 6356echo "configure:6357: checking for pid_t" >&5 6357if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then 6358 echo $ac_n "(cached) $ac_c" 1>&6 6359else 6360 cat > conftest.$ac_ext <<EOF 6361#line 6362 "configure" 6362#include "confdefs.h" 6363#include <sys/types.h> 6364#if STDC_HEADERS 6365#include <stdlib.h> 6366#include <stddef.h> 6367#endif 6368EOF 6369if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6370 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 6371 rm -rf conftest* 6372 ac_cv_type_pid_t=yes 6373else 6374 rm -rf conftest* 6375 ac_cv_type_pid_t=no 6376fi 6377rm -f conftest* 6378 6379fi 6380echo "$ac_t""$ac_cv_type_pid_t" 1>&6 6381if test $ac_cv_type_pid_t = no; then 6382 cat >> confdefs.h <<\EOF 6383#define pid_t int 6384EOF 6385 6386fi 6387 6388echo $ac_n "checking for size_t""... $ac_c" 1>&6 6389echo "configure:6390: checking for size_t" >&5 6390if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then 6391 echo $ac_n "(cached) $ac_c" 1>&6 6392else 6393 cat > conftest.$ac_ext <<EOF 6394#line 6395 "configure" 6395#include "confdefs.h" 6396#include <sys/types.h> 6397#if STDC_HEADERS 6398#include <stdlib.h> 6399#include <stddef.h> 6400#endif 6401EOF 6402if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6403 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 6404 rm -rf conftest* 6405 ac_cv_type_size_t=yes 6406else 6407 rm -rf conftest* 6408 ac_cv_type_size_t=no 6409fi 6410rm -f conftest* 6411 6412fi 6413echo "$ac_t""$ac_cv_type_size_t" 1>&6 6414if test $ac_cv_type_size_t = no; then 6415 cat >> confdefs.h <<\EOF 6416#define size_t unsigned 6417EOF 6418 6419fi 6420 6421echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6 6422echo "configure:6423: checking for uid_t in sys/types.h" >&5 6423if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then 6424 echo $ac_n "(cached) $ac_c" 1>&6 6425else 6426 cat > conftest.$ac_ext <<EOF 6427#line 6428 "configure" 6428#include "confdefs.h" 6429#include <sys/types.h> 6430EOF 6431if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6432 egrep "uid_t" >/dev/null 2>&1; then 6433 rm -rf conftest* 6434 ac_cv_type_uid_t=yes 6435else 6436 rm -rf conftest* 6437 ac_cv_type_uid_t=no 6438fi 6439rm -f conftest* 6440 6441fi 6442 6443echo "$ac_t""$ac_cv_type_uid_t" 1>&6 6444if test $ac_cv_type_uid_t = no; then 6445 cat >> confdefs.h <<\EOF 6446#define uid_t int 6447EOF 6448 6449 cat >> confdefs.h <<\EOF 6450#define gid_t int 6451EOF 6452 6453fi 6454 6455echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 6456echo "configure:6457: checking whether time.h and sys/time.h may both be included" >&5 6457if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then 6458 echo $ac_n "(cached) $ac_c" 1>&6 6459else 6460 cat > conftest.$ac_ext <<EOF 6461#line 6462 "configure" 6462#include "confdefs.h" 6463#include <sys/types.h> 6464#include <sys/time.h> 6465#include <time.h> 6466int main() { 6467struct tm *tp; 6468; return 0; } 6469EOF 6470if { (eval echo configure:6471: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 6471 rm -rf conftest* 6472 ac_cv_header_time=yes 6473else 6474 echo "configure: failed program was:" >&5 6475 cat conftest.$ac_ext >&5 6476 rm -rf conftest* 6477 ac_cv_header_time=no 6478fi 6479rm -f conftest* 6480fi 6481 6482echo "$ac_t""$ac_cv_header_time" 1>&6 6483if test $ac_cv_header_time = yes; then 6484 cat >> confdefs.h <<\EOF 6485#define TIME_WITH_SYS_TIME 1 6486EOF 6487 6488fi 6489 6490echo $ac_n "checking for ino_t""... $ac_c" 1>&6 6491echo "configure:6492: checking for ino_t" >&5 6492if eval "test \"`echo '$''{'ac_cv_type_ino_t'+set}'`\" = set"; then 6493 echo $ac_n "(cached) $ac_c" 1>&6 6494else 6495 cat > conftest.$ac_ext <<EOF 6496#line 6497 "configure" 6497#include "confdefs.h" 6498#include <sys/types.h> 6499#if STDC_HEADERS 6500#include <stdlib.h> 6501#include <stddef.h> 6502#endif 6503EOF 6504if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6505 egrep "(^|[^a-zA-Z_0-9])ino_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 6506 rm -rf conftest* 6507 ac_cv_type_ino_t=yes 6508else 6509 rm -rf conftest* 6510 ac_cv_type_ino_t=no 6511fi 6512rm -f conftest* 6513 6514fi 6515echo "$ac_t""$ac_cv_type_ino_t" 1>&6 6516if test $ac_cv_type_ino_t = no; then 6517 cat >> confdefs.h <<\EOF 6518#define ino_t long 6519EOF 6520 6521fi 6522 6523echo $ac_n "checking for dev_t""... $ac_c" 1>&6 6524echo "configure:6525: checking for dev_t" >&5 6525if eval "test \"`echo '$''{'ac_cv_type_dev_t'+set}'`\" = set"; then 6526 echo $ac_n "(cached) $ac_c" 1>&6 6527else 6528 cat > conftest.$ac_ext <<EOF 6529#line 6530 "configure" 6530#include "confdefs.h" 6531#include <sys/types.h> 6532#if STDC_HEADERS 6533#include <stdlib.h> 6534#include <stddef.h> 6535#endif 6536EOF 6537if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6538 egrep "(^|[^a-zA-Z_0-9])dev_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 6539 rm -rf conftest* 6540 ac_cv_type_dev_t=yes 6541else 6542 rm -rf conftest* 6543 ac_cv_type_dev_t=no 6544fi 6545rm -f conftest* 6546 6547fi 6548echo "$ac_t""$ac_cv_type_dev_t" 1>&6 6549if test $ac_cv_type_dev_t = no; then 6550 cat >> confdefs.h <<\EOF 6551#define dev_t unsigned 6552EOF 6553 6554fi 6555 6556 6557echo $ac_n "checking for rlim_t""... $ac_c" 1>&6 6558echo "configure:6559: checking for rlim_t" >&5 6559if eval "test \"`echo '$''{'ac_cv_type_rlim_t'+set}'`\" = set"; then 6560 echo "$ac_t""(cached) $ac_cv_type_rlim_t" 1>&6 6561else 6562 cat > conftest.$ac_ext <<EOF 6563#line 6564 "configure" 6564#include "confdefs.h" 6565 6566#include <sys/types.h> 6567#if STDC_HEADERS 6568#include <stdlib.h> 6569#include <stddef.h> 6570#endif 6571#ifdef HAVE_SYS_RESOURCE_H 6572#include <sys/resource.h> 6573#endif 6574 6575EOF 6576if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6577 egrep "(^|[^a-zA-Z_0-9])rlim_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 6578 rm -rf conftest* 6579 ac_cv_type_rlim_t=yes 6580else 6581 rm -rf conftest* 6582 ac_cv_type_rlim_t=no 6583fi 6584rm -f conftest* 6585 6586 echo "$ac_t""$ac_cv_type_rlim_t" 1>&6 6587fi 6588if test $ac_cv_type_rlim_t = no; then 6589 cat >> confdefs.h <<\EOF 6590#define rlim_t unsigned long 6591EOF 6592fi 6593 6594echo $ac_n "checking for stack_t""... $ac_c" 1>&6 6595echo "configure:6596: checking for stack_t" >&5 6596if eval "test \"`echo '$''{'ac_cv_type_stack_t'+set}'`\" = set"; then 6597 echo "$ac_t""(cached) $ac_cv_type_stack_t" 1>&6 6598else 6599 cat > conftest.$ac_ext <<EOF 6600#line 6601 "configure" 6601#include "confdefs.h" 6602 6603#include <sys/types.h> 6604#if STDC_HEADERS 6605#include <stdlib.h> 6606#include <stddef.h> 6607#endif 6608#include <signal.h> 6609 6610EOF 6611if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6612 egrep "stack_t" >/dev/null 2>&1; then 6613 rm -rf conftest* 6614 ac_cv_type_stack_t=yes 6615else 6616 rm -rf conftest* 6617 ac_cv_type_stack_t=no 6618fi 6619rm -f conftest* 6620 6621 echo "$ac_t""$ac_cv_type_stack_t" 1>&6 6622fi 6623if test $ac_cv_type_stack_t = no; then 6624 cat >> confdefs.h <<\EOF 6625#define stack_t struct sigaltstack 6626EOF 6627fi 6628 6629echo $ac_n "checking whether stack_t has an ss_base field""... $ac_c" 1>&6 6630echo "configure:6631: checking whether stack_t has an ss_base field" >&5 6631cat > conftest.$ac_ext <<EOF 6632#line 6633 "configure" 6633#include "confdefs.h" 6634 6635#include <sys/types.h> 6636#if STDC_HEADERS 6637#include <stdlib.h> 6638#include <stddef.h> 6639#endif 6640#include <signal.h> 6641#include "confdefs.h" 6642 6643int main() { 6644stack_t sigstk; sigstk.ss_base = 0; 6645; return 0; } 6646EOF 6647if { (eval echo configure:6648: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 6648 rm -rf conftest* 6649 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF 6650#define HAVE_SS_BASE 1 6651EOF 6652 6653else 6654 echo "configure: failed program was:" >&5 6655 cat conftest.$ac_ext >&5 6656 rm -rf conftest* 6657 echo "$ac_t""no" 1>&6 6658fi 6659rm -f conftest* 6660 6661olibs="$LIBS" 6662echo $ac_n "checking --with-tlib argument""... $ac_c" 1>&6 6663echo "configure:6664: checking --with-tlib argument" >&5 6664# Check whether --with-tlib or --without-tlib was given. 6665if test "${with_tlib+set}" = set; then 6666 withval="$with_tlib" 6667 : 6668fi 6669 6670if test -n "$with_tlib"; then 6671 echo "$ac_t""$with_tlib" 1>&6 6672 LIBS="$LIBS -l$with_tlib" 6673else 6674 echo "$ac_t""automatic terminal library selection" 1>&6 6675 case "`uname -s 2>/dev/null`" in 6676 OSF1) tlibs="ncurses curses termlib termcap";; 6677 *) tlibs="ncurses termlib termcap curses";; 6678 esac 6679 for libname in $tlibs; do 6680 echo $ac_n "checking for tgetent in -l${libname}""... $ac_c" 1>&6 6681echo "configure:6682: checking for tgetent in -l${libname}" >&5 6682ac_lib_var=`echo ${libname}'_'tgetent | sed 'y%./+-%__p_%'` 6683if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 6684 echo $ac_n "(cached) $ac_c" 1>&6 6685else 6686 ac_save_LIBS="$LIBS" 6687LIBS="-l${libname} $LIBS" 6688cat > conftest.$ac_ext <<EOF 6689#line 6690 "configure" 6690#include "confdefs.h" 6691/* Override any gcc2 internal prototype to avoid an error. */ 6692/* We use char because int might match the return type of a gcc2 6693 builtin and then its argument prototype would still apply. */ 6694char tgetent(); 6695 6696int main() { 6697tgetent() 6698; return 0; } 6699EOF 6700if { (eval echo configure:6701: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6701 rm -rf conftest* 6702 eval "ac_cv_lib_$ac_lib_var=yes" 6703else 6704 echo "configure: failed program was:" >&5 6705 cat conftest.$ac_ext >&5 6706 rm -rf conftest* 6707 eval "ac_cv_lib_$ac_lib_var=no" 6708fi 6709rm -f conftest* 6710LIBS="$ac_save_LIBS" 6711 6712fi 6713if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 6714 echo "$ac_t""yes" 1>&6 6715 ac_tr_lib=HAVE_LIB`echo ${libname} | sed -e 's/[^a-zA-Z0-9_]/_/g' \ 6716 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 6717 cat >> confdefs.h <<EOF 6718#define $ac_tr_lib 1 6719EOF 6720 6721 LIBS="-l${libname} $LIBS" 6722 6723else 6724 echo "$ac_t""no" 1>&6 6725fi 6726 6727 if test "x$olibs" != "x$LIBS"; then 6728 if test "$cross_compiling" = yes; then 6729 res="FAIL" 6730else 6731 cat > conftest.$ac_ext <<EOF 6732#line 6733 "configure" 6733#include "confdefs.h" 6734 6735#ifdef HAVE_TERMCAP_H 6736# include <termcap.h> 6737#endif 6738main() {char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(0); } 6739EOF 6740if { (eval echo configure:6741: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 6741then 6742 res="OK" 6743else 6744 echo "configure: failed program was:" >&5 6745 cat conftest.$ac_ext >&5 6746 rm -fr conftest* 6747 res="FAIL" 6748fi 6749rm -fr conftest* 6750fi 6751 6752 if test "$res" = "OK"; then 6753 break 6754 fi 6755 echo "$ac_t""$libname library is not usable" 1>&6 6756 LIBS="$olibs" 6757 fi 6758 done 6759fi 6760if test "x$olibs" != "x$LIBS"; then 6761 echo $ac_n "checking whether we talk terminfo""... $ac_c" 1>&6 6762echo "configure:6763: checking whether we talk terminfo" >&5 6763 if test "$cross_compiling" = yes; then 6764 { echo "configure: error: failed to compile test program." 1>&2; exit 1; } 6765else 6766 cat > conftest.$ac_ext <<EOF 6767#line 6768 "configure" 6768#include "confdefs.h" 6769 6770#ifdef HAVE_TERMCAP_H 6771# include <termcap.h> 6772#endif 6773main() 6774{char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(!strcmp(s==0 ? "" : s, "1")); } 6775EOF 6776if { (eval echo configure:6777: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 6777then 6778 echo "$ac_t""no -- we are in termcap land" 1>&6 6779else 6780 echo "configure: failed program was:" >&5 6781 cat conftest.$ac_ext >&5 6782 rm -fr conftest* 6783 echo "$ac_t""yes -- terminfo spoken here" 1>&6; cat >> confdefs.h <<\EOF 6784#define TERMINFO 1 6785EOF 6786 6787fi 6788rm -fr conftest* 6789fi 6790 6791else 6792 echo "$ac_t""none found" 1>&6 6793fi 6794 6795if test "x$olibs" != "x$LIBS"; then 6796 echo $ac_n "checking what tgetent() returns for an unknown terminal""... $ac_c" 1>&6 6797echo "configure:6798: checking what tgetent() returns for an unknown terminal" >&5 6798 if test "$cross_compiling" = yes; then 6799 { echo "configure: error: failed to compile test program." 1>&2; exit 1; } 6800else 6801 cat > conftest.$ac_ext <<EOF 6802#line 6803 "configure" 6803#include "confdefs.h" 6804 6805#ifdef HAVE_TERMCAP_H 6806# include <termcap.h> 6807#endif 6808main() 6809{char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist"); exit(res != 0); } 6810EOF 6811if { (eval echo configure:6812: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 6812then 6813 echo "$ac_t""zero" 1>&6; cat >> confdefs.h <<\EOF 6814#define TGETENT_ZERO_ERR 0 6815EOF 6816 6817else 6818 echo "configure: failed program was:" >&5 6819 cat conftest.$ac_ext >&5 6820 rm -fr conftest* 6821 echo "$ac_t""non-zero" 1>&6 6822fi 6823rm -fr conftest* 6824fi 6825 6826fi 6827 6828echo $ac_n "checking whether termcap.h contains ospeed""... $ac_c" 1>&6 6829echo "configure:6830: checking whether termcap.h contains ospeed" >&5 6830cat > conftest.$ac_ext <<EOF 6831#line 6832 "configure" 6832#include "confdefs.h" 6833 6834#ifdef HAVE_TERMCAP_H 6835# include <termcap.h> 6836#endif 6837 6838int main() { 6839ospeed = 20000 6840; return 0; } 6841EOF 6842if { (eval echo configure:6843: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6843 rm -rf conftest* 6844 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF 6845#define HAVE_OSPEED 1 6846EOF 6847 6848else 6849 echo "configure: failed program was:" >&5 6850 cat conftest.$ac_ext >&5 6851 rm -rf conftest* 6852 echo "$ac_t""no" 1>&6 6853 echo $ac_n "checking whether ospeed can be extern""... $ac_c" 1>&6 6854echo "configure:6855: checking whether ospeed can be extern" >&5 6855 cat > conftest.$ac_ext <<EOF 6856#line 6857 "configure" 6857#include "confdefs.h" 6858 6859#ifdef HAVE_TERMCAP_H 6860# include <termcap.h> 6861#endif 6862extern short ospeed; 6863 6864int main() { 6865ospeed = 20000 6866; return 0; } 6867EOF 6868if { (eval echo configure:6869: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6869 rm -rf conftest* 6870 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF 6871#define OSPEED_EXTERN 1 6872EOF 6873 6874else 6875 echo "configure: failed program was:" >&5 6876 cat conftest.$ac_ext >&5 6877 rm -rf conftest* 6878 echo "$ac_t""no" 1>&6 6879fi 6880rm -f conftest* 6881 6882fi 6883rm -f conftest* 6884 6885echo $ac_n "checking whether termcap.h contains UP, BC and PC""... $ac_c" 1>&6 6886echo "configure:6887: checking whether termcap.h contains UP, BC and PC" >&5 6887cat > conftest.$ac_ext <<EOF 6888#line 6889 "configure" 6889#include "confdefs.h" 6890 6891#ifdef HAVE_TERMCAP_H 6892# include <termcap.h> 6893#endif 6894 6895int main() { 6896if (UP == 0 && BC == 0) PC = 1 6897; return 0; } 6898EOF 6899if { (eval echo configure:6900: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6900 rm -rf conftest* 6901 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF 6902#define HAVE_UP_BC_PC 1 6903EOF 6904 6905else 6906 echo "configure: failed program was:" >&5 6907 cat conftest.$ac_ext >&5 6908 rm -rf conftest* 6909 echo "$ac_t""no" 1>&6 6910 echo $ac_n "checking whether UP, BC and PC can be extern""... $ac_c" 1>&6 6911echo "configure:6912: checking whether UP, BC and PC can be extern" >&5 6912 cat > conftest.$ac_ext <<EOF 6913#line 6914 "configure" 6914#include "confdefs.h" 6915 6916#ifdef HAVE_TERMCAP_H 6917# include <termcap.h> 6918#endif 6919extern char *UP, *BC, PC; 6920 6921int main() { 6922if (UP == 0 && BC == 0) PC = 1 6923; return 0; } 6924EOF 6925if { (eval echo configure:6926: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6926 rm -rf conftest* 6927 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF 6928#define UP_BC_PC_EXTERN 1 6929EOF 6930 6931else 6932 echo "configure: failed program was:" >&5 6933 cat conftest.$ac_ext >&5 6934 rm -rf conftest* 6935 echo "$ac_t""no" 1>&6 6936fi 6937rm -f conftest* 6938 6939fi 6940rm -f conftest* 6941 6942echo $ac_n "checking whether tputs() uses outfuntype""... $ac_c" 1>&6 6943echo "configure:6944: checking whether tputs() uses outfuntype" >&5 6944cat > conftest.$ac_ext <<EOF 6945#line 6946 "configure" 6946#include "confdefs.h" 6947 6948#ifdef HAVE_TERMCAP_H 6949# include <termcap.h> 6950#endif 6951 6952int main() { 6953extern int xx(); tputs("test", 1, (outfuntype)xx) 6954; return 0; } 6955EOF 6956if { (eval echo configure:6957: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 6957 rm -rf conftest* 6958 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF 6959#define HAVE_OUTFUNTYPE 1 6960EOF 6961 6962else 6963 echo "configure: failed program was:" >&5 6964 cat conftest.$ac_ext >&5 6965 rm -rf conftest* 6966 echo "$ac_t""no" 1>&6 6967fi 6968rm -f conftest* 6969 6970echo $ac_n "checking whether sys/select.h and sys/time.h may both be included""... $ac_c" 1>&6 6971echo "configure:6972: checking whether sys/select.h and sys/time.h may both be included" >&5 6972cat > conftest.$ac_ext <<EOF 6973#line 6974 "configure" 6974#include "confdefs.h" 6975 6976#include <sys/types.h> 6977#include <sys/time.h> 6978#include <sys/select.h> 6979int main() { 6980 6981; return 0; } 6982EOF 6983if { (eval echo configure:6984: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 6984 rm -rf conftest* 6985 echo "$ac_t""yes" 1>&6 6986 cat >> confdefs.h <<\EOF 6987#define SYS_SELECT_WITH_SYS_TIME 1 6988EOF 6989 6990else 6991 echo "configure: failed program was:" >&5 6992 cat conftest.$ac_ext >&5 6993 rm -rf conftest* 6994 echo "$ac_t""no" 1>&6 6995fi 6996rm -f conftest* 6997 6998 6999echo $ac_n "checking for /dev/ptc""... $ac_c" 1>&6 7000echo "configure:7001: checking for /dev/ptc" >&5 7001if test -r /dev/ptc; then 7002 cat >> confdefs.h <<\EOF 7003#define HAVE_DEV_PTC 1 7004EOF 7005 7006 echo "$ac_t""yes" 1>&6 7007else 7008 echo "$ac_t""no" 1>&6 7009fi 7010 7011echo $ac_n "checking for SVR4 ptys""... $ac_c" 1>&6 7012echo "configure:7013: checking for SVR4 ptys" >&5 7013if test -c /dev/ptmx ; then 7014 cat > conftest.$ac_ext <<EOF 7015#line 7016 "configure" 7016#include "confdefs.h" 7017 7018int main() { 7019ptsname(0);grantpt(0);unlockpt(0); 7020; return 0; } 7021EOF 7022if { (eval echo configure:7023: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7023 rm -rf conftest* 7024 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF 7025#define HAVE_SVR4_PTYS 1 7026EOF 7027 7028else 7029 echo "configure: failed program was:" >&5 7030 cat conftest.$ac_ext >&5 7031 rm -rf conftest* 7032 echo "$ac_t""no" 1>&6 7033fi 7034rm -f conftest* 7035else 7036 echo "$ac_t""no" 1>&6 7037fi 7038 7039echo $ac_n "checking for ptyranges""... $ac_c" 1>&6 7040echo "configure:7041: checking for ptyranges" >&5 7041if test -d /dev/ptym ; then 7042 pdir='/dev/ptym' 7043else 7044 pdir='/dev' 7045fi 7046cat > conftest.$ac_ext <<EOF 7047#line 7048 "configure" 7048#include "confdefs.h" 7049#ifdef M_UNIX 7050 yes; 7051#endif 7052 7053EOF 7054if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7055 egrep "yes" >/dev/null 2>&1; then 7056 rm -rf conftest* 7057 ptys=`echo /dev/ptyp??` 7058else 7059 rm -rf conftest* 7060 ptys=`echo $pdir/pty??` 7061fi 7062rm -f conftest* 7063 7064if test "$ptys" != "$pdir/pty??" ; then 7065 p0=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\).$/\1/g' | sort -u | tr -d '\012'` 7066 p1=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\)$/\1/g' | sort -u | tr -d '\012'` 7067 cat >> confdefs.h <<EOF 7068#define PTYRANGE0 "$p0" 7069EOF 7070 7071 cat >> confdefs.h <<EOF 7072#define PTYRANGE1 "$p1" 7073EOF 7074 7075 echo "$ac_t""$p0 / $p1" 1>&6 7076else 7077 echo "$ac_t""don't know" 1>&6 7078fi 7079 7080echo $ac_n "checking default tty permissions/group""... $ac_c" 1>&6 7081echo "configure:7082: checking default tty permissions/group" >&5 7082rm -f conftest_grp 7083if test "$cross_compiling" = yes; then 7084 { echo "configure: error: failed to compile test program" 1>&2; exit 1; } 7085else 7086 cat > conftest.$ac_ext <<EOF 7087#line 7088 "configure" 7088#include "confdefs.h" 7089 7090#include <sys/types.h> 7091#include <sys/stat.h> 7092#include <stdio.h> 7093main() 7094{ 7095 struct stat sb; 7096 char *x,*ttyname(); 7097 int om, m; 7098 FILE *fp; 7099 7100 if (!(x = ttyname(0))) exit(1); 7101 if (stat(x, &sb)) exit(1); 7102 om = sb.st_mode; 7103 if (om & 002) exit(0); 7104 m = system("mesg y"); 7105 if (m == -1 || m == 127) exit(1); 7106 if (stat(x, &sb)) exit(1); 7107 m = sb.st_mode; 7108 if (chmod(x, om)) exit(1); 7109 if (m & 002) exit(0); 7110 if (sb.st_gid == getgid()) exit(1); 7111 if (!(fp=fopen("conftest_grp", "w"))) 7112 exit(1); 7113 fprintf(fp, "%d\n", sb.st_gid); 7114 fclose(fp); 7115 exit(0); 7116} 7117 7118EOF 7119if { (eval echo configure:7120: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 7120then 7121 7122 if test -f conftest_grp; then 7123 ptygrp=`cat conftest_grp` 7124 echo "$ac_t""pty mode: 0620, group: $ptygrp" 1>&6 7125 cat >> confdefs.h <<\EOF 7126#define PTYMODE 0620 7127EOF 7128 7129 cat >> confdefs.h <<EOF 7130#define PTYGROUP $ptygrp 7131EOF 7132 7133 else 7134 echo "$ac_t""ptys are world accessable" 1>&6 7135 fi 7136 7137else 7138 echo "configure: failed program was:" >&5 7139 cat conftest.$ac_ext >&5 7140 rm -fr conftest* 7141 echo "$ac_t""can't determine - assume ptys are world accessable" 1>&6 7142fi 7143rm -fr conftest* 7144fi 7145 7146rm -f conftest_grp 7147 7148 7149echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 7150echo "configure:7151: checking return type of signal handlers" >&5 7151if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then 7152 echo $ac_n "(cached) $ac_c" 1>&6 7153else 7154 cat > conftest.$ac_ext <<EOF 7155#line 7156 "configure" 7156#include "confdefs.h" 7157#include <sys/types.h> 7158#include <signal.h> 7159#ifdef signal 7160#undef signal 7161#endif 7162#ifdef __cplusplus 7163extern "C" void (*signal (int, void (*)(int)))(int); 7164#else 7165void (*signal ()) (); 7166#endif 7167 7168int main() { 7169int i; 7170; return 0; } 7171EOF 7172if { (eval echo configure:7173: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 7173 rm -rf conftest* 7174 ac_cv_type_signal=void 7175else 7176 echo "configure: failed program was:" >&5 7177 cat conftest.$ac_ext >&5 7178 rm -rf conftest* 7179 ac_cv_type_signal=int 7180fi 7181rm -f conftest* 7182fi 7183 7184echo "$ac_t""$ac_cv_type_signal" 1>&6 7185cat >> confdefs.h <<EOF 7186#define RETSIGTYPE $ac_cv_type_signal 7187EOF 7188 7189 7190 7191if test $ac_cv_type_signal = void; then 7192 cat >> confdefs.h <<\EOF 7193#define SIGRETURN return 7194EOF 7195 7196else 7197 cat >> confdefs.h <<\EOF 7198#define SIGRETURN return 0 7199EOF 7200 7201fi 7202 7203echo $ac_n "checking for struct sigcontext""... $ac_c" 1>&6 7204echo "configure:7205: checking for struct sigcontext" >&5 7205cat > conftest.$ac_ext <<EOF 7206#line 7207 "configure" 7207#include "confdefs.h" 7208 7209#include <signal.h> 7210test_sig() 7211{ 7212 struct sigcontext *scont; 7213 scont = (struct sigcontext *)0; 7214 return 1; 7215} 7216int main() { 7217 7218; return 0; } 7219EOF 7220if { (eval echo configure:7221: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 7221 rm -rf conftest* 7222 echo "$ac_t""yes" 1>&6 7223 cat >> confdefs.h <<\EOF 7224#define HAVE_SIGCONTEXT 1 7225EOF 7226 7227else 7228 echo "configure: failed program was:" >&5 7229 cat conftest.$ac_ext >&5 7230 rm -rf conftest* 7231 echo "$ac_t""no" 1>&6 7232fi 7233rm -f conftest* 7234 7235echo $ac_n "checking getcwd implementation""... $ac_c" 1>&6 7236echo "configure:7237: checking getcwd implementation" >&5 7237if test "$cross_compiling" = yes; then 7238 { echo "configure: error: failed to compile test program" 1>&2; exit 1; } 7239else 7240 cat > conftest.$ac_ext <<EOF 7241#line 7242 "configure" 7242#include "confdefs.h" 7243 7244char *dagger[] = { "IFS=pwd", 0 }; 7245main() 7246{ 7247 char buffer[500]; 7248 extern char **environ; 7249 environ = dagger; 7250 return getcwd(buffer, 500) ? 0 : 1; 7251} 7252EOF 7253if { (eval echo configure:7254: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 7254then 7255 echo "$ac_t""it is usable" 1>&6 7256else 7257 echo "configure: failed program was:" >&5 7258 cat conftest.$ac_ext >&5 7259 rm -fr conftest* 7260 echo "$ac_t""it stinks" 1>&6 7261 cat >> confdefs.h <<\EOF 7262#define BAD_GETCWD 1 7263EOF 7264 7265fi 7266rm -fr conftest* 7267fi 7268 7269 7270for ac_func in bcmp fchdir fchown fseeko fsync ftello getcwd getpseudotty \ 7271 getpwnam getpwuid getrlimit gettimeofday getwd lstat memcmp \ 7272 memset nanosleep opendir putenv qsort readlink select setenv \ 7273 setpgid setsid sigaltstack sigstack sigset sigsetjmp sigaction \ 7274 sigvec snprintf strcasecmp strerror strftime stricmp strncasecmp \ 7275 strnicmp strpbrk strtol tgetent towlower towupper usleep utime utimes 7276do 7277echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 7278echo "configure:7279: checking for $ac_func" >&5 7279if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 7280 echo $ac_n "(cached) $ac_c" 1>&6 7281else 7282 cat > conftest.$ac_ext <<EOF 7283#line 7284 "configure" 7284#include "confdefs.h" 7285/* System header to define __stub macros and hopefully few prototypes, 7286 which can conflict with char $ac_func(); below. */ 7287#include <assert.h> 7288/* Override any gcc2 internal prototype to avoid an error. */ 7289/* We use char because int might match the return type of a gcc2 7290 builtin and then its argument prototype would still apply. */ 7291char $ac_func(); 7292 7293int main() { 7294 7295/* The GNU C library defines this for functions which it implements 7296 to always fail with ENOSYS. Some functions are actually named 7297 something starting with __ and the normal name is an alias. */ 7298#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 7299choke me 7300#else 7301$ac_func(); 7302#endif 7303 7304; return 0; } 7305EOF 7306if { (eval echo configure:7307: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7307 rm -rf conftest* 7308 eval "ac_cv_func_$ac_func=yes" 7309else 7310 echo "configure: failed program was:" >&5 7311 cat conftest.$ac_ext >&5 7312 rm -rf conftest* 7313 eval "ac_cv_func_$ac_func=no" 7314fi 7315rm -f conftest* 7316fi 7317 7318if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 7319 echo "$ac_t""yes" 1>&6 7320 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 7321 cat >> confdefs.h <<EOF 7322#define $ac_tr_func 1 7323EOF 7324 7325else 7326 echo "$ac_t""no" 1>&6 7327fi 7328done 7329 7330 7331echo $ac_n "checking for st_blksize""... $ac_c" 1>&6 7332echo "configure:7333: checking for st_blksize" >&5 7333cat > conftest.$ac_ext <<EOF 7334#line 7335 "configure" 7335#include "confdefs.h" 7336#include <sys/types.h> 7337#include <sys/stat.h> 7338int main() { 7339 struct stat st; 7340 int n; 7341 7342 stat("/", &st); 7343 n = (int)st.st_blksize; 7344; return 0; } 7345EOF 7346if { (eval echo configure:7347: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 7347 rm -rf conftest* 7348 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF 7349#define HAVE_ST_BLKSIZE 1 7350EOF 7351 7352else 7353 echo "configure: failed program was:" >&5 7354 cat conftest.$ac_ext >&5 7355 rm -rf conftest* 7356 echo "$ac_t""no" 1>&6 7357fi 7358rm -f conftest* 7359 7360echo $ac_n "checking whether stat() ignores a trailing slash""... $ac_c" 1>&6 7361echo "configure:7362: checking whether stat() ignores a trailing slash" >&5 7362if test "$cross_compiling" = yes; then 7363 { echo "configure: error: failed to compile test program" 1>&2; exit 1; } 7364else 7365 cat > conftest.$ac_ext <<EOF 7366#line 7367 "configure" 7367#include "confdefs.h" 7368#include <sys/types.h> 7369#include <sys/stat.h> 7370main() {struct stat st; exit(stat("configure/", &st) != 0); } 7371EOF 7372if { (eval echo configure:7373: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 7373then 7374 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF 7375#define STAT_IGNORES_SLASH 1 7376EOF 7377 7378else 7379 echo "configure: failed program was:" >&5 7380 cat conftest.$ac_ext >&5 7381 rm -fr conftest* 7382 echo "$ac_t""no" 1>&6 7383fi 7384rm -fr conftest* 7385fi 7386 7387 7388echo $ac_n "checking for iconv_open()""... $ac_c" 1>&6 7389echo "configure:7390: checking for iconv_open()" >&5 7390save_LIBS="$LIBS" 7391LIBS="$LIBS -liconv" 7392cat > conftest.$ac_ext <<EOF 7393#line 7394 "configure" 7394#include "confdefs.h" 7395 7396#ifdef HAVE_ICONV_H 7397# include <iconv.h> 7398#endif 7399 7400int main() { 7401iconv_open("fr", "to"); 7402; return 0; } 7403EOF 7404if { (eval echo configure:7405: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7405 rm -rf conftest* 7406 echo "$ac_t""yes; with -liconv" 1>&6; cat >> confdefs.h <<\EOF 7407#define HAVE_ICONV 1 7408EOF 7409 7410else 7411 echo "configure: failed program was:" >&5 7412 cat conftest.$ac_ext >&5 7413 rm -rf conftest* 7414 LIBS="$save_LIBS" 7415 cat > conftest.$ac_ext <<EOF 7416#line 7417 "configure" 7417#include "confdefs.h" 7418 7419#ifdef HAVE_ICONV_H 7420# include <iconv.h> 7421#endif 7422 7423int main() { 7424iconv_open("fr", "to"); 7425; return 0; } 7426EOF 7427if { (eval echo configure:7428: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7428 rm -rf conftest* 7429 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF 7430#define HAVE_ICONV 1 7431EOF 7432 7433else 7434 echo "configure: failed program was:" >&5 7435 cat conftest.$ac_ext >&5 7436 rm -rf conftest* 7437 echo "$ac_t""no" 1>&6 7438fi 7439rm -f conftest* 7440fi 7441rm -f conftest* 7442 7443 7444echo $ac_n "checking for nl_langinfo(CODESET)""... $ac_c" 1>&6 7445echo "configure:7446: checking for nl_langinfo(CODESET)" >&5 7446cat > conftest.$ac_ext <<EOF 7447#line 7448 "configure" 7448#include "confdefs.h" 7449 7450#ifdef HAVE_LANGINFO_H 7451# include <langinfo.h> 7452#endif 7453 7454int main() { 7455char *cs = nl_langinfo(CODESET); 7456; return 0; } 7457EOF 7458if { (eval echo configure:7459: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7459 rm -rf conftest* 7460 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF 7461#define HAVE_NL_LANGINFO_CODESET 1 7462EOF 7463 7464else 7465 echo "configure: failed program was:" >&5 7466 cat conftest.$ac_ext >&5 7467 rm -rf conftest* 7468 echo "$ac_t""no" 1>&6 7469fi 7470rm -f conftest* 7471 7472echo $ac_n "checking --disable-acl argument""... $ac_c" 1>&6 7473echo "configure:7474: checking --disable-acl argument" >&5 7474# Check whether --enable-acl or --disable-acl was given. 7475if test "${enable_acl+set}" = set; then 7476 enableval="$enable_acl" 7477 : 7478else 7479 enable_acl="yes" 7480fi 7481 7482if test "$enable_acl" = "yes"; then 7483echo "$ac_t""no" 1>&6 7484echo $ac_n "checking for acl_get_file in -lposix1e""... $ac_c" 1>&6 7485echo "configure:7486: checking for acl_get_file in -lposix1e" >&5 7486ac_lib_var=`echo posix1e'_'acl_get_file | sed 'y%./+-%__p_%'` 7487if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 7488 echo $ac_n "(cached) $ac_c" 1>&6 7489else 7490 ac_save_LIBS="$LIBS" 7491LIBS="-lposix1e $LIBS" 7492cat > conftest.$ac_ext <<EOF 7493#line 7494 "configure" 7494#include "confdefs.h" 7495/* Override any gcc2 internal prototype to avoid an error. */ 7496/* We use char because int might match the return type of a gcc2 7497 builtin and then its argument prototype would still apply. */ 7498char acl_get_file(); 7499 7500int main() { 7501acl_get_file() 7502; return 0; } 7503EOF 7504if { (eval echo configure:7505: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7505 rm -rf conftest* 7506 eval "ac_cv_lib_$ac_lib_var=yes" 7507else 7508 echo "configure: failed program was:" >&5 7509 cat conftest.$ac_ext >&5 7510 rm -rf conftest* 7511 eval "ac_cv_lib_$ac_lib_var=no" 7512fi 7513rm -f conftest* 7514LIBS="$ac_save_LIBS" 7515 7516fi 7517if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 7518 echo "$ac_t""yes" 1>&6 7519 LIBS="$LIBS -lposix1e" 7520else 7521 echo "$ac_t""no" 1>&6 7522echo $ac_n "checking for acl_get_file in -lacl""... $ac_c" 1>&6 7523echo "configure:7524: checking for acl_get_file in -lacl" >&5 7524ac_lib_var=`echo acl'_'acl_get_file | sed 'y%./+-%__p_%'` 7525if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 7526 echo $ac_n "(cached) $ac_c" 1>&6 7527else 7528 ac_save_LIBS="$LIBS" 7529LIBS="-lacl $LIBS" 7530cat > conftest.$ac_ext <<EOF 7531#line 7532 "configure" 7532#include "confdefs.h" 7533/* Override any gcc2 internal prototype to avoid an error. */ 7534/* We use char because int might match the return type of a gcc2 7535 builtin and then its argument prototype would still apply. */ 7536char acl_get_file(); 7537 7538int main() { 7539acl_get_file() 7540; return 0; } 7541EOF 7542if { (eval echo configure:7543: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7543 rm -rf conftest* 7544 eval "ac_cv_lib_$ac_lib_var=yes" 7545else 7546 echo "configure: failed program was:" >&5 7547 cat conftest.$ac_ext >&5 7548 rm -rf conftest* 7549 eval "ac_cv_lib_$ac_lib_var=no" 7550fi 7551rm -f conftest* 7552LIBS="$ac_save_LIBS" 7553 7554fi 7555if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 7556 echo "$ac_t""yes" 1>&6 7557 LIBS="$LIBS -lacl" 7558 echo $ac_n "checking for fgetxattr in -lattr""... $ac_c" 1>&6 7559echo "configure:7560: checking for fgetxattr in -lattr" >&5 7560ac_lib_var=`echo attr'_'fgetxattr | sed 'y%./+-%__p_%'` 7561if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 7562 echo $ac_n "(cached) $ac_c" 1>&6 7563else 7564 ac_save_LIBS="$LIBS" 7565LIBS="-lattr $LIBS" 7566cat > conftest.$ac_ext <<EOF 7567#line 7568 "configure" 7568#include "confdefs.h" 7569/* Override any gcc2 internal prototype to avoid an error. */ 7570/* We use char because int might match the return type of a gcc2 7571 builtin and then its argument prototype would still apply. */ 7572char fgetxattr(); 7573 7574int main() { 7575fgetxattr() 7576; return 0; } 7577EOF 7578if { (eval echo configure:7579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7579 rm -rf conftest* 7580 eval "ac_cv_lib_$ac_lib_var=yes" 7581else 7582 echo "configure: failed program was:" >&5 7583 cat conftest.$ac_ext >&5 7584 rm -rf conftest* 7585 eval "ac_cv_lib_$ac_lib_var=no" 7586fi 7587rm -f conftest* 7588LIBS="$ac_save_LIBS" 7589 7590fi 7591if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 7592 echo "$ac_t""yes" 1>&6 7593 LIBS="$LIBS -lattr" 7594else 7595 echo "$ac_t""no" 1>&6 7596fi 7597 7598else 7599 echo "$ac_t""no" 1>&6 7600fi 7601 7602fi 7603 7604 7605echo $ac_n "checking for POSIX ACL support""... $ac_c" 1>&6 7606echo "configure:7607: checking for POSIX ACL support" >&5 7607cat > conftest.$ac_ext <<EOF 7608#line 7609 "configure" 7609#include "confdefs.h" 7610 7611#include <sys/types.h> 7612#ifdef HAVE_SYS_ACL_H 7613# include <sys/acl.h> 7614#endif 7615acl_t acl; 7616int main() { 7617acl = acl_get_file("foo", ACL_TYPE_ACCESS); 7618 acl_set_file("foo", ACL_TYPE_ACCESS, acl); 7619 acl_free(acl); 7620; return 0; } 7621EOF 7622if { (eval echo configure:7623: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7623 rm -rf conftest* 7624 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF 7625#define HAVE_POSIX_ACL 1 7626EOF 7627 7628else 7629 echo "configure: failed program was:" >&5 7630 cat conftest.$ac_ext >&5 7631 rm -rf conftest* 7632 echo "$ac_t""no" 1>&6 7633fi 7634rm -f conftest* 7635 7636echo $ac_n "checking for Solaris ACL support""... $ac_c" 1>&6 7637echo "configure:7638: checking for Solaris ACL support" >&5 7638cat > conftest.$ac_ext <<EOF 7639#line 7640 "configure" 7640#include "confdefs.h" 7641 7642#ifdef HAVE_SYS_ACL_H 7643# include <sys/acl.h> 7644#endif 7645int main() { 7646acl("foo", GETACLCNT, 0, NULL); 7647 7648; return 0; } 7649EOF 7650if { (eval echo configure:7651: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7651 rm -rf conftest* 7652 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF 7653#define HAVE_SOLARIS_ACL 1 7654EOF 7655 7656else 7657 echo "configure: failed program was:" >&5 7658 cat conftest.$ac_ext >&5 7659 rm -rf conftest* 7660 echo "$ac_t""no" 1>&6 7661fi 7662rm -f conftest* 7663 7664echo $ac_n "checking for AIX ACL support""... $ac_c" 1>&6 7665echo "configure:7666: checking for AIX ACL support" >&5 7666cat > conftest.$ac_ext <<EOF 7667#line 7668 "configure" 7668#include "confdefs.h" 7669 7670#ifdef HAVE_SYS_ACL_H 7671# include <sys/acl.h> 7672#endif 7673#ifdef HAVE_SYS_ACCESS_H 7674# include <sys/access.h> 7675#endif 7676#define _ALL_SOURCE 7677 7678#include <sys/stat.h> 7679 7680int aclsize; 7681struct acl *aclent; 7682int main() { 7683aclsize = sizeof(struct acl); 7684 aclent = (void *)malloc(aclsize); 7685 statacl("foo", STX_NORMAL, aclent, aclsize); 7686 7687; return 0; } 7688EOF 7689if { (eval echo configure:7690: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7690 rm -rf conftest* 7691 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF 7692#define HAVE_AIX_ACL 1 7693EOF 7694 7695else 7696 echo "configure: failed program was:" >&5 7697 cat conftest.$ac_ext >&5 7698 rm -rf conftest* 7699 echo "$ac_t""no" 1>&6 7700fi 7701rm -f conftest* 7702else 7703 echo "$ac_t""yes" 1>&6 7704fi 7705 7706echo $ac_n "checking --disable-gpm argument""... $ac_c" 1>&6 7707echo "configure:7708: checking --disable-gpm argument" >&5 7708# Check whether --enable-gpm or --disable-gpm was given. 7709if test "${enable_gpm+set}" = set; then 7710 enableval="$enable_gpm" 7711 : 7712else 7713 enable_gpm="yes" 7714fi 7715 7716 7717if test "$enable_gpm" = "yes"; then 7718 echo "$ac_t""no" 1>&6 7719 echo $ac_n "checking for gpm""... $ac_c" 1>&6 7720echo "configure:7721: checking for gpm" >&5 7721if eval "test \"`echo '$''{'vi_cv_have_gpm'+set}'`\" = set"; then 7722 echo $ac_n "(cached) $ac_c" 1>&6 7723else 7724 olibs="$LIBS" ; LIBS="-lgpm" 7725 cat > conftest.$ac_ext <<EOF 7726#line 7727 "configure" 7727#include "confdefs.h" 7728#include <gpm.h> 7729 #include <linux/keyboard.h> 7730int main() { 7731Gpm_GetLibVersion(NULL); 7732; return 0; } 7733EOF 7734if { (eval echo configure:7735: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7735 rm -rf conftest* 7736 vi_cv_have_gpm=yes 7737else 7738 echo "configure: failed program was:" >&5 7739 cat conftest.$ac_ext >&5 7740 rm -rf conftest* 7741 vi_cv_have_gpm=no 7742fi 7743rm -f conftest* 7744 LIBS="$olibs" 7745 7746fi 7747 7748echo "$ac_t""$vi_cv_have_gpm" 1>&6 7749 if test $vi_cv_have_gpm = yes; then 7750 LIBS="$LIBS -lgpm" 7751 cat >> confdefs.h <<\EOF 7752#define HAVE_GPM 1 7753EOF 7754 7755 fi 7756else 7757 echo "$ac_t""yes" 1>&6 7758fi 7759 7760echo $ac_n "checking for vsnprintf()""... $ac_c" 1>&6 7761echo "configure:7762: checking for vsnprintf()" >&5 7762if test "$cross_compiling" = yes; then 7763 { echo "configure: error: failed to compile test program" 1>&2; exit 1; } 7764else 7765 cat > conftest.$ac_ext <<EOF 7766#line 7767 "configure" 7767#include "confdefs.h" 7768 7769#include <stdio.h> 7770#include <stdarg.h> 7771 /* Check use of vsnprintf() */ 7772 void warn(char *fmt, ...); 7773 void warn(char *fmt, ...) 7774 { 7775 va_list ap; char buf[20]; 7776 va_start(ap, fmt); 7777 vsnprintf(buf, 20, fmt, ap); 7778 va_end(ap); 7779 } 7780 main() 7781 { 7782 warn("testing %s\n", "a very long string that won't fit"); 7783 exit(0); 7784 } 7785 7786EOF 7787if { (eval echo configure:7788: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 7788then 7789 cat >> confdefs.h <<\EOF 7790#define HAVE_VSNPRINTF 1 7791EOF 7792 echo "$ac_t""yes" 1>&6 7793else 7794 echo "configure: failed program was:" >&5 7795 cat conftest.$ac_ext >&5 7796 rm -fr conftest* 7797 echo "$ac_t""no" 1>&6 7798fi 7799rm -fr conftest* 7800fi 7801 7802 7803 7804echo $ac_n "checking for rename""... $ac_c" 1>&6 7805echo "configure:7806: checking for rename" >&5 7806cat > conftest.$ac_ext <<EOF 7807#line 7808 "configure" 7808#include "confdefs.h" 7809#include <stdio.h> 7810int main() { 7811rename("this", "that") 7812; return 0; } 7813EOF 7814if { (eval echo configure:7815: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 7815 rm -rf conftest* 7816 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF 7817#define HAVE_RENAME 1 7818EOF 7819 7820else 7821 echo "configure: failed program was:" >&5 7822 cat conftest.$ac_ext >&5 7823 rm -rf conftest* 7824 echo "$ac_t""no" 1>&6 7825fi 7826rm -f conftest* 7827 7828echo $ac_n "checking for sysctl""... $ac_c" 1>&6 7829echo "configure:7830: checking for sysctl" >&5 7830cat > conftest.$ac_ext <<EOF 7831#line 7832 "configure" 7832#include "confdefs.h" 7833#include <sys/types.h> 7834#include <sys/sysctl.h> 7835int main() { 7836 int mib[2], r; 7837 size_t len; 7838 7839 mib[0] = CTL_HW; 7840 mib[1] = HW_USERMEM; 7841 len = sizeof(r); 7842 (void)sysctl(mib, 2, &r, &len, (void *)0, (size_t)0); 7843 7844; return 0; } 7845EOF 7846if { (eval echo configure:7847: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 7847 rm -rf conftest* 7848 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF 7849#define HAVE_SYSCTL 1 7850EOF 7851 7852else 7853 echo "configure: failed program was:" >&5 7854 cat conftest.$ac_ext >&5 7855 rm -rf conftest* 7856 echo "$ac_t""not usable" 1>&6 7857fi 7858rm -f conftest* 7859 7860echo $ac_n "checking for sysinfo""... $ac_c" 1>&6 7861echo "configure:7862: checking for sysinfo" >&5 7862cat > conftest.$ac_ext <<EOF 7863#line 7864 "configure" 7864#include "confdefs.h" 7865#include <sys/types.h> 7866#include <sys/sysinfo.h> 7867int main() { 7868 struct sysinfo sinfo; 7869 int t; 7870 7871 (void)sysinfo(&sinfo); 7872 t = sinfo.totalram; 7873 7874; return 0; } 7875EOF 7876if { (eval echo configure:7877: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 7877 rm -rf conftest* 7878 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF 7879#define HAVE_SYSINFO 1 7880EOF 7881 7882else 7883 echo "configure: failed program was:" >&5 7884 cat conftest.$ac_ext >&5 7885 rm -rf conftest* 7886 echo "$ac_t""not usable" 1>&6 7887fi 7888rm -f conftest* 7889 7890echo $ac_n "checking for sysconf""... $ac_c" 1>&6 7891echo "configure:7892: checking for sysconf" >&5 7892cat > conftest.$ac_ext <<EOF 7893#line 7894 "configure" 7894#include "confdefs.h" 7895#include <unistd.h> 7896int main() { 7897 (void)sysconf(_SC_PAGESIZE); 7898 (void)sysconf(_SC_PHYS_PAGES); 7899 7900; return 0; } 7901EOF 7902if { (eval echo configure:7903: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 7903 rm -rf conftest* 7904 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF 7905#define HAVE_SYSCONF 1 7906EOF 7907 7908else 7909 echo "configure: failed program was:" >&5 7910 cat conftest.$ac_ext >&5 7911 rm -rf conftest* 7912 echo "$ac_t""not usable" 1>&6 7913fi 7914rm -f conftest* 7915 7916 7917echo $ac_n "checking size of int""... $ac_c" 1>&6 7918echo "configure:7919: checking size of int" >&5 7919if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then 7920 echo $ac_n "(cached) $ac_c" 1>&6 7921else 7922 if test "$cross_compiling" = yes; then 7923 { echo "configure: error: failed to compile test program" 1>&2; exit 1; } 7924else 7925 cat > conftest.$ac_ext <<EOF 7926#line 7927 "configure" 7927#include "confdefs.h" 7928#include <stdio.h> 7929 main() 7930 { 7931 FILE *f=fopen("conftestval", "w"); 7932 if (!f) exit(1); 7933 fprintf(f, "%d\n", (int)sizeof(int)); 7934 exit(0); 7935 } 7936EOF 7937if { (eval echo configure:7938: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 7938then 7939 ac_cv_sizeof_int=`cat conftestval` 7940else 7941 echo "configure: failed program was:" >&5 7942 cat conftest.$ac_ext >&5 7943 rm -fr conftest* 7944 ac_cv_sizeof_int=0 7945fi 7946rm -fr conftest* 7947fi 7948 7949fi 7950 7951echo "$ac_t""$ac_cv_sizeof_int" 1>&6 7952cat >> confdefs.h <<EOF 7953#define SIZEOF_INT $ac_cv_sizeof_int 7954EOF 7955 7956 7957echo $ac_n "checking whether memmove/bcopy/memcpy handle overlaps""... $ac_c" 1>&6 7958echo "configure:7959: checking whether memmove/bcopy/memcpy handle overlaps" >&5 7959bcopy_test_prog=' 7960main() { 7961 char buf[10]; 7962 strcpy(buf, "abcdefghi"); 7963 mch_memmove(buf, buf + 2, 3); 7964 if (strncmp(buf, "ababcf", 6)) 7965 exit(1); 7966 strcpy(buf, "abcdefghi"); 7967 mch_memmove(buf + 2, buf, 3); 7968 if (strncmp(buf, "cdedef", 6)) 7969 exit(1); 7970 exit(0); /* libc version works properly. */ 7971}' 7972 7973 7974if test "$cross_compiling" = yes; then 7975 { echo "configure: error: failed to compile test program" 1>&2; exit 1; } 7976else 7977 cat > conftest.$ac_ext <<EOF 7978#line 7979 "configure" 7979#include "confdefs.h" 7980#define mch_memmove(s,d,l) memmove(d,s,l) $bcopy_test_prog 7981EOF 7982if { (eval echo configure:7983: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 7983then 7984 cat >> confdefs.h <<\EOF 7985#define USEMEMMOVE 1 7986EOF 7987 echo "$ac_t""memmove does" 1>&6 7988else 7989 echo "configure: failed program was:" >&5 7990 cat conftest.$ac_ext >&5 7991 rm -fr conftest* 7992 if test "$cross_compiling" = yes; then 7993 { echo "configure: error: failed to compile test program" 1>&2; exit 1; } 7994else 7995 cat > conftest.$ac_ext <<EOF 7996#line 7997 "configure" 7997#include "confdefs.h" 7998#define mch_memmove(s,d,l) bcopy(d,s,l) $bcopy_test_prog 7999EOF 8000if { (eval echo configure:8001: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 8001then 8002 cat >> confdefs.h <<\EOF 8003#define USEBCOPY 1 8004EOF 8005 echo "$ac_t""bcopy does" 1>&6 8006else 8007 echo "configure: failed program was:" >&5 8008 cat conftest.$ac_ext >&5 8009 rm -fr conftest* 8010 if test "$cross_compiling" = yes; then 8011 { echo "configure: error: failed to compile test program" 1>&2; exit 1; } 8012else 8013 cat > conftest.$ac_ext <<EOF 8014#line 8015 "configure" 8015#include "confdefs.h" 8016#define mch_memmove(s,d,l) memcpy(d,s,l) $bcopy_test_prog 8017EOF 8018if { (eval echo configure:8019: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 8019then 8020 cat >> confdefs.h <<\EOF 8021#define USEMEMCPY 1 8022EOF 8023 echo "$ac_t""memcpy does" 1>&6 8024else 8025 echo "configure: failed program was:" >&5 8026 cat conftest.$ac_ext >&5 8027 rm -fr conftest* 8028 echo "$ac_t""no" 1>&6 8029fi 8030rm -fr conftest* 8031fi 8032 8033fi 8034rm -fr conftest* 8035fi 8036 8037fi 8038rm -fr conftest* 8039fi 8040 8041 8042 8043if test "$enable_multibyte" = "yes"; then 8044 cflags_save=$CFLAGS 8045 ldflags_save=$LDFLAGS 8046 if test -n "$x_includes" ; then 8047 CFLAGS="$CFLAGS -I$x_includes" 8048 LDFLAGS="$X_LIBS $LDFLAGS -lX11" 8049 echo $ac_n "checking whether X_LOCALE needed""... $ac_c" 1>&6 8050echo "configure:8051: checking whether X_LOCALE needed" >&5 8051 cat > conftest.$ac_ext <<EOF 8052#line 8053 "configure" 8053#include "confdefs.h" 8054#include <X11/Xlocale.h> 8055int main() { 8056 8057; return 0; } 8058EOF 8059if { (eval echo configure:8060: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 8060 rm -rf conftest* 8061 cat > conftest.$ac_ext <<EOF 8062#line 8063 "configure" 8063#include "confdefs.h" 8064/* Override any gcc2 internal prototype to avoid an error. */ 8065/* We use char because int might match the return type of a gcc2 8066 builtin and then its argument prototype would still apply. */ 8067char _Xsetlocale(); 8068 8069int main() { 8070_Xsetlocale() 8071; return 0; } 8072EOF 8073if { (eval echo configure:8074: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8074 rm -rf conftest* 8075 echo "$ac_t""yes" 1>&6 8076 cat >> confdefs.h <<\EOF 8077#define X_LOCALE 1 8078EOF 8079 8080else 8081 echo "configure: failed program was:" >&5 8082 cat conftest.$ac_ext >&5 8083 rm -rf conftest* 8084 echo "$ac_t""no" 1>&6 8085fi 8086rm -f conftest* 8087else 8088 echo "configure: failed program was:" >&5 8089 cat conftest.$ac_ext >&5 8090 rm -rf conftest* 8091 echo "$ac_t""no" 1>&6 8092fi 8093rm -f conftest* 8094 fi 8095 CFLAGS=$cflags_save 8096 LDFLAGS=$ldflags_save 8097fi 8098 8099echo $ac_n "checking for _xpg4_setrunelocale in -lxpg4""... $ac_c" 1>&6 8100echo "configure:8101: checking for _xpg4_setrunelocale in -lxpg4" >&5 8101ac_lib_var=`echo xpg4'_'_xpg4_setrunelocale | sed 'y%./+-%__p_%'` 8102if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 8103 echo $ac_n "(cached) $ac_c" 1>&6 8104else 8105 ac_save_LIBS="$LIBS" 8106LIBS="-lxpg4 $LIBS" 8107cat > conftest.$ac_ext <<EOF 8108#line 8109 "configure" 8109#include "confdefs.h" 8110/* Override any gcc2 internal prototype to avoid an error. */ 8111/* We use char because int might match the return type of a gcc2 8112 builtin and then its argument prototype would still apply. */ 8113char _xpg4_setrunelocale(); 8114 8115int main() { 8116_xpg4_setrunelocale() 8117; return 0; } 8118EOF 8119if { (eval echo configure:8120: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8120 rm -rf conftest* 8121 eval "ac_cv_lib_$ac_lib_var=yes" 8122else 8123 echo "configure: failed program was:" >&5 8124 cat conftest.$ac_ext >&5 8125 rm -rf conftest* 8126 eval "ac_cv_lib_$ac_lib_var=no" 8127fi 8128rm -f conftest* 8129LIBS="$ac_save_LIBS" 8130 8131fi 8132if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 8133 echo "$ac_t""yes" 1>&6 8134 LIBS="$LIBS -lxpg4" 8135else 8136 echo "$ac_t""no" 1>&6 8137fi 8138 8139 8140echo $ac_n "checking how to create tags""... $ac_c" 1>&6 8141echo "configure:8142: checking how to create tags" >&5 8142test -f tags && mv tags tags.save 8143if (eval ctags --version /dev/null | grep Exuberant) < /dev/null 1>&5 2>&1; then 8144 TAGPRG="ctags" 8145else 8146 (eval etags /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags" 8147 (eval etags -c /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags -c" 8148 (eval ctags /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags" 8149 (eval ctags -t /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -t" 8150 (eval ctags -ts /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -ts" 8151 (eval ctags -tvs /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -tvs" 8152 (eval ctags -i+m /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -i+m" 8153fi 8154test -f tags.save && mv tags.save tags 8155echo "$ac_t""$TAGPRG" 1>&6 8156 8157echo $ac_n "checking how to run man with a section nr""... $ac_c" 1>&6 8158echo "configure:8159: checking how to run man with a section nr" >&5 8159MANDEF="man" 8160(eval man -s 2 read) < /dev/null > /dev/null 2>&5 && MANDEF="man -s" 8161echo "$ac_t""$MANDEF" 1>&6 8162if test "$MANDEF" = "man -s"; then 8163 cat >> confdefs.h <<\EOF 8164#define USEMAN_S 1 8165EOF 8166 8167fi 8168 8169echo $ac_n "checking --disable-nls argument""... $ac_c" 1>&6 8170echo "configure:8171: checking --disable-nls argument" >&5 8171# Check whether --enable-nls or --disable-nls was given. 8172if test "${enable_nls+set}" = set; then 8173 enableval="$enable_nls" 8174 : 8175else 8176 enable_nls="yes" 8177fi 8178 8179 8180if test "$enable_nls" = "yes"; then 8181 echo "$ac_t""no" 1>&6 8182 # Extract the first word of "msgfmt", so it can be a program name with args. 8183set dummy msgfmt; ac_word=$2 8184echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 8185echo "configure:8186: checking for $ac_word" >&5 8186if eval "test \"`echo '$''{'ac_cv_prog_MSGFMT'+set}'`\" = set"; then 8187 echo $ac_n "(cached) $ac_c" 1>&6 8188else 8189 if test -n "$MSGFMT"; then 8190 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test. 8191else 8192 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 8193 ac_dummy="$PATH" 8194 for ac_dir in $ac_dummy; do 8195 test -z "$ac_dir" && ac_dir=. 8196 if test -f $ac_dir/$ac_word; then 8197 ac_cv_prog_MSGFMT="msgfmt" 8198 break 8199 fi 8200 done 8201 IFS="$ac_save_ifs" 8202fi 8203fi 8204MSGFMT="$ac_cv_prog_MSGFMT" 8205if test -n "$MSGFMT"; then 8206 echo "$ac_t""$MSGFMT" 1>&6 8207else 8208 echo "$ac_t""no" 1>&6 8209fi 8210 8211 echo $ac_n "checking for NLS""... $ac_c" 1>&6 8212echo "configure:8213: checking for NLS" >&5 8213 if test -f po/Makefile; then 8214 have_gettext="no" 8215 if test -n "$MSGFMT"; then 8216 cat > conftest.$ac_ext <<EOF 8217#line 8218 "configure" 8218#include "confdefs.h" 8219#include <libintl.h> 8220int main() { 8221gettext("Test"); 8222; return 0; } 8223EOF 8224if { (eval echo configure:8225: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8225 rm -rf conftest* 8226 echo "$ac_t""gettext() works" 1>&6; have_gettext="yes" 8227else 8228 echo "configure: failed program was:" >&5 8229 cat conftest.$ac_ext >&5 8230 rm -rf conftest* 8231 olibs=$LIBS 8232 LIBS="$LIBS -lintl" 8233 cat > conftest.$ac_ext <<EOF 8234#line 8235 "configure" 8235#include "confdefs.h" 8236#include <libintl.h> 8237int main() { 8238gettext("Test"); 8239; return 0; } 8240EOF 8241if { (eval echo configure:8242: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8242 rm -rf conftest* 8243 echo "$ac_t""gettext() works with -lintl" 1>&6; have_gettext="yes" 8244else 8245 echo "configure: failed program was:" >&5 8246 cat conftest.$ac_ext >&5 8247 rm -rf conftest* 8248 echo "$ac_t""gettext() doesn't work" 1>&6; 8249 LIBS=$olibs 8250fi 8251rm -f conftest* 8252fi 8253rm -f conftest* 8254 else 8255 echo "$ac_t""msgfmt not found - disabled" 1>&6; 8256 fi 8257 if test $have_gettext = "yes"; then 8258 cat >> confdefs.h <<\EOF 8259#define HAVE_GETTEXT 1 8260EOF 8261 8262 MAKEMO=yes 8263 8264 for ac_func in bind_textdomain_codeset 8265do 8266echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 8267echo "configure:8268: checking for $ac_func" >&5 8268if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 8269 echo $ac_n "(cached) $ac_c" 1>&6 8270else 8271 cat > conftest.$ac_ext <<EOF 8272#line 8273 "configure" 8273#include "confdefs.h" 8274/* System header to define __stub macros and hopefully few prototypes, 8275 which can conflict with char $ac_func(); below. */ 8276#include <assert.h> 8277/* Override any gcc2 internal prototype to avoid an error. */ 8278/* We use char because int might match the return type of a gcc2 8279 builtin and then its argument prototype would still apply. */ 8280char $ac_func(); 8281 8282int main() { 8283 8284/* The GNU C library defines this for functions which it implements 8285 to always fail with ENOSYS. Some functions are actually named 8286 something starting with __ and the normal name is an alias. */ 8287#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 8288choke me 8289#else 8290$ac_func(); 8291#endif 8292 8293; return 0; } 8294EOF 8295if { (eval echo configure:8296: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8296 rm -rf conftest* 8297 eval "ac_cv_func_$ac_func=yes" 8298else 8299 echo "configure: failed program was:" >&5 8300 cat conftest.$ac_ext >&5 8301 rm -rf conftest* 8302 eval "ac_cv_func_$ac_func=no" 8303fi 8304rm -f conftest* 8305fi 8306 8307if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 8308 echo "$ac_t""yes" 1>&6 8309 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 8310 cat >> confdefs.h <<EOF 8311#define $ac_tr_func 1 8312EOF 8313 8314else 8315 echo "$ac_t""no" 1>&6 8316fi 8317done 8318 8319 echo $ac_n "checking for _nl_msg_cat_cntr""... $ac_c" 1>&6 8320echo "configure:8321: checking for _nl_msg_cat_cntr" >&5 8321 cat > conftest.$ac_ext <<EOF 8322#line 8323 "configure" 8323#include "confdefs.h" 8324#include <libintl.h> 8325 extern int _nl_msg_cat_cntr; 8326int main() { 8327++_nl_msg_cat_cntr; 8328; return 0; } 8329EOF 8330if { (eval echo configure:8331: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8331 rm -rf conftest* 8332 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF 8333#define HAVE_NL_MSG_CAT_CNTR 1 8334EOF 8335 8336else 8337 echo "configure: failed program was:" >&5 8338 cat conftest.$ac_ext >&5 8339 rm -rf conftest* 8340 echo "$ac_t""no" 1>&6 8341fi 8342rm -f conftest* 8343 fi 8344 else 8345 echo "$ac_t""no "po/Makefile" - disabled" 1>&6; 8346 fi 8347else 8348 echo "$ac_t""yes" 1>&6 8349fi 8350 8351ac_safe=`echo "dlfcn.h" | sed 'y%./+-%__p_%'` 8352echo $ac_n "checking for dlfcn.h""... $ac_c" 1>&6 8353echo "configure:8354: checking for dlfcn.h" >&5 8354if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 8355 echo $ac_n "(cached) $ac_c" 1>&6 8356else 8357 cat > conftest.$ac_ext <<EOF 8358#line 8359 "configure" 8359#include "confdefs.h" 8360#include <dlfcn.h> 8361EOF 8362ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8363{ (eval echo configure:8364: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8364ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 8365if test -z "$ac_err"; then 8366 rm -rf conftest* 8367 eval "ac_cv_header_$ac_safe=yes" 8368else 8369 echo "$ac_err" >&5 8370 echo "configure: failed program was:" >&5 8371 cat conftest.$ac_ext >&5 8372 rm -rf conftest* 8373 eval "ac_cv_header_$ac_safe=no" 8374fi 8375rm -f conftest* 8376fi 8377if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 8378 echo "$ac_t""yes" 1>&6 8379 DLL=dlfcn.h 8380else 8381 echo "$ac_t""no" 1>&6 8382ac_safe=`echo "dl.h" | sed 'y%./+-%__p_%'` 8383echo $ac_n "checking for dl.h""... $ac_c" 1>&6 8384echo "configure:8385: checking for dl.h" >&5 8385if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 8386 echo $ac_n "(cached) $ac_c" 1>&6 8387else 8388 cat > conftest.$ac_ext <<EOF 8389#line 8390 "configure" 8390#include "confdefs.h" 8391#include <dl.h> 8392EOF 8393ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8394{ (eval echo configure:8395: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8395ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 8396if test -z "$ac_err"; then 8397 rm -rf conftest* 8398 eval "ac_cv_header_$ac_safe=yes" 8399else 8400 echo "$ac_err" >&5 8401 echo "configure: failed program was:" >&5 8402 cat conftest.$ac_ext >&5 8403 rm -rf conftest* 8404 eval "ac_cv_header_$ac_safe=no" 8405fi 8406rm -f conftest* 8407fi 8408if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 8409 echo "$ac_t""yes" 1>&6 8410 DLL=dl.h 8411else 8412 echo "$ac_t""no" 1>&6 8413fi 8414 8415fi 8416 8417if test x${DLL} = xdlfcn.h; then 8418 cat >> confdefs.h <<\EOF 8419#define HAVE_DLFCN_H 1 8420EOF 8421 8422 echo $ac_n "checking for dlopen()""... $ac_c" 1>&6 8423echo "configure:8424: checking for dlopen()" >&5 8424 cat > conftest.$ac_ext <<EOF 8425#line 8426 "configure" 8426#include "confdefs.h" 8427 8428int main() { 8429 8430 extern void* dlopen(); 8431 dlopen(); 8432 8433; return 0; } 8434EOF 8435if { (eval echo configure:8436: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8436 rm -rf conftest* 8437 echo "$ac_t""yes" 1>&6; 8438 cat >> confdefs.h <<\EOF 8439#define HAVE_DLOPEN 1 8440EOF 8441 8442else 8443 echo "configure: failed program was:" >&5 8444 cat conftest.$ac_ext >&5 8445 rm -rf conftest* 8446 echo "$ac_t""no" 1>&6; 8447 echo $ac_n "checking for dlopen() in -ldl""... $ac_c" 1>&6 8448echo "configure:8449: checking for dlopen() in -ldl" >&5 8449 olibs=$LIBS 8450 LIBS="$LIBS -ldl" 8451 cat > conftest.$ac_ext <<EOF 8452#line 8453 "configure" 8453#include "confdefs.h" 8454 8455int main() { 8456 8457 extern void* dlopen(); 8458 dlopen(); 8459 8460; return 0; } 8461EOF 8462if { (eval echo configure:8463: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8463 rm -rf conftest* 8464 echo "$ac_t""yes" 1>&6; 8465 cat >> confdefs.h <<\EOF 8466#define HAVE_DLOPEN 1 8467EOF 8468 8469else 8470 echo "configure: failed program was:" >&5 8471 cat conftest.$ac_ext >&5 8472 rm -rf conftest* 8473 echo "$ac_t""no" 1>&6; 8474 LIBS=$olibs 8475fi 8476rm -f conftest* 8477fi 8478rm -f conftest* 8479 echo $ac_n "checking for dlsym()""... $ac_c" 1>&6 8480echo "configure:8481: checking for dlsym()" >&5 8481 cat > conftest.$ac_ext <<EOF 8482#line 8483 "configure" 8483#include "confdefs.h" 8484 8485int main() { 8486 8487 extern void* dlsym(); 8488 dlsym(); 8489 8490; return 0; } 8491EOF 8492if { (eval echo configure:8493: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8493 rm -rf conftest* 8494 echo "$ac_t""yes" 1>&6; 8495 cat >> confdefs.h <<\EOF 8496#define HAVE_DLSYM 1 8497EOF 8498 8499else 8500 echo "configure: failed program was:" >&5 8501 cat conftest.$ac_ext >&5 8502 rm -rf conftest* 8503 echo "$ac_t""no" 1>&6; 8504 echo $ac_n "checking for dlsym() in -ldl""... $ac_c" 1>&6 8505echo "configure:8506: checking for dlsym() in -ldl" >&5 8506 olibs=$LIBS 8507 LIBS="$LIBS -ldl" 8508 cat > conftest.$ac_ext <<EOF 8509#line 8510 "configure" 8510#include "confdefs.h" 8511 8512int main() { 8513 8514 extern void* dlsym(); 8515 dlsym(); 8516 8517; return 0; } 8518EOF 8519if { (eval echo configure:8520: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8520 rm -rf conftest* 8521 echo "$ac_t""yes" 1>&6; 8522 cat >> confdefs.h <<\EOF 8523#define HAVE_DLSYM 1 8524EOF 8525 8526else 8527 echo "configure: failed program was:" >&5 8528 cat conftest.$ac_ext >&5 8529 rm -rf conftest* 8530 echo "$ac_t""no" 1>&6; 8531 LIBS=$olibs 8532fi 8533rm -f conftest* 8534fi 8535rm -f conftest* 8536elif test x${DLL} = xdl.h; then 8537 cat >> confdefs.h <<\EOF 8538#define HAVE_DL_H 1 8539EOF 8540 8541 echo $ac_n "checking for shl_load()""... $ac_c" 1>&6 8542echo "configure:8543: checking for shl_load()" >&5 8543 cat > conftest.$ac_ext <<EOF 8544#line 8545 "configure" 8545#include "confdefs.h" 8546 8547int main() { 8548 8549 extern void* shl_load(); 8550 shl_load(); 8551 8552; return 0; } 8553EOF 8554if { (eval echo configure:8555: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8555 rm -rf conftest* 8556 echo "$ac_t""yes" 1>&6; 8557 cat >> confdefs.h <<\EOF 8558#define HAVE_SHL_LOAD 1 8559EOF 8560 8561else 8562 echo "configure: failed program was:" >&5 8563 cat conftest.$ac_ext >&5 8564 rm -rf conftest* 8565 echo "$ac_t""no" 1>&6; 8566 echo $ac_n "checking for shl_load() in -ldld""... $ac_c" 1>&6 8567echo "configure:8568: checking for shl_load() in -ldld" >&5 8568 olibs=$LIBS 8569 LIBS="$LIBS -ldld" 8570 cat > conftest.$ac_ext <<EOF 8571#line 8572 "configure" 8572#include "confdefs.h" 8573 8574int main() { 8575 8576 extern void* shl_load(); 8577 shl_load(); 8578 8579; return 0; } 8580EOF 8581if { (eval echo configure:8582: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 8582 rm -rf conftest* 8583 echo "$ac_t""yes" 1>&6; 8584 cat >> confdefs.h <<\EOF 8585#define HAVE_SHL_LOAD 1 8586EOF 8587 8588else 8589 echo "configure: failed program was:" >&5 8590 cat conftest.$ac_ext >&5 8591 rm -rf conftest* 8592 echo "$ac_t""no" 1>&6; 8593 LIBS=$olibs 8594fi 8595rm -f conftest* 8596fi 8597rm -f conftest* 8598fi 8599for ac_hdr in setjmp.h 8600do 8601ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 8602echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 8603echo "configure:8604: checking for $ac_hdr" >&5 8604if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 8605 echo $ac_n "(cached) $ac_c" 1>&6 8606else 8607 cat > conftest.$ac_ext <<EOF 8608#line 8609 "configure" 8609#include "confdefs.h" 8610#include <$ac_hdr> 8611EOF 8612ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 8613{ (eval echo configure:8614: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 8614ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 8615if test -z "$ac_err"; then 8616 rm -rf conftest* 8617 eval "ac_cv_header_$ac_safe=yes" 8618else 8619 echo "$ac_err" >&5 8620 echo "configure: failed program was:" >&5 8621 cat conftest.$ac_ext >&5 8622 rm -rf conftest* 8623 eval "ac_cv_header_$ac_safe=no" 8624fi 8625rm -f conftest* 8626fi 8627if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 8628 echo "$ac_t""yes" 1>&6 8629 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 8630 cat >> confdefs.h <<EOF 8631#define $ac_tr_hdr 1 8632EOF 8633 8634else 8635 echo "$ac_t""no" 1>&6 8636fi 8637done 8638 8639 8640if test "x$MACOSX" = "xyes" -a -n "$PERL"; then 8641 if echo $LIBS | grep -e '-ldl' >/dev/null; then 8642 LIBS=`echo $LIBS | sed s/-ldl//` 8643 PERL_LIBS="$PERL_LIBS -ldl" 8644 fi 8645fi 8646 8647if test "x$MACOSX" = "xyes" && test "x$CARBON" = "xyes" \ 8648 && test "x$GUITYPE" != "xCARBONGUI"; then 8649 echo $ac_n "checking whether we need -framework Carbon""... $ac_c" 1>&6 8650echo "configure:8651: checking whether we need -framework Carbon" >&5 8651 if test "x$enable_multibyte" = "xyes" || test "x$features" == "xbig" \ 8652 || test "x$features" = "xhuge"; then 8653 LIBS="$LIBS -framework Carbon" 8654 echo "$ac_t""yes" 1>&6 8655 else 8656 echo "$ac_t""no" 1>&6 8657 fi 8658fi 8659 8660 8661trap '' 1 2 15 8662cat > confcache <<\EOF 8663# This file is a shell script that caches the results of configure 8664# tests run on this system so they can be shared between configure 8665# scripts and configure runs. It is not useful on other systems. 8666# If it contains results you don't want to keep, you may remove or edit it. 8667# 8668# By default, configure uses ./config.cache as the cache file, 8669# creating it if it does not exist already. You can give configure 8670# the --cache-file=FILE option to use a different cache file; that is 8671# what configure does when it calls configure scripts in 8672# subdirectories, so they share the cache. 8673# Giving --cache-file=/dev/null disables caching, for debugging configure. 8674# config.status only pays attention to the cache file if you give it the 8675# --recheck option to rerun configure. 8676# 8677EOF 8678# The following way of writing the cache mishandles newlines in values, 8679# but we know of no workaround that is simple, portable, and efficient. 8680# So, don't put newlines in cache variables' values. 8681# Ultrix sh set writes to stderr and can't be redirected directly, 8682# and sets the high bit in the cache file unless we assign to the vars. 8683(set) 2>&1 | 8684 case `(ac_space=' '; set | grep ac_space) 2>&1` in 8685 *ac_space=\ *) 8686 # `set' does not quote correctly, so add quotes (double-quote substitution 8687 # turns \\\\ into \\, and sed turns \\ into \). 8688 sed -n \ 8689 -e "s/'/'\\\\''/g" \ 8690 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" 8691 ;; 8692 *) 8693 # `set' quotes correctly as required by POSIX, so do not add quotes. 8694 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' 8695 ;; 8696 esac >> confcache 8697if cmp -s $cache_file confcache; then 8698 : 8699else 8700 if test -w $cache_file; then 8701 echo "updating cache $cache_file" 8702 cat confcache > $cache_file 8703 else 8704 echo "not updating unwritable cache $cache_file" 8705 fi 8706fi 8707rm -f confcache 8708 8709trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 8710 8711test "x$prefix" = xNONE && prefix=$ac_default_prefix 8712# Let make expand exec_prefix. 8713test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 8714 8715# Any assignment to VPATH causes Sun make to only execute 8716# the first set of double-colon rules, so remove it if not needed. 8717# If there is a colon in the path, we need to keep it. 8718if test "x$srcdir" = x.; then 8719 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' 8720fi 8721 8722trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 8723 8724DEFS=-DHAVE_CONFIG_H 8725 8726# Without the "./", some shells look in PATH for config.status. 8727: ${CONFIG_STATUS=./config.status} 8728 8729echo creating $CONFIG_STATUS 8730rm -f $CONFIG_STATUS 8731cat > $CONFIG_STATUS <<EOF 8732#! /bin/sh 8733# Generated automatically by configure. 8734# Run this file to recreate the current configuration. 8735# This directory was configured as follows, 8736# on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 8737# 8738# $0 $ac_configure_args 8739# 8740# Compiler output produced by configure, useful for debugging 8741# configure, is in auto/config.log if it exists. 8742 8743ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" 8744for ac_option 8745do 8746 case "\$ac_option" in 8747 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 8748 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" 8749 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; 8750 -version | --version | --versio | --versi | --vers | --ver | --ve | --v) 8751 echo "$CONFIG_STATUS generated by autoconf version 2.13" 8752 exit 0 ;; 8753 -help | --help | --hel | --he | --h) 8754 echo "\$ac_cs_usage"; exit 0 ;; 8755 *) echo "\$ac_cs_usage"; exit 1 ;; 8756 esac 8757done 8758 8759ac_given_srcdir=$srcdir 8760 8761trap 'rm -fr `echo "auto/config.mk:config.mk.in auto/config.h:config.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 8762EOF 8763cat >> $CONFIG_STATUS <<EOF 8764 8765# Protect against being on the right side of a sed subst in config.status. 8766sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; 8767 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF 8768$ac_vpsub 8769$extrasub 8770s%@SHELL@%$SHELL%g 8771s%@CFLAGS@%$CFLAGS%g 8772s%@CPPFLAGS@%$CPPFLAGS%g 8773s%@CXXFLAGS@%$CXXFLAGS%g 8774s%@FFLAGS@%$FFLAGS%g 8775s%@DEFS@%$DEFS%g 8776s%@LDFLAGS@%$LDFLAGS%g 8777s%@LIBS@%$LIBS%g 8778s%@exec_prefix@%$exec_prefix%g 8779s%@prefix@%$prefix%g 8780s%@program_transform_name@%$program_transform_name%g 8781s%@bindir@%$bindir%g 8782s%@sbindir@%$sbindir%g 8783s%@libexecdir@%$libexecdir%g 8784s%@datadir@%$datadir%g 8785s%@sysconfdir@%$sysconfdir%g 8786s%@sharedstatedir@%$sharedstatedir%g 8787s%@localstatedir@%$localstatedir%g 8788s%@libdir@%$libdir%g 8789s%@includedir@%$includedir%g 8790s%@oldincludedir@%$oldincludedir%g 8791s%@infodir@%$infodir%g 8792s%@mandir@%$mandir%g 8793s%@SET_MAKE@%$SET_MAKE%g 8794s%@CC@%$CC%g 8795s%@CPP@%$CPP%g 8796s%@AWK@%$AWK%g 8797s%@STRIP@%$STRIP%g 8798s%@EXEEXT@%$EXEEXT%g 8799s%@CPP_MM@%$CPP_MM%g 8800s%@OS_EXTRA_SRC@%$OS_EXTRA_SRC%g 8801s%@OS_EXTRA_OBJ@%$OS_EXTRA_OBJ%g 8802s%@VIMNAME@%$VIMNAME%g 8803s%@EXNAME@%$EXNAME%g 8804s%@VIEWNAME@%$VIEWNAME%g 8805s%@line_break@%$line_break%g 8806s%@dovimdiff@%$dovimdiff%g 8807s%@dogvimdiff@%$dogvimdiff%g 8808s%@compiledby@%$compiledby%g 8809s%@vi_cv_path_perl@%$vi_cv_path_perl%g 8810s%@vi_cv_perllib@%$vi_cv_perllib%g 8811s%@shrpenv@%$shrpenv%g 8812s%@PERL_SRC@%$PERL_SRC%g 8813s%@PERL_OBJ@%$PERL_OBJ%g 8814s%@PERL_PRO@%$PERL_PRO%g 8815s%@PERL_CFLAGS@%$PERL_CFLAGS%g 8816s%@PERL_LIBS@%$PERL_LIBS%g 8817s%@vi_cv_path_python@%$vi_cv_path_python%g 8818s%@PYTHON_CONFDIR@%$PYTHON_CONFDIR%g 8819s%@PYTHON_LIBS@%$PYTHON_LIBS%g 8820s%@PYTHON_GETPATH_CFLAGS@%$PYTHON_GETPATH_CFLAGS%g 8821s%@PYTHON_CFLAGS@%$PYTHON_CFLAGS%g 8822s%@PYTHON_SRC@%$PYTHON_SRC%g 8823s%@PYTHON_OBJ@%$PYTHON_OBJ%g 8824s%@vi_cv_path_tcl@%$vi_cv_path_tcl%g 8825s%@TCL_SRC@%$TCL_SRC%g 8826s%@TCL_OBJ@%$TCL_OBJ%g 8827s%@TCL_PRO@%$TCL_PRO%g 8828s%@TCL_CFLAGS@%$TCL_CFLAGS%g 8829s%@TCL_LIBS@%$TCL_LIBS%g 8830s%@vi_cv_path_ruby@%$vi_cv_path_ruby%g 8831s%@RUBY_SRC@%$RUBY_SRC%g 8832s%@RUBY_OBJ@%$RUBY_OBJ%g 8833s%@RUBY_PRO@%$RUBY_PRO%g 8834s%@RUBY_CFLAGS@%$RUBY_CFLAGS%g 8835s%@RUBY_LIBS@%$RUBY_LIBS%g 8836s%@WORKSHOP_SRC@%$WORKSHOP_SRC%g 8837s%@WORKSHOP_OBJ@%$WORKSHOP_OBJ%g 8838s%@NETBEANS_SRC@%$NETBEANS_SRC%g 8839s%@NETBEANS_OBJ@%$NETBEANS_OBJ%g 8840s%@SNIFF_SRC@%$SNIFF_SRC%g 8841s%@SNIFF_OBJ@%$SNIFF_OBJ%g 8842s%@xmkmfpath@%$xmkmfpath%g 8843s%@X_CFLAGS@%$X_CFLAGS%g 8844s%@X_PRE_LIBS@%$X_PRE_LIBS%g 8845s%@X_LIBS@%$X_LIBS%g 8846s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g 8847s%@X_LIB@%$X_LIB%g 8848s%@MOC@%$MOC%g 8849s%@KDE_CONFIG@%$KDE_CONFIG%g 8850s%@KDE_LIBS@%$KDE_LIBS%g 8851s%@KDE_INCLUDES@%$KDE_INCLUDES%g 8852s%@KDE_PREFIX@%$KDE_PREFIX%g 8853s%@QT_LIBS@%$QT_LIBS%g 8854s%@QT_INCLUDES@%$QT_INCLUDES%g 8855s%@ROOTQT@%$ROOTQT%g 8856s%@GTK_CONFIG@%$GTK_CONFIG%g 8857s%@GTK12_CONFIG@%$GTK12_CONFIG%g 8858s%@PKG_CONFIG@%$PKG_CONFIG%g 8859s%@GTK_CFLAGS@%$GTK_CFLAGS%g 8860s%@GTK_LIBS@%$GTK_LIBS%g 8861s%@GTK_LIBNAME@%$GTK_LIBNAME%g 8862s%@GNOME_LIBS@%$GNOME_LIBS%g 8863s%@GNOME_LIBDIR@%$GNOME_LIBDIR%g 8864s%@GNOME_INCLUDEDIR@%$GNOME_INCLUDEDIR%g 8865s%@GNOME_CONFIG@%$GNOME_CONFIG%g 8866s%@MOTIF_LIBNAME@%$MOTIF_LIBNAME%g 8867s%@NARROW_PROTO@%$NARROW_PROTO%g 8868s%@GUI_INC_LOC@%$GUI_INC_LOC%g 8869s%@GUI_LIB_LOC@%$GUI_LIB_LOC%g 8870s%@GUITYPE@%$GUITYPE%g 8871s%@GUI_X_LIBS@%$GUI_X_LIBS%g 8872s%@HANGULIN_SRC@%$HANGULIN_SRC%g 8873s%@HANGULIN_OBJ@%$HANGULIN_OBJ%g 8874s%@TAGPRG@%$TAGPRG%g 8875s%@MSGFMT@%$MSGFMT%g 8876s%@MAKEMO@%$MAKEMO%g 8877 8878CEOF 8879EOF 8880 8881cat >> $CONFIG_STATUS <<\EOF 8882 8883# Split the substitutions into bite-sized pieces for seds with 8884# small command number limits, like on Digital OSF/1 and HP-UX. 8885ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. 8886ac_file=1 # Number of current file. 8887ac_beg=1 # First line for current file. 8888ac_end=$ac_max_sed_cmds # Line after last line for current file. 8889ac_more_lines=: 8890ac_sed_cmds="" 8891while $ac_more_lines; do 8892 if test $ac_beg -gt 1; then 8893 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file 8894 else 8895 sed "${ac_end}q" conftest.subs > conftest.s$ac_file 8896 fi 8897 if test ! -s conftest.s$ac_file; then 8898 ac_more_lines=false 8899 rm -f conftest.s$ac_file 8900 else 8901 if test -z "$ac_sed_cmds"; then 8902 ac_sed_cmds="sed -f conftest.s$ac_file" 8903 else 8904 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" 8905 fi 8906 ac_file=`expr $ac_file + 1` 8907 ac_beg=$ac_end 8908 ac_end=`expr $ac_end + $ac_max_sed_cmds` 8909 fi 8910done 8911if test -z "$ac_sed_cmds"; then 8912 ac_sed_cmds=cat 8913fi 8914EOF 8915 8916cat >> $CONFIG_STATUS <<EOF 8917 8918CONFIG_FILES=\${CONFIG_FILES-"auto/config.mk:config.mk.in"} 8919EOF 8920cat >> $CONFIG_STATUS <<\EOF 8921for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then 8922 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 8923 case "$ac_file" in 8924 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` 8925 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 8926 *) ac_file_in="${ac_file}.in" ;; 8927 esac 8928 8929 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. 8930 8931 # Remove last slash and all that follows it. Not all systems have dirname. 8932 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` 8933 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 8934 # The file is in a subdirectory. 8935 test ! -d "$ac_dir" && mkdir "$ac_dir" 8936 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" 8937 # A "../" for each directory in $ac_dir_suffix. 8938 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` 8939 else 8940 ac_dir_suffix= ac_dots= 8941 fi 8942 8943 case "$ac_given_srcdir" in 8944 .) srcdir=. 8945 if test -z "$ac_dots"; then top_srcdir=. 8946 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; 8947 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; 8948 *) # Relative path. 8949 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" 8950 top_srcdir="$ac_dots$ac_given_srcdir" ;; 8951 esac 8952 8953 8954 echo creating "$ac_file" 8955 rm -f "$ac_file" 8956 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." 8957 case "$ac_file" in 8958 *Makefile*) ac_comsub="1i\\ 8959# $configure_input" ;; 8960 *) ac_comsub= ;; 8961 esac 8962 8963 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` 8964 sed -e "$ac_comsub 8965s%@configure_input@%$configure_input%g 8966s%@srcdir@%$srcdir%g 8967s%@top_srcdir@%$top_srcdir%g 8968" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file 8969fi; done 8970rm -f conftest.s* 8971 8972# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where 8973# NAME is the cpp macro being defined and VALUE is the value it is being given. 8974# 8975# ac_d sets the value in "#define NAME VALUE" lines. 8976ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' 8977ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' 8978ac_dC='\3' 8979ac_dD='%g' 8980# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". 8981ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 8982ac_uB='\([ ]\)%\1#\2define\3' 8983ac_uC=' ' 8984ac_uD='\4%g' 8985# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 8986ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 8987ac_eB='$%\1#\2define\3' 8988ac_eC=' ' 8989ac_eD='%g' 8990 8991if test "${CONFIG_HEADERS+set}" != set; then 8992EOF 8993cat >> $CONFIG_STATUS <<EOF 8994 CONFIG_HEADERS="auto/config.h:config.h.in" 8995EOF 8996cat >> $CONFIG_STATUS <<\EOF 8997fi 8998for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then 8999 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 9000 case "$ac_file" in 9001 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` 9002 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 9003 *) ac_file_in="${ac_file}.in" ;; 9004 esac 9005 9006 echo creating $ac_file 9007 9008 rm -f conftest.frag conftest.in conftest.out 9009 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` 9010 cat $ac_file_inputs > conftest.in 9011 9012EOF 9013 9014# Transform confdefs.h into a sed script conftest.vals that substitutes 9015# the proper values into config.h.in to produce config.h. And first: 9016# Protect against being on the right side of a sed subst in config.status. 9017# Protect against being in an unquoted here document in config.status. 9018rm -f conftest.vals 9019cat > conftest.hdr <<\EOF 9020s/[\\&%]/\\&/g 9021s%[\\$`]%\\&%g 9022s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp 9023s%ac_d%ac_u%gp 9024s%ac_u%ac_e%gp 9025EOF 9026sed -n -f conftest.hdr confdefs.h > conftest.vals 9027rm -f conftest.hdr 9028 9029# This sed command replaces #undef with comments. This is necessary, for 9030# example, in the case of _POSIX_SOURCE, which is predefined and required 9031# on some systems where configure will not decide to define it. 9032cat >> conftest.vals <<\EOF 9033s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% 9034EOF 9035 9036# Break up conftest.vals because some shells have a limit on 9037# the size of here documents, and old seds have small limits too. 9038 9039rm -f conftest.tail 9040while : 9041do 9042 ac_lines=`grep -c . conftest.vals` 9043 # grep -c gives empty output for an empty file on some AIX systems. 9044 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi 9045 # Write a limited-size here document to conftest.frag. 9046 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS 9047 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS 9048 echo 'CEOF 9049 sed -f conftest.frag conftest.in > conftest.out 9050 rm -f conftest.in 9051 mv conftest.out conftest.in 9052' >> $CONFIG_STATUS 9053 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail 9054 rm -f conftest.vals 9055 mv conftest.tail conftest.vals 9056done 9057rm -f conftest.vals 9058 9059cat >> $CONFIG_STATUS <<\EOF 9060 rm -f conftest.frag conftest.h 9061 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h 9062 cat conftest.in >> conftest.h 9063 rm -f conftest.in 9064 if cmp -s $ac_file conftest.h 2>/dev/null; then 9065 echo "$ac_file is unchanged" 9066 rm -f conftest.h 9067 else 9068 # Remove last slash and all that follows it. Not all systems have dirname. 9069 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` 9070 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 9071 # The file is in a subdirectory. 9072 test ! -d "$ac_dir" && mkdir "$ac_dir" 9073 fi 9074 rm -f $ac_file 9075 mv conftest.h $ac_file 9076 fi 9077fi; done 9078 9079EOF 9080cat >> $CONFIG_STATUS <<EOF 9081 9082EOF 9083cat >> $CONFIG_STATUS <<\EOF 9084 9085exit 0 9086EOF 9087chmod +x $CONFIG_STATUS 9088rm -fr confdefs* $ac_clean_files 9089test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 9090 9091 9092