Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 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: |
| 11 | ac_help= |
| 12 | ac_default_prefix=/usr/local |
| 13 | # Any additions from configure.in: |
| 14 | ac_help="$ac_help |
| 15 | --disable-darwin Disable Darwin (Mac OS X) support." |
| 16 | ac_help="$ac_help |
| 17 | --with-vim-name=NAME what to call the Vim executable" |
| 18 | ac_help="$ac_help |
| 19 | --with-ex-name=NAME what to call the Ex executable" |
| 20 | ac_help="$ac_help |
| 21 | --with-view-name=NAME what to call the View executable" |
| 22 | ac_help="$ac_help |
| 23 | --with-global-runtime=DIR global runtime directory in 'runtimepath'" |
| 24 | ac_help="$ac_help |
| 25 | --with-modified-by=NAME name of who modified a release version" |
| 26 | ac_help="$ac_help |
| 27 | --with-features=TYPE tiny, small, normal, big or huge (default: normal)" |
| 28 | ac_help="$ac_help |
| 29 | --with-compiledby=NAME name to show in :version message" |
| 30 | ac_help="$ac_help |
| 31 | --disable-xsmp Disable XSMP session management" |
| 32 | ac_help="$ac_help |
| 33 | --disable-xsmp-interact Disable XSMP interaction" |
| 34 | ac_help="$ac_help |
| 35 | --enable-perlinterp Include Perl interpreter." |
| 36 | ac_help="$ac_help |
| 37 | --enable-pythoninterp Include Python interpreter." |
| 38 | ac_help="$ac_help |
| 39 | --with-python-config-dir=PATH Python's config directory" |
| 40 | ac_help="$ac_help |
| 41 | --enable-tclinterp Include Tcl interpreter." |
| 42 | ac_help="$ac_help |
| 43 | --with-tclsh=PATH which tclsh to use (default: tclsh8.0)" |
| 44 | ac_help="$ac_help |
| 45 | --enable-rubyinterp Include Ruby interpreter." |
| 46 | ac_help="$ac_help |
| 47 | --enable-cscope Include cscope interface." |
| 48 | ac_help="$ac_help |
| 49 | --enable-workshop Include Sun Visual Workshop support." |
| 50 | ac_help="$ac_help |
| 51 | --disable-netbeans Disable NetBeans integration support." |
| 52 | ac_help="$ac_help |
| 53 | --enable-sniff Include Sniff interface." |
| 54 | ac_help="$ac_help |
| 55 | --enable-multibyte Include multibyte editing support." |
| 56 | ac_help="$ac_help |
| 57 | --enable-hangulinput Include Hangul input support." |
| 58 | ac_help="$ac_help |
| 59 | --enable-xim Include XIM input support." |
| 60 | ac_help="$ac_help |
| 61 | --enable-fontset Include X fontset output support." |
| 62 | ac_help="$ac_help |
| 63 | --with-x use the X Window System" |
| 64 | ac_help="$ac_help |
| 65 | --enable-gui[=OPTS] X11 GUI [default=auto] [OPTS=auto/no/gtk/gtk2/gnome/gnome2/motif/athena/neXtaw/beos/photon/carbon]" |
| 66 | ac_help="$ac_help |
| 67 | --enable-gtk-check If auto-select GUI, check for GTK [default=yes]" |
| 68 | ac_help="$ac_help |
| 69 | --enable-gtk2-check If GTK GUI, check for GTK+ 2 [default=yes]" |
| 70 | ac_help="$ac_help |
| 71 | --enable-gnome-check If GTK GUI, check for GNOME [default=no]" |
| 72 | ac_help="$ac_help |
| 73 | --enable-motif-check If auto-select GUI, check for Motif [default=yes]" |
| 74 | ac_help="$ac_help |
| 75 | --enable-athena-check If auto-select GUI, check for Athena [default=yes]" |
| 76 | ac_help="$ac_help |
| 77 | --enable-nextaw-check If auto-select GUI, check for neXtaw [default=yes]" |
| 78 | ac_help="$ac_help |
| 79 | --enable-carbon-check If auto-select GUI, check for Carbon [default=yes]" |
| 80 | ac_help="$ac_help |
| 81 | --with-gtk-prefix=PFX Prefix where GTK is installed (optional)" |
| 82 | ac_help="$ac_help |
| 83 | --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)" |
| 84 | ac_help="$ac_help |
| 85 | --disable-gtktest Do not try to compile and run a test GTK program" |
| 86 | ac_help="$ac_help |
| 87 | --with-gnome-includes=DIR Specify location of GNOME headers" |
| 88 | ac_help="$ac_help |
| 89 | --with-gnome-libs=DIR Specify location of GNOME libs" |
| 90 | ac_help="$ac_help |
| 91 | --with-gnome Specify prefix for GNOME files" |
| 92 | ac_help="$ac_help |
| 93 | --with-motif-lib=STRING Library for Motif " |
| 94 | ac_help="$ac_help |
| 95 | --with-tlib=library terminal library to be used " |
| 96 | ac_help="$ac_help |
| 97 | --disable-acl Don't check for ACL support." |
| 98 | ac_help="$ac_help |
| 99 | --disable-gpm Don't use gpm (Linux mouse daemon)." |
| 100 | ac_help="$ac_help |
| 101 | --disable-nls Don't support NLS (gettext())." |
| 102 | |
| 103 | # Initialize some variables set by options. |
| 104 | # The variables have the same names as the options, with |
| 105 | # dashes changed to underlines. |
| 106 | build=NONE |
| 107 | cache_file=./config.cache |
| 108 | exec_prefix=NONE |
| 109 | host=NONE |
| 110 | no_create= |
| 111 | nonopt=NONE |
| 112 | no_recursion= |
| 113 | prefix=NONE |
| 114 | program_prefix=NONE |
| 115 | program_suffix=NONE |
| 116 | program_transform_name=s,x,x, |
| 117 | silent= |
| 118 | site= |
| 119 | srcdir= |
| 120 | target=NONE |
| 121 | verbose= |
| 122 | x_includes=NONE |
| 123 | x_libraries=NONE |
| 124 | bindir='${exec_prefix}/bin' |
| 125 | sbindir='${exec_prefix}/sbin' |
| 126 | libexecdir='${exec_prefix}/libexec' |
| 127 | datadir='${prefix}/share' |
| 128 | sysconfdir='${prefix}/etc' |
| 129 | sharedstatedir='${prefix}/com' |
| 130 | localstatedir='${prefix}/var' |
| 131 | libdir='${exec_prefix}/lib' |
| 132 | includedir='${prefix}/include' |
| 133 | oldincludedir='/usr/include' |
| 134 | infodir='${prefix}/info' |
| 135 | mandir='${prefix}/man' |
| 136 | |
| 137 | # Initialize some other variables. |
| 138 | subdirs= |
| 139 | MFLAGS= MAKEFLAGS= |
| 140 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 141 | # Maximum number of lines to put in a shell here document. |
| 142 | ac_max_here_lines=12 |
| 143 | |
| 144 | ac_prev= |
| 145 | for ac_option |
| 146 | do |
| 147 | |
| 148 | # If the previous option needs an argument, assign it. |
| 149 | if test -n "$ac_prev"; then |
| 150 | eval "$ac_prev=\$ac_option" |
| 151 | ac_prev= |
| 152 | continue |
| 153 | fi |
| 154 | |
| 155 | case "$ac_option" in |
| 156 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; |
| 157 | *) ac_optarg= ;; |
| 158 | esac |
| 159 | |
| 160 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 161 | |
| 162 | case "$ac_option" in |
| 163 | |
| 164 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 165 | ac_prev=bindir ;; |
| 166 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 167 | bindir="$ac_optarg" ;; |
| 168 | |
| 169 | -build | --build | --buil | --bui | --bu) |
| 170 | ac_prev=build ;; |
| 171 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
| 172 | build="$ac_optarg" ;; |
| 173 | |
| 174 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 175 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 176 | ac_prev=cache_file ;; |
| 177 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 178 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 179 | cache_file="$ac_optarg" ;; |
| 180 | |
| 181 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
| 182 | ac_prev=datadir ;; |
| 183 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
| 184 | | --da=*) |
| 185 | datadir="$ac_optarg" ;; |
| 186 | |
| 187 | -disable-* | --disable-*) |
| 188 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` |
| 189 | # Reject names that are not valid shell variable names. |
| 190 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then |
| 191 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } |
| 192 | fi |
| 193 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` |
| 194 | eval "enable_${ac_feature}=no" ;; |
| 195 | |
| 196 | -enable-* | --enable-*) |
| 197 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` |
| 198 | # Reject names that are not valid shell variable names. |
| 199 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then |
| 200 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } |
| 201 | fi |
| 202 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` |
| 203 | case "$ac_option" in |
| 204 | *=*) ;; |
| 205 | *) ac_optarg=yes ;; |
| 206 | esac |
| 207 | eval "enable_${ac_feature}='$ac_optarg'" ;; |
| 208 | |
| 209 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 210 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 211 | | --exec | --exe | --ex) |
| 212 | ac_prev=exec_prefix ;; |
| 213 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 214 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 215 | | --exec=* | --exe=* | --ex=*) |
| 216 | exec_prefix="$ac_optarg" ;; |
| 217 | |
| 218 | -gas | --gas | --ga | --g) |
| 219 | # Obsolete; use --with-gas. |
| 220 | with_gas=yes ;; |
| 221 | |
| 222 | -help | --help | --hel | --he) |
| 223 | # Omit some internal or obsolete options to make the list less imposing. |
| 224 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 225 | cat << EOF |
| 226 | Usage: configure [options] [host] |
| 227 | Options: [defaults in brackets after descriptions] |
| 228 | Configuration: |
| 229 | --cache-file=FILE cache test results in FILE |
| 230 | --help print this message |
| 231 | --no-create do not create output files |
| 232 | --quiet, --silent do not print \`checking...' messages |
| 233 | --version print the version of autoconf that created configure |
| 234 | Directory and file names: |
| 235 | --prefix=PREFIX install architecture-independent files in PREFIX |
| 236 | [$ac_default_prefix] |
| 237 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
| 238 | [same as prefix] |
| 239 | --bindir=DIR user executables in DIR [EPREFIX/bin] |
| 240 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] |
| 241 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec] |
| 242 | --datadir=DIR read-only architecture-independent data in DIR |
| 243 | [PREFIX/share] |
| 244 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] |
| 245 | --sharedstatedir=DIR modifiable architecture-independent data in DIR |
| 246 | [PREFIX/com] |
| 247 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] |
| 248 | --libdir=DIR object code libraries in DIR [EPREFIX/lib] |
| 249 | --includedir=DIR C header files in DIR [PREFIX/include] |
| 250 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] |
| 251 | --infodir=DIR info documentation in DIR [PREFIX/info] |
| 252 | --mandir=DIR man documentation in DIR [PREFIX/man] |
| 253 | --srcdir=DIR find the sources in DIR [configure dir or ..] |
| 254 | --program-prefix=PREFIX prepend PREFIX to installed program names |
| 255 | --program-suffix=SUFFIX append SUFFIX to installed program names |
| 256 | --program-transform-name=PROGRAM |
| 257 | run sed PROGRAM on installed program names |
| 258 | EOF |
| 259 | cat << EOF |
| 260 | Host type: |
| 261 | --build=BUILD configure for building on BUILD [BUILD=HOST] |
| 262 | --host=HOST configure for HOST [guessed] |
| 263 | --target=TARGET configure for TARGET [TARGET=HOST] |
| 264 | Features and packages: |
| 265 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 266 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
| 267 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 268 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
| 269 | --x-includes=DIR X include files are in DIR |
| 270 | --x-libraries=DIR X library files are in DIR |
| 271 | EOF |
| 272 | if test -n "$ac_help"; then |
| 273 | echo "--enable and --with options recognized:$ac_help" |
| 274 | fi |
| 275 | exit 0 ;; |
| 276 | |
| 277 | -host | --host | --hos | --ho) |
| 278 | ac_prev=host ;; |
| 279 | -host=* | --host=* | --hos=* | --ho=*) |
| 280 | host="$ac_optarg" ;; |
| 281 | |
| 282 | -includedir | --includedir | --includedi | --included | --include \ |
| 283 | | --includ | --inclu | --incl | --inc) |
| 284 | ac_prev=includedir ;; |
| 285 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 286 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
| 287 | includedir="$ac_optarg" ;; |
| 288 | |
| 289 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 290 | ac_prev=infodir ;; |
| 291 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 292 | infodir="$ac_optarg" ;; |
| 293 | |
| 294 | -libdir | --libdir | --libdi | --libd) |
| 295 | ac_prev=libdir ;; |
| 296 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 297 | libdir="$ac_optarg" ;; |
| 298 | |
| 299 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 300 | | --libexe | --libex | --libe) |
| 301 | ac_prev=libexecdir ;; |
| 302 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 303 | | --libexe=* | --libex=* | --libe=*) |
| 304 | libexecdir="$ac_optarg" ;; |
| 305 | |
| 306 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
| 307 | | --localstate | --localstat | --localsta | --localst \ |
| 308 | | --locals | --local | --loca | --loc | --lo) |
| 309 | ac_prev=localstatedir ;; |
| 310 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
| 311 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
| 312 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
| 313 | localstatedir="$ac_optarg" ;; |
| 314 | |
| 315 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 316 | ac_prev=mandir ;; |
| 317 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 318 | mandir="$ac_optarg" ;; |
| 319 | |
| 320 | -nfp | --nfp | --nf) |
| 321 | # Obsolete; use --without-fp. |
| 322 | with_fp=no ;; |
| 323 | |
| 324 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 325 | | --no-cr | --no-c) |
| 326 | no_create=yes ;; |
| 327 | |
| 328 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 329 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 330 | no_recursion=yes ;; |
| 331 | |
| 332 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 333 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 334 | | --oldin | --oldi | --old | --ol | --o) |
| 335 | ac_prev=oldincludedir ;; |
| 336 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 337 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 338 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 339 | oldincludedir="$ac_optarg" ;; |
| 340 | |
| 341 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 342 | ac_prev=prefix ;; |
| 343 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 344 | prefix="$ac_optarg" ;; |
| 345 | |
| 346 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 347 | | --program-pre | --program-pr | --program-p) |
| 348 | ac_prev=program_prefix ;; |
| 349 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 350 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 351 | program_prefix="$ac_optarg" ;; |
| 352 | |
| 353 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 354 | | --program-suf | --program-su | --program-s) |
| 355 | ac_prev=program_suffix ;; |
| 356 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 357 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 358 | program_suffix="$ac_optarg" ;; |
| 359 | |
| 360 | -program-transform-name | --program-transform-name \ |
| 361 | | --program-transform-nam | --program-transform-na \ |
| 362 | | --program-transform-n | --program-transform- \ |
| 363 | | --program-transform | --program-transfor \ |
| 364 | | --program-transfo | --program-transf \ |
| 365 | | --program-trans | --program-tran \ |
| 366 | | --progr-tra | --program-tr | --program-t) |
| 367 | ac_prev=program_transform_name ;; |
| 368 | -program-transform-name=* | --program-transform-name=* \ |
| 369 | | --program-transform-nam=* | --program-transform-na=* \ |
| 370 | | --program-transform-n=* | --program-transform-=* \ |
| 371 | | --program-transform=* | --program-transfor=* \ |
| 372 | | --program-transfo=* | --program-transf=* \ |
| 373 | | --program-trans=* | --program-tran=* \ |
| 374 | | --progr-tra=* | --program-tr=* | --program-t=*) |
| 375 | program_transform_name="$ac_optarg" ;; |
| 376 | |
| 377 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 378 | | -silent | --silent | --silen | --sile | --sil) |
| 379 | silent=yes ;; |
| 380 | |
| 381 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 382 | ac_prev=sbindir ;; |
| 383 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 384 | | --sbi=* | --sb=*) |
| 385 | sbindir="$ac_optarg" ;; |
| 386 | |
| 387 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 388 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 389 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 390 | | --sha | --sh) |
| 391 | ac_prev=sharedstatedir ;; |
| 392 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 393 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 394 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 395 | | --sha=* | --sh=*) |
| 396 | sharedstatedir="$ac_optarg" ;; |
| 397 | |
| 398 | -site | --site | --sit) |
| 399 | ac_prev=site ;; |
| 400 | -site=* | --site=* | --sit=*) |
| 401 | site="$ac_optarg" ;; |
| 402 | |
| 403 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 404 | ac_prev=srcdir ;; |
| 405 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 406 | srcdir="$ac_optarg" ;; |
| 407 | |
| 408 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 409 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 410 | ac_prev=sysconfdir ;; |
| 411 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 412 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 413 | sysconfdir="$ac_optarg" ;; |
| 414 | |
| 415 | -target | --target | --targe | --targ | --tar | --ta | --t) |
| 416 | ac_prev=target ;; |
| 417 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 418 | target="$ac_optarg" ;; |
| 419 | |
| 420 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 421 | verbose=yes ;; |
| 422 | |
| 423 | -version | --version | --versio | --versi | --vers) |
| 424 | echo "configure generated by autoconf version 2.13" |
| 425 | exit 0 ;; |
| 426 | |
| 427 | -with-* | --with-*) |
| 428 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` |
| 429 | # Reject names that are not valid shell variable names. |
| 430 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then |
| 431 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } |
| 432 | fi |
| 433 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
| 434 | case "$ac_option" in |
| 435 | *=*) ;; |
| 436 | *) ac_optarg=yes ;; |
| 437 | esac |
| 438 | eval "with_${ac_package}='$ac_optarg'" ;; |
| 439 | |
| 440 | -without-* | --without-*) |
| 441 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` |
| 442 | # Reject names that are not valid shell variable names. |
| 443 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then |
| 444 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } |
| 445 | fi |
| 446 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
| 447 | eval "with_${ac_package}=no" ;; |
| 448 | |
| 449 | --x) |
| 450 | # Obsolete; use --with-x. |
| 451 | with_x=yes ;; |
| 452 | |
| 453 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 454 | | --x-incl | --x-inc | --x-in | --x-i) |
| 455 | ac_prev=x_includes ;; |
| 456 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 457 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 458 | x_includes="$ac_optarg" ;; |
| 459 | |
| 460 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 461 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 462 | ac_prev=x_libraries ;; |
| 463 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 464 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 465 | x_libraries="$ac_optarg" ;; |
| 466 | |
| 467 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } |
| 468 | ;; |
| 469 | |
| 470 | *) |
| 471 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then |
| 472 | echo "configure: warning: $ac_option: invalid host type" 1>&2 |
| 473 | fi |
| 474 | if test "x$nonopt" != xNONE; then |
| 475 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } |
| 476 | fi |
| 477 | nonopt="$ac_option" |
| 478 | ;; |
| 479 | |
| 480 | esac |
| 481 | done |
| 482 | |
| 483 | if test -n "$ac_prev"; then |
| 484 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } |
| 485 | fi |
| 486 | |
| 487 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
| 488 | |
| 489 | # File descriptor usage: |
| 490 | # 0 standard input |
| 491 | # 1 file creation |
| 492 | # 2 errors and warnings |
| 493 | # 3 some systems may open it to /dev/tty |
| 494 | # 4 used on the Kubota Titan |
| 495 | # 6 checking for... messages and results |
| 496 | # 5 compiler messages saved in config.log |
| 497 | if test "$silent" = yes; then |
| 498 | exec 6>/dev/null |
| 499 | else |
| 500 | exec 6>&1 |
| 501 | fi |
| 502 | exec 5>auto/config.log |
| 503 | |
| 504 | echo "\ |
| 505 | This file contains any messages produced by compilers while |
| 506 | running configure, to aid debugging if configure makes a mistake. |
| 507 | " 1>&5 |
| 508 | |
| 509 | # Strip out --no-create and --no-recursion so they do not pile up. |
| 510 | # Also quote any args containing shell metacharacters. |
| 511 | ac_configure_args= |
| 512 | for ac_arg |
| 513 | do |
| 514 | case "$ac_arg" in |
| 515 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 516 | | --no-cr | --no-c) ;; |
| 517 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 518 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; |
| 519 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) |
| 520 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
| 521 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; |
| 522 | esac |
| 523 | done |
| 524 | |
| 525 | # NLS nuisances. |
| 526 | # Only set these to C if already set. These must not be set unconditionally |
| 527 | # because not all systems understand e.g. LANG=C (notably SCO). |
| 528 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! |
| 529 | # Non-C LC_CTYPE values break the ctype check. |
| 530 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi |
| 531 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi |
| 532 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi |
| 533 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi |
| 534 | |
| 535 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
| 536 | rm -rf conftest* confdefs.h |
| 537 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
| 538 | echo > confdefs.h |
| 539 | |
| 540 | # A filename unique to this package, relative to the directory that |
| 541 | # configure is in, which we can look for to find out if srcdir is correct. |
| 542 | ac_unique_file=vim.h |
| 543 | |
| 544 | # Find the source files, if location was not specified. |
| 545 | if test -z "$srcdir"; then |
| 546 | ac_srcdir_defaulted=yes |
| 547 | # Try the directory containing this script, then its parent. |
| 548 | ac_prog=$0 |
| 549 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` |
| 550 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. |
| 551 | srcdir=$ac_confdir |
| 552 | if test ! -r $srcdir/$ac_unique_file; then |
| 553 | srcdir=.. |
| 554 | fi |
| 555 | else |
| 556 | ac_srcdir_defaulted=no |
| 557 | fi |
| 558 | if test ! -r $srcdir/$ac_unique_file; then |
| 559 | if test "$ac_srcdir_defaulted" = yes; then |
| 560 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } |
| 561 | else |
| 562 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } |
| 563 | fi |
| 564 | fi |
| 565 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` |
| 566 | |
| 567 | # Prefer explicitly selected file to automatically selected ones. |
| 568 | if test -z "$CONFIG_SITE"; then |
| 569 | if test "x$prefix" != xNONE; then |
| 570 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
| 571 | else |
| 572 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
| 573 | fi |
| 574 | fi |
| 575 | for ac_site_file in $CONFIG_SITE; do |
| 576 | if test -r "$ac_site_file"; then |
| 577 | echo "loading site script $ac_site_file" |
| 578 | . "$ac_site_file" |
| 579 | fi |
| 580 | done |
| 581 | |
| 582 | if test -r "$cache_file"; then |
| 583 | echo "loading cache $cache_file" |
| 584 | . $cache_file |
| 585 | else |
| 586 | echo "creating cache $cache_file" |
| 587 | > $cache_file |
| 588 | fi |
| 589 | |
| 590 | ac_ext=c |
| 591 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
| 592 | ac_cpp='$CPP $CPPFLAGS' |
| 593 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
| 594 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
| 595 | cross_compiling=$ac_cv_prog_cc_cross |
| 596 | |
| 597 | ac_exeext= |
| 598 | ac_objext=o |
| 599 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then |
| 600 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. |
| 601 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then |
| 602 | ac_n= ac_c=' |
| 603 | ' ac_t=' ' |
| 604 | else |
| 605 | ac_n=-n ac_c= ac_t= |
| 606 | fi |
| 607 | else |
| 608 | ac_n= ac_c='\c' ac_t= |
| 609 | fi |
| 610 | |
| 611 | |
| 612 | |
| 613 | |
| 614 | cat >> confdefs.h <<\EOF |
| 615 | #define UNIX 1 |
| 616 | EOF |
| 617 | |
| 618 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 |
| 619 | echo "configure:620: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
| 620 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` |
| 621 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then |
| 622 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 623 | else |
| 624 | cat > conftestmake <<\EOF |
| 625 | all: |
| 626 | @echo 'ac_maketemp="${MAKE}"' |
| 627 | EOF |
| 628 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
| 629 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` |
| 630 | if test -n "$ac_maketemp"; then |
| 631 | eval ac_cv_prog_make_${ac_make}_set=yes |
| 632 | else |
| 633 | eval ac_cv_prog_make_${ac_make}_set=no |
| 634 | fi |
| 635 | rm -f conftestmake |
| 636 | fi |
| 637 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
| 638 | echo "$ac_t""yes" 1>&6 |
| 639 | SET_MAKE= |
| 640 | else |
| 641 | echo "$ac_t""no" 1>&6 |
| 642 | SET_MAKE="MAKE=${MAKE-make}" |
| 643 | fi |
| 644 | |
| 645 | |
| 646 | # Extract the first word of "gcc", so it can be a program name with args. |
| 647 | set dummy gcc; ac_word=$2 |
| 648 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| 649 | echo "configure:650: checking for $ac_word" >&5 |
| 650 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
| 651 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 652 | else |
| 653 | if test -n "$CC"; then |
| 654 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 655 | else |
| 656 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 657 | ac_dummy="$PATH" |
| 658 | for ac_dir in $ac_dummy; do |
| 659 | test -z "$ac_dir" && ac_dir=. |
| 660 | if test -f $ac_dir/$ac_word; then |
| 661 | ac_cv_prog_CC="gcc" |
| 662 | break |
| 663 | fi |
| 664 | done |
| 665 | IFS="$ac_save_ifs" |
| 666 | fi |
| 667 | fi |
| 668 | CC="$ac_cv_prog_CC" |
| 669 | if test -n "$CC"; then |
| 670 | echo "$ac_t""$CC" 1>&6 |
| 671 | else |
| 672 | echo "$ac_t""no" 1>&6 |
| 673 | fi |
| 674 | |
| 675 | if test -z "$CC"; then |
| 676 | # Extract the first word of "cc", so it can be a program name with args. |
| 677 | set dummy cc; ac_word=$2 |
| 678 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| 679 | echo "configure:680: checking for $ac_word" >&5 |
| 680 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
| 681 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 682 | else |
| 683 | if test -n "$CC"; then |
| 684 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 685 | else |
| 686 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 687 | ac_prog_rejected=no |
| 688 | ac_dummy="$PATH" |
| 689 | for ac_dir in $ac_dummy; do |
| 690 | test -z "$ac_dir" && ac_dir=. |
| 691 | if test -f $ac_dir/$ac_word; then |
| 692 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then |
| 693 | ac_prog_rejected=yes |
| 694 | continue |
| 695 | fi |
| 696 | ac_cv_prog_CC="cc" |
| 697 | break |
| 698 | fi |
| 699 | done |
| 700 | IFS="$ac_save_ifs" |
| 701 | if test $ac_prog_rejected = yes; then |
| 702 | # We found a bogon in the path, so make sure we never use it. |
| 703 | set dummy $ac_cv_prog_CC |
| 704 | shift |
| 705 | if test $# -gt 0; then |
| 706 | # We chose a different compiler from the bogus one. |
| 707 | # However, it has the same basename, so the bogon will be chosen |
| 708 | # first if we set CC to just the basename; use the full file name. |
| 709 | shift |
| 710 | set dummy "$ac_dir/$ac_word" "$@" |
| 711 | shift |
| 712 | ac_cv_prog_CC="$@" |
| 713 | fi |
| 714 | fi |
| 715 | fi |
| 716 | fi |
| 717 | CC="$ac_cv_prog_CC" |
| 718 | if test -n "$CC"; then |
| 719 | echo "$ac_t""$CC" 1>&6 |
| 720 | else |
| 721 | echo "$ac_t""no" 1>&6 |
| 722 | fi |
| 723 | |
| 724 | if test -z "$CC"; then |
| 725 | case "`uname -s`" in |
| 726 | *win32* | *WIN32*) |
| 727 | # Extract the first word of "cl", so it can be a program name with args. |
| 728 | set dummy cl; ac_word=$2 |
| 729 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| 730 | echo "configure:731: checking for $ac_word" >&5 |
| 731 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
| 732 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 733 | else |
| 734 | if test -n "$CC"; then |
| 735 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 736 | else |
| 737 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 738 | ac_dummy="$PATH" |
| 739 | for ac_dir in $ac_dummy; do |
| 740 | test -z "$ac_dir" && ac_dir=. |
| 741 | if test -f $ac_dir/$ac_word; then |
| 742 | ac_cv_prog_CC="cl" |
| 743 | break |
| 744 | fi |
| 745 | done |
| 746 | IFS="$ac_save_ifs" |
| 747 | fi |
| 748 | fi |
| 749 | CC="$ac_cv_prog_CC" |
| 750 | if test -n "$CC"; then |
| 751 | echo "$ac_t""$CC" 1>&6 |
| 752 | else |
| 753 | echo "$ac_t""no" 1>&6 |
| 754 | fi |
| 755 | ;; |
| 756 | esac |
| 757 | fi |
| 758 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } |
| 759 | fi |
| 760 | |
| 761 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
| 762 | echo "configure:763: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
| 763 | |
| 764 | ac_ext=c |
| 765 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
| 766 | ac_cpp='$CPP $CPPFLAGS' |
| 767 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
| 768 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
| 769 | cross_compiling=$ac_cv_prog_cc_cross |
| 770 | |
| 771 | cat > conftest.$ac_ext << EOF |
| 772 | |
| 773 | #line 774 "configure" |
| 774 | #include "confdefs.h" |
| 775 | |
| 776 | main(){return(0);} |
| 777 | EOF |
| 778 | if { (eval echo configure:779: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 779 | ac_cv_prog_cc_works=yes |
| 780 | # If we can't run a trivial program, we are probably using a cross compiler. |
| 781 | if (./conftest; exit) 2>/dev/null; then |
| 782 | ac_cv_prog_cc_cross=no |
| 783 | else |
| 784 | ac_cv_prog_cc_cross=yes |
| 785 | fi |
| 786 | else |
| 787 | echo "configure: failed program was:" >&5 |
| 788 | cat conftest.$ac_ext >&5 |
| 789 | ac_cv_prog_cc_works=no |
| 790 | fi |
| 791 | rm -fr conftest* |
| 792 | ac_ext=c |
| 793 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
| 794 | ac_cpp='$CPP $CPPFLAGS' |
| 795 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
| 796 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
| 797 | cross_compiling=$ac_cv_prog_cc_cross |
| 798 | |
| 799 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 |
| 800 | if test $ac_cv_prog_cc_works = no; then |
| 801 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } |
| 802 | fi |
| 803 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 |
| 804 | echo "configure:805: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
| 805 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
| 806 | cross_compiling=$ac_cv_prog_cc_cross |
| 807 | |
| 808 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 |
| 809 | echo "configure:810: checking whether we are using GNU C" >&5 |
| 810 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
| 811 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 812 | else |
| 813 | cat > conftest.c <<EOF |
| 814 | #ifdef __GNUC__ |
| 815 | yes; |
| 816 | #endif |
| 817 | EOF |
| 818 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:819: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
| 819 | ac_cv_prog_gcc=yes |
| 820 | else |
| 821 | ac_cv_prog_gcc=no |
| 822 | fi |
| 823 | fi |
| 824 | |
| 825 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 |
| 826 | |
| 827 | if test $ac_cv_prog_gcc = yes; then |
| 828 | GCC=yes |
| 829 | else |
| 830 | GCC= |
| 831 | fi |
| 832 | |
| 833 | ac_test_CFLAGS="${CFLAGS+set}" |
| 834 | ac_save_CFLAGS="$CFLAGS" |
| 835 | CFLAGS= |
| 836 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 |
| 837 | echo "configure:838: checking whether ${CC-cc} accepts -g" >&5 |
| 838 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
| 839 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 840 | else |
| 841 | echo 'void f(){}' > conftest.c |
| 842 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then |
| 843 | ac_cv_prog_cc_g=yes |
| 844 | else |
| 845 | ac_cv_prog_cc_g=no |
| 846 | fi |
| 847 | rm -f conftest* |
| 848 | |
| 849 | fi |
| 850 | |
| 851 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 |
| 852 | if test "$ac_test_CFLAGS" = set; then |
| 853 | CFLAGS="$ac_save_CFLAGS" |
| 854 | elif test $ac_cv_prog_cc_g = yes; then |
| 855 | if test "$GCC" = yes; then |
| 856 | CFLAGS="-g -O2" |
| 857 | else |
| 858 | CFLAGS="-g" |
| 859 | fi |
| 860 | else |
| 861 | if test "$GCC" = yes; then |
| 862 | CFLAGS="-O2" |
| 863 | else |
| 864 | CFLAGS= |
| 865 | fi |
| 866 | fi |
| 867 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 |
| 868 | echo "configure:869: checking how to run the C preprocessor" >&5 |
| 869 | # On Suns, sometimes $CPP names a directory. |
| 870 | if test -n "$CPP" && test -d "$CPP"; then |
| 871 | CPP= |
| 872 | fi |
| 873 | if test -z "$CPP"; then |
| 874 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then |
| 875 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 876 | else |
| 877 | # This must be in double quotes, not single quotes, because CPP may get |
| 878 | # substituted into the Makefile and "${CC-cc}" will confuse make. |
| 879 | CPP="${CC-cc} -E" |
| 880 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 881 | # not just through cpp. |
| 882 | cat > conftest.$ac_ext <<EOF |
| 883 | #line 884 "configure" |
| 884 | #include "confdefs.h" |
| 885 | #include <assert.h> |
| 886 | Syntax Error |
| 887 | EOF |
| 888 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 889 | { (eval echo configure:890: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 890 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 891 | if test -z "$ac_err"; then |
| 892 | : |
| 893 | else |
| 894 | echo "$ac_err" >&5 |
| 895 | echo "configure: failed program was:" >&5 |
| 896 | cat conftest.$ac_ext >&5 |
| 897 | rm -rf conftest* |
| 898 | CPP="${CC-cc} -E -traditional-cpp" |
| 899 | cat > conftest.$ac_ext <<EOF |
| 900 | #line 901 "configure" |
| 901 | #include "confdefs.h" |
| 902 | #include <assert.h> |
| 903 | Syntax Error |
| 904 | EOF |
| 905 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 906 | { (eval echo configure:907: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 907 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 908 | if test -z "$ac_err"; then |
| 909 | : |
| 910 | else |
| 911 | echo "$ac_err" >&5 |
| 912 | echo "configure: failed program was:" >&5 |
| 913 | cat conftest.$ac_ext >&5 |
| 914 | rm -rf conftest* |
| 915 | CPP="${CC-cc} -nologo -E" |
| 916 | cat > conftest.$ac_ext <<EOF |
| 917 | #line 918 "configure" |
| 918 | #include "confdefs.h" |
| 919 | #include <assert.h> |
| 920 | Syntax Error |
| 921 | EOF |
| 922 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 923 | { (eval echo configure:924: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 924 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 925 | if test -z "$ac_err"; then |
| 926 | : |
| 927 | else |
| 928 | echo "$ac_err" >&5 |
| 929 | echo "configure: failed program was:" >&5 |
| 930 | cat conftest.$ac_ext >&5 |
| 931 | rm -rf conftest* |
| 932 | CPP=/lib/cpp |
| 933 | fi |
| 934 | rm -f conftest* |
| 935 | fi |
| 936 | rm -f conftest* |
| 937 | fi |
| 938 | rm -f conftest* |
| 939 | ac_cv_prog_CPP="$CPP" |
| 940 | fi |
| 941 | CPP="$ac_cv_prog_CPP" |
| 942 | else |
| 943 | ac_cv_prog_CPP="$CPP" |
| 944 | fi |
| 945 | echo "$ac_t""$CPP" 1>&6 |
| 946 | cat > conftest.$ac_ext <<EOF |
| 947 | #line 948 "configure" |
| 948 | #include "confdefs.h" |
| 949 | |
| 950 | EOF |
| 951 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 952 | egrep "" >/dev/null 2>&1; then |
| 953 | : |
| 954 | fi |
| 955 | rm -f conftest* |
| 956 | echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6 |
| 957 | echo "configure:958: checking for POSIXized ISC" >&5 |
| 958 | if test -d /etc/conf/kconfig.d && |
| 959 | grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1 |
| 960 | then |
| 961 | echo "$ac_t""yes" 1>&6 |
| 962 | ISC=yes # If later tests want to check for ISC. |
| 963 | cat >> confdefs.h <<\EOF |
| 964 | #define _POSIX_SOURCE 1 |
| 965 | EOF |
| 966 | |
| 967 | if test "$GCC" = yes; then |
| 968 | CC="$CC -posix" |
| 969 | else |
| 970 | CC="$CC -Xp" |
| 971 | fi |
| 972 | else |
| 973 | echo "$ac_t""no" 1>&6 |
| 974 | ISC= |
| 975 | fi |
| 976 | for ac_prog in mawk gawk nawk awk |
| 977 | do |
| 978 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 979 | set dummy $ac_prog; ac_word=$2 |
| 980 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| 981 | echo "configure:982: checking for $ac_word" >&5 |
| 982 | if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then |
| 983 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 984 | else |
| 985 | if test -n "$AWK"; then |
| 986 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
| 987 | else |
| 988 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 989 | ac_dummy="$PATH" |
| 990 | for ac_dir in $ac_dummy; do |
| 991 | test -z "$ac_dir" && ac_dir=. |
| 992 | if test -f $ac_dir/$ac_word; then |
| 993 | ac_cv_prog_AWK="$ac_prog" |
| 994 | break |
| 995 | fi |
| 996 | done |
| 997 | IFS="$ac_save_ifs" |
| 998 | fi |
| 999 | fi |
| 1000 | AWK="$ac_cv_prog_AWK" |
| 1001 | if test -n "$AWK"; then |
| 1002 | echo "$ac_t""$AWK" 1>&6 |
| 1003 | else |
| 1004 | echo "$ac_t""no" 1>&6 |
| 1005 | fi |
| 1006 | |
| 1007 | test -n "$AWK" && break |
| 1008 | done |
| 1009 | |
| 1010 | # Extract the first word of "strip", so it can be a program name with args. |
| 1011 | set dummy strip; ac_word=$2 |
| 1012 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| 1013 | echo "configure:1014: checking for $ac_word" >&5 |
| 1014 | if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then |
| 1015 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1016 | else |
| 1017 | if test -n "$STRIP"; then |
| 1018 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 1019 | else |
| 1020 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 1021 | ac_dummy="$PATH" |
| 1022 | for ac_dir in $ac_dummy; do |
| 1023 | test -z "$ac_dir" && ac_dir=. |
| 1024 | if test -f $ac_dir/$ac_word; then |
| 1025 | ac_cv_prog_STRIP="strip" |
| 1026 | break |
| 1027 | fi |
| 1028 | done |
| 1029 | IFS="$ac_save_ifs" |
| 1030 | test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":" |
| 1031 | fi |
| 1032 | fi |
| 1033 | STRIP="$ac_cv_prog_STRIP" |
| 1034 | if test -n "$STRIP"; then |
| 1035 | echo "$ac_t""$STRIP" 1>&6 |
| 1036 | else |
| 1037 | echo "$ac_t""no" 1>&6 |
| 1038 | fi |
| 1039 | |
| 1040 | |
| 1041 | echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6 |
| 1042 | echo "configure:1043: checking for Cygwin environment" >&5 |
| 1043 | if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then |
| 1044 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1045 | else |
| 1046 | cat > conftest.$ac_ext <<EOF |
| 1047 | #line 1048 "configure" |
| 1048 | #include "confdefs.h" |
| 1049 | |
| 1050 | int main() { |
| 1051 | |
| 1052 | #ifndef __CYGWIN__ |
| 1053 | #define __CYGWIN__ __CYGWIN32__ |
| 1054 | #endif |
| 1055 | return __CYGWIN__; |
| 1056 | ; return 0; } |
| 1057 | EOF |
| 1058 | if { (eval echo configure:1059: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| 1059 | rm -rf conftest* |
| 1060 | ac_cv_cygwin=yes |
| 1061 | else |
| 1062 | echo "configure: failed program was:" >&5 |
| 1063 | cat conftest.$ac_ext >&5 |
| 1064 | rm -rf conftest* |
| 1065 | ac_cv_cygwin=no |
| 1066 | fi |
| 1067 | rm -f conftest* |
| 1068 | rm -f conftest* |
| 1069 | fi |
| 1070 | |
| 1071 | echo "$ac_t""$ac_cv_cygwin" 1>&6 |
| 1072 | CYGWIN= |
| 1073 | test "$ac_cv_cygwin" = yes && CYGWIN=yes |
| 1074 | echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6 |
| 1075 | echo "configure:1076: checking for mingw32 environment" >&5 |
| 1076 | if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then |
| 1077 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1078 | else |
| 1079 | cat > conftest.$ac_ext <<EOF |
| 1080 | #line 1081 "configure" |
| 1081 | #include "confdefs.h" |
| 1082 | |
| 1083 | int main() { |
| 1084 | return __MINGW32__; |
| 1085 | ; return 0; } |
| 1086 | EOF |
| 1087 | if { (eval echo configure:1088: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| 1088 | rm -rf conftest* |
| 1089 | ac_cv_mingw32=yes |
| 1090 | else |
| 1091 | echo "configure: failed program was:" >&5 |
| 1092 | cat conftest.$ac_ext >&5 |
| 1093 | rm -rf conftest* |
| 1094 | ac_cv_mingw32=no |
| 1095 | fi |
| 1096 | rm -f conftest* |
| 1097 | rm -f conftest* |
| 1098 | fi |
| 1099 | |
| 1100 | echo "$ac_t""$ac_cv_mingw32" 1>&6 |
| 1101 | MINGW32= |
| 1102 | test "$ac_cv_mingw32" = yes && MINGW32=yes |
| 1103 | |
| 1104 | |
| 1105 | echo $ac_n "checking for executable suffix""... $ac_c" 1>&6 |
| 1106 | echo "configure:1107: checking for executable suffix" >&5 |
| 1107 | if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then |
| 1108 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1109 | else |
| 1110 | if test "$CYGWIN" = yes || test "$MINGW32" = yes; then |
| 1111 | ac_cv_exeext=.exe |
| 1112 | else |
| 1113 | rm -f conftest* |
| 1114 | echo 'int main () { return 0; }' > conftest.$ac_ext |
| 1115 | ac_cv_exeext= |
| 1116 | if { (eval echo configure:1117: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then |
| 1117 | for file in conftest.*; do |
| 1118 | case $file in |
| 1119 | *.c | *.o | *.obj) ;; |
| 1120 | *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;; |
| 1121 | esac |
| 1122 | done |
| 1123 | else |
| 1124 | { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; } |
| 1125 | fi |
| 1126 | rm -f conftest* |
| 1127 | test x"${ac_cv_exeext}" = x && ac_cv_exeext=no |
| 1128 | fi |
| 1129 | fi |
| 1130 | |
| 1131 | EXEEXT="" |
| 1132 | test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext} |
| 1133 | echo "$ac_t""${ac_cv_exeext}" 1>&6 |
| 1134 | ac_exeext=$EXEEXT |
| 1135 | |
| 1136 | |
| 1137 | if test -z "$CFLAGS"; then |
| 1138 | CFLAGS="-O" |
| 1139 | test "$GCC" = yes && CFLAGS="-O2 -fno-strength-reduce -Wall" |
| 1140 | fi |
| 1141 | if test "$GCC" = yes; then |
| 1142 | gccversion=`"$CC" --version | sed -e '2,$d;s/^[^0-9]*\([0-9]\.[0-9.]*\).*$/\1/g'` |
| 1143 | if test "$gccversion" = "3.0.1" -o "$gccversion" = "3.0.2"; then |
| 1144 | echo 'GCC 3.0.x has a bug in the optimizer, disabling "-O#"' |
| 1145 | CFLAGS=`echo "$CFLAGS" | sed 's/-O[23456789]/-O/'` |
| 1146 | else |
| 1147 | if test "$gccversion" = "3.1" -o "$gccversion" = "3.2" -o "$gccversion" = "3.2.1" && `echo "$CFLAGS" | grep -v fno-strength-reduce >/dev/null`; then |
| 1148 | echo 'GCC 3.1 and 3.2 have a bug in the optimizer, adding "-fno-strength-reduce"' |
| 1149 | CFLAGS="$CFLAGS -fno-strength-reduce" |
| 1150 | fi |
| 1151 | fi |
| 1152 | fi |
| 1153 | |
| 1154 | if test "$cross_compiling" = yes; then |
| 1155 | { echo "configure: error: cannot compile a simple program, check CC and CFLAGS |
| 1156 | (cross compiling doesn't work)" 1>&2; exit 1; } |
| 1157 | fi |
| 1158 | |
| 1159 | test "$GCC" = yes && CPP_MM=M; |
| 1160 | |
| 1161 | if test -f ./toolcheck; then |
| 1162 | echo "checking for buggy tools" 1>&6 |
| 1163 | echo "configure:1164: checking for buggy tools" >&5 |
| 1164 | sh ./toolcheck 1>&6 |
| 1165 | fi |
| 1166 | |
| 1167 | OS_EXTRA_SRC=""; OS_EXTRA_OBJ="" |
| 1168 | |
| 1169 | echo $ac_n "checking for BeOS""... $ac_c" 1>&6 |
| 1170 | echo "configure:1171: checking for BeOS" >&5 |
| 1171 | case `uname` in |
| 1172 | BeOS) OS_EXTRA_SRC=os_beos.c; OS_EXTRA_OBJ=objects/os_beos.o |
| 1173 | BEOS=yes; echo "$ac_t""yes" 1>&6;; |
| 1174 | *) BEOS=no; echo "$ac_t""no" 1>&6;; |
| 1175 | esac |
| 1176 | |
| 1177 | echo $ac_n "checking for QNX""... $ac_c" 1>&6 |
| 1178 | echo "configure:1179: checking for QNX" >&5 |
| 1179 | case `uname` in |
| 1180 | QNX) OS_EXTRA_SRC=os_qnx.c; OS_EXTRA_OBJ=objects/os_qnx.o |
| 1181 | test -z "$with_x" && with_x=no |
| 1182 | QNX=yes; echo "$ac_t""yes" 1>&6;; |
| 1183 | *) QNX=no; echo "$ac_t""no" 1>&6;; |
| 1184 | esac |
| 1185 | |
| 1186 | DEFAULT_VIMNAME=vim |
| 1187 | echo $ac_n "checking for Darwin (Mac OS X)""... $ac_c" 1>&6 |
| 1188 | echo "configure:1189: checking for Darwin (Mac OS X)" >&5 |
| 1189 | if test "`(uname) 2>/dev/null`" = Darwin; then |
| 1190 | echo "$ac_t""yes" 1>&6 |
| 1191 | |
| 1192 | echo $ac_n "checking --disable-darwin argument""... $ac_c" 1>&6 |
| 1193 | echo "configure:1194: checking --disable-darwin argument" >&5 |
| 1194 | # Check whether --enable-darwin or --disable-darwin was given. |
| 1195 | if test "${enable_darwin+set}" = set; then |
| 1196 | enableval="$enable_darwin" |
| 1197 | : |
| 1198 | else |
| 1199 | enable_darwin="yes" |
| 1200 | fi |
| 1201 | |
| 1202 | if test "$enable_darwin" = "yes"; then |
| 1203 | echo "$ac_t""no" 1>&6 |
| 1204 | echo $ac_n "checking if Darwin files are there""... $ac_c" 1>&6 |
| 1205 | echo "configure:1206: checking if Darwin files are there" >&5 |
| 1206 | if test -f os_macosx.c; then |
| 1207 | echo "$ac_t""yes" 1>&6 |
| 1208 | else |
| 1209 | echo "$ac_t""no, Darwin support disabled" 1>&6 |
| 1210 | enable_darwin=no |
| 1211 | fi |
| 1212 | else |
| 1213 | echo "$ac_t""yes, Darwin support excluded" 1>&6 |
| 1214 | fi |
| 1215 | |
| 1216 | if test "$enable_darwin" = "yes"; then |
| 1217 | MACOSX=yes |
| 1218 | OS_EXTRA_SCR="os_macosx.c"; |
| 1219 | OS_EXTRA_OBJ="objects/os_macosx.o" |
| 1220 | CPPFLAGS="$CPPFLAGS -DMACOS_X_UNIX -I/Developer/Headers/FlatCarbon -no-cpp-precomp" |
| 1221 | |
| 1222 | ac_safe=`echo "Carbon/Carbon.h" | sed 'y%./+-%__p_%'` |
| 1223 | echo $ac_n "checking for Carbon/Carbon.h""... $ac_c" 1>&6 |
| 1224 | echo "configure:1225: checking for Carbon/Carbon.h" >&5 |
| 1225 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
| 1226 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1227 | else |
| 1228 | cat > conftest.$ac_ext <<EOF |
| 1229 | #line 1230 "configure" |
| 1230 | #include "confdefs.h" |
| 1231 | #include <Carbon/Carbon.h> |
| 1232 | EOF |
| 1233 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 1234 | { (eval echo configure:1235: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 1235 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 1236 | if test -z "$ac_err"; then |
| 1237 | rm -rf conftest* |
| 1238 | eval "ac_cv_header_$ac_safe=yes" |
| 1239 | else |
| 1240 | echo "$ac_err" >&5 |
| 1241 | echo "configure: failed program was:" >&5 |
| 1242 | cat conftest.$ac_ext >&5 |
| 1243 | rm -rf conftest* |
| 1244 | eval "ac_cv_header_$ac_safe=no" |
| 1245 | fi |
| 1246 | rm -f conftest* |
| 1247 | fi |
| 1248 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 1249 | echo "$ac_t""yes" 1>&6 |
| 1250 | CARBON=yes |
| 1251 | else |
| 1252 | echo "$ac_t""no" 1>&6 |
| 1253 | fi |
| 1254 | |
| 1255 | if test "x$CARBON" = "xyes"; then |
| 1256 | if test -z "$with_x"; then |
| 1257 | with_x=no |
| 1258 | DEFAULT_VIMNAME=Vim |
| 1259 | fi |
| 1260 | fi |
| 1261 | fi |
| 1262 | else |
| 1263 | echo "$ac_t""no" 1>&6 |
| 1264 | fi |
| 1265 | |
| 1266 | |
| 1267 | |
| 1268 | |
| 1269 | have_local_include='' |
| 1270 | have_local_lib='' |
| 1271 | if test "$GCC" = yes; then |
| 1272 | echo 'void f(){}' > conftest.c |
| 1273 | have_local_include=`${CC-cc} -no-cpp-precomp -c -v conftest.c 2>&1 | grep '/usr/local/include'` |
| 1274 | have_local_lib=`${CC-cc} -c -v conftest.c 2>&1 | grep '/usr/local/lib'` |
| 1275 | rm -f conftest.c conftest.o |
| 1276 | fi |
| 1277 | if test -z "$have_local_lib" -a -d /usr/local/lib; then |
| 1278 | tt=`echo "$LDFLAGS" | sed -e 's+-L/usr/local/lib ++g' -e 's+-L/usr/local/lib$++g'` |
| 1279 | if test "$tt" = "$LDFLAGS"; then |
| 1280 | LDFLAGS="$LDFLAGS -L/usr/local/lib" |
| 1281 | fi |
| 1282 | fi |
| 1283 | if test -z "$have_local_include" -a -d /usr/local/include; then |
| 1284 | tt=`echo "$CPPFLAGS" | sed -e 's+-I/usr/local/include ++g' -e 's+-I/usr/local/include$++g'` |
| 1285 | if test "$tt" = "$CPPFLAGS"; then |
| 1286 | CPPFLAGS="$CPPFLAGS -I/usr/local/include" |
| 1287 | fi |
| 1288 | fi |
| 1289 | |
| 1290 | echo $ac_n "checking --with-vim-name argument""... $ac_c" 1>&6 |
| 1291 | echo "configure:1292: checking --with-vim-name argument" >&5 |
| 1292 | # Check whether --with-vim-name or --without-vim-name was given. |
| 1293 | if test "${with_vim_name+set}" = set; then |
| 1294 | withval="$with_vim_name" |
| 1295 | VIMNAME="$withval"; echo "$ac_t""$VIMNAME" 1>&6 |
| 1296 | else |
| 1297 | VIMNAME="$DEFAULT_VIMNAME"; echo "$ac_t""Defaulting to $VIMNAME" 1>&6 |
| 1298 | fi |
| 1299 | |
| 1300 | |
| 1301 | echo $ac_n "checking --with-ex-name argument""... $ac_c" 1>&6 |
| 1302 | echo "configure:1303: checking --with-ex-name argument" >&5 |
| 1303 | # Check whether --with-ex-name or --without-ex-name was given. |
| 1304 | if test "${with_ex_name+set}" = set; then |
| 1305 | withval="$with_ex_name" |
| 1306 | EXNAME="$withval"; echo "$ac_t""$EXNAME" 1>&6 |
| 1307 | else |
| 1308 | EXNAME="ex"; echo "$ac_t""Defaulting to ex" 1>&6 |
| 1309 | fi |
| 1310 | |
| 1311 | |
| 1312 | echo $ac_n "checking --with-view-name argument""... $ac_c" 1>&6 |
| 1313 | echo "configure:1314: checking --with-view-name argument" >&5 |
| 1314 | # Check whether --with-view-name or --without-view-name was given. |
| 1315 | if test "${with_view_name+set}" = set; then |
| 1316 | withval="$with_view_name" |
| 1317 | VIEWNAME="$withval"; echo "$ac_t""$VIEWNAME" 1>&6 |
| 1318 | else |
| 1319 | VIEWNAME="view"; echo "$ac_t""Defaulting to view" 1>&6 |
| 1320 | fi |
| 1321 | |
| 1322 | |
| 1323 | |
| 1324 | echo $ac_n "checking --with-global-runtime argument""... $ac_c" 1>&6 |
| 1325 | echo "configure:1326: checking --with-global-runtime argument" >&5 |
| 1326 | # Check whether --with-global-runtime or --without-global-runtime was given. |
| 1327 | if test "${with_global_runtime+set}" = set; then |
| 1328 | withval="$with_global_runtime" |
| 1329 | echo "$ac_t""$withval" 1>&6; cat >> confdefs.h <<EOF |
| 1330 | #define RUNTIME_GLOBAL "$withval" |
| 1331 | EOF |
| 1332 | |
| 1333 | else |
| 1334 | echo "$ac_t""no" 1>&6 |
| 1335 | fi |
| 1336 | |
| 1337 | |
| 1338 | echo $ac_n "checking --with-modified-by argument""... $ac_c" 1>&6 |
| 1339 | echo "configure:1340: checking --with-modified-by argument" >&5 |
| 1340 | # Check whether --with-modified-by or --without-modified-by was given. |
| 1341 | if test "${with_modified_by+set}" = set; then |
| 1342 | withval="$with_modified_by" |
| 1343 | echo "$ac_t""$withval" 1>&6; cat >> confdefs.h <<EOF |
| 1344 | #define MODIFIED_BY "$withval" |
| 1345 | EOF |
| 1346 | |
| 1347 | else |
| 1348 | echo "$ac_t""no" 1>&6 |
| 1349 | fi |
| 1350 | |
| 1351 | |
| 1352 | echo $ac_n "checking if character set is EBCDIC""... $ac_c" 1>&6 |
| 1353 | echo "configure:1354: checking if character set is EBCDIC" >&5 |
| 1354 | cat > conftest.$ac_ext <<EOF |
| 1355 | #line 1356 "configure" |
| 1356 | #include "confdefs.h" |
| 1357 | |
| 1358 | int main() { |
| 1359 | /* TryCompile function for CharSet. |
| 1360 | Treat any failure as ASCII for compatibility with existing art. |
| 1361 | Use compile-time rather than run-time tests for cross-compiler |
| 1362 | tolerance. */ |
| 1363 | #if '0'!=240 |
| 1364 | make an error "Character set is not EBCDIC" |
| 1365 | #endif |
| 1366 | ; return 0; } |
| 1367 | EOF |
| 1368 | if { (eval echo configure:1369: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| 1369 | rm -rf conftest* |
| 1370 | # TryCompile action if true |
| 1371 | cf_cv_ebcdic=yes |
| 1372 | else |
| 1373 | echo "configure: failed program was:" >&5 |
| 1374 | cat conftest.$ac_ext >&5 |
| 1375 | rm -rf conftest* |
| 1376 | # TryCompile action if false |
| 1377 | cf_cv_ebcdic=no |
| 1378 | fi |
| 1379 | rm -f conftest* |
| 1380 | # end of TryCompile ]) |
| 1381 | # end of CacheVal CvEbcdic |
| 1382 | echo "$ac_t""$cf_cv_ebcdic" 1>&6 |
| 1383 | case "$cf_cv_ebcdic" in #(vi |
| 1384 | yes) cat >> confdefs.h <<\EOF |
| 1385 | #define EBCDIC 1 |
| 1386 | EOF |
| 1387 | |
| 1388 | line_break='"\\n"' |
| 1389 | ;; |
| 1390 | *) line_break='"\\012"';; |
| 1391 | esac |
| 1392 | |
| 1393 | |
| 1394 | if test "$cf_cv_ebcdic" = "yes"; then |
| 1395 | echo $ac_n "checking for OS/390 Unix""... $ac_c" 1>&6 |
| 1396 | echo "configure:1397: checking for OS/390 Unix" >&5 |
| 1397 | case `uname` in |
| 1398 | OS/390) OS390Unix="yes"; |
| 1399 | if test "$CC" = "cc"; then |
| 1400 | ccm="$_CC_CCMODE" |
| 1401 | ccn="CC" |
| 1402 | else |
| 1403 | if test "$CC" = "c89"; then |
| 1404 | ccm="$_CC_C89MODE" |
| 1405 | ccn="C89" |
| 1406 | else |
| 1407 | ccm=1 |
| 1408 | fi |
| 1409 | fi |
| 1410 | if test "$ccm" != "1"; then |
| 1411 | echo "" |
| 1412 | echo "------------------------------------------" |
| 1413 | echo " On OS/390 Unix, the environment variable" |
| 1414 | echo " __CC_${ccn}MODE must be set to \"1\"!" |
| 1415 | echo " Do:" |
| 1416 | echo " export _CC_${ccn}MODE=1" |
| 1417 | echo " and then call configure again." |
| 1418 | echo "------------------------------------------" |
| 1419 | exit 1 |
| 1420 | fi |
| 1421 | CFLAGS="$CFLAGS -D_ALL_SOURCE"; LDFLAGS="$LDFLAGS -Wl,EDIT=NO" |
| 1422 | echo "$ac_t""yes" 1>&6 |
| 1423 | ;; |
| 1424 | *) OS390Unix="no"; |
| 1425 | echo "$ac_t""no" 1>&6 |
| 1426 | ;; |
| 1427 | esac |
| 1428 | fi |
| 1429 | |
| 1430 | |
| 1431 | |
| 1432 | echo $ac_n "checking --with-features argument""... $ac_c" 1>&6 |
| 1433 | echo "configure:1434: checking --with-features argument" >&5 |
| 1434 | # Check whether --with-features or --without-features was given. |
| 1435 | if test "${with_features+set}" = set; then |
| 1436 | withval="$with_features" |
| 1437 | features="$withval"; echo "$ac_t""$features" 1>&6 |
| 1438 | else |
| 1439 | features="normal"; echo "$ac_t""Defaulting to normal" 1>&6 |
| 1440 | fi |
| 1441 | |
| 1442 | |
| 1443 | dovimdiff="" |
| 1444 | dogvimdiff="" |
| 1445 | case "$features" in |
| 1446 | tiny) cat >> confdefs.h <<\EOF |
| 1447 | #define FEAT_TINY 1 |
| 1448 | EOF |
| 1449 | ;; |
| 1450 | small) cat >> confdefs.h <<\EOF |
| 1451 | #define FEAT_SMALL 1 |
| 1452 | EOF |
| 1453 | ;; |
| 1454 | normal) cat >> confdefs.h <<\EOF |
| 1455 | #define FEAT_NORMAL 1 |
| 1456 | EOF |
| 1457 | dovimdiff="installvimdiff"; |
| 1458 | dogvimdiff="installgvimdiff" ;; |
| 1459 | big) cat >> confdefs.h <<\EOF |
| 1460 | #define FEAT_BIG 1 |
| 1461 | EOF |
| 1462 | dovimdiff="installvimdiff"; |
| 1463 | dogvimdiff="installgvimdiff" ;; |
| 1464 | huge) cat >> confdefs.h <<\EOF |
| 1465 | #define FEAT_HUGE 1 |
| 1466 | EOF |
| 1467 | dovimdiff="installvimdiff"; |
| 1468 | dogvimdiff="installgvimdiff" ;; |
| 1469 | *) echo "$ac_t""Sorry, $features is not supported" 1>&6 ;; |
| 1470 | esac |
| 1471 | |
| 1472 | |
| 1473 | |
| 1474 | |
| 1475 | echo $ac_n "checking --with-compiledby argument""... $ac_c" 1>&6 |
| 1476 | echo "configure:1477: checking --with-compiledby argument" >&5 |
| 1477 | # Check whether --with-compiledby or --without-compiledby was given. |
| 1478 | if test "${with_compiledby+set}" = set; then |
| 1479 | withval="$with_compiledby" |
| 1480 | compiledby="$withval"; echo "$ac_t""$withval" 1>&6 |
| 1481 | else |
| 1482 | compiledby=""; echo "$ac_t""no" 1>&6 |
| 1483 | fi |
| 1484 | |
| 1485 | |
| 1486 | |
| 1487 | echo $ac_n "checking --disable-xsmp argument""... $ac_c" 1>&6 |
| 1488 | echo "configure:1489: checking --disable-xsmp argument" >&5 |
| 1489 | # Check whether --enable-xsmp or --disable-xsmp was given. |
| 1490 | if test "${enable_xsmp+set}" = set; then |
| 1491 | enableval="$enable_xsmp" |
| 1492 | : |
| 1493 | else |
| 1494 | enable_xsmp="yes" |
| 1495 | fi |
| 1496 | |
| 1497 | |
| 1498 | if test "$enable_xsmp" = "yes"; then |
| 1499 | echo "$ac_t""no" 1>&6 |
| 1500 | echo $ac_n "checking --disable-xsmp-interact argument""... $ac_c" 1>&6 |
| 1501 | echo "configure:1502: checking --disable-xsmp-interact argument" >&5 |
| 1502 | # Check whether --enable-xsmp-interact or --disable-xsmp-interact was given. |
| 1503 | if test "${enable_xsmp_interact+set}" = set; then |
| 1504 | enableval="$enable_xsmp_interact" |
| 1505 | : |
| 1506 | else |
| 1507 | enable_xsmp_interact="yes" |
| 1508 | fi |
| 1509 | |
| 1510 | if test "$enable_xsmp_interact" = "yes"; then |
| 1511 | echo "$ac_t""no" 1>&6 |
| 1512 | cat >> confdefs.h <<\EOF |
| 1513 | #define USE_XSMP_INTERACT 1 |
| 1514 | EOF |
| 1515 | |
| 1516 | else |
| 1517 | echo "$ac_t""yes" 1>&6 |
| 1518 | fi |
| 1519 | else |
| 1520 | echo "$ac_t""yes" 1>&6 |
| 1521 | fi |
| 1522 | |
| 1523 | echo $ac_n "checking --enable-perlinterp argument""... $ac_c" 1>&6 |
| 1524 | echo "configure:1525: checking --enable-perlinterp argument" >&5 |
| 1525 | # Check whether --enable-perlinterp or --disable-perlinterp was given. |
| 1526 | if test "${enable_perlinterp+set}" = set; then |
| 1527 | enableval="$enable_perlinterp" |
| 1528 | : |
| 1529 | else |
| 1530 | enable_perlinterp="no" |
| 1531 | fi |
| 1532 | |
| 1533 | echo "$ac_t""$enable_perlinterp" 1>&6 |
| 1534 | if test "$enable_perlinterp" = "yes"; then |
| 1535 | |
| 1536 | # Extract the first word of "perl", so it can be a program name with args. |
| 1537 | set dummy perl; ac_word=$2 |
| 1538 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| 1539 | echo "configure:1540: checking for $ac_word" >&5 |
| 1540 | if eval "test \"`echo '$''{'ac_cv_path_vi_cv_path_perl'+set}'`\" = set"; then |
| 1541 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1542 | else |
| 1543 | case "$vi_cv_path_perl" in |
| 1544 | /*) |
| 1545 | ac_cv_path_vi_cv_path_perl="$vi_cv_path_perl" # Let the user override the test with a path. |
| 1546 | ;; |
| 1547 | ?:/*) |
| 1548 | ac_cv_path_vi_cv_path_perl="$vi_cv_path_perl" # Let the user override the test with a dos path. |
| 1549 | ;; |
| 1550 | *) |
| 1551 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 1552 | ac_dummy="$PATH" |
| 1553 | for ac_dir in $ac_dummy; do |
| 1554 | test -z "$ac_dir" && ac_dir=. |
| 1555 | if test -f $ac_dir/$ac_word; then |
| 1556 | ac_cv_path_vi_cv_path_perl="$ac_dir/$ac_word" |
| 1557 | break |
| 1558 | fi |
| 1559 | done |
| 1560 | IFS="$ac_save_ifs" |
| 1561 | ;; |
| 1562 | esac |
| 1563 | fi |
| 1564 | vi_cv_path_perl="$ac_cv_path_vi_cv_path_perl" |
| 1565 | if test -n "$vi_cv_path_perl"; then |
| 1566 | echo "$ac_t""$vi_cv_path_perl" 1>&6 |
| 1567 | else |
| 1568 | echo "$ac_t""no" 1>&6 |
| 1569 | fi |
| 1570 | |
| 1571 | if test "X$vi_cv_path_perl" != "X"; then |
| 1572 | echo $ac_n "checking Perl version""... $ac_c" 1>&6 |
| 1573 | echo "configure:1574: checking Perl version" >&5 |
| 1574 | if $vi_cv_path_perl -e 'require 5.003_01' >/dev/null 2>/dev/null; then |
| 1575 | eval `$vi_cv_path_perl -V:usethreads` |
| 1576 | if test "X$usethreads" = "XUNKNOWN" -o "X$usethreads" = "Xundef"; then |
| 1577 | badthreads=no |
| 1578 | else |
| 1579 | if $vi_cv_path_perl -e 'require 5.6.0' >/dev/null 2>/dev/null; then |
| 1580 | eval `$vi_cv_path_perl -V:use5005threads` |
| 1581 | if test "X$use5005threads" = "XUNKNOWN" -o "X$use5005threads" = "Xundef"; then |
| 1582 | badthreads=no |
| 1583 | else |
| 1584 | badthreads=yes |
| 1585 | echo "$ac_t"">>> Perl > 5.6 with 5.5 threads cannot be used <<<" 1>&6 |
| 1586 | fi |
| 1587 | else |
| 1588 | badthreads=yes |
| 1589 | echo "$ac_t"">>> Perl 5.5 with threads cannot be used <<<" 1>&6 |
| 1590 | fi |
| 1591 | fi |
| 1592 | if test $badthreads = no; then |
| 1593 | echo "$ac_t""OK" 1>&6 |
| 1594 | eval `$vi_cv_path_perl -V:shrpenv` |
| 1595 | if test "X$shrpenv" = "XUNKNOWN"; then # pre 5.003_04 |
| 1596 | shrpenv="" |
| 1597 | fi |
| 1598 | vi_cv_perllib=`$vi_cv_path_perl -MConfig -e 'print $Config{privlibexp}'` |
| 1599 | |
| 1600 | perlcppflags=`$vi_cv_path_perl -Mlib=$srcdir -MExtUtils::Embed \ |
| 1601 | -e 'ccflags;perl_inc;print"\n"' | sed -e 's/-fno[^ ]*//'` |
| 1602 | perllibs=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed -e 'ldopts' | \ |
| 1603 | sed -e '/Warning/d' -e '/Note (probably harmless)/d' \ |
| 1604 | -e 's/-bE:perl.exp//' -e 's/-lc //'` |
| 1605 | perlldflags=`cd $srcdir; $vi_cv_path_perl -MExtUtils::Embed \ |
| 1606 | -e 'ccdlflags' | sed -e 's/-bE:perl.exp//'` |
| 1607 | |
| 1608 | echo $ac_n "checking if compile and link flags for Perl are sane""... $ac_c" 1>&6 |
| 1609 | echo "configure:1610: checking if compile and link flags for Perl are sane" >&5 |
| 1610 | cflags_save=$CFLAGS |
| 1611 | libs_save=$LIBS |
| 1612 | ldflags_save=$LDFLAGS |
| 1613 | CFLAGS="$CFLAGS $perlcppflags" |
| 1614 | LIBS="$LIBS $perllibs" |
| 1615 | LDFLAGS="$perlldflags $LDFLAGS" |
| 1616 | cat > conftest.$ac_ext <<EOF |
| 1617 | #line 1618 "configure" |
| 1618 | #include "confdefs.h" |
| 1619 | |
| 1620 | int main() { |
| 1621 | |
| 1622 | ; return 0; } |
| 1623 | EOF |
| 1624 | if { (eval echo configure:1625: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 1625 | rm -rf conftest* |
| 1626 | echo "$ac_t""yes" 1>&6; perl_ok=yes |
| 1627 | else |
| 1628 | echo "configure: failed program was:" >&5 |
| 1629 | cat conftest.$ac_ext >&5 |
| 1630 | rm -rf conftest* |
| 1631 | echo "$ac_t""no: PERL DISABLED" 1>&6; perl_ok=no |
| 1632 | fi |
| 1633 | rm -f conftest* |
| 1634 | CFLAGS=$cflags_save |
| 1635 | LIBS=$libs_save |
| 1636 | LDFLAGS=$ldflags_save |
| 1637 | if test $perl_ok = yes; then |
| 1638 | if test "X$perlcppflags" != "X"; then |
| 1639 | PERL_CFLAGS="$perlcppflags" |
| 1640 | fi |
| 1641 | if test "X$perlldflags" != "X"; then |
| 1642 | LDFLAGS="$perlldflags $LDFLAGS" |
| 1643 | fi |
| 1644 | PERL_LIBS=$perllibs |
| 1645 | PERL_SRC="auto/if_perl.c if_perlsfio.c" |
| 1646 | PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o" |
| 1647 | PERL_PRO="if_perl.pro if_perlsfio.pro" |
| 1648 | cat >> confdefs.h <<\EOF |
| 1649 | #define FEAT_PERL 1 |
| 1650 | EOF |
| 1651 | |
| 1652 | fi |
| 1653 | fi |
| 1654 | else |
| 1655 | echo "$ac_t"">>> too old; need Perl version 5.003_01 or later <<<" 1>&6 |
| 1656 | fi |
| 1657 | fi |
| 1658 | |
| 1659 | if test "x$MACOSX" = "xyes"; then |
| 1660 | dir=/System/Library/Perl |
| 1661 | darwindir=$dir/darwin |
| 1662 | if test -d $darwindir; then |
| 1663 | PERL=/usr/bin/perl |
| 1664 | else |
| 1665 | dir=/System/Library/Perl/5.8.1 |
| 1666 | darwindir=$dir/darwin-thread-multi-2level |
| 1667 | if test -d $darwindir; then |
| 1668 | PERL=/usr/bin/perl |
| 1669 | fi |
| 1670 | fi |
| 1671 | if test -n "$PERL"; then |
| 1672 | PERL_DIR="$dir" |
| 1673 | PERL_CFLAGS="-DFEAT_PERL -I$darwindir/CORE" |
| 1674 | PERL_OBJ="objects/if_perl.o objects/if_perlsfio.o $darwindir/auto/DynaLoader/DynaLoader.a" |
| 1675 | PERL_LIBS="-L$darwindir/CORE -lperl" |
| 1676 | fi |
| 1677 | fi |
| 1678 | fi |
| 1679 | |
| 1680 | |
| 1681 | |
| 1682 | |
| 1683 | |
| 1684 | |
| 1685 | |
| 1686 | echo $ac_n "checking --enable-pythoninterp argument""... $ac_c" 1>&6 |
| 1687 | echo "configure:1688: checking --enable-pythoninterp argument" >&5 |
| 1688 | # Check whether --enable-pythoninterp or --disable-pythoninterp was given. |
| 1689 | if test "${enable_pythoninterp+set}" = set; then |
| 1690 | enableval="$enable_pythoninterp" |
| 1691 | : |
| 1692 | else |
| 1693 | enable_pythoninterp="no" |
| 1694 | fi |
| 1695 | |
| 1696 | echo "$ac_t""$enable_pythoninterp" 1>&6 |
| 1697 | if test "$enable_pythoninterp" = "yes"; then |
| 1698 | # Extract the first word of "python", so it can be a program name with args. |
| 1699 | set dummy python; ac_word=$2 |
| 1700 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| 1701 | echo "configure:1702: checking for $ac_word" >&5 |
| 1702 | if eval "test \"`echo '$''{'ac_cv_path_vi_cv_path_python'+set}'`\" = set"; then |
| 1703 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1704 | else |
| 1705 | case "$vi_cv_path_python" in |
| 1706 | /*) |
| 1707 | ac_cv_path_vi_cv_path_python="$vi_cv_path_python" # Let the user override the test with a path. |
| 1708 | ;; |
| 1709 | ?:/*) |
| 1710 | ac_cv_path_vi_cv_path_python="$vi_cv_path_python" # Let the user override the test with a dos path. |
| 1711 | ;; |
| 1712 | *) |
| 1713 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 1714 | ac_dummy="$PATH" |
| 1715 | for ac_dir in $ac_dummy; do |
| 1716 | test -z "$ac_dir" && ac_dir=. |
| 1717 | if test -f $ac_dir/$ac_word; then |
| 1718 | ac_cv_path_vi_cv_path_python="$ac_dir/$ac_word" |
| 1719 | break |
| 1720 | fi |
| 1721 | done |
| 1722 | IFS="$ac_save_ifs" |
| 1723 | ;; |
| 1724 | esac |
| 1725 | fi |
| 1726 | vi_cv_path_python="$ac_cv_path_vi_cv_path_python" |
| 1727 | if test -n "$vi_cv_path_python"; then |
| 1728 | echo "$ac_t""$vi_cv_path_python" 1>&6 |
| 1729 | else |
| 1730 | echo "$ac_t""no" 1>&6 |
| 1731 | fi |
| 1732 | |
| 1733 | if test "X$vi_cv_path_python" != "X"; then |
| 1734 | |
| 1735 | echo $ac_n "checking Python version""... $ac_c" 1>&6 |
| 1736 | echo "configure:1737: checking Python version" >&5 |
| 1737 | if eval "test \"`echo '$''{'vi_cv_var_python_version'+set}'`\" = set"; then |
| 1738 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1739 | else |
| 1740 | vi_cv_var_python_version=` |
| 1741 | ${vi_cv_path_python} -c 'import sys; print sys.version[:3]'` |
| 1742 | |
| 1743 | fi |
| 1744 | |
| 1745 | echo "$ac_t""$vi_cv_var_python_version" 1>&6 |
| 1746 | |
| 1747 | echo $ac_n "checking Python is 1.4 or better""... $ac_c" 1>&6 |
| 1748 | echo "configure:1749: checking Python is 1.4 or better" >&5 |
| 1749 | if ${vi_cv_path_python} -c \ |
| 1750 | "import sys; sys.exit(${vi_cv_var_python_version} < 1.4)" |
| 1751 | then |
| 1752 | echo "$ac_t""yep" 1>&6 |
| 1753 | |
| 1754 | echo $ac_n "checking Python's install prefix""... $ac_c" 1>&6 |
| 1755 | echo "configure:1756: checking Python's install prefix" >&5 |
| 1756 | if eval "test \"`echo '$''{'vi_cv_path_python_pfx'+set}'`\" = set"; then |
| 1757 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1758 | else |
| 1759 | vi_cv_path_python_pfx=` |
| 1760 | ${vi_cv_path_python} -c \ |
| 1761 | "import sys; print sys.prefix"` |
| 1762 | fi |
| 1763 | |
| 1764 | echo "$ac_t""$vi_cv_path_python_pfx" 1>&6 |
| 1765 | |
| 1766 | echo $ac_n "checking Python's execution prefix""... $ac_c" 1>&6 |
| 1767 | echo "configure:1768: checking Python's execution prefix" >&5 |
| 1768 | if eval "test \"`echo '$''{'vi_cv_path_python_epfx'+set}'`\" = set"; then |
| 1769 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1770 | else |
| 1771 | vi_cv_path_python_epfx=` |
| 1772 | ${vi_cv_path_python} -c \ |
| 1773 | "import sys; print sys.exec_prefix"` |
| 1774 | fi |
| 1775 | |
| 1776 | echo "$ac_t""$vi_cv_path_python_epfx" 1>&6 |
| 1777 | |
| 1778 | |
| 1779 | if eval "test \"`echo '$''{'vi_cv_path_pythonpath'+set}'`\" = set"; then |
| 1780 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1781 | else |
| 1782 | vi_cv_path_pythonpath=` |
| 1783 | unset PYTHONPATH; |
| 1784 | ${vi_cv_path_python} -c \ |
| 1785 | "import sys, string; print string.join(sys.path,':')"` |
| 1786 | fi |
| 1787 | |
| 1788 | |
| 1789 | |
| 1790 | # Check whether --with-python-config-dir or --without-python-config-dir was given. |
| 1791 | if test "${with_python_config_dir+set}" = set; then |
| 1792 | withval="$with_python_config_dir" |
| 1793 | vi_cv_path_python_conf="${withval}" |
| 1794 | fi |
| 1795 | |
| 1796 | |
| 1797 | echo $ac_n "checking Python's configuration directory""... $ac_c" 1>&6 |
| 1798 | echo "configure:1799: checking Python's configuration directory" >&5 |
| 1799 | if eval "test \"`echo '$''{'vi_cv_path_python_conf'+set}'`\" = set"; then |
| 1800 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1801 | else |
| 1802 | |
| 1803 | vi_cv_path_python_conf= |
| 1804 | for path in "${vi_cv_path_python_pfx}" "${vi_cv_path_python_epfx}"; do |
| 1805 | for subdir in lib share; do |
| 1806 | d="${path}/${subdir}/python${vi_cv_var_python_version}/config" |
| 1807 | if test -d "$d" && test -f "$d/config.c"; then |
| 1808 | vi_cv_path_python_conf="$d" |
| 1809 | fi |
| 1810 | done |
| 1811 | done |
| 1812 | |
| 1813 | fi |
| 1814 | |
| 1815 | echo "$ac_t""$vi_cv_path_python_conf" 1>&6 |
| 1816 | |
| 1817 | PYTHON_CONFDIR="${vi_cv_path_python_conf}" |
| 1818 | |
| 1819 | if test "X$PYTHON_CONFDIR" = "X"; then |
| 1820 | echo "$ac_t""can't find it!" 1>&6 |
| 1821 | else |
| 1822 | |
| 1823 | if eval "test \"`echo '$''{'vi_cv_path_python_plibs'+set}'`\" = set"; then |
| 1824 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1825 | else |
| 1826 | |
| 1827 | tmp_mkf="/tmp/Makefile-conf$$" |
| 1828 | cat ${PYTHON_CONFDIR}/Makefile - <<'eof' >${tmp_mkf} |
| 1829 | __: |
| 1830 | @echo "python_MODLIBS='$(MODLIBS)'" |
| 1831 | @echo "python_LIBS='$(LIBS)'" |
| 1832 | @echo "python_SYSLIBS='$(SYSLIBS)'" |
| 1833 | @echo "python_LINKFORSHARED='$(LINKFORSHARED)'" |
| 1834 | eof |
| 1835 | eval "`cd ${PYTHON_CONFDIR} && make -f ${tmp_mkf} __ | sed '/ directory /d'`" |
| 1836 | rm -f ${tmp_mkf} |
| 1837 | if test "x$MACOSX" = "xyes" && ${vi_cv_path_python} -c \ |
| 1838 | "import sys; sys.exit(${vi_cv_var_python_version} < 2.3)"; then |
| 1839 | vi_cv_path_python_plibs="-framework Python" |
| 1840 | else |
| 1841 | if test "${vi_cv_var_python_version}" = "1.4"; then |
| 1842 | vi_cv_path_python_plibs="${PYTHON_CONFDIR}/libModules.a ${PYTHON_CONFDIR}/libPython.a ${PYTHON_CONFDIR}/libObjects.a ${PYTHON_CONFDIR}/libParser.a" |
| 1843 | else |
| 1844 | vi_cv_path_python_plibs="-L${PYTHON_CONFDIR} -lpython${vi_cv_var_python_version}" |
| 1845 | fi |
| 1846 | vi_cv_path_python_plibs="${vi_cv_path_python_plibs} ${python_MODLIBS} ${python_LIBS} ${python_SYSLIBS} ${python_LINKFORSHARED}" |
| 1847 | vi_cv_path_python_plibs=`echo $vi_cv_path_python_plibs | sed s/-ltermcap//` |
| 1848 | fi |
| 1849 | |
| 1850 | fi |
| 1851 | |
| 1852 | |
| 1853 | PYTHON_LIBS="${vi_cv_path_python_plibs}" |
| 1854 | if test "${vi_cv_path_python_pfx}" = "${vi_cv_path_python_epfx}"; then |
| 1855 | PYTHON_CFLAGS="-I${vi_cv_path_python_pfx}/include/python${vi_cv_var_python_version}" |
| 1856 | else |
| 1857 | 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}" |
| 1858 | fi |
| 1859 | PYTHON_SRC="if_python.c" |
| 1860 | if test "x$MACOSX" = "xyes"; then |
| 1861 | PYTHON_OBJ="objects/if_python.o" |
| 1862 | else |
| 1863 | PYTHON_OBJ="objects/if_python.o objects/py_config.o" |
| 1864 | fi |
| 1865 | if test "${vi_cv_var_python_version}" = "1.4"; then |
| 1866 | PYTHON_OBJ="$PYTHON_OBJ objects/py_getpath.o" |
| 1867 | fi |
| 1868 | PYTHON_GETPATH_CFLAGS="-DPYTHONPATH='\"${vi_cv_path_pythonpath}\"' -DPREFIX='\"${vi_cv_path_python_pfx}\"' -DEXEC_PREFIX='\"${vi_cv_path_python_epfx}\"'" |
| 1869 | |
| 1870 | echo $ac_n "checking if -pthread should be used""... $ac_c" 1>&6 |
| 1871 | echo "configure:1872: checking if -pthread should be used" >&5 |
| 1872 | threadsafe_flag= |
| 1873 | thread_lib= |
| 1874 | if test "x$MACOSX" != "xyes"; then |
| 1875 | test "$GCC" = yes && threadsafe_flag="-pthread" |
| 1876 | if test "`(uname) 2>/dev/null`" = FreeBSD; then |
| 1877 | threadsafe_flag="-D_THREAD_SAFE" |
| 1878 | thread_lib="-pthread" |
| 1879 | fi |
| 1880 | fi |
| 1881 | libs_save_old=$LIBS |
| 1882 | if test -n "$threadsafe_flag"; then |
| 1883 | cflags_save=$CFLAGS |
| 1884 | CFLAGS="$CFLAGS $threadsafe_flag" |
| 1885 | LIBS="$LIBS $thread_lib" |
| 1886 | cat > conftest.$ac_ext <<EOF |
| 1887 | #line 1888 "configure" |
| 1888 | #include "confdefs.h" |
| 1889 | |
| 1890 | int main() { |
| 1891 | |
| 1892 | ; return 0; } |
| 1893 | EOF |
| 1894 | if { (eval echo configure:1895: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 1895 | rm -rf conftest* |
| 1896 | echo "$ac_t""yes" 1>&6; PYTHON_CFLAGS="$PYTHON_CFLAGS $threadsafe_flag" |
| 1897 | else |
| 1898 | echo "configure: failed program was:" >&5 |
| 1899 | cat conftest.$ac_ext >&5 |
| 1900 | rm -rf conftest* |
| 1901 | echo "$ac_t""no" 1>&6; LIBS=$libs_save_old |
| 1902 | |
| 1903 | fi |
| 1904 | rm -f conftest* |
| 1905 | CFLAGS=$cflags_save |
| 1906 | else |
| 1907 | echo "$ac_t""no" 1>&6 |
| 1908 | fi |
| 1909 | |
| 1910 | echo $ac_n "checking if compile and link flags for Python are sane""... $ac_c" 1>&6 |
| 1911 | echo "configure:1912: checking if compile and link flags for Python are sane" >&5 |
| 1912 | cflags_save=$CFLAGS |
| 1913 | libs_save=$LIBS |
| 1914 | CFLAGS="$CFLAGS $PYTHON_CFLAGS" |
| 1915 | LIBS="$LIBS $PYTHON_LIBS" |
| 1916 | cat > conftest.$ac_ext <<EOF |
| 1917 | #line 1918 "configure" |
| 1918 | #include "confdefs.h" |
| 1919 | |
| 1920 | int main() { |
| 1921 | |
| 1922 | ; return 0; } |
| 1923 | EOF |
| 1924 | if { (eval echo configure:1925: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 1925 | rm -rf conftest* |
| 1926 | echo "$ac_t""yes" 1>&6; python_ok=yes |
| 1927 | else |
| 1928 | echo "configure: failed program was:" >&5 |
| 1929 | cat conftest.$ac_ext >&5 |
| 1930 | rm -rf conftest* |
| 1931 | echo "$ac_t""no: PYTHON DISABLED" 1>&6; python_ok=no |
| 1932 | fi |
| 1933 | rm -f conftest* |
| 1934 | CFLAGS=$cflags_save |
| 1935 | LIBS=$libs_save |
| 1936 | if test $python_ok = yes; then |
| 1937 | cat >> confdefs.h <<\EOF |
| 1938 | #define FEAT_PYTHON 1 |
| 1939 | EOF |
| 1940 | |
| 1941 | else |
| 1942 | LIBS=$libs_save_old |
| 1943 | PYTHON_SRC= |
| 1944 | PYTHON_OBJ= |
| 1945 | PYTHON_LIBS= |
| 1946 | PYTHON_CFLAGS= |
| 1947 | fi |
| 1948 | |
| 1949 | fi |
| 1950 | else |
| 1951 | echo "$ac_t""too old" 1>&6 |
| 1952 | fi |
| 1953 | fi |
| 1954 | fi |
| 1955 | |
| 1956 | |
| 1957 | |
| 1958 | |
| 1959 | |
| 1960 | |
| 1961 | |
| 1962 | echo $ac_n "checking --enable-tclinterp argument""... $ac_c" 1>&6 |
| 1963 | echo "configure:1964: checking --enable-tclinterp argument" >&5 |
| 1964 | # Check whether --enable-tclinterp or --disable-tclinterp was given. |
| 1965 | if test "${enable_tclinterp+set}" = set; then |
| 1966 | enableval="$enable_tclinterp" |
| 1967 | : |
| 1968 | else |
| 1969 | enable_tclinterp="no" |
| 1970 | fi |
| 1971 | |
| 1972 | echo "$ac_t""$enable_tclinterp" 1>&6 |
| 1973 | |
| 1974 | if test "$enable_tclinterp" = "yes"; then |
| 1975 | |
| 1976 | echo $ac_n "checking --with-tclsh argument""... $ac_c" 1>&6 |
| 1977 | echo "configure:1978: checking --with-tclsh argument" >&5 |
| 1978 | # Check whether --with-tclsh or --without-tclsh was given. |
| 1979 | if test "${with_tclsh+set}" = set; then |
| 1980 | withval="$with_tclsh" |
| 1981 | tclsh_name="$withval"; echo "$ac_t""$tclsh_name" 1>&6 |
| 1982 | else |
| 1983 | tclsh_name="tclsh8.0"; echo "$ac_t""no" 1>&6 |
| 1984 | fi |
| 1985 | |
| 1986 | # Extract the first word of "$tclsh_name", so it can be a program name with args. |
| 1987 | set dummy $tclsh_name; ac_word=$2 |
| 1988 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| 1989 | echo "configure:1990: checking for $ac_word" >&5 |
| 1990 | if eval "test \"`echo '$''{'ac_cv_path_vi_cv_path_tcl'+set}'`\" = set"; then |
| 1991 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1992 | else |
| 1993 | case "$vi_cv_path_tcl" in |
| 1994 | /*) |
| 1995 | ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path. |
| 1996 | ;; |
| 1997 | ?:/*) |
| 1998 | ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a dos path. |
| 1999 | ;; |
| 2000 | *) |
| 2001 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 2002 | ac_dummy="$PATH" |
| 2003 | for ac_dir in $ac_dummy; do |
| 2004 | test -z "$ac_dir" && ac_dir=. |
| 2005 | if test -f $ac_dir/$ac_word; then |
| 2006 | ac_cv_path_vi_cv_path_tcl="$ac_dir/$ac_word" |
| 2007 | break |
| 2008 | fi |
| 2009 | done |
| 2010 | IFS="$ac_save_ifs" |
| 2011 | ;; |
| 2012 | esac |
| 2013 | fi |
| 2014 | vi_cv_path_tcl="$ac_cv_path_vi_cv_path_tcl" |
| 2015 | if test -n "$vi_cv_path_tcl"; then |
| 2016 | echo "$ac_t""$vi_cv_path_tcl" 1>&6 |
| 2017 | else |
| 2018 | echo "$ac_t""no" 1>&6 |
| 2019 | fi |
| 2020 | |
| 2021 | |
| 2022 | |
| 2023 | if test "X$vi_cv_path_tcl" = "X" -a $tclsh_name = "tclsh8.0"; then |
| 2024 | tclsh_name="tclsh8.2" |
| 2025 | # Extract the first word of "$tclsh_name", so it can be a program name with args. |
| 2026 | set dummy $tclsh_name; ac_word=$2 |
| 2027 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| 2028 | echo "configure:2029: checking for $ac_word" >&5 |
| 2029 | if eval "test \"`echo '$''{'ac_cv_path_vi_cv_path_tcl'+set}'`\" = set"; then |
| 2030 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2031 | else |
| 2032 | case "$vi_cv_path_tcl" in |
| 2033 | /*) |
| 2034 | ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path. |
| 2035 | ;; |
| 2036 | ?:/*) |
| 2037 | ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a dos path. |
| 2038 | ;; |
| 2039 | *) |
| 2040 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 2041 | ac_dummy="$PATH" |
| 2042 | for ac_dir in $ac_dummy; do |
| 2043 | test -z "$ac_dir" && ac_dir=. |
| 2044 | if test -f $ac_dir/$ac_word; then |
| 2045 | ac_cv_path_vi_cv_path_tcl="$ac_dir/$ac_word" |
| 2046 | break |
| 2047 | fi |
| 2048 | done |
| 2049 | IFS="$ac_save_ifs" |
| 2050 | ;; |
| 2051 | esac |
| 2052 | fi |
| 2053 | vi_cv_path_tcl="$ac_cv_path_vi_cv_path_tcl" |
| 2054 | if test -n "$vi_cv_path_tcl"; then |
| 2055 | echo "$ac_t""$vi_cv_path_tcl" 1>&6 |
| 2056 | else |
| 2057 | echo "$ac_t""no" 1>&6 |
| 2058 | fi |
| 2059 | |
| 2060 | fi |
| 2061 | if test "X$vi_cv_path_tcl" = "X"; then |
| 2062 | tclsh_name="tclsh" |
| 2063 | # Extract the first word of "$tclsh_name", so it can be a program name with args. |
| 2064 | set dummy $tclsh_name; ac_word=$2 |
| 2065 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| 2066 | echo "configure:2067: checking for $ac_word" >&5 |
| 2067 | if eval "test \"`echo '$''{'ac_cv_path_vi_cv_path_tcl'+set}'`\" = set"; then |
| 2068 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2069 | else |
| 2070 | case "$vi_cv_path_tcl" in |
| 2071 | /*) |
| 2072 | ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a path. |
| 2073 | ;; |
| 2074 | ?:/*) |
| 2075 | ac_cv_path_vi_cv_path_tcl="$vi_cv_path_tcl" # Let the user override the test with a dos path. |
| 2076 | ;; |
| 2077 | *) |
| 2078 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 2079 | ac_dummy="$PATH" |
| 2080 | for ac_dir in $ac_dummy; do |
| 2081 | test -z "$ac_dir" && ac_dir=. |
| 2082 | if test -f $ac_dir/$ac_word; then |
| 2083 | ac_cv_path_vi_cv_path_tcl="$ac_dir/$ac_word" |
| 2084 | break |
| 2085 | fi |
| 2086 | done |
| 2087 | IFS="$ac_save_ifs" |
| 2088 | ;; |
| 2089 | esac |
| 2090 | fi |
| 2091 | vi_cv_path_tcl="$ac_cv_path_vi_cv_path_tcl" |
| 2092 | if test -n "$vi_cv_path_tcl"; then |
| 2093 | echo "$ac_t""$vi_cv_path_tcl" 1>&6 |
| 2094 | else |
| 2095 | echo "$ac_t""no" 1>&6 |
| 2096 | fi |
| 2097 | |
| 2098 | fi |
| 2099 | if test "X$vi_cv_path_tcl" != "X"; then |
| 2100 | echo $ac_n "checking Tcl version""... $ac_c" 1>&6 |
| 2101 | echo "configure:2102: checking Tcl version" >&5 |
| 2102 | if echo 'exit [expr [info tclversion] < 8.0]' | $vi_cv_path_tcl - ; then |
| 2103 | tclver=`echo 'puts [info tclversion]' | $vi_cv_path_tcl -` |
| 2104 | echo "$ac_t""$tclver - OK" 1>&6; |
| 2105 | 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 -` |
| 2106 | |
| 2107 | echo $ac_n "checking for location of Tcl include""... $ac_c" 1>&6 |
| 2108 | echo "configure:2109: checking for location of Tcl include" >&5 |
| 2109 | if test "x$MACOSX" != "xyes"; then |
| 2110 | tclinc="$tclloc/include $tclloc/include/tcl $tclloc/include/tcl$tclver /usr/local/include" |
| 2111 | else |
| 2112 | tclinc="/System/Library/Frameworks/Tcl.framework/Headers" |
| 2113 | fi |
| 2114 | for try in $tclinc; do |
| 2115 | if test -f "$try/tcl.h"; then |
| 2116 | echo "$ac_t""$try/tcl.h" 1>&6 |
| 2117 | TCL_INC=$try |
| 2118 | break |
| 2119 | fi |
| 2120 | done |
| 2121 | if test -z "$TCL_INC"; then |
| 2122 | echo "$ac_t""<not found>" 1>&6 |
| 2123 | SKIP_TCL=YES |
| 2124 | fi |
| 2125 | if test -z "$SKIP_TCL"; then |
| 2126 | echo $ac_n "checking for location of tclConfig.sh script""... $ac_c" 1>&6 |
| 2127 | echo "configure:2128: checking for location of tclConfig.sh script" >&5 |
| 2128 | if test "x$MACOSX" != "xyes"; then |
| 2129 | tclcnf=`echo $tclinc | sed s/include/lib/g` |
| 2130 | else |
| 2131 | tclcnf="/System/Library/Frameworks/Tcl.framework" |
| 2132 | fi |
| 2133 | for try in $tclcnf; do |
| 2134 | if test -f $try/tclConfig.sh; then |
| 2135 | echo "$ac_t""$try/tclConfig.sh" 1>&6 |
| 2136 | . $try/tclConfig.sh |
| 2137 | TCL_LIBS=`eval echo "$TCL_LIB_SPEC $TCL_LIBS"` |
| 2138 | TCL_DEFS=`echo $TCL_DEFS | tr ' ' '\012' | sed -e '/^-[^D]/d' -e '/-D[^_]/d' -e 's/-D_/ -D_/' | tr -d '\012'` |
| 2139 | break |
| 2140 | fi |
| 2141 | done |
| 2142 | if test -z "$TCL_LIBS"; then |
| 2143 | echo "$ac_t""<not found>" 1>&6 |
| 2144 | echo $ac_n "checking for Tcl library by myself""... $ac_c" 1>&6 |
| 2145 | echo "configure:2146: checking for Tcl library by myself" >&5 |
| 2146 | tcllib=`echo $tclinc | sed s/include/lib/g` |
| 2147 | for ext in .so .a ; do |
| 2148 | for ver in "" $tclver ; do |
| 2149 | for try in $tcllib ; do |
| 2150 | trylib=tcl$ver$ext |
| 2151 | if test -f $try/lib$trylib ; then |
| 2152 | echo "$ac_t""$try/lib$trylib" 1>&6 |
| 2153 | TCL_LIBS="-L$try -ltcl$ver -ldl -lm" |
| 2154 | if test "`(uname) 2>/dev/null`" = SunOS && |
| 2155 | uname -r | grep '^5' >/dev/null; then |
| 2156 | TCL_LIBS="$TCL_LIBS -R $try" |
| 2157 | fi |
| 2158 | break 3 |
| 2159 | fi |
| 2160 | done |
| 2161 | done |
| 2162 | done |
| 2163 | if test -z "$TCL_LIBS"; then |
| 2164 | echo "$ac_t""<not found>" 1>&6 |
| 2165 | SKIP_TCL=YES |
| 2166 | fi |
| 2167 | fi |
| 2168 | if test -z "$SKIP_TCL"; then |
| 2169 | cat >> confdefs.h <<\EOF |
| 2170 | #define FEAT_TCL 1 |
| 2171 | EOF |
| 2172 | |
| 2173 | TCL_SRC=if_tcl.c |
| 2174 | TCL_OBJ=objects/if_tcl.o |
| 2175 | TCL_PRO=if_tcl.pro |
| 2176 | TCL_CFLAGS="-I$TCL_INC $TCL_DEFS" |
| 2177 | fi |
| 2178 | fi |
| 2179 | else |
| 2180 | echo "$ac_t""too old; need Tcl version 8.0 or later" 1>&6 |
| 2181 | fi |
| 2182 | fi |
| 2183 | fi |
| 2184 | |
| 2185 | |
| 2186 | |
| 2187 | |
| 2188 | |
| 2189 | |
| 2190 | echo $ac_n "checking --enable-rubyinterp argument""... $ac_c" 1>&6 |
| 2191 | echo "configure:2192: checking --enable-rubyinterp argument" >&5 |
| 2192 | # Check whether --enable-rubyinterp or --disable-rubyinterp was given. |
| 2193 | if test "${enable_rubyinterp+set}" = set; then |
| 2194 | enableval="$enable_rubyinterp" |
| 2195 | : |
| 2196 | else |
| 2197 | enable_rubyinterp="no" |
| 2198 | fi |
| 2199 | |
| 2200 | echo "$ac_t""$enable_rubyinterp" 1>&6 |
| 2201 | if test "$enable_rubyinterp" = "yes"; then |
| 2202 | |
| 2203 | # Extract the first word of "ruby", so it can be a program name with args. |
| 2204 | set dummy ruby; ac_word=$2 |
| 2205 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| 2206 | echo "configure:2207: checking for $ac_word" >&5 |
| 2207 | if eval "test \"`echo '$''{'ac_cv_path_vi_cv_path_ruby'+set}'`\" = set"; then |
| 2208 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2209 | else |
| 2210 | case "$vi_cv_path_ruby" in |
| 2211 | /*) |
| 2212 | ac_cv_path_vi_cv_path_ruby="$vi_cv_path_ruby" # Let the user override the test with a path. |
| 2213 | ;; |
| 2214 | ?:/*) |
| 2215 | ac_cv_path_vi_cv_path_ruby="$vi_cv_path_ruby" # Let the user override the test with a dos path. |
| 2216 | ;; |
| 2217 | *) |
| 2218 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 2219 | ac_dummy="$PATH" |
| 2220 | for ac_dir in $ac_dummy; do |
| 2221 | test -z "$ac_dir" && ac_dir=. |
| 2222 | if test -f $ac_dir/$ac_word; then |
| 2223 | ac_cv_path_vi_cv_path_ruby="$ac_dir/$ac_word" |
| 2224 | break |
| 2225 | fi |
| 2226 | done |
| 2227 | IFS="$ac_save_ifs" |
| 2228 | ;; |
| 2229 | esac |
| 2230 | fi |
| 2231 | vi_cv_path_ruby="$ac_cv_path_vi_cv_path_ruby" |
| 2232 | if test -n "$vi_cv_path_ruby"; then |
| 2233 | echo "$ac_t""$vi_cv_path_ruby" 1>&6 |
| 2234 | else |
| 2235 | echo "$ac_t""no" 1>&6 |
| 2236 | fi |
| 2237 | |
| 2238 | if test "X$vi_cv_path_ruby" != "X"; then |
| 2239 | echo $ac_n "checking Ruby version""... $ac_c" 1>&6 |
| 2240 | echo "configure:2241: checking Ruby version" >&5 |
| 2241 | if $vi_cv_path_ruby -e 'VERSION >= "1.6.0" or exit 1' >/dev/null 2>/dev/null; then |
| 2242 | echo "$ac_t""OK" 1>&6 |
| 2243 | echo $ac_n "checking Ruby header files""... $ac_c" 1>&6 |
| 2244 | echo "configure:2245: checking Ruby header files" >&5 |
| 2245 | rubyhdrdir=`$vi_cv_path_ruby -r mkmf -e 'print Config::CONFIG["archdir"] || $hdrdir' 2>/dev/null` |
| 2246 | if test "X$rubyhdrdir" != "X"; then |
| 2247 | echo "$ac_t""$rubyhdrdir" 1>&6 |
| 2248 | RUBY_CFLAGS="-I$rubyhdrdir" |
| 2249 | rubylibs=`$vi_cv_path_ruby -r rbconfig -e 'print Config::CONFIG["LIBS"]'` |
| 2250 | if test "X$rubylibs" != "X"; then |
| 2251 | RUBY_LIBS="$rubylibs" |
| 2252 | fi |
| 2253 | librubyarg=`$vi_cv_path_ruby -r rbconfig -e 'print Config.expand(Config::CONFIG["LIBRUBYARG"])'` |
| 2254 | if test -f "$rubyhdrdir/$librubyarg"; then |
| 2255 | librubyarg="$rubyhdrdir/$librubyarg" |
| 2256 | else |
| 2257 | rubylibdir=`$vi_cv_path_ruby -r rbconfig -e 'print Config.expand(Config::CONFIG["libdir"])'` |
| 2258 | if test -f "$rubylibdir/$librubyarg"; then |
| 2259 | librubyarg="$rubylibdir/$librubyarg" |
| 2260 | elif test "$librubyarg" = "libruby.a"; then |
| 2261 | librubyarg="-lruby" |
| 2262 | else |
| 2263 | librubyarg=`$vi_cv_path_ruby -r rbconfig -e "print '$librubyarg'.gsub(/-L\./, %'-L#{Config.expand(Config::CONFIG[\"libdir\"])}')"` |
| 2264 | fi |
| 2265 | fi |
| 2266 | |
| 2267 | if test "X$librubyarg" != "X"; then |
| 2268 | RUBY_LIBS="$librubyarg $RUBY_LIBS" |
| 2269 | fi |
| 2270 | rubyldflags=`$vi_cv_path_ruby -r rbconfig -e 'print Config::CONFIG["LDFLAGS"]'` |
| 2271 | if test "X$rubyldflags" != "X"; then |
| 2272 | LDFLAGS="$rubyldflags $LDFLAGS" |
| 2273 | fi |
| 2274 | RUBY_SRC="if_ruby.c" |
| 2275 | RUBY_OBJ="objects/if_ruby.o" |
| 2276 | RUBY_PRO="if_ruby.pro" |
| 2277 | cat >> confdefs.h <<\EOF |
| 2278 | #define FEAT_RUBY 1 |
| 2279 | EOF |
| 2280 | |
| 2281 | else |
| 2282 | echo "$ac_t""not found" 1>&6 |
| 2283 | fi |
| 2284 | else |
| 2285 | echo "$ac_t""too old; need Ruby version 1.6.0 or later" 1>&6 |
| 2286 | fi |
| 2287 | fi |
| 2288 | fi |
| 2289 | |
| 2290 | |
| 2291 | |
| 2292 | |
| 2293 | |
| 2294 | |
| 2295 | echo $ac_n "checking --enable-cscope argument""... $ac_c" 1>&6 |
| 2296 | echo "configure:2297: checking --enable-cscope argument" >&5 |
| 2297 | # Check whether --enable-cscope or --disable-cscope was given. |
| 2298 | if test "${enable_cscope+set}" = set; then |
| 2299 | enableval="$enable_cscope" |
| 2300 | : |
| 2301 | else |
| 2302 | enable_cscope="no" |
| 2303 | fi |
| 2304 | |
| 2305 | echo "$ac_t""$enable_cscope" 1>&6 |
| 2306 | if test "$enable_cscope" = "yes"; then |
| 2307 | cat >> confdefs.h <<\EOF |
| 2308 | #define FEAT_CSCOPE 1 |
| 2309 | EOF |
| 2310 | |
| 2311 | fi |
| 2312 | |
| 2313 | echo $ac_n "checking --enable-workshop argument""... $ac_c" 1>&6 |
| 2314 | echo "configure:2315: checking --enable-workshop argument" >&5 |
| 2315 | # Check whether --enable-workshop or --disable-workshop was given. |
| 2316 | if test "${enable_workshop+set}" = set; then |
| 2317 | enableval="$enable_workshop" |
| 2318 | : |
| 2319 | else |
| 2320 | enable_workshop="no" |
| 2321 | fi |
| 2322 | |
| 2323 | echo "$ac_t""$enable_workshop" 1>&6 |
| 2324 | if test "$enable_workshop" = "yes"; then |
| 2325 | cat >> confdefs.h <<\EOF |
| 2326 | #define FEAT_SUN_WORKSHOP 1 |
| 2327 | EOF |
| 2328 | |
| 2329 | WORKSHOP_SRC="workshop.c integration.c" |
| 2330 | |
| 2331 | WORKSHOP_OBJ="objects/workshop.o objects/integration.o" |
| 2332 | |
| 2333 | if test "${enable_gui-xxx}" = xxx; then |
| 2334 | enable_gui=motif |
| 2335 | fi |
| 2336 | fi |
| 2337 | |
| 2338 | echo $ac_n "checking --disable-netbeans argument""... $ac_c" 1>&6 |
| 2339 | echo "configure:2340: checking --disable-netbeans argument" >&5 |
| 2340 | # Check whether --enable-netbeans or --disable-netbeans was given. |
| 2341 | if test "${enable_netbeans+set}" = set; then |
| 2342 | enableval="$enable_netbeans" |
| 2343 | : |
| 2344 | else |
| 2345 | enable_netbeans="yes" |
| 2346 | fi |
| 2347 | |
| 2348 | if test "$enable_netbeans" = "yes"; then |
| 2349 | echo "$ac_t""no" 1>&6 |
| 2350 | echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6 |
| 2351 | echo "configure:2352: checking for socket in -lsocket" >&5 |
| 2352 | ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'` |
| 2353 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 2354 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2355 | else |
| 2356 | ac_save_LIBS="$LIBS" |
| 2357 | LIBS="-lsocket $LIBS" |
| 2358 | cat > conftest.$ac_ext <<EOF |
| 2359 | #line 2360 "configure" |
| 2360 | #include "confdefs.h" |
| 2361 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 2362 | /* We use char because int might match the return type of a gcc2 |
| 2363 | builtin and then its argument prototype would still apply. */ |
| 2364 | char socket(); |
| 2365 | |
| 2366 | int main() { |
| 2367 | socket() |
| 2368 | ; return 0; } |
| 2369 | EOF |
| 2370 | if { (eval echo configure:2371: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 2371 | rm -rf conftest* |
| 2372 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 2373 | else |
| 2374 | echo "configure: failed program was:" >&5 |
| 2375 | cat conftest.$ac_ext >&5 |
| 2376 | rm -rf conftest* |
| 2377 | eval "ac_cv_lib_$ac_lib_var=no" |
| 2378 | fi |
| 2379 | rm -f conftest* |
| 2380 | LIBS="$ac_save_LIBS" |
| 2381 | |
| 2382 | fi |
| 2383 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 2384 | echo "$ac_t""yes" 1>&6 |
| 2385 | ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
| 2386 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
| 2387 | cat >> confdefs.h <<EOF |
| 2388 | #define $ac_tr_lib 1 |
| 2389 | EOF |
| 2390 | |
| 2391 | LIBS="-lsocket $LIBS" |
| 2392 | |
| 2393 | else |
| 2394 | echo "$ac_t""no" 1>&6 |
| 2395 | fi |
| 2396 | |
| 2397 | echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 |
| 2398 | echo "configure:2399: checking for gethostbyname in -lnsl" >&5 |
| 2399 | ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` |
| 2400 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 2401 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2402 | else |
| 2403 | ac_save_LIBS="$LIBS" |
| 2404 | LIBS="-lnsl $LIBS" |
| 2405 | cat > conftest.$ac_ext <<EOF |
| 2406 | #line 2407 "configure" |
| 2407 | #include "confdefs.h" |
| 2408 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 2409 | /* We use char because int might match the return type of a gcc2 |
| 2410 | builtin and then its argument prototype would still apply. */ |
| 2411 | char gethostbyname(); |
| 2412 | |
| 2413 | int main() { |
| 2414 | gethostbyname() |
| 2415 | ; return 0; } |
| 2416 | EOF |
| 2417 | if { (eval echo configure:2418: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 2418 | rm -rf conftest* |
| 2419 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 2420 | else |
| 2421 | echo "configure: failed program was:" >&5 |
| 2422 | cat conftest.$ac_ext >&5 |
| 2423 | rm -rf conftest* |
| 2424 | eval "ac_cv_lib_$ac_lib_var=no" |
| 2425 | fi |
| 2426 | rm -f conftest* |
| 2427 | LIBS="$ac_save_LIBS" |
| 2428 | |
| 2429 | fi |
| 2430 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 2431 | echo "$ac_t""yes" 1>&6 |
| 2432 | ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
| 2433 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
| 2434 | cat >> confdefs.h <<EOF |
| 2435 | #define $ac_tr_lib 1 |
| 2436 | EOF |
| 2437 | |
| 2438 | LIBS="-lnsl $LIBS" |
| 2439 | |
| 2440 | else |
| 2441 | echo "$ac_t""no" 1>&6 |
| 2442 | fi |
| 2443 | |
| 2444 | echo $ac_n "checking whether compiling netbeans integration is possible""... $ac_c" 1>&6 |
| 2445 | echo "configure:2446: checking whether compiling netbeans integration is possible" >&5 |
| 2446 | cat > conftest.$ac_ext <<EOF |
| 2447 | #line 2448 "configure" |
| 2448 | #include "confdefs.h" |
| 2449 | |
| 2450 | #include <stdio.h> |
| 2451 | #include <stdlib.h> |
| 2452 | #include <stdarg.h> |
| 2453 | #include <fcntl.h> |
| 2454 | #include <netdb.h> |
| 2455 | #include <netinet/in.h> |
| 2456 | #include <errno.h> |
| 2457 | #include <sys/types.h> |
| 2458 | #include <sys/socket.h> |
| 2459 | /* Check bitfields */ |
| 2460 | struct nbbuf { |
| 2461 | unsigned int initDone:1; |
| 2462 | ushort signmaplen; |
| 2463 | }; |
| 2464 | |
| 2465 | int main() { |
| 2466 | |
| 2467 | /* Check creating a socket. */ |
| 2468 | struct sockaddr_in server; |
| 2469 | (void)socket(AF_INET, SOCK_STREAM, 0); |
| 2470 | (void)htons(100); |
| 2471 | (void)gethostbyname("microsoft.com"); |
| 2472 | if (errno == ECONNREFUSED) |
| 2473 | (void)connect(1, (struct sockaddr *)&server, sizeof(server)); |
| 2474 | |
| 2475 | ; return 0; } |
| 2476 | EOF |
| 2477 | if { (eval echo configure:2478: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 2478 | rm -rf conftest* |
| 2479 | echo "$ac_t""yes" 1>&6 |
| 2480 | else |
| 2481 | echo "configure: failed program was:" >&5 |
| 2482 | cat conftest.$ac_ext >&5 |
| 2483 | rm -rf conftest* |
| 2484 | echo "$ac_t""no" 1>&6; enable_netbeans="no" |
| 2485 | fi |
| 2486 | rm -f conftest* |
| 2487 | else |
| 2488 | echo "$ac_t""yes" 1>&6 |
| 2489 | fi |
| 2490 | if test "$enable_netbeans" = "yes"; then |
| 2491 | cat >> confdefs.h <<\EOF |
| 2492 | #define FEAT_NETBEANS_INTG 1 |
| 2493 | EOF |
| 2494 | |
| 2495 | NETBEANS_SRC="netbeans.c" |
| 2496 | |
| 2497 | NETBEANS_OBJ="objects/netbeans.o" |
| 2498 | |
| 2499 | fi |
| 2500 | |
| 2501 | echo $ac_n "checking --enable-sniff argument""... $ac_c" 1>&6 |
| 2502 | echo "configure:2503: checking --enable-sniff argument" >&5 |
| 2503 | # Check whether --enable-sniff or --disable-sniff was given. |
| 2504 | if test "${enable_sniff+set}" = set; then |
| 2505 | enableval="$enable_sniff" |
| 2506 | : |
| 2507 | else |
| 2508 | enable_sniff="no" |
| 2509 | fi |
| 2510 | |
| 2511 | echo "$ac_t""$enable_sniff" 1>&6 |
| 2512 | if test "$enable_sniff" = "yes"; then |
| 2513 | cat >> confdefs.h <<\EOF |
| 2514 | #define FEAT_SNIFF 1 |
| 2515 | EOF |
| 2516 | |
| 2517 | SNIFF_SRC="if_sniff.c" |
| 2518 | |
| 2519 | SNIFF_OBJ="objects/if_sniff.o" |
| 2520 | |
| 2521 | fi |
| 2522 | |
| 2523 | echo $ac_n "checking --enable-multibyte argument""... $ac_c" 1>&6 |
| 2524 | echo "configure:2525: checking --enable-multibyte argument" >&5 |
| 2525 | # Check whether --enable-multibyte or --disable-multibyte was given. |
| 2526 | if test "${enable_multibyte+set}" = set; then |
| 2527 | enableval="$enable_multibyte" |
| 2528 | : |
| 2529 | else |
| 2530 | enable_multibyte="no" |
| 2531 | fi |
| 2532 | |
| 2533 | echo "$ac_t""$enable_multibyte" 1>&6 |
| 2534 | if test "$enable_multibyte" = "yes"; then |
| 2535 | cat >> confdefs.h <<\EOF |
| 2536 | #define FEAT_MBYTE 1 |
| 2537 | EOF |
| 2538 | |
| 2539 | fi |
| 2540 | |
| 2541 | echo $ac_n "checking --enable-hangulinput argument""... $ac_c" 1>&6 |
| 2542 | echo "configure:2543: checking --enable-hangulinput argument" >&5 |
| 2543 | # Check whether --enable-hangulinput or --disable-hangulinput was given. |
| 2544 | if test "${enable_hangulinput+set}" = set; then |
| 2545 | enableval="$enable_hangulinput" |
| 2546 | : |
| 2547 | else |
| 2548 | enable_hangulinput="no" |
| 2549 | fi |
| 2550 | |
| 2551 | echo "$ac_t""$enable_hangulinput" 1>&6 |
| 2552 | |
| 2553 | echo $ac_n "checking --enable-xim argument""... $ac_c" 1>&6 |
| 2554 | echo "configure:2555: checking --enable-xim argument" >&5 |
| 2555 | # Check whether --enable-xim or --disable-xim was given. |
| 2556 | if test "${enable_xim+set}" = set; then |
| 2557 | enableval="$enable_xim" |
| 2558 | echo "$ac_t""$enable_xim" 1>&6 |
| 2559 | else |
| 2560 | enable_xim="auto"; echo "$ac_t""defaulting to auto" 1>&6 |
| 2561 | fi |
| 2562 | |
| 2563 | |
| 2564 | echo $ac_n "checking --enable-fontset argument""... $ac_c" 1>&6 |
| 2565 | echo "configure:2566: checking --enable-fontset argument" >&5 |
| 2566 | # Check whether --enable-fontset or --disable-fontset was given. |
| 2567 | if test "${enable_fontset+set}" = set; then |
| 2568 | enableval="$enable_fontset" |
| 2569 | : |
| 2570 | else |
| 2571 | enable_fontset="no" |
| 2572 | fi |
| 2573 | |
| 2574 | echo "$ac_t""$enable_fontset" 1>&6 |
| 2575 | |
| 2576 | test -z "$with_x" && with_x=yes |
| 2577 | test "${enable_gui-yes}" != no -a "x$MACOSX" != "xyes" -a "x$QNX" != "xyes" && with_x=yes |
| 2578 | if test "$with_x" = no; then |
| 2579 | echo "$ac_t""defaulting to: don't HAVE_X11" 1>&6 |
| 2580 | else |
| 2581 | |
| 2582 | # Extract the first word of "xmkmf", so it can be a program name with args. |
| 2583 | set dummy xmkmf; ac_word=$2 |
| 2584 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| 2585 | echo "configure:2586: checking for $ac_word" >&5 |
| 2586 | if eval "test \"`echo '$''{'ac_cv_path_xmkmfpath'+set}'`\" = set"; then |
| 2587 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2588 | else |
| 2589 | case "$xmkmfpath" in |
| 2590 | /*) |
| 2591 | ac_cv_path_xmkmfpath="$xmkmfpath" # Let the user override the test with a path. |
| 2592 | ;; |
| 2593 | ?:/*) |
| 2594 | ac_cv_path_xmkmfpath="$xmkmfpath" # Let the user override the test with a dos path. |
| 2595 | ;; |
| 2596 | *) |
| 2597 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 2598 | ac_dummy="$PATH" |
| 2599 | for ac_dir in $ac_dummy; do |
| 2600 | test -z "$ac_dir" && ac_dir=. |
| 2601 | if test -f $ac_dir/$ac_word; then |
| 2602 | ac_cv_path_xmkmfpath="$ac_dir/$ac_word" |
| 2603 | break |
| 2604 | fi |
| 2605 | done |
| 2606 | IFS="$ac_save_ifs" |
| 2607 | ;; |
| 2608 | esac |
| 2609 | fi |
| 2610 | xmkmfpath="$ac_cv_path_xmkmfpath" |
| 2611 | if test -n "$xmkmfpath"; then |
| 2612 | echo "$ac_t""$xmkmfpath" 1>&6 |
| 2613 | else |
| 2614 | echo "$ac_t""no" 1>&6 |
| 2615 | fi |
| 2616 | |
| 2617 | |
| 2618 | # If we find X, set shell vars x_includes and x_libraries to the |
| 2619 | # paths, otherwise set no_x=yes. |
| 2620 | # Uses ac_ vars as temps to allow command line to override cache and checks. |
| 2621 | # --without-x overrides everything else, but does not touch the cache. |
| 2622 | echo $ac_n "checking for X""... $ac_c" 1>&6 |
| 2623 | echo "configure:2624: checking for X" >&5 |
| 2624 | |
| 2625 | # Check whether --with-x or --without-x was given. |
| 2626 | if test "${with_x+set}" = set; then |
| 2627 | withval="$with_x" |
| 2628 | : |
| 2629 | fi |
| 2630 | |
| 2631 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. |
| 2632 | if test "x$with_x" = xno; then |
| 2633 | # The user explicitly disabled X. |
| 2634 | have_x=disabled |
| 2635 | else |
| 2636 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then |
| 2637 | # Both variables are already set. |
| 2638 | have_x=yes |
| 2639 | else |
| 2640 | if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then |
| 2641 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2642 | else |
| 2643 | # One or both of the vars are not set, and there is no cached value. |
| 2644 | ac_x_includes=NO ac_x_libraries=NO |
| 2645 | rm -fr conftestdir |
| 2646 | if mkdir conftestdir; then |
| 2647 | cd conftestdir |
| 2648 | # Make sure to not put "make" in the Imakefile rules, since we grep it out. |
| 2649 | cat > Imakefile <<'EOF' |
| 2650 | acfindx: |
| 2651 | @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' |
| 2652 | EOF |
| 2653 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then |
| 2654 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
| 2655 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` |
| 2656 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. |
| 2657 | for ac_extension in a so sl; do |
| 2658 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && |
| 2659 | test -f $ac_im_libdir/libX11.$ac_extension; then |
| 2660 | ac_im_usrlibdir=$ac_im_libdir; break |
| 2661 | fi |
| 2662 | done |
| 2663 | # Screen out bogus values from the imake configuration. They are |
| 2664 | # bogus both because they are the default anyway, and because |
| 2665 | # using them would break gcc on systems where it needs fixed includes. |
| 2666 | case "$ac_im_incroot" in |
| 2667 | /usr/include) ;; |
| 2668 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;; |
| 2669 | esac |
| 2670 | case "$ac_im_usrlibdir" in |
| 2671 | /usr/lib | /lib) ;; |
| 2672 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;; |
| 2673 | esac |
| 2674 | fi |
| 2675 | cd .. |
| 2676 | rm -fr conftestdir |
| 2677 | fi |
| 2678 | |
| 2679 | if test "$ac_x_includes" = NO; then |
| 2680 | # Guess where to find include files, by looking for this one X11 .h file. |
| 2681 | test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h |
| 2682 | |
| 2683 | # First, try using that file with no special directory specified. |
| 2684 | cat > conftest.$ac_ext <<EOF |
| 2685 | #line 2686 "configure" |
| 2686 | #include "confdefs.h" |
| 2687 | #include <$x_direct_test_include> |
| 2688 | EOF |
| 2689 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 2690 | { (eval echo configure:2691: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 2691 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 2692 | if test -z "$ac_err"; then |
| 2693 | rm -rf conftest* |
| 2694 | # We can compile using X headers with no special include directory. |
| 2695 | ac_x_includes= |
| 2696 | else |
| 2697 | echo "$ac_err" >&5 |
| 2698 | echo "configure: failed program was:" >&5 |
| 2699 | cat conftest.$ac_ext >&5 |
| 2700 | rm -rf conftest* |
| 2701 | # Look for the header file in a standard set of common directories. |
| 2702 | # Check X11 before X11Rn because it is often a symlink to the current release. |
| 2703 | for ac_dir in \ |
| 2704 | /usr/X11/include \ |
| 2705 | /usr/X11R6/include \ |
| 2706 | /usr/X11R5/include \ |
| 2707 | /usr/X11R4/include \ |
| 2708 | \ |
| 2709 | /usr/include/X11 \ |
| 2710 | /usr/include/X11R6 \ |
| 2711 | /usr/include/X11R5 \ |
| 2712 | /usr/include/X11R4 \ |
| 2713 | \ |
| 2714 | /usr/local/X11/include \ |
| 2715 | /usr/local/X11R6/include \ |
| 2716 | /usr/local/X11R5/include \ |
| 2717 | /usr/local/X11R4/include \ |
| 2718 | \ |
| 2719 | /usr/local/include/X11 \ |
| 2720 | /usr/local/include/X11R6 \ |
| 2721 | /usr/local/include/X11R5 \ |
| 2722 | /usr/local/include/X11R4 \ |
| 2723 | \ |
| 2724 | /usr/X386/include \ |
| 2725 | /usr/x386/include \ |
| 2726 | /usr/XFree86/include/X11 \ |
| 2727 | \ |
| 2728 | /usr/include \ |
| 2729 | /usr/local/include \ |
| 2730 | /usr/unsupported/include \ |
| 2731 | /usr/athena/include \ |
| 2732 | /usr/local/x11r5/include \ |
| 2733 | /usr/lpp/Xamples/include \ |
| 2734 | \ |
| 2735 | /usr/openwin/include \ |
| 2736 | /usr/openwin/share/include \ |
| 2737 | ; \ |
| 2738 | do |
| 2739 | if test -r "$ac_dir/$x_direct_test_include"; then |
| 2740 | ac_x_includes=$ac_dir |
| 2741 | break |
| 2742 | fi |
| 2743 | done |
| 2744 | fi |
| 2745 | rm -f conftest* |
| 2746 | fi # $ac_x_includes = NO |
| 2747 | |
| 2748 | if test "$ac_x_libraries" = NO; then |
| 2749 | # Check for the libraries. |
| 2750 | |
| 2751 | test -z "$x_direct_test_library" && x_direct_test_library=Xt |
| 2752 | test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc |
| 2753 | |
| 2754 | # See if we find them without any special options. |
| 2755 | # Don't add to $LIBS permanently. |
| 2756 | ac_save_LIBS="$LIBS" |
| 2757 | LIBS="-l$x_direct_test_library $LIBS" |
| 2758 | cat > conftest.$ac_ext <<EOF |
| 2759 | #line 2760 "configure" |
| 2760 | #include "confdefs.h" |
| 2761 | |
| 2762 | int main() { |
| 2763 | ${x_direct_test_function}() |
| 2764 | ; return 0; } |
| 2765 | EOF |
| 2766 | if { (eval echo configure:2767: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 2767 | rm -rf conftest* |
| 2768 | LIBS="$ac_save_LIBS" |
| 2769 | # We can link X programs with no special library path. |
| 2770 | ac_x_libraries= |
| 2771 | else |
| 2772 | echo "configure: failed program was:" >&5 |
| 2773 | cat conftest.$ac_ext >&5 |
| 2774 | rm -rf conftest* |
| 2775 | LIBS="$ac_save_LIBS" |
| 2776 | # First see if replacing the include by lib works. |
| 2777 | # Check X11 before X11Rn because it is often a symlink to the current release. |
| 2778 | for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \ |
| 2779 | /usr/X11/lib \ |
| 2780 | /usr/X11R6/lib \ |
| 2781 | /usr/X11R5/lib \ |
| 2782 | /usr/X11R4/lib \ |
| 2783 | \ |
| 2784 | /usr/lib/X11 \ |
| 2785 | /usr/lib/X11R6 \ |
| 2786 | /usr/lib/X11R5 \ |
| 2787 | /usr/lib/X11R4 \ |
| 2788 | \ |
| 2789 | /usr/local/X11/lib \ |
| 2790 | /usr/local/X11R6/lib \ |
| 2791 | /usr/local/X11R5/lib \ |
| 2792 | /usr/local/X11R4/lib \ |
| 2793 | \ |
| 2794 | /usr/local/lib/X11 \ |
| 2795 | /usr/local/lib/X11R6 \ |
| 2796 | /usr/local/lib/X11R5 \ |
| 2797 | /usr/local/lib/X11R4 \ |
| 2798 | \ |
| 2799 | /usr/X386/lib \ |
| 2800 | /usr/x386/lib \ |
| 2801 | /usr/XFree86/lib/X11 \ |
| 2802 | \ |
| 2803 | /usr/lib \ |
| 2804 | /usr/local/lib \ |
| 2805 | /usr/unsupported/lib \ |
| 2806 | /usr/athena/lib \ |
| 2807 | /usr/local/x11r5/lib \ |
| 2808 | /usr/lpp/Xamples/lib \ |
| 2809 | /lib/usr/lib/X11 \ |
| 2810 | \ |
| 2811 | /usr/openwin/lib \ |
| 2812 | /usr/openwin/share/lib \ |
| 2813 | ; \ |
| 2814 | do |
| 2815 | for ac_extension in a so sl; do |
| 2816 | if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then |
| 2817 | ac_x_libraries=$ac_dir |
| 2818 | break 2 |
| 2819 | fi |
| 2820 | done |
| 2821 | done |
| 2822 | fi |
| 2823 | rm -f conftest* |
| 2824 | fi # $ac_x_libraries = NO |
| 2825 | |
| 2826 | if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then |
| 2827 | # Didn't find X anywhere. Cache the known absence of X. |
| 2828 | ac_cv_have_x="have_x=no" |
| 2829 | else |
| 2830 | # Record where we found X for the cache. |
| 2831 | ac_cv_have_x="have_x=yes \ |
| 2832 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" |
| 2833 | fi |
| 2834 | fi |
| 2835 | fi |
| 2836 | eval "$ac_cv_have_x" |
| 2837 | fi # $with_x != no |
| 2838 | |
| 2839 | if test "$have_x" != yes; then |
| 2840 | echo "$ac_t""$have_x" 1>&6 |
| 2841 | no_x=yes |
| 2842 | else |
| 2843 | # If each of the values was on the command line, it overrides each guess. |
| 2844 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes |
| 2845 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries |
| 2846 | # Update the cache value to reflect the command line values. |
| 2847 | ac_cv_have_x="have_x=yes \ |
| 2848 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" |
| 2849 | echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6 |
| 2850 | fi |
| 2851 | |
| 2852 | if test "$no_x" = yes; then |
| 2853 | # Not all programs may use this symbol, but it does not hurt to define it. |
| 2854 | cat >> confdefs.h <<\EOF |
| 2855 | #define X_DISPLAY_MISSING 1 |
| 2856 | EOF |
| 2857 | |
| 2858 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= |
| 2859 | else |
| 2860 | if test -n "$x_includes"; then |
| 2861 | X_CFLAGS="$X_CFLAGS -I$x_includes" |
| 2862 | fi |
| 2863 | |
| 2864 | # It would also be nice to do this for all -L options, not just this one. |
| 2865 | if test -n "$x_libraries"; then |
| 2866 | X_LIBS="$X_LIBS -L$x_libraries" |
| 2867 | # For Solaris; some versions of Sun CC require a space after -R and |
| 2868 | # others require no space. Words are not sufficient . . . . |
| 2869 | case "`(uname -sr) 2>/dev/null`" in |
| 2870 | "SunOS 5"*) |
| 2871 | echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6 |
| 2872 | echo "configure:2873: checking whether -R must be followed by a space" >&5 |
| 2873 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries" |
| 2874 | cat > conftest.$ac_ext <<EOF |
| 2875 | #line 2876 "configure" |
| 2876 | #include "confdefs.h" |
| 2877 | |
| 2878 | int main() { |
| 2879 | |
| 2880 | ; return 0; } |
| 2881 | EOF |
| 2882 | if { (eval echo configure:2883: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 2883 | rm -rf conftest* |
| 2884 | ac_R_nospace=yes |
| 2885 | else |
| 2886 | echo "configure: failed program was:" >&5 |
| 2887 | cat conftest.$ac_ext >&5 |
| 2888 | rm -rf conftest* |
| 2889 | ac_R_nospace=no |
| 2890 | fi |
| 2891 | rm -f conftest* |
| 2892 | if test $ac_R_nospace = yes; then |
| 2893 | echo "$ac_t""no" 1>&6 |
| 2894 | X_LIBS="$X_LIBS -R$x_libraries" |
| 2895 | else |
| 2896 | LIBS="$ac_xsave_LIBS -R $x_libraries" |
| 2897 | cat > conftest.$ac_ext <<EOF |
| 2898 | #line 2899 "configure" |
| 2899 | #include "confdefs.h" |
| 2900 | |
| 2901 | int main() { |
| 2902 | |
| 2903 | ; return 0; } |
| 2904 | EOF |
| 2905 | if { (eval echo configure:2906: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 2906 | rm -rf conftest* |
| 2907 | ac_R_space=yes |
| 2908 | else |
| 2909 | echo "configure: failed program was:" >&5 |
| 2910 | cat conftest.$ac_ext >&5 |
| 2911 | rm -rf conftest* |
| 2912 | ac_R_space=no |
| 2913 | fi |
| 2914 | rm -f conftest* |
| 2915 | if test $ac_R_space = yes; then |
| 2916 | echo "$ac_t""yes" 1>&6 |
| 2917 | X_LIBS="$X_LIBS -R $x_libraries" |
| 2918 | else |
| 2919 | echo "$ac_t""neither works" 1>&6 |
| 2920 | fi |
| 2921 | fi |
| 2922 | LIBS="$ac_xsave_LIBS" |
| 2923 | esac |
| 2924 | fi |
| 2925 | |
| 2926 | # Check for system-dependent libraries X programs must link with. |
| 2927 | # Do this before checking for the system-independent R6 libraries |
| 2928 | # (-lICE), since we may need -lsocket or whatever for X linking. |
| 2929 | |
| 2930 | if test "$ISC" = yes; then |
| 2931 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" |
| 2932 | else |
| 2933 | # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X |
| 2934 | # libraries were built with DECnet support. And karl@cs.umb.edu says |
| 2935 | # the Alpha needs dnet_stub (dnet does not exist). |
| 2936 | echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 |
| 2937 | echo "configure:2938: checking for dnet_ntoa in -ldnet" >&5 |
| 2938 | ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
| 2939 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 2940 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2941 | else |
| 2942 | ac_save_LIBS="$LIBS" |
| 2943 | LIBS="-ldnet $LIBS" |
| 2944 | cat > conftest.$ac_ext <<EOF |
| 2945 | #line 2946 "configure" |
| 2946 | #include "confdefs.h" |
| 2947 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 2948 | /* We use char because int might match the return type of a gcc2 |
| 2949 | builtin and then its argument prototype would still apply. */ |
| 2950 | char dnet_ntoa(); |
| 2951 | |
| 2952 | int main() { |
| 2953 | dnet_ntoa() |
| 2954 | ; return 0; } |
| 2955 | EOF |
| 2956 | if { (eval echo configure:2957: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 2957 | rm -rf conftest* |
| 2958 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 2959 | else |
| 2960 | echo "configure: failed program was:" >&5 |
| 2961 | cat conftest.$ac_ext >&5 |
| 2962 | rm -rf conftest* |
| 2963 | eval "ac_cv_lib_$ac_lib_var=no" |
| 2964 | fi |
| 2965 | rm -f conftest* |
| 2966 | LIBS="$ac_save_LIBS" |
| 2967 | |
| 2968 | fi |
| 2969 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 2970 | echo "$ac_t""yes" 1>&6 |
| 2971 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" |
| 2972 | else |
| 2973 | echo "$ac_t""no" 1>&6 |
| 2974 | fi |
| 2975 | |
| 2976 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then |
| 2977 | echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6 |
| 2978 | echo "configure:2979: checking for dnet_ntoa in -ldnet_stub" >&5 |
| 2979 | ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
| 2980 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 2981 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2982 | else |
| 2983 | ac_save_LIBS="$LIBS" |
| 2984 | LIBS="-ldnet_stub $LIBS" |
| 2985 | cat > conftest.$ac_ext <<EOF |
| 2986 | #line 2987 "configure" |
| 2987 | #include "confdefs.h" |
| 2988 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 2989 | /* We use char because int might match the return type of a gcc2 |
| 2990 | builtin and then its argument prototype would still apply. */ |
| 2991 | char dnet_ntoa(); |
| 2992 | |
| 2993 | int main() { |
| 2994 | dnet_ntoa() |
| 2995 | ; return 0; } |
| 2996 | EOF |
| 2997 | if { (eval echo configure:2998: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 2998 | rm -rf conftest* |
| 2999 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 3000 | else |
| 3001 | echo "configure: failed program was:" >&5 |
| 3002 | cat conftest.$ac_ext >&5 |
| 3003 | rm -rf conftest* |
| 3004 | eval "ac_cv_lib_$ac_lib_var=no" |
| 3005 | fi |
| 3006 | rm -f conftest* |
| 3007 | LIBS="$ac_save_LIBS" |
| 3008 | |
| 3009 | fi |
| 3010 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 3011 | echo "$ac_t""yes" 1>&6 |
| 3012 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" |
| 3013 | else |
| 3014 | echo "$ac_t""no" 1>&6 |
| 3015 | fi |
| 3016 | |
| 3017 | fi |
| 3018 | |
| 3019 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, |
| 3020 | # to get the SysV transport functions. |
| 3021 | # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4) |
| 3022 | # needs -lnsl. |
| 3023 | # The nsl library prevents programs from opening the X display |
| 3024 | # on Irix 5.2, according to dickey@clark.net. |
| 3025 | echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 |
| 3026 | echo "configure:3027: checking for gethostbyname" >&5 |
| 3027 | if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then |
| 3028 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3029 | else |
| 3030 | cat > conftest.$ac_ext <<EOF |
| 3031 | #line 3032 "configure" |
| 3032 | #include "confdefs.h" |
| 3033 | /* System header to define __stub macros and hopefully few prototypes, |
| 3034 | which can conflict with char gethostbyname(); below. */ |
| 3035 | #include <assert.h> |
| 3036 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3037 | /* We use char because int might match the return type of a gcc2 |
| 3038 | builtin and then its argument prototype would still apply. */ |
| 3039 | char gethostbyname(); |
| 3040 | |
| 3041 | int main() { |
| 3042 | |
| 3043 | /* The GNU C library defines this for functions which it implements |
| 3044 | to always fail with ENOSYS. Some functions are actually named |
| 3045 | something starting with __ and the normal name is an alias. */ |
| 3046 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) |
| 3047 | choke me |
| 3048 | #else |
| 3049 | gethostbyname(); |
| 3050 | #endif |
| 3051 | |
| 3052 | ; return 0; } |
| 3053 | EOF |
| 3054 | if { (eval echo configure:3055: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 3055 | rm -rf conftest* |
| 3056 | eval "ac_cv_func_gethostbyname=yes" |
| 3057 | else |
| 3058 | echo "configure: failed program was:" >&5 |
| 3059 | cat conftest.$ac_ext >&5 |
| 3060 | rm -rf conftest* |
| 3061 | eval "ac_cv_func_gethostbyname=no" |
| 3062 | fi |
| 3063 | rm -f conftest* |
| 3064 | fi |
| 3065 | |
| 3066 | if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then |
| 3067 | echo "$ac_t""yes" 1>&6 |
| 3068 | : |
| 3069 | else |
| 3070 | echo "$ac_t""no" 1>&6 |
| 3071 | fi |
| 3072 | |
| 3073 | if test $ac_cv_func_gethostbyname = no; then |
| 3074 | echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 |
| 3075 | echo "configure:3076: checking for gethostbyname in -lnsl" >&5 |
| 3076 | ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` |
| 3077 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 3078 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3079 | else |
| 3080 | ac_save_LIBS="$LIBS" |
| 3081 | LIBS="-lnsl $LIBS" |
| 3082 | cat > conftest.$ac_ext <<EOF |
| 3083 | #line 3084 "configure" |
| 3084 | #include "confdefs.h" |
| 3085 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3086 | /* We use char because int might match the return type of a gcc2 |
| 3087 | builtin and then its argument prototype would still apply. */ |
| 3088 | char gethostbyname(); |
| 3089 | |
| 3090 | int main() { |
| 3091 | gethostbyname() |
| 3092 | ; return 0; } |
| 3093 | EOF |
| 3094 | if { (eval echo configure:3095: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 3095 | rm -rf conftest* |
| 3096 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 3097 | else |
| 3098 | echo "configure: failed program was:" >&5 |
| 3099 | cat conftest.$ac_ext >&5 |
| 3100 | rm -rf conftest* |
| 3101 | eval "ac_cv_lib_$ac_lib_var=no" |
| 3102 | fi |
| 3103 | rm -f conftest* |
| 3104 | LIBS="$ac_save_LIBS" |
| 3105 | |
| 3106 | fi |
| 3107 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 3108 | echo "$ac_t""yes" 1>&6 |
| 3109 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" |
| 3110 | else |
| 3111 | echo "$ac_t""no" 1>&6 |
| 3112 | fi |
| 3113 | |
| 3114 | fi |
| 3115 | |
| 3116 | # lieder@skyler.mavd.honeywell.com says without -lsocket, |
| 3117 | # socket/setsockopt and other routines are undefined under SCO ODT |
| 3118 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary |
| 3119 | # on later versions), says simon@lia.di.epfl.ch: it contains |
| 3120 | # gethostby* variants that don't use the nameserver (or something). |
| 3121 | # -lsocket must be given before -lnsl if both are needed. |
| 3122 | # We assume that if connect needs -lnsl, so does gethostbyname. |
| 3123 | echo $ac_n "checking for connect""... $ac_c" 1>&6 |
| 3124 | echo "configure:3125: checking for connect" >&5 |
| 3125 | if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then |
| 3126 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3127 | else |
| 3128 | cat > conftest.$ac_ext <<EOF |
| 3129 | #line 3130 "configure" |
| 3130 | #include "confdefs.h" |
| 3131 | /* System header to define __stub macros and hopefully few prototypes, |
| 3132 | which can conflict with char connect(); below. */ |
| 3133 | #include <assert.h> |
| 3134 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3135 | /* We use char because int might match the return type of a gcc2 |
| 3136 | builtin and then its argument prototype would still apply. */ |
| 3137 | char connect(); |
| 3138 | |
| 3139 | int main() { |
| 3140 | |
| 3141 | /* The GNU C library defines this for functions which it implements |
| 3142 | to always fail with ENOSYS. Some functions are actually named |
| 3143 | something starting with __ and the normal name is an alias. */ |
| 3144 | #if defined (__stub_connect) || defined (__stub___connect) |
| 3145 | choke me |
| 3146 | #else |
| 3147 | connect(); |
| 3148 | #endif |
| 3149 | |
| 3150 | ; return 0; } |
| 3151 | EOF |
| 3152 | if { (eval echo configure:3153: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 3153 | rm -rf conftest* |
| 3154 | eval "ac_cv_func_connect=yes" |
| 3155 | else |
| 3156 | echo "configure: failed program was:" >&5 |
| 3157 | cat conftest.$ac_ext >&5 |
| 3158 | rm -rf conftest* |
| 3159 | eval "ac_cv_func_connect=no" |
| 3160 | fi |
| 3161 | rm -f conftest* |
| 3162 | fi |
| 3163 | |
| 3164 | if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then |
| 3165 | echo "$ac_t""yes" 1>&6 |
| 3166 | : |
| 3167 | else |
| 3168 | echo "$ac_t""no" 1>&6 |
| 3169 | fi |
| 3170 | |
| 3171 | if test $ac_cv_func_connect = no; then |
| 3172 | echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6 |
| 3173 | echo "configure:3174: checking for connect in -lsocket" >&5 |
| 3174 | ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'` |
| 3175 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 3176 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3177 | else |
| 3178 | ac_save_LIBS="$LIBS" |
| 3179 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" |
| 3180 | cat > conftest.$ac_ext <<EOF |
| 3181 | #line 3182 "configure" |
| 3182 | #include "confdefs.h" |
| 3183 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3184 | /* We use char because int might match the return type of a gcc2 |
| 3185 | builtin and then its argument prototype would still apply. */ |
| 3186 | char connect(); |
| 3187 | |
| 3188 | int main() { |
| 3189 | connect() |
| 3190 | ; return 0; } |
| 3191 | EOF |
| 3192 | if { (eval echo configure:3193: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 3193 | rm -rf conftest* |
| 3194 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 3195 | else |
| 3196 | echo "configure: failed program was:" >&5 |
| 3197 | cat conftest.$ac_ext >&5 |
| 3198 | rm -rf conftest* |
| 3199 | eval "ac_cv_lib_$ac_lib_var=no" |
| 3200 | fi |
| 3201 | rm -f conftest* |
| 3202 | LIBS="$ac_save_LIBS" |
| 3203 | |
| 3204 | fi |
| 3205 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 3206 | echo "$ac_t""yes" 1>&6 |
| 3207 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" |
| 3208 | else |
| 3209 | echo "$ac_t""no" 1>&6 |
| 3210 | fi |
| 3211 | |
| 3212 | fi |
| 3213 | |
| 3214 | # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX. |
| 3215 | echo $ac_n "checking for remove""... $ac_c" 1>&6 |
| 3216 | echo "configure:3217: checking for remove" >&5 |
| 3217 | if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then |
| 3218 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3219 | else |
| 3220 | cat > conftest.$ac_ext <<EOF |
| 3221 | #line 3222 "configure" |
| 3222 | #include "confdefs.h" |
| 3223 | /* System header to define __stub macros and hopefully few prototypes, |
| 3224 | which can conflict with char remove(); below. */ |
| 3225 | #include <assert.h> |
| 3226 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3227 | /* We use char because int might match the return type of a gcc2 |
| 3228 | builtin and then its argument prototype would still apply. */ |
| 3229 | char remove(); |
| 3230 | |
| 3231 | int main() { |
| 3232 | |
| 3233 | /* The GNU C library defines this for functions which it implements |
| 3234 | to always fail with ENOSYS. Some functions are actually named |
| 3235 | something starting with __ and the normal name is an alias. */ |
| 3236 | #if defined (__stub_remove) || defined (__stub___remove) |
| 3237 | choke me |
| 3238 | #else |
| 3239 | remove(); |
| 3240 | #endif |
| 3241 | |
| 3242 | ; return 0; } |
| 3243 | EOF |
| 3244 | if { (eval echo configure:3245: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 3245 | rm -rf conftest* |
| 3246 | eval "ac_cv_func_remove=yes" |
| 3247 | else |
| 3248 | echo "configure: failed program was:" >&5 |
| 3249 | cat conftest.$ac_ext >&5 |
| 3250 | rm -rf conftest* |
| 3251 | eval "ac_cv_func_remove=no" |
| 3252 | fi |
| 3253 | rm -f conftest* |
| 3254 | fi |
| 3255 | |
| 3256 | if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then |
| 3257 | echo "$ac_t""yes" 1>&6 |
| 3258 | : |
| 3259 | else |
| 3260 | echo "$ac_t""no" 1>&6 |
| 3261 | fi |
| 3262 | |
| 3263 | if test $ac_cv_func_remove = no; then |
| 3264 | echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6 |
| 3265 | echo "configure:3266: checking for remove in -lposix" >&5 |
| 3266 | ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'` |
| 3267 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 3268 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3269 | else |
| 3270 | ac_save_LIBS="$LIBS" |
| 3271 | LIBS="-lposix $LIBS" |
| 3272 | cat > conftest.$ac_ext <<EOF |
| 3273 | #line 3274 "configure" |
| 3274 | #include "confdefs.h" |
| 3275 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3276 | /* We use char because int might match the return type of a gcc2 |
| 3277 | builtin and then its argument prototype would still apply. */ |
| 3278 | char remove(); |
| 3279 | |
| 3280 | int main() { |
| 3281 | remove() |
| 3282 | ; return 0; } |
| 3283 | EOF |
| 3284 | if { (eval echo configure:3285: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 3285 | rm -rf conftest* |
| 3286 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 3287 | else |
| 3288 | echo "configure: failed program was:" >&5 |
| 3289 | cat conftest.$ac_ext >&5 |
| 3290 | rm -rf conftest* |
| 3291 | eval "ac_cv_lib_$ac_lib_var=no" |
| 3292 | fi |
| 3293 | rm -f conftest* |
| 3294 | LIBS="$ac_save_LIBS" |
| 3295 | |
| 3296 | fi |
| 3297 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 3298 | echo "$ac_t""yes" 1>&6 |
| 3299 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" |
| 3300 | else |
| 3301 | echo "$ac_t""no" 1>&6 |
| 3302 | fi |
| 3303 | |
| 3304 | fi |
| 3305 | |
| 3306 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. |
| 3307 | echo $ac_n "checking for shmat""... $ac_c" 1>&6 |
| 3308 | echo "configure:3309: checking for shmat" >&5 |
| 3309 | if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then |
| 3310 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3311 | else |
| 3312 | cat > conftest.$ac_ext <<EOF |
| 3313 | #line 3314 "configure" |
| 3314 | #include "confdefs.h" |
| 3315 | /* System header to define __stub macros and hopefully few prototypes, |
| 3316 | which can conflict with char shmat(); below. */ |
| 3317 | #include <assert.h> |
| 3318 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3319 | /* We use char because int might match the return type of a gcc2 |
| 3320 | builtin and then its argument prototype would still apply. */ |
| 3321 | char shmat(); |
| 3322 | |
| 3323 | int main() { |
| 3324 | |
| 3325 | /* The GNU C library defines this for functions which it implements |
| 3326 | to always fail with ENOSYS. Some functions are actually named |
| 3327 | something starting with __ and the normal name is an alias. */ |
| 3328 | #if defined (__stub_shmat) || defined (__stub___shmat) |
| 3329 | choke me |
| 3330 | #else |
| 3331 | shmat(); |
| 3332 | #endif |
| 3333 | |
| 3334 | ; return 0; } |
| 3335 | EOF |
| 3336 | if { (eval echo configure:3337: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 3337 | rm -rf conftest* |
| 3338 | eval "ac_cv_func_shmat=yes" |
| 3339 | else |
| 3340 | echo "configure: failed program was:" >&5 |
| 3341 | cat conftest.$ac_ext >&5 |
| 3342 | rm -rf conftest* |
| 3343 | eval "ac_cv_func_shmat=no" |
| 3344 | fi |
| 3345 | rm -f conftest* |
| 3346 | fi |
| 3347 | |
| 3348 | if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then |
| 3349 | echo "$ac_t""yes" 1>&6 |
| 3350 | : |
| 3351 | else |
| 3352 | echo "$ac_t""no" 1>&6 |
| 3353 | fi |
| 3354 | |
| 3355 | if test $ac_cv_func_shmat = no; then |
| 3356 | echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6 |
| 3357 | echo "configure:3358: checking for shmat in -lipc" >&5 |
| 3358 | ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'` |
| 3359 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 3360 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3361 | else |
| 3362 | ac_save_LIBS="$LIBS" |
| 3363 | LIBS="-lipc $LIBS" |
| 3364 | cat > conftest.$ac_ext <<EOF |
| 3365 | #line 3366 "configure" |
| 3366 | #include "confdefs.h" |
| 3367 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3368 | /* We use char because int might match the return type of a gcc2 |
| 3369 | builtin and then its argument prototype would still apply. */ |
| 3370 | char shmat(); |
| 3371 | |
| 3372 | int main() { |
| 3373 | shmat() |
| 3374 | ; return 0; } |
| 3375 | EOF |
| 3376 | if { (eval echo configure:3377: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 3377 | rm -rf conftest* |
| 3378 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 3379 | else |
| 3380 | echo "configure: failed program was:" >&5 |
| 3381 | cat conftest.$ac_ext >&5 |
| 3382 | rm -rf conftest* |
| 3383 | eval "ac_cv_lib_$ac_lib_var=no" |
| 3384 | fi |
| 3385 | rm -f conftest* |
| 3386 | LIBS="$ac_save_LIBS" |
| 3387 | |
| 3388 | fi |
| 3389 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 3390 | echo "$ac_t""yes" 1>&6 |
| 3391 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" |
| 3392 | else |
| 3393 | echo "$ac_t""no" 1>&6 |
| 3394 | fi |
| 3395 | |
| 3396 | fi |
| 3397 | fi |
| 3398 | |
| 3399 | # Check for libraries that X11R6 Xt/Xaw programs need. |
| 3400 | ac_save_LDFLAGS="$LDFLAGS" |
| 3401 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" |
| 3402 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to |
| 3403 | # check for ICE first), but we must link in the order -lSM -lICE or |
| 3404 | # we get undefined symbols. So assume we have SM if we have ICE. |
| 3405 | # These have to be linked with before -lX11, unlike the other |
| 3406 | # libraries we check for below, so use a different variable. |
| 3407 | # --interran@uluru.Stanford.EDU, kb@cs.umb.edu. |
| 3408 | echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6 |
| 3409 | echo "configure:3410: checking for IceConnectionNumber in -lICE" >&5 |
| 3410 | ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'` |
| 3411 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 3412 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3413 | else |
| 3414 | ac_save_LIBS="$LIBS" |
| 3415 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" |
| 3416 | cat > conftest.$ac_ext <<EOF |
| 3417 | #line 3418 "configure" |
| 3418 | #include "confdefs.h" |
| 3419 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3420 | /* We use char because int might match the return type of a gcc2 |
| 3421 | builtin and then its argument prototype would still apply. */ |
| 3422 | char IceConnectionNumber(); |
| 3423 | |
| 3424 | int main() { |
| 3425 | IceConnectionNumber() |
| 3426 | ; return 0; } |
| 3427 | EOF |
| 3428 | if { (eval echo configure:3429: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 3429 | rm -rf conftest* |
| 3430 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 3431 | else |
| 3432 | echo "configure: failed program was:" >&5 |
| 3433 | cat conftest.$ac_ext >&5 |
| 3434 | rm -rf conftest* |
| 3435 | eval "ac_cv_lib_$ac_lib_var=no" |
| 3436 | fi |
| 3437 | rm -f conftest* |
| 3438 | LIBS="$ac_save_LIBS" |
| 3439 | |
| 3440 | fi |
| 3441 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 3442 | echo "$ac_t""yes" 1>&6 |
| 3443 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" |
| 3444 | else |
| 3445 | echo "$ac_t""no" 1>&6 |
| 3446 | fi |
| 3447 | |
| 3448 | LDFLAGS="$ac_save_LDFLAGS" |
| 3449 | |
| 3450 | fi |
| 3451 | |
| 3452 | |
| 3453 | if test "$OS390Unix" = "yes"; then |
| 3454 | CFLAGS="$CFLAGS -W c,dll" |
| 3455 | LDFLAGS="$LDFLAGS -W l,dll" |
| 3456 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lSM -lICE -lXmu" |
| 3457 | fi |
| 3458 | |
| 3459 | |
| 3460 | if test -d "$x_includes" && test ! -d "$x_libraries"; then |
| 3461 | x_libraries=`echo "$x_includes" | sed s/include/lib/` |
| 3462 | echo "$ac_t""Corrected X libraries to $x_libraries" 1>&6 |
| 3463 | X_LIBS="$X_LIBS -L$x_libraries" |
| 3464 | if test "`(uname) 2>/dev/null`" = SunOS && |
| 3465 | uname -r | grep '^5' >/dev/null; then |
| 3466 | X_LIBS="$X_LIBS -R $x_libraries" |
| 3467 | fi |
| 3468 | fi |
| 3469 | |
| 3470 | if test -d "$x_libraries" && test ! -d "$x_includes"; then |
| 3471 | x_includes=`echo "$x_libraries" | sed s/lib/include/` |
| 3472 | echo "$ac_t""Corrected X includes to $x_includes" 1>&6 |
| 3473 | X_CFLAGS="$X_CFLAGS -I$x_includes" |
| 3474 | fi |
| 3475 | |
| 3476 | X_CFLAGS="`echo $X_CFLAGS\ | sed 's%-I/usr/include %%'`" |
| 3477 | X_LIBS="`echo $X_LIBS\ | sed 's%-L/usr/lib %%'`" |
| 3478 | X_LIBS="`echo $X_LIBS\ | sed -e 's%-R/usr/lib %%' -e 's%-R /usr/lib %%'`" |
| 3479 | |
| 3480 | |
| 3481 | echo $ac_n "checking if X11 header files can be found""... $ac_c" 1>&6 |
| 3482 | echo "configure:3483: checking if X11 header files can be found" >&5 |
| 3483 | cflags_save=$CFLAGS |
| 3484 | CFLAGS="$CFLAGS $X_CFLAGS" |
| 3485 | cat > conftest.$ac_ext <<EOF |
| 3486 | #line 3487 "configure" |
| 3487 | #include "confdefs.h" |
| 3488 | #include <X11/Xlib.h> |
| 3489 | int main() { |
| 3490 | |
| 3491 | ; return 0; } |
| 3492 | EOF |
| 3493 | if { (eval echo configure:3494: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| 3494 | rm -rf conftest* |
| 3495 | echo "$ac_t""yes" 1>&6 |
| 3496 | else |
| 3497 | echo "configure: failed program was:" >&5 |
| 3498 | cat conftest.$ac_ext >&5 |
| 3499 | rm -rf conftest* |
| 3500 | echo "$ac_t""no" 1>&6; no_x=yes |
| 3501 | fi |
| 3502 | rm -f conftest* |
| 3503 | CFLAGS=$cflags_save |
| 3504 | |
| 3505 | if test "${no_x-no}" = yes; then |
| 3506 | with_x=no |
| 3507 | else |
| 3508 | cat >> confdefs.h <<\EOF |
| 3509 | #define HAVE_X11 1 |
| 3510 | EOF |
| 3511 | |
| 3512 | X_LIB="-lXt -lX11"; |
| 3513 | |
| 3514 | |
| 3515 | ac_save_LDFLAGS="$LDFLAGS" |
| 3516 | LDFLAGS="-L$x_libraries $LDFLAGS" |
| 3517 | |
| 3518 | echo $ac_n "checking for _XdmcpAuthDoIt in -lXdmcp""... $ac_c" 1>&6 |
| 3519 | echo "configure:3520: checking for _XdmcpAuthDoIt in -lXdmcp" >&5 |
| 3520 | ac_lib_var=`echo Xdmcp'_'_XdmcpAuthDoIt | sed 'y%./+-%__p_%'` |
| 3521 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 3522 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3523 | else |
| 3524 | ac_save_LIBS="$LIBS" |
| 3525 | LIBS="-lXdmcp -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS -lXdmcp $LIBS" |
| 3526 | cat > conftest.$ac_ext <<EOF |
| 3527 | #line 3528 "configure" |
| 3528 | #include "confdefs.h" |
| 3529 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3530 | /* We use char because int might match the return type of a gcc2 |
| 3531 | builtin and then its argument prototype would still apply. */ |
| 3532 | char _XdmcpAuthDoIt(); |
| 3533 | |
| 3534 | int main() { |
| 3535 | _XdmcpAuthDoIt() |
| 3536 | ; return 0; } |
| 3537 | EOF |
| 3538 | if { (eval echo configure:3539: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 3539 | rm -rf conftest* |
| 3540 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 3541 | else |
| 3542 | echo "configure: failed program was:" >&5 |
| 3543 | cat conftest.$ac_ext >&5 |
| 3544 | rm -rf conftest* |
| 3545 | eval "ac_cv_lib_$ac_lib_var=no" |
| 3546 | fi |
| 3547 | rm -f conftest* |
| 3548 | LIBS="$ac_save_LIBS" |
| 3549 | |
| 3550 | fi |
| 3551 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 3552 | echo "$ac_t""yes" 1>&6 |
| 3553 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lXdmcp" |
| 3554 | else |
| 3555 | echo "$ac_t""no" 1>&6 |
| 3556 | fi |
| 3557 | |
| 3558 | |
| 3559 | echo $ac_n "checking for IceOpenConnection in -lICE""... $ac_c" 1>&6 |
| 3560 | echo "configure:3561: checking for IceOpenConnection in -lICE" >&5 |
| 3561 | ac_lib_var=`echo ICE'_'IceOpenConnection | sed 'y%./+-%__p_%'` |
| 3562 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 3563 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3564 | else |
| 3565 | ac_save_LIBS="$LIBS" |
| 3566 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" |
| 3567 | cat > conftest.$ac_ext <<EOF |
| 3568 | #line 3569 "configure" |
| 3569 | #include "confdefs.h" |
| 3570 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3571 | /* We use char because int might match the return type of a gcc2 |
| 3572 | builtin and then its argument prototype would still apply. */ |
| 3573 | char IceOpenConnection(); |
| 3574 | |
| 3575 | int main() { |
| 3576 | IceOpenConnection() |
| 3577 | ; return 0; } |
| 3578 | EOF |
| 3579 | if { (eval echo configure:3580: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 3580 | rm -rf conftest* |
| 3581 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 3582 | else |
| 3583 | echo "configure: failed program was:" >&5 |
| 3584 | cat conftest.$ac_ext >&5 |
| 3585 | rm -rf conftest* |
| 3586 | eval "ac_cv_lib_$ac_lib_var=no" |
| 3587 | fi |
| 3588 | rm -f conftest* |
| 3589 | LIBS="$ac_save_LIBS" |
| 3590 | |
| 3591 | fi |
| 3592 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 3593 | echo "$ac_t""yes" 1>&6 |
| 3594 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lSM -lICE" |
| 3595 | else |
| 3596 | echo "$ac_t""no" 1>&6 |
| 3597 | fi |
| 3598 | |
| 3599 | |
| 3600 | LDFLAGS="$X_LIBS $ac_save_LDFLAGS" |
| 3601 | echo $ac_n "checking for XpmCreatePixmapFromData in -lXpm""... $ac_c" 1>&6 |
| 3602 | echo "configure:3603: checking for XpmCreatePixmapFromData in -lXpm" >&5 |
| 3603 | ac_lib_var=`echo Xpm'_'XpmCreatePixmapFromData | sed 'y%./+-%__p_%'` |
| 3604 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 3605 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3606 | else |
| 3607 | ac_save_LIBS="$LIBS" |
| 3608 | LIBS="-lXpm -lXt $X_PRE_LIBS -lXpm -lX11 $X_EXTRA_LIBS $LIBS" |
| 3609 | cat > conftest.$ac_ext <<EOF |
| 3610 | #line 3611 "configure" |
| 3611 | #include "confdefs.h" |
| 3612 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3613 | /* We use char because int might match the return type of a gcc2 |
| 3614 | builtin and then its argument prototype would still apply. */ |
| 3615 | char XpmCreatePixmapFromData(); |
| 3616 | |
| 3617 | int main() { |
| 3618 | XpmCreatePixmapFromData() |
| 3619 | ; return 0; } |
| 3620 | EOF |
| 3621 | if { (eval echo configure:3622: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 3622 | rm -rf conftest* |
| 3623 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 3624 | else |
| 3625 | echo "configure: failed program was:" >&5 |
| 3626 | cat conftest.$ac_ext >&5 |
| 3627 | rm -rf conftest* |
| 3628 | eval "ac_cv_lib_$ac_lib_var=no" |
| 3629 | fi |
| 3630 | rm -f conftest* |
| 3631 | LIBS="$ac_save_LIBS" |
| 3632 | |
| 3633 | fi |
| 3634 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 3635 | echo "$ac_t""yes" 1>&6 |
| 3636 | X_PRE_LIBS="$X_PRE_LIBS -lXpm" |
| 3637 | else |
| 3638 | echo "$ac_t""no" 1>&6 |
| 3639 | fi |
| 3640 | |
| 3641 | |
| 3642 | echo $ac_n "checking if X11 header files implicitly declare return values""... $ac_c" 1>&6 |
| 3643 | echo "configure:3644: checking if X11 header files implicitly declare return values" >&5 |
| 3644 | cflags_save=$CFLAGS |
| 3645 | CFLAGS="$CFLAGS $X_CFLAGS -Werror" |
| 3646 | cat > conftest.$ac_ext <<EOF |
| 3647 | #line 3648 "configure" |
| 3648 | #include "confdefs.h" |
| 3649 | #include <X11/Xlib.h> |
| 3650 | int main() { |
| 3651 | |
| 3652 | ; return 0; } |
| 3653 | EOF |
| 3654 | if { (eval echo configure:3655: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| 3655 | rm -rf conftest* |
| 3656 | echo "$ac_t""no" 1>&6 |
| 3657 | else |
| 3658 | echo "configure: failed program was:" >&5 |
| 3659 | cat conftest.$ac_ext >&5 |
| 3660 | rm -rf conftest* |
| 3661 | CFLAGS="$CFLAGS -Wno-implicit-int" |
| 3662 | cat > conftest.$ac_ext <<EOF |
| 3663 | #line 3664 "configure" |
| 3664 | #include "confdefs.h" |
| 3665 | #include <X11/Xlib.h> |
| 3666 | int main() { |
| 3667 | |
| 3668 | ; return 0; } |
| 3669 | EOF |
| 3670 | if { (eval echo configure:3671: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| 3671 | rm -rf conftest* |
| 3672 | echo "$ac_t""yes" 1>&6; cflags_save="$cflags_save -Wno-implicit-int" |
| 3673 | else |
| 3674 | echo "configure: failed program was:" >&5 |
| 3675 | cat conftest.$ac_ext >&5 |
| 3676 | rm -rf conftest* |
| 3677 | echo "$ac_t""test failed" 1>&6 |
| 3678 | |
| 3679 | fi |
| 3680 | rm -f conftest* |
| 3681 | |
| 3682 | fi |
| 3683 | rm -f conftest* |
| 3684 | CFLAGS=$cflags_save |
| 3685 | |
| 3686 | LDFLAGS="$ac_save_LDFLAGS" |
| 3687 | |
| 3688 | fi |
| 3689 | fi |
| 3690 | |
| 3691 | test "x$with_x" = xno -a "x$BEOS" != "xyes" -a "x$MACOSX" != "xyes" -a "x$QNX" != "xyes" && enable_gui=no |
| 3692 | |
| 3693 | echo $ac_n "checking --enable-gui argument""... $ac_c" 1>&6 |
| 3694 | echo "configure:3695: checking --enable-gui argument" >&5 |
| 3695 | # Check whether --enable-gui or --disable-gui was given. |
| 3696 | if test "${enable_gui+set}" = set; then |
| 3697 | enableval="$enable_gui" |
| 3698 | : |
| 3699 | else |
| 3700 | enable_gui="auto" |
| 3701 | fi |
| 3702 | |
| 3703 | |
| 3704 | enable_gui_canon=`echo "_$enable_gui" | \ |
| 3705 | sed 's/[ _+-]//g;y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'` |
| 3706 | |
| 3707 | SKIP_GTK=YES |
| 3708 | SKIP_GTK2=YES |
| 3709 | SKIP_GNOME=YES |
| 3710 | SKIP_MOTIF=YES |
| 3711 | SKIP_ATHENA=YES |
| 3712 | SKIP_NEXTAW=YES |
| 3713 | SKIP_PHOTON=YES |
| 3714 | SKIP_BEOS=YES |
| 3715 | SKIP_CARBON=YES |
| 3716 | GUITYPE=NONE |
| 3717 | |
| 3718 | if test "x$BEOS" = "xyes"; then |
| 3719 | SKIP_BEOS= |
| 3720 | case "$enable_gui_canon" in |
| 3721 | no) echo "$ac_t""no GUI support" 1>&6 |
| 3722 | SKIP_BEOS=YES ;; |
| 3723 | yes|"") echo "$ac_t""yes - automatic GUI support" 1>&6 ;; |
| 3724 | auto) echo "$ac_t""auto - automatic GUI support" 1>&6 ;; |
| 3725 | beos) echo "$ac_t""BeOS GUI support" 1>&6 ;; |
| 3726 | *) echo "$ac_t""Sorry, $enable_gui GUI is not supported" 1>&6 |
| 3727 | SKIP_BEOS=YES ;; |
| 3728 | esac |
| 3729 | |
| 3730 | elif test "x$QNX" = "xyes" -a "x$with_x" = "xno" ; then |
| 3731 | SKIP_PHOTON= |
| 3732 | case "$enable_gui_canon" in |
| 3733 | no) echo "$ac_t""no GUI support" 1>&6 |
| 3734 | SKIP_PHOTON=YES ;; |
| 3735 | yes|"") echo "$ac_t""yes - automatic GUI support" 1>&6 ;; |
| 3736 | auto) echo "$ac_t""auto - automatic GUI support" 1>&6 ;; |
| 3737 | photon) echo "$ac_t""Photon GUI support" 1>&6 ;; |
| 3738 | *) echo "$ac_t""Sorry, $enable_gui GUI is not supported" 1>&6 |
| 3739 | SKIP_PHOTON=YES ;; |
| 3740 | esac |
| 3741 | |
| 3742 | elif test "x$MACOSX" = "xyes" -a "x$with_x" = "xno" ; then |
| 3743 | SKIP_CARBON= |
| 3744 | case "$enable_gui_canon" in |
| 3745 | no) echo "$ac_t""no GUI support" 1>&6 |
| 3746 | SKIP_CARBON=YES ;; |
| 3747 | yes|"") echo "$ac_t""yes - automatic GUI support" 1>&6 ;; |
| 3748 | auto) echo "$ac_t""auto - automatic GUI support" 1>&6 ;; |
| 3749 | carbon) echo "$ac_t""Carbon GUI support" 1>&6 ;; |
| 3750 | *) echo "$ac_t""Sorry, $enable_gui GUI is not supported" 1>&6 |
| 3751 | SKIP_CARBON=YES ;; |
| 3752 | esac |
| 3753 | |
| 3754 | else |
| 3755 | |
| 3756 | |
| 3757 | case "$enable_gui_canon" in |
| 3758 | no|none) echo "$ac_t""no GUI support" 1>&6 ;; |
| 3759 | yes|""|auto) echo "$ac_t""yes/auto - automatic GUI support" 1>&6 |
| 3760 | SKIP_GTK= |
| 3761 | SKIP_GTK2= |
| 3762 | SKIP_GNOME= |
| 3763 | SKIP_MOTIF= |
| 3764 | SKIP_ATHENA= |
| 3765 | SKIP_NEXTAW= |
| 3766 | SKIP_CARBON=;; |
| 3767 | gtk) echo "$ac_t""GTK+ 1.x GUI support" 1>&6 |
| 3768 | SKIP_GTK=;; |
| 3769 | gtk2) echo "$ac_t""GTK+ 2.x GUI support" 1>&6 |
| 3770 | SKIP_GTK= |
| 3771 | SKIP_GTK2=;; |
| 3772 | gnome) echo "$ac_t""GNOME 1.x GUI support" 1>&6 |
| 3773 | SKIP_GNOME= |
| 3774 | SKIP_GTK=;; |
| 3775 | gnome2) echo "$ac_t""GNOME 2.x GUI support" 1>&6 |
| 3776 | SKIP_GNOME= |
| 3777 | SKIP_GTK= |
| 3778 | SKIP_GTK2=;; |
| 3779 | motif) echo "$ac_t""Motif GUI support" 1>&6 |
| 3780 | SKIP_MOTIF=;; |
| 3781 | athena) echo "$ac_t""Athena GUI support" 1>&6 |
| 3782 | SKIP_ATHENA=;; |
| 3783 | nextaw) echo "$ac_t""neXtaw GUI support" 1>&6 |
| 3784 | SKIP_NEXTAW=;; |
| 3785 | *) echo "$ac_t""Sorry, $enable_gui GUI is not supported" 1>&6 ;; |
| 3786 | esac |
| 3787 | |
| 3788 | fi |
| 3789 | |
| 3790 | if test "x$SKIP_GTK" != "xYES" -a "$enable_gui_canon" != "gtk" -a "$enable_gui_canon" != "gtk2"; then |
| 3791 | echo $ac_n "checking whether or not to look for GTK""... $ac_c" 1>&6 |
| 3792 | echo "configure:3793: checking whether or not to look for GTK" >&5 |
| 3793 | # Check whether --enable-gtk-check or --disable-gtk-check was given. |
| 3794 | if test "${enable_gtk_check+set}" = set; then |
| 3795 | enableval="$enable_gtk_check" |
| 3796 | : |
| 3797 | else |
| 3798 | enable_gtk_check="yes" |
| 3799 | fi |
| 3800 | |
| 3801 | echo "$ac_t""$enable_gtk_check" 1>&6 |
| 3802 | if test "x$enable_gtk_check" = "xno"; then |
| 3803 | SKIP_GTK=YES |
| 3804 | SKIP_GNOME=YES |
| 3805 | fi |
| 3806 | fi |
| 3807 | |
| 3808 | if test "x$SKIP_GTK2" != "xYES" -a "$enable_gui_canon" != "gtk2" \ |
| 3809 | -a "$enable_gui_canon" != "gnome2"; then |
| 3810 | echo $ac_n "checking whether or not to look for GTK+ 2""... $ac_c" 1>&6 |
| 3811 | echo "configure:3812: checking whether or not to look for GTK+ 2" >&5 |
| 3812 | # Check whether --enable-gtk2-check or --disable-gtk2-check was given. |
| 3813 | if test "${enable_gtk2_check+set}" = set; then |
| 3814 | enableval="$enable_gtk2_check" |
| 3815 | : |
| 3816 | else |
| 3817 | enable_gtk2_check="yes" |
| 3818 | fi |
| 3819 | |
| 3820 | echo "$ac_t""$enable_gtk2_check" 1>&6 |
| 3821 | if test "x$enable_gtk2_check" = "xno"; then |
| 3822 | SKIP_GTK2=YES |
| 3823 | fi |
| 3824 | fi |
| 3825 | |
| 3826 | if test "x$SKIP_GNOME" != "xYES" -a "$enable_gui_canon" != "gnome" \ |
| 3827 | -a "$enable_gui_canon" != "gnome2"; then |
| 3828 | echo $ac_n "checking whether or not to look for GNOME""... $ac_c" 1>&6 |
| 3829 | echo "configure:3830: checking whether or not to look for GNOME" >&5 |
| 3830 | # Check whether --enable-gnome-check or --disable-gnome-check was given. |
| 3831 | if test "${enable_gnome_check+set}" = set; then |
| 3832 | enableval="$enable_gnome_check" |
| 3833 | : |
| 3834 | else |
| 3835 | enable_gnome_check="no" |
| 3836 | fi |
| 3837 | |
| 3838 | echo "$ac_t""$enable_gnome_check" 1>&6 |
| 3839 | if test "x$enable_gnome_check" = "xno"; then |
| 3840 | SKIP_GNOME=YES |
| 3841 | fi |
| 3842 | fi |
| 3843 | |
| 3844 | if test "x$SKIP_MOTIF" != "xYES" -a "$enable_gui_canon" != "motif"; then |
| 3845 | echo $ac_n "checking whether or not to look for Motif""... $ac_c" 1>&6 |
| 3846 | echo "configure:3847: checking whether or not to look for Motif" >&5 |
| 3847 | # Check whether --enable-motif-check or --disable-motif-check was given. |
| 3848 | if test "${enable_motif_check+set}" = set; then |
| 3849 | enableval="$enable_motif_check" |
| 3850 | : |
| 3851 | else |
| 3852 | enable_motif_check="yes" |
| 3853 | fi |
| 3854 | |
| 3855 | echo "$ac_t""$enable_motif_check" 1>&6 |
| 3856 | if test "x$enable_motif_check" = "xno"; then |
| 3857 | SKIP_MOTIF=YES |
| 3858 | fi |
| 3859 | fi |
| 3860 | |
| 3861 | if test "x$SKIP_ATHENA" != "xYES" -a "$enable_gui_canon" != "athena"; then |
| 3862 | echo $ac_n "checking whether or not to look for Athena""... $ac_c" 1>&6 |
| 3863 | echo "configure:3864: checking whether or not to look for Athena" >&5 |
| 3864 | # Check whether --enable-athena-check or --disable-athena-check was given. |
| 3865 | if test "${enable_athena_check+set}" = set; then |
| 3866 | enableval="$enable_athena_check" |
| 3867 | : |
| 3868 | else |
| 3869 | enable_athena_check="yes" |
| 3870 | fi |
| 3871 | |
| 3872 | echo "$ac_t""$enable_athena_check" 1>&6 |
| 3873 | if test "x$enable_athena_check" = "xno"; then |
| 3874 | SKIP_ATHENA=YES |
| 3875 | fi |
| 3876 | fi |
| 3877 | |
| 3878 | if test "x$SKIP_NEXTAW" != "xYES" -a "$enable_gui_canon" != "nextaw"; then |
| 3879 | echo $ac_n "checking whether or not to look for neXtaw""... $ac_c" 1>&6 |
| 3880 | echo "configure:3881: checking whether or not to look for neXtaw" >&5 |
| 3881 | # Check whether --enable-nextaw-check or --disable-nextaw-check was given. |
| 3882 | if test "${enable_nextaw_check+set}" = set; then |
| 3883 | enableval="$enable_nextaw_check" |
| 3884 | : |
| 3885 | else |
| 3886 | enable_nextaw_check="yes" |
| 3887 | fi |
| 3888 | |
| 3889 | echo "$ac_t""$enable_nextaw_check" 1>&6; |
| 3890 | if test "x$enable_nextaw_check" = "xno"; then |
| 3891 | SKIP_NEXTAW=YES |
| 3892 | fi |
| 3893 | fi |
| 3894 | |
| 3895 | if test "x$SKIP_CARBON" != "xYES" -a "$enable_gui_canon" != "carbon"; then |
| 3896 | echo $ac_n "checking whether or not to look for Carbon""... $ac_c" 1>&6 |
| 3897 | echo "configure:3898: checking whether or not to look for Carbon" >&5 |
| 3898 | # Check whether --enable-carbon-check or --disable-carbon-check was given. |
| 3899 | if test "${enable_carbon_check+set}" = set; then |
| 3900 | enableval="$enable_carbon_check" |
| 3901 | : |
| 3902 | else |
| 3903 | enable_carbon_check="yes" |
| 3904 | fi |
| 3905 | |
| 3906 | echo "$ac_t""$enable_carbon_check" 1>&6; |
| 3907 | if test "x$enable_carbon_check" = "xno"; then |
| 3908 | SKIP_CARBON=YES |
| 3909 | fi |
| 3910 | fi |
| 3911 | |
| 3912 | if test "x$MACOSX" = "xyes" -a -z "$SKIP_CARBON" -a "x$CARBON" = "xyes"; then |
| 3913 | echo $ac_n "checking for Carbon GUI""... $ac_c" 1>&6 |
| 3914 | echo "configure:3915: checking for Carbon GUI" >&5 |
| 3915 | echo "$ac_t""yes" 1>&6; |
| 3916 | GUITYPE=CARBONGUI |
| 3917 | SKIP_GTK=YES; |
| 3918 | SKIP_GTK2=YES; |
| 3919 | SKIP_GNOME=YES; |
| 3920 | SKIP_MOTIF=YES; |
| 3921 | SKIP_ATHENA=YES; |
| 3922 | SKIP_NEXTAW=YES; |
| 3923 | SKIP_PHOTON=YES; |
| 3924 | SKIP_BEOS=YES; |
| 3925 | SKIP_CARBON=YES |
| 3926 | fi |
| 3927 | |
| 3928 | |
| 3929 | |
| 3930 | |
| 3931 | |
| 3932 | |
| 3933 | |
| 3934 | |
| 3935 | |
| 3936 | |
| 3937 | if test -z "$SKIP_GTK"; then |
| 3938 | |
| 3939 | echo $ac_n "checking --with-gtk-prefix argument""... $ac_c" 1>&6 |
| 3940 | echo "configure:3941: checking --with-gtk-prefix argument" >&5 |
| 3941 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. |
| 3942 | if test "${with_gtk_prefix+set}" = set; then |
| 3943 | withval="$with_gtk_prefix" |
| 3944 | gtk_config_prefix="$withval"; echo "$ac_t""$gtk_config_prefix" 1>&6 |
| 3945 | else |
| 3946 | gtk_config_prefix=""; echo "$ac_t""no" 1>&6 |
| 3947 | fi |
| 3948 | |
| 3949 | |
| 3950 | echo $ac_n "checking --with-gtk-exec-prefix argument""... $ac_c" 1>&6 |
| 3951 | echo "configure:3952: checking --with-gtk-exec-prefix argument" >&5 |
| 3952 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. |
| 3953 | if test "${with_gtk_exec_prefix+set}" = set; then |
| 3954 | withval="$with_gtk_exec_prefix" |
| 3955 | gtk_config_exec_prefix="$withval"; echo "$ac_t""$gtk_config_prefix" 1>&6 |
| 3956 | else |
| 3957 | gtk_config_exec_prefix=""; echo "$ac_t""no" 1>&6 |
| 3958 | fi |
| 3959 | |
| 3960 | |
| 3961 | echo $ac_n "checking --disable-gtktest argument""... $ac_c" 1>&6 |
| 3962 | echo "configure:3963: checking --disable-gtktest argument" >&5 |
| 3963 | # Check whether --enable-gtktest or --disable-gtktest was given. |
| 3964 | if test "${enable_gtktest+set}" = set; then |
| 3965 | enableval="$enable_gtktest" |
| 3966 | : |
| 3967 | else |
| 3968 | enable_gtktest=yes |
| 3969 | fi |
| 3970 | |
| 3971 | if test "x$enable_gtktest" = "xyes" ; then |
| 3972 | echo "$ac_t""gtk test enabled" 1>&6 |
| 3973 | else |
| 3974 | echo "$ac_t""gtk test disabled" 1>&6 |
| 3975 | fi |
| 3976 | |
| 3977 | if test "x$gtk_config_prefix" != "x" ; then |
| 3978 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" |
| 3979 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config |
| 3980 | fi |
| 3981 | if test "x$gtk_config_exec_prefix" != "x" ; then |
| 3982 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" |
| 3983 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config |
| 3984 | fi |
| 3985 | if test "X$GTK_CONFIG" = "X"; then |
| 3986 | # Extract the first word of "gtk-config", so it can be a program name with args. |
| 3987 | set dummy gtk-config; ac_word=$2 |
| 3988 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| 3989 | echo "configure:3990: checking for $ac_word" >&5 |
| 3990 | if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then |
| 3991 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3992 | else |
| 3993 | case "$GTK_CONFIG" in |
| 3994 | /*) |
| 3995 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. |
| 3996 | ;; |
| 3997 | ?:/*) |
| 3998 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path. |
| 3999 | ;; |
| 4000 | *) |
| 4001 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 4002 | ac_dummy="$PATH" |
| 4003 | for ac_dir in $ac_dummy; do |
| 4004 | test -z "$ac_dir" && ac_dir=. |
| 4005 | if test -f $ac_dir/$ac_word; then |
| 4006 | ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word" |
| 4007 | break |
| 4008 | fi |
| 4009 | done |
| 4010 | IFS="$ac_save_ifs" |
| 4011 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" |
| 4012 | ;; |
| 4013 | esac |
| 4014 | fi |
| 4015 | GTK_CONFIG="$ac_cv_path_GTK_CONFIG" |
| 4016 | if test -n "$GTK_CONFIG"; then |
| 4017 | echo "$ac_t""$GTK_CONFIG" 1>&6 |
| 4018 | else |
| 4019 | echo "$ac_t""no" 1>&6 |
| 4020 | fi |
| 4021 | |
| 4022 | if test "X$GTK_CONFIG" = "Xno"; then |
| 4023 | # Extract the first word of "gtk12-config", so it can be a program name with args. |
| 4024 | set dummy gtk12-config; ac_word=$2 |
| 4025 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| 4026 | echo "configure:4027: checking for $ac_word" >&5 |
| 4027 | if eval "test \"`echo '$''{'ac_cv_path_GTK12_CONFIG'+set}'`\" = set"; then |
| 4028 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4029 | else |
| 4030 | case "$GTK12_CONFIG" in |
| 4031 | /*) |
| 4032 | ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a path. |
| 4033 | ;; |
| 4034 | ?:/*) |
| 4035 | ac_cv_path_GTK12_CONFIG="$GTK12_CONFIG" # Let the user override the test with a dos path. |
| 4036 | ;; |
| 4037 | *) |
| 4038 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 4039 | ac_dummy="$PATH" |
| 4040 | for ac_dir in $ac_dummy; do |
| 4041 | test -z "$ac_dir" && ac_dir=. |
| 4042 | if test -f $ac_dir/$ac_word; then |
| 4043 | ac_cv_path_GTK12_CONFIG="$ac_dir/$ac_word" |
| 4044 | break |
| 4045 | fi |
| 4046 | done |
| 4047 | IFS="$ac_save_ifs" |
| 4048 | test -z "$ac_cv_path_GTK12_CONFIG" && ac_cv_path_GTK12_CONFIG="no" |
| 4049 | ;; |
| 4050 | esac |
| 4051 | fi |
| 4052 | GTK12_CONFIG="$ac_cv_path_GTK12_CONFIG" |
| 4053 | if test -n "$GTK12_CONFIG"; then |
| 4054 | echo "$ac_t""$GTK12_CONFIG" 1>&6 |
| 4055 | else |
| 4056 | echo "$ac_t""no" 1>&6 |
| 4057 | fi |
| 4058 | |
| 4059 | GTK_CONFIG="$GTK12_CONFIG" |
| 4060 | fi |
| 4061 | else |
| 4062 | echo "$ac_t""Using GTK configuration program $GTK_CONFIG" 1>&6 |
| 4063 | fi |
| 4064 | if test "X$PKG_CONFIG" = "X"; then |
| 4065 | # Extract the first word of "pkg-config", so it can be a program name with args. |
| 4066 | set dummy pkg-config; ac_word=$2 |
| 4067 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| 4068 | echo "configure:4069: checking for $ac_word" >&5 |
| 4069 | if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then |
| 4070 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4071 | else |
| 4072 | case "$PKG_CONFIG" in |
| 4073 | /*) |
| 4074 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
| 4075 | ;; |
| 4076 | ?:/*) |
| 4077 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path. |
| 4078 | ;; |
| 4079 | *) |
| 4080 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 4081 | ac_dummy="$PATH" |
| 4082 | for ac_dir in $ac_dummy; do |
| 4083 | test -z "$ac_dir" && ac_dir=. |
| 4084 | if test -f $ac_dir/$ac_word; then |
| 4085 | ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word" |
| 4086 | break |
| 4087 | fi |
| 4088 | done |
| 4089 | IFS="$ac_save_ifs" |
| 4090 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" |
| 4091 | ;; |
| 4092 | esac |
| 4093 | fi |
| 4094 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" |
| 4095 | if test -n "$PKG_CONFIG"; then |
| 4096 | echo "$ac_t""$PKG_CONFIG" 1>&6 |
| 4097 | else |
| 4098 | echo "$ac_t""no" 1>&6 |
| 4099 | fi |
| 4100 | |
| 4101 | fi |
| 4102 | |
| 4103 | if test "x$GTK_CONFIG:$PKG_CONFIG" != "xno:no"; then |
| 4104 | if test "X$SKIP_GTK2" != "XYES"; then |
| 4105 | |
| 4106 | if test "X$GTK_CONFIG" != "Xno" -o "X$PKG_CONFIG" != "Xno"; then |
| 4107 | { |
| 4108 | min_gtk_version=2.2.0 |
| 4109 | echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6 |
| 4110 | echo "configure:4111: checking for GTK - version >= $min_gtk_version" >&5 |
| 4111 | no_gtk="" |
| 4112 | if (test "X$SKIP_GTK2" != "XYES" -a "X$PKG_CONFIG" != "Xno") \ |
| 4113 | && $PKG_CONFIG --exists gtk+-2.0; then |
| 4114 | { |
| 4115 | GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0` |
| 4116 | GTK_LIBS=`$PKG_CONFIG --libs gtk+-2.0` |
| 4117 | gtk_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ |
| 4118 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'` |
| 4119 | gtk_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ |
| 4120 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'` |
| 4121 | gtk_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ |
| 4122 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'` |
| 4123 | } |
| 4124 | elif test "X$GTK_CONFIG" != "Xno"; then |
| 4125 | { |
| 4126 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` |
| 4127 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` |
| 4128 | gtk_major_version=`$GTK_CONFIG $gtk_config_args --version | \ |
| 4129 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'` |
| 4130 | gtk_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ |
| 4131 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'` |
| 4132 | gtk_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ |
| 4133 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'` |
| 4134 | } |
| 4135 | else |
| 4136 | no_gtk=yes |
| 4137 | fi |
| 4138 | |
| 4139 | if test "x$enable_gtktest" = "xyes" -a "x$no_gtk" = "x"; then |
| 4140 | { |
| 4141 | ac_save_CFLAGS="$CFLAGS" |
| 4142 | ac_save_LIBS="$LIBS" |
| 4143 | CFLAGS="$CFLAGS $GTK_CFLAGS" |
| 4144 | LIBS="$LIBS $GTK_LIBS" |
| 4145 | |
| 4146 | rm -f conf.gtktest |
| 4147 | if test "$cross_compiling" = yes; then |
| 4148 | echo $ac_n "cross compiling; assumed OK... $ac_c" |
| 4149 | else |
| 4150 | cat > conftest.$ac_ext <<EOF |
| 4151 | #line 4152 "configure" |
| 4152 | #include "confdefs.h" |
| 4153 | |
| 4154 | #include <gtk/gtk.h> |
| 4155 | #include <stdio.h> |
| 4156 | |
| 4157 | int |
| 4158 | main () |
| 4159 | { |
| 4160 | int major, minor, micro; |
| 4161 | char *tmp_version; |
| 4162 | |
| 4163 | system ("touch conf.gtktest"); |
| 4164 | |
| 4165 | /* HP/UX 9 (%@#!) writes to sscanf strings */ |
| 4166 | tmp_version = g_strdup("$min_gtk_version"); |
| 4167 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { |
| 4168 | printf("%s, bad version string\n", "$min_gtk_version"); |
| 4169 | exit(1); |
| 4170 | } |
| 4171 | |
| 4172 | if ((gtk_major_version > major) || |
| 4173 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || |
| 4174 | ((gtk_major_version == major) && (gtk_minor_version == minor) && |
| 4175 | (gtk_micro_version >= micro))) |
| 4176 | { |
| 4177 | return 0; |
| 4178 | } |
| 4179 | return 1; |
| 4180 | } |
| 4181 | |
| 4182 | EOF |
| 4183 | if { (eval echo configure:4184: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
| 4184 | then |
| 4185 | : |
| 4186 | else |
| 4187 | echo "configure: failed program was:" >&5 |
| 4188 | cat conftest.$ac_ext >&5 |
| 4189 | rm -fr conftest* |
| 4190 | no_gtk=yes |
| 4191 | fi |
| 4192 | rm -fr conftest* |
| 4193 | fi |
| 4194 | |
| 4195 | CFLAGS="$ac_save_CFLAGS" |
| 4196 | LIBS="$ac_save_LIBS" |
| 4197 | } |
| 4198 | fi |
| 4199 | if test "x$no_gtk" = x ; then |
| 4200 | if test "x$enable_gtktest" = "xyes"; then |
| 4201 | echo "$ac_t""yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" 1>&6 |
| 4202 | else |
| 4203 | echo "$ac_t""found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" 1>&6 |
| 4204 | fi |
| 4205 | GTK_LIBNAME="$GTK_LIBS" |
| 4206 | GUI_INC_LOC="$GTK_CFLAGS" |
| 4207 | else |
| 4208 | { |
| 4209 | echo "$ac_t""no" 1>&6 |
| 4210 | GTK_CFLAGS="" |
| 4211 | GTK_LIBS="" |
| 4212 | : |
| 4213 | } |
| 4214 | fi |
| 4215 | } |
| 4216 | else |
| 4217 | GTK_CFLAGS="" |
| 4218 | GTK_LIBS="" |
| 4219 | : |
| 4220 | fi |
| 4221 | |
| 4222 | |
| 4223 | rm -f conf.gtktest |
| 4224 | |
| 4225 | if test "x$GTK_CFLAGS" != "x"; then |
| 4226 | SKIP_ATHENA=YES |
| 4227 | SKIP_NEXTAW=YES |
| 4228 | SKIP_MOTIF=YES |
| 4229 | GUITYPE=GTK |
| 4230 | |
| 4231 | fi |
| 4232 | fi |
| 4233 | |
| 4234 | if test "x$GUITYPE" != "xGTK"; then |
| 4235 | SKIP_GTK2=YES |
| 4236 | |
| 4237 | if test "X$GTK_CONFIG" != "Xno" -o "X$PKG_CONFIG" != "Xno"; then |
| 4238 | { |
| 4239 | min_gtk_version=1.1.16 |
| 4240 | echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6 |
| 4241 | echo "configure:4242: checking for GTK - version >= $min_gtk_version" >&5 |
| 4242 | no_gtk="" |
| 4243 | if (test "X$SKIP_GTK2" != "XYES" -a "X$PKG_CONFIG" != "Xno") \ |
| 4244 | && $PKG_CONFIG --exists gtk+-2.0; then |
| 4245 | { |
| 4246 | GTK_CFLAGS=`$PKG_CONFIG --cflags gtk+-2.0` |
| 4247 | GTK_LIBS=`$PKG_CONFIG --libs gtk+-2.0` |
| 4248 | gtk_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ |
| 4249 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'` |
| 4250 | gtk_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ |
| 4251 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'` |
| 4252 | gtk_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ |
| 4253 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'` |
| 4254 | } |
| 4255 | elif test "X$GTK_CONFIG" != "Xno"; then |
| 4256 | { |
| 4257 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` |
| 4258 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` |
| 4259 | gtk_major_version=`$GTK_CONFIG $gtk_config_args --version | \ |
| 4260 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'` |
| 4261 | gtk_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ |
| 4262 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'` |
| 4263 | gtk_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ |
| 4264 | sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'` |
| 4265 | } |
| 4266 | else |
| 4267 | no_gtk=yes |
| 4268 | fi |
| 4269 | |
| 4270 | if test "x$enable_gtktest" = "xyes" -a "x$no_gtk" = "x"; then |
| 4271 | { |
| 4272 | ac_save_CFLAGS="$CFLAGS" |
| 4273 | ac_save_LIBS="$LIBS" |
| 4274 | CFLAGS="$CFLAGS $GTK_CFLAGS" |
| 4275 | LIBS="$LIBS $GTK_LIBS" |
| 4276 | |
| 4277 | rm -f conf.gtktest |
| 4278 | if test "$cross_compiling" = yes; then |
| 4279 | echo $ac_n "cross compiling; assumed OK... $ac_c" |
| 4280 | else |
| 4281 | cat > conftest.$ac_ext <<EOF |
| 4282 | #line 4283 "configure" |
| 4283 | #include "confdefs.h" |
| 4284 | |
| 4285 | #include <gtk/gtk.h> |
| 4286 | #include <stdio.h> |
| 4287 | |
| 4288 | int |
| 4289 | main () |
| 4290 | { |
| 4291 | int major, minor, micro; |
| 4292 | char *tmp_version; |
| 4293 | |
| 4294 | system ("touch conf.gtktest"); |
| 4295 | |
| 4296 | /* HP/UX 9 (%@#!) writes to sscanf strings */ |
| 4297 | tmp_version = g_strdup("$min_gtk_version"); |
| 4298 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { |
| 4299 | printf("%s, bad version string\n", "$min_gtk_version"); |
| 4300 | exit(1); |
| 4301 | } |
| 4302 | |
| 4303 | if ((gtk_major_version > major) || |
| 4304 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || |
| 4305 | ((gtk_major_version == major) && (gtk_minor_version == minor) && |
| 4306 | (gtk_micro_version >= micro))) |
| 4307 | { |
| 4308 | return 0; |
| 4309 | } |
| 4310 | return 1; |
| 4311 | } |
| 4312 | |
| 4313 | EOF |
| 4314 | if { (eval echo configure:4315: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
| 4315 | then |
| 4316 | : |
| 4317 | else |
| 4318 | echo "configure: failed program was:" >&5 |
| 4319 | cat conftest.$ac_ext >&5 |
| 4320 | rm -fr conftest* |
| 4321 | no_gtk=yes |
| 4322 | fi |
| 4323 | rm -fr conftest* |
| 4324 | fi |
| 4325 | |
| 4326 | CFLAGS="$ac_save_CFLAGS" |
| 4327 | LIBS="$ac_save_LIBS" |
| 4328 | } |
| 4329 | fi |
| 4330 | if test "x$no_gtk" = x ; then |
| 4331 | if test "x$enable_gtktest" = "xyes"; then |
| 4332 | echo "$ac_t""yes; found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" 1>&6 |
| 4333 | else |
| 4334 | echo "$ac_t""found version $gtk_major_version.$gtk_minor_version.$gtk_micro_version" 1>&6 |
| 4335 | fi |
| 4336 | GTK_LIBNAME="$GTK_LIBS" |
| 4337 | GUI_INC_LOC="$GTK_CFLAGS" |
| 4338 | else |
| 4339 | { |
| 4340 | echo "$ac_t""no" 1>&6 |
| 4341 | GTK_CFLAGS="" |
| 4342 | GTK_LIBS="" |
| 4343 | : |
| 4344 | } |
| 4345 | fi |
| 4346 | } |
| 4347 | else |
| 4348 | GTK_CFLAGS="" |
| 4349 | GTK_LIBS="" |
| 4350 | : |
| 4351 | fi |
| 4352 | |
| 4353 | |
| 4354 | rm -f conf.gtktest |
| 4355 | |
| 4356 | if test "x$GTK_CFLAGS" != "x"; then |
| 4357 | SKIP_ATHENA=YES |
| 4358 | SKIP_NEXTAW=YES |
| 4359 | SKIP_MOTIF=YES |
| 4360 | GUITYPE=GTK |
| 4361 | |
| 4362 | fi |
| 4363 | fi |
| 4364 | fi |
| 4365 | if test "x$GUITYPE" = "xGTK"; then |
| 4366 | if test "$gtk_major_version" = 1 -a "0$gtk_minor_version" -lt 2 \ |
| 4367 | -o "$gtk_major_version" = 1 -a "$gtk_minor_version" = 2 -a "0$gtk_micro_version" -lt 3; then |
| 4368 | echo "$ac_t""this GTK version is old; version 1.2.3 or later is recommended" 1>&6 |
| 4369 | else |
| 4370 | { |
| 4371 | if test "0$gtk_major_version" -ge 2; then |
| 4372 | cat >> confdefs.h <<\EOF |
| 4373 | #define HAVE_GTK2 1 |
| 4374 | EOF |
| 4375 | |
| 4376 | if test "$gtk_minor_version" = 1 -a "0$gtk_micro_version" -ge 1 \ |
| 4377 | || test "0$gtk_minor_version" -ge 2 \ |
| 4378 | || test "0$gtk_major_version" -gt 2; then |
| 4379 | cat >> confdefs.h <<\EOF |
| 4380 | #define HAVE_GTK_MULTIHEAD 1 |
| 4381 | EOF |
| 4382 | |
| 4383 | fi |
| 4384 | fi |
| 4385 | if test -z "$SKIP_GNOME"; then |
| 4386 | { |
| 4387 | |
| 4388 | |
| 4389 | |
| 4390 | |
| 4391 | |
| 4392 | # Check whether --with-gnome-includes or --without-gnome-includes was given. |
| 4393 | if test "${with_gnome_includes+set}" = set; then |
| 4394 | withval="$with_gnome_includes" |
| 4395 | CFLAGS="$CFLAGS -I$withval" |
| 4396 | |
| 4397 | fi |
| 4398 | |
| 4399 | |
| 4400 | # Check whether --with-gnome-libs or --without-gnome-libs was given. |
| 4401 | if test "${with_gnome_libs+set}" = set; then |
| 4402 | withval="$with_gnome_libs" |
| 4403 | LDFLAGS="$LDFLAGS -L$withval" gnome_prefix=$withval |
| 4404 | |
| 4405 | fi |
| 4406 | |
| 4407 | |
| 4408 | # Check whether --with-gnome or --without-gnome was given. |
| 4409 | if test "${with_gnome+set}" = set; then |
| 4410 | withval="$with_gnome" |
| 4411 | if test x$withval = xyes; then |
| 4412 | want_gnome=yes |
| 4413 | have_gnome=yes |
| 4414 | else |
| 4415 | if test "x$withval" = xno; then |
| 4416 | want_gnome=no |
| 4417 | else |
| 4418 | want_gnome=yes |
| 4419 | LDFLAGS="$LDFLAGS -L$withval/lib" |
| 4420 | CFLAGS="$CFLAGS -I$withval/include" |
| 4421 | gnome_prefix=$withval/lib |
| 4422 | fi |
| 4423 | fi |
| 4424 | else |
| 4425 | want_gnome=yes |
| 4426 | fi |
| 4427 | |
| 4428 | |
| 4429 | if test "x$want_gnome" = xyes -a "0$gtk_major_version" -ge 2; then |
| 4430 | { |
| 4431 | echo $ac_n "checking for libgnomeui-2.0""... $ac_c" 1>&6 |
| 4432 | echo "configure:4433: checking for libgnomeui-2.0" >&5 |
| 4433 | if $PKG_CONFIG --exists libgnomeui-2.0; then |
| 4434 | echo "$ac_t""yes" 1>&6 |
| 4435 | GNOME_LIBS=`$PKG_CONFIG --libs-only-l libgnomeui-2.0` |
| 4436 | GNOME_LIBDIR=`$PKG_CONFIG --libs-only-L libgnomeui-2.0` |
| 4437 | GNOME_INCLUDEDIR=`$PKG_CONFIG --cflags libgnomeui-2.0` |
| 4438 | have_gnome=yes |
| 4439 | else |
| 4440 | echo "$ac_t""not found" 1>&6 |
| 4441 | if test "x" = xfail; then |
| 4442 | { echo "configure: error: Could not find libgnomeui-2.0 via pkg-config" 1>&2; exit 1; } |
| 4443 | fi |
| 4444 | fi |
| 4445 | } |
| 4446 | elif test "x$want_gnome" = xyes; then |
| 4447 | { |
| 4448 | # Extract the first word of "gnome-config", so it can be a program name with args. |
| 4449 | set dummy gnome-config; ac_word=$2 |
| 4450 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| 4451 | echo "configure:4452: checking for $ac_word" >&5 |
| 4452 | if eval "test \"`echo '$''{'ac_cv_path_GNOME_CONFIG'+set}'`\" = set"; then |
| 4453 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4454 | else |
| 4455 | case "$GNOME_CONFIG" in |
| 4456 | /*) |
| 4457 | ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path. |
| 4458 | ;; |
| 4459 | ?:/*) |
| 4460 | ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a dos path. |
| 4461 | ;; |
| 4462 | *) |
| 4463 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 4464 | ac_dummy="$PATH" |
| 4465 | for ac_dir in $ac_dummy; do |
| 4466 | test -z "$ac_dir" && ac_dir=. |
| 4467 | if test -f $ac_dir/$ac_word; then |
| 4468 | ac_cv_path_GNOME_CONFIG="$ac_dir/$ac_word" |
| 4469 | break |
| 4470 | fi |
| 4471 | done |
| 4472 | IFS="$ac_save_ifs" |
| 4473 | test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no" |
| 4474 | ;; |
| 4475 | esac |
| 4476 | fi |
| 4477 | GNOME_CONFIG="$ac_cv_path_GNOME_CONFIG" |
| 4478 | if test -n "$GNOME_CONFIG"; then |
| 4479 | echo "$ac_t""$GNOME_CONFIG" 1>&6 |
| 4480 | else |
| 4481 | echo "$ac_t""no" 1>&6 |
| 4482 | fi |
| 4483 | |
| 4484 | if test "$GNOME_CONFIG" = "no"; then |
| 4485 | no_gnome_config="yes" |
| 4486 | else |
| 4487 | echo $ac_n "checking if $GNOME_CONFIG works""... $ac_c" 1>&6 |
| 4488 | echo "configure:4489: checking if $GNOME_CONFIG works" >&5 |
| 4489 | if $GNOME_CONFIG --libs-only-l gnome >/dev/null 2>&1; then |
| 4490 | echo "$ac_t""yes" 1>&6 |
| 4491 | GNOME_LIBS="`$GNOME_CONFIG --libs-only-l gnome gnomeui`" |
| 4492 | GNOME_LIBDIR="`$GNOME_CONFIG --libs-only-L gnorba gnomeui`" |
| 4493 | GNOME_INCLUDEDIR="`$GNOME_CONFIG --cflags gnorba gnomeui`" |
| 4494 | have_gnome=yes |
| 4495 | else |
| 4496 | echo "$ac_t""no" 1>&6 |
| 4497 | no_gnome_config="yes" |
| 4498 | fi |
| 4499 | fi |
| 4500 | |
| 4501 | if test x$exec_prefix = xNONE; then |
| 4502 | if test x$prefix = xNONE; then |
| 4503 | gnome_prefix=$ac_default_prefix/lib |
| 4504 | else |
| 4505 | gnome_prefix=$prefix/lib |
| 4506 | fi |
| 4507 | else |
| 4508 | gnome_prefix=`eval echo \`echo $libdir\`` |
| 4509 | fi |
| 4510 | |
| 4511 | if test "$no_gnome_config" = "yes"; then |
| 4512 | echo $ac_n "checking for gnomeConf.sh file in $gnome_prefix""... $ac_c" 1>&6 |
| 4513 | echo "configure:4514: checking for gnomeConf.sh file in $gnome_prefix" >&5 |
| 4514 | if test -f $gnome_prefix/gnomeConf.sh; then |
| 4515 | echo "$ac_t""found" 1>&6 |
| 4516 | echo "loading gnome configuration from" \ |
| 4517 | "$gnome_prefix/gnomeConf.sh" |
| 4518 | . $gnome_prefix/gnomeConf.sh |
| 4519 | have_gnome=yes |
| 4520 | else |
| 4521 | echo "$ac_t""not found" 1>&6 |
| 4522 | if test x = xfail; then |
| 4523 | { echo "configure: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" 1>&2; exit 1; } |
| 4524 | fi |
| 4525 | fi |
| 4526 | fi |
| 4527 | } |
| 4528 | fi |
| 4529 | |
| 4530 | if test x$have_gnome = xyes ; then |
| 4531 | cat >> confdefs.h <<\EOF |
| 4532 | #define FEAT_GUI_GNOME 1 |
| 4533 | EOF |
| 4534 | |
| 4535 | GUI_INC_LOC="$GUI_INC_LOC $GNOME_INCLUDEDIR" |
| 4536 | GTK_LIBNAME="$GTK_LIBNAME $GNOME_LIBDIR $GNOME_LIBS" |
| 4537 | fi |
| 4538 | } |
| 4539 | fi |
| 4540 | } |
| 4541 | fi |
| 4542 | fi |
| 4543 | fi |
| 4544 | |
| 4545 | |
| 4546 | if test -z "$SKIP_MOTIF"; then |
| 4547 | 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" |
| 4548 | GUI_INC_LOC="`echo $GUI_INC_LOC|sed 's%-I%%g'`" |
| 4549 | |
| 4550 | echo $ac_n "checking for location of Motif GUI includes""... $ac_c" 1>&6 |
| 4551 | echo "configure:4552: checking for location of Motif GUI includes" >&5 |
| 4552 | gui_includes="`echo $x_includes|sed 's%/^/^/*$%%'` `echo "$gui_XXX" | sed s/XXX/include/g` $GUI_INC_LOC" |
| 4553 | GUI_INC_LOC= |
| 4554 | for try in $gui_includes; do |
| 4555 | if test -f "$try/Xm/Xm.h"; then |
| 4556 | GUI_INC_LOC=$try |
| 4557 | fi |
| 4558 | done |
| 4559 | if test -n "$GUI_INC_LOC"; then |
| 4560 | if test "$GUI_INC_LOC" = /usr/include; then |
| 4561 | GUI_INC_LOC= |
| 4562 | echo "$ac_t""in default path" 1>&6 |
| 4563 | else |
| 4564 | echo "$ac_t""$GUI_INC_LOC" 1>&6 |
| 4565 | fi |
| 4566 | else |
| 4567 | echo "$ac_t""<not found>" 1>&6 |
| 4568 | SKIP_MOTIF=YES |
| 4569 | fi |
| 4570 | fi |
| 4571 | |
| 4572 | |
| 4573 | if test -z "$SKIP_MOTIF"; then |
| 4574 | echo $ac_n "checking --with-motif-lib argument""... $ac_c" 1>&6 |
| 4575 | echo "configure:4576: checking --with-motif-lib argument" >&5 |
| 4576 | # Check whether --with-motif-lib or --without-motif-lib was given. |
| 4577 | if test "${with_motif_lib+set}" = set; then |
| 4578 | withval="$with_motif_lib" |
| 4579 | MOTIF_LIBNAME="${withval}" |
| 4580 | fi |
| 4581 | |
| 4582 | |
| 4583 | if test -n "$MOTIF_LIBNAME"; then |
| 4584 | echo "$ac_t""$MOTIF_LIBNAME" 1>&6 |
| 4585 | GUI_LIB_LOC= |
| 4586 | else |
| 4587 | echo "$ac_t""no" 1>&6 |
| 4588 | |
| 4589 | GUI_LIB_LOC="`echo $GUI_LIB_LOC|sed 's%-L%%g'`" |
| 4590 | |
| 4591 | echo $ac_n "checking for location of Motif GUI libs""... $ac_c" 1>&6 |
| 4592 | echo "configure:4593: checking for location of Motif GUI libs" >&5 |
| 4593 | 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" |
| 4594 | GUI_LIB_LOC= |
| 4595 | for try in $gui_libs; do |
| 4596 | for libtry in "$try"/libXm.a "$try"/libXm.so* "$try"/libXm.sl; do |
| 4597 | if test -f "$libtry"; then |
| 4598 | GUI_LIB_LOC=$try |
| 4599 | fi |
| 4600 | done |
| 4601 | done |
| 4602 | if test -n "$GUI_LIB_LOC"; then |
| 4603 | if test "$GUI_LIB_LOC" = /usr/lib; then |
| 4604 | GUI_LIB_LOC= |
| 4605 | echo "$ac_t""in default path" 1>&6 |
| 4606 | else |
| 4607 | if test -n "$GUI_LIB_LOC"; then |
| 4608 | echo "$ac_t""$GUI_LIB_LOC" 1>&6 |
| 4609 | if test "`(uname) 2>/dev/null`" = SunOS && |
| 4610 | uname -r | grep '^5' >/dev/null; then |
| 4611 | GUI_LIB_LOC="$GUI_LIB_LOC -R $GUI_LIB_LOC" |
| 4612 | fi |
| 4613 | fi |
| 4614 | fi |
| 4615 | MOTIF_LIBNAME=-lXm |
| 4616 | else |
| 4617 | echo "$ac_t""<not found>" 1>&6 |
| 4618 | SKIP_MOTIF=YES |
| 4619 | fi |
| 4620 | fi |
| 4621 | fi |
| 4622 | |
| 4623 | if test -z "$SKIP_MOTIF"; then |
| 4624 | SKIP_ATHENA=YES |
| 4625 | SKIP_NEXTAW=YES |
| 4626 | GUITYPE=MOTIF |
| 4627 | |
| 4628 | fi |
| 4629 | |
| 4630 | |
| 4631 | GUI_X_LIBS= |
| 4632 | |
| 4633 | if test -z "$SKIP_ATHENA"; then |
| 4634 | echo $ac_n "checking if Athena header files can be found""... $ac_c" 1>&6 |
| 4635 | echo "configure:4636: checking if Athena header files can be found" >&5 |
| 4636 | cflags_save=$CFLAGS |
| 4637 | CFLAGS="$CFLAGS $X_CFLAGS" |
| 4638 | cat > conftest.$ac_ext <<EOF |
| 4639 | #line 4640 "configure" |
| 4640 | #include "confdefs.h" |
| 4641 | |
| 4642 | #include <X11/Intrinsic.h> |
| 4643 | #include <X11/Xaw/Paned.h> |
| 4644 | int main() { |
| 4645 | |
| 4646 | ; return 0; } |
| 4647 | EOF |
| 4648 | if { (eval echo configure:4649: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| 4649 | rm -rf conftest* |
| 4650 | echo "$ac_t""yes" 1>&6 |
| 4651 | else |
| 4652 | echo "configure: failed program was:" >&5 |
| 4653 | cat conftest.$ac_ext >&5 |
| 4654 | rm -rf conftest* |
| 4655 | echo "$ac_t""no" 1>&6; SKIP_ATHENA=YES |
| 4656 | fi |
| 4657 | rm -f conftest* |
| 4658 | CFLAGS=$cflags_save |
| 4659 | fi |
| 4660 | |
| 4661 | if test -z "$SKIP_ATHENA"; then |
| 4662 | GUITYPE=ATHENA |
| 4663 | fi |
| 4664 | |
| 4665 | if test -z "$SKIP_NEXTAW"; then |
| 4666 | echo $ac_n "checking if neXtaw header files can be found""... $ac_c" 1>&6 |
| 4667 | echo "configure:4668: checking if neXtaw header files can be found" >&5 |
| 4668 | cflags_save=$CFLAGS |
| 4669 | CFLAGS="$CFLAGS $X_CFLAGS" |
| 4670 | cat > conftest.$ac_ext <<EOF |
| 4671 | #line 4672 "configure" |
| 4672 | #include "confdefs.h" |
| 4673 | |
| 4674 | #include <X11/Intrinsic.h> |
| 4675 | #include <X11/neXtaw/Paned.h> |
| 4676 | int main() { |
| 4677 | |
| 4678 | ; return 0; } |
| 4679 | EOF |
| 4680 | if { (eval echo configure:4681: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| 4681 | rm -rf conftest* |
| 4682 | echo "$ac_t""yes" 1>&6 |
| 4683 | else |
| 4684 | echo "configure: failed program was:" >&5 |
| 4685 | cat conftest.$ac_ext >&5 |
| 4686 | rm -rf conftest* |
| 4687 | echo "$ac_t""no" 1>&6; SKIP_NEXTAW=YES |
| 4688 | fi |
| 4689 | rm -f conftest* |
| 4690 | CFLAGS=$cflags_save |
| 4691 | fi |
| 4692 | |
| 4693 | if test -z "$SKIP_NEXTAW"; then |
| 4694 | GUITYPE=NEXTAW |
| 4695 | fi |
| 4696 | |
| 4697 | if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then |
| 4698 | if test -n "$GUI_INC_LOC"; then |
| 4699 | GUI_INC_LOC=-I"`echo $GUI_INC_LOC|sed 's%-I%%'`" |
| 4700 | fi |
| 4701 | if test -n "$GUI_LIB_LOC"; then |
| 4702 | GUI_LIB_LOC=-L"`echo $GUI_LIB_LOC|sed 's%-L%%'`" |
| 4703 | fi |
| 4704 | |
| 4705 | ldflags_save=$LDFLAGS |
| 4706 | LDFLAGS="$X_LIBS $LDFLAGS" |
| 4707 | echo $ac_n "checking for XShapeQueryExtension in -lXext""... $ac_c" 1>&6 |
| 4708 | echo "configure:4709: checking for XShapeQueryExtension in -lXext" >&5 |
| 4709 | ac_lib_var=`echo Xext'_'XShapeQueryExtension | sed 'y%./+-%__p_%'` |
| 4710 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 4711 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4712 | else |
| 4713 | ac_save_LIBS="$LIBS" |
| 4714 | LIBS="-lXext -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS" |
| 4715 | cat > conftest.$ac_ext <<EOF |
| 4716 | #line 4717 "configure" |
| 4717 | #include "confdefs.h" |
| 4718 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4719 | /* We use char because int might match the return type of a gcc2 |
| 4720 | builtin and then its argument prototype would still apply. */ |
| 4721 | char XShapeQueryExtension(); |
| 4722 | |
| 4723 | int main() { |
| 4724 | XShapeQueryExtension() |
| 4725 | ; return 0; } |
| 4726 | EOF |
| 4727 | if { (eval echo configure:4728: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 4728 | rm -rf conftest* |
| 4729 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 4730 | else |
| 4731 | echo "configure: failed program was:" >&5 |
| 4732 | cat conftest.$ac_ext >&5 |
| 4733 | rm -rf conftest* |
| 4734 | eval "ac_cv_lib_$ac_lib_var=no" |
| 4735 | fi |
| 4736 | rm -f conftest* |
| 4737 | LIBS="$ac_save_LIBS" |
| 4738 | |
| 4739 | fi |
| 4740 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 4741 | echo "$ac_t""yes" 1>&6 |
| 4742 | GUI_X_LIBS="-lXext" |
| 4743 | else |
| 4744 | echo "$ac_t""no" 1>&6 |
| 4745 | fi |
| 4746 | |
| 4747 | echo $ac_n "checking for wslen in -lw""... $ac_c" 1>&6 |
| 4748 | echo "configure:4749: checking for wslen in -lw" >&5 |
| 4749 | ac_lib_var=`echo w'_'wslen | sed 'y%./+-%__p_%'` |
| 4750 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 4751 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4752 | else |
| 4753 | ac_save_LIBS="$LIBS" |
| 4754 | LIBS="-lw $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS" |
| 4755 | cat > conftest.$ac_ext <<EOF |
| 4756 | #line 4757 "configure" |
| 4757 | #include "confdefs.h" |
| 4758 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4759 | /* We use char because int might match the return type of a gcc2 |
| 4760 | builtin and then its argument prototype would still apply. */ |
| 4761 | char wslen(); |
| 4762 | |
| 4763 | int main() { |
| 4764 | wslen() |
| 4765 | ; return 0; } |
| 4766 | EOF |
| 4767 | if { (eval echo configure:4768: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 4768 | rm -rf conftest* |
| 4769 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 4770 | else |
| 4771 | echo "configure: failed program was:" >&5 |
| 4772 | cat conftest.$ac_ext >&5 |
| 4773 | rm -rf conftest* |
| 4774 | eval "ac_cv_lib_$ac_lib_var=no" |
| 4775 | fi |
| 4776 | rm -f conftest* |
| 4777 | LIBS="$ac_save_LIBS" |
| 4778 | |
| 4779 | fi |
| 4780 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 4781 | echo "$ac_t""yes" 1>&6 |
| 4782 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lw" |
| 4783 | else |
| 4784 | echo "$ac_t""no" 1>&6 |
| 4785 | fi |
| 4786 | |
| 4787 | echo $ac_n "checking for dlsym in -ldl""... $ac_c" 1>&6 |
| 4788 | echo "configure:4789: checking for dlsym in -ldl" >&5 |
| 4789 | ac_lib_var=`echo dl'_'dlsym | sed 'y%./+-%__p_%'` |
| 4790 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 4791 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4792 | else |
| 4793 | ac_save_LIBS="$LIBS" |
| 4794 | LIBS="-ldl $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS" |
| 4795 | cat > conftest.$ac_ext <<EOF |
| 4796 | #line 4797 "configure" |
| 4797 | #include "confdefs.h" |
| 4798 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4799 | /* We use char because int might match the return type of a gcc2 |
| 4800 | builtin and then its argument prototype would still apply. */ |
| 4801 | char dlsym(); |
| 4802 | |
| 4803 | int main() { |
| 4804 | dlsym() |
| 4805 | ; return 0; } |
| 4806 | EOF |
| 4807 | if { (eval echo configure:4808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 4808 | rm -rf conftest* |
| 4809 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 4810 | else |
| 4811 | echo "configure: failed program was:" >&5 |
| 4812 | cat conftest.$ac_ext >&5 |
| 4813 | rm -rf conftest* |
| 4814 | eval "ac_cv_lib_$ac_lib_var=no" |
| 4815 | fi |
| 4816 | rm -f conftest* |
| 4817 | LIBS="$ac_save_LIBS" |
| 4818 | |
| 4819 | fi |
| 4820 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 4821 | echo "$ac_t""yes" 1>&6 |
| 4822 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldl" |
| 4823 | else |
| 4824 | echo "$ac_t""no" 1>&6 |
| 4825 | fi |
| 4826 | |
| 4827 | echo $ac_n "checking for XmuCreateStippledPixmap in -lXmu""... $ac_c" 1>&6 |
| 4828 | echo "configure:4829: checking for XmuCreateStippledPixmap in -lXmu" >&5 |
| 4829 | ac_lib_var=`echo Xmu'_'XmuCreateStippledPixmap | sed 'y%./+-%__p_%'` |
| 4830 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 4831 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4832 | else |
| 4833 | ac_save_LIBS="$LIBS" |
| 4834 | LIBS="-lXmu $GUI_X_LIBS -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS" |
| 4835 | cat > conftest.$ac_ext <<EOF |
| 4836 | #line 4837 "configure" |
| 4837 | #include "confdefs.h" |
| 4838 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4839 | /* We use char because int might match the return type of a gcc2 |
| 4840 | builtin and then its argument prototype would still apply. */ |
| 4841 | char XmuCreateStippledPixmap(); |
| 4842 | |
| 4843 | int main() { |
| 4844 | XmuCreateStippledPixmap() |
| 4845 | ; return 0; } |
| 4846 | EOF |
| 4847 | if { (eval echo configure:4848: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 4848 | rm -rf conftest* |
| 4849 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 4850 | else |
| 4851 | echo "configure: failed program was:" >&5 |
| 4852 | cat conftest.$ac_ext >&5 |
| 4853 | rm -rf conftest* |
| 4854 | eval "ac_cv_lib_$ac_lib_var=no" |
| 4855 | fi |
| 4856 | rm -f conftest* |
| 4857 | LIBS="$ac_save_LIBS" |
| 4858 | |
| 4859 | fi |
| 4860 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 4861 | echo "$ac_t""yes" 1>&6 |
| 4862 | GUI_X_LIBS="-lXmu $GUI_X_LIBS" |
| 4863 | else |
| 4864 | echo "$ac_t""no" 1>&6 |
| 4865 | fi |
| 4866 | |
| 4867 | if test -z "$SKIP_MOTIF"; then |
| 4868 | echo $ac_n "checking for XpEndJob in -lXp""... $ac_c" 1>&6 |
| 4869 | echo "configure:4870: checking for XpEndJob in -lXp" >&5 |
| 4870 | ac_lib_var=`echo Xp'_'XpEndJob | sed 'y%./+-%__p_%'` |
| 4871 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 4872 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4873 | else |
| 4874 | ac_save_LIBS="$LIBS" |
| 4875 | LIBS="-lXp $GUI_X_LIBS -lXm -lXt $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS" |
| 4876 | cat > conftest.$ac_ext <<EOF |
| 4877 | #line 4878 "configure" |
| 4878 | #include "confdefs.h" |
| 4879 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4880 | /* We use char because int might match the return type of a gcc2 |
| 4881 | builtin and then its argument prototype would still apply. */ |
| 4882 | char XpEndJob(); |
| 4883 | |
| 4884 | int main() { |
| 4885 | XpEndJob() |
| 4886 | ; return 0; } |
| 4887 | EOF |
| 4888 | if { (eval echo configure:4889: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 4889 | rm -rf conftest* |
| 4890 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 4891 | else |
| 4892 | echo "configure: failed program was:" >&5 |
| 4893 | cat conftest.$ac_ext >&5 |
| 4894 | rm -rf conftest* |
| 4895 | eval "ac_cv_lib_$ac_lib_var=no" |
| 4896 | fi |
| 4897 | rm -f conftest* |
| 4898 | LIBS="$ac_save_LIBS" |
| 4899 | |
| 4900 | fi |
| 4901 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 4902 | echo "$ac_t""yes" 1>&6 |
| 4903 | GUI_X_LIBS="-lXp $GUI_X_LIBS" |
| 4904 | else |
| 4905 | echo "$ac_t""no" 1>&6 |
| 4906 | fi |
| 4907 | |
| 4908 | fi |
| 4909 | LDFLAGS=$ldflags_save |
| 4910 | |
| 4911 | echo $ac_n "checking for extra X11 defines""... $ac_c" 1>&6 |
| 4912 | echo "configure:4913: checking for extra X11 defines" >&5 |
| 4913 | NARROW_PROTO= |
| 4914 | rm -fr conftestdir |
| 4915 | if mkdir conftestdir; then |
| 4916 | cd conftestdir |
| 4917 | cat > Imakefile <<'EOF' |
| 4918 | acfindx: |
| 4919 | @echo 'NARROW_PROTO="${PROTO_DEFINES}"' |
| 4920 | EOF |
| 4921 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then |
| 4922 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` |
| 4923 | fi |
| 4924 | cd .. |
| 4925 | rm -fr conftestdir |
| 4926 | fi |
| 4927 | if test -z "$NARROW_PROTO"; then |
| 4928 | echo "$ac_t""no" 1>&6 |
| 4929 | else |
| 4930 | echo "$ac_t""$NARROW_PROTO" 1>&6 |
| 4931 | fi |
| 4932 | |
| 4933 | fi |
| 4934 | |
| 4935 | if test "$enable_xsmp" = "yes"; then |
| 4936 | cppflags_save=$CPPFLAGS |
| 4937 | CPPFLAGS="$CPPFLAGS $X_CFLAGS" |
| 4938 | for ac_hdr in X11/SM/SMlib.h |
| 4939 | do |
| 4940 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
| 4941 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
| 4942 | echo "configure:4943: checking for $ac_hdr" >&5 |
| 4943 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
| 4944 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4945 | else |
| 4946 | cat > conftest.$ac_ext <<EOF |
| 4947 | #line 4948 "configure" |
| 4948 | #include "confdefs.h" |
| 4949 | #include <$ac_hdr> |
| 4950 | EOF |
| 4951 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 4952 | { (eval echo configure:4953: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 4953 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 4954 | if test -z "$ac_err"; then |
| 4955 | rm -rf conftest* |
| 4956 | eval "ac_cv_header_$ac_safe=yes" |
| 4957 | else |
| 4958 | echo "$ac_err" >&5 |
| 4959 | echo "configure: failed program was:" >&5 |
| 4960 | cat conftest.$ac_ext >&5 |
| 4961 | rm -rf conftest* |
| 4962 | eval "ac_cv_header_$ac_safe=no" |
| 4963 | fi |
| 4964 | rm -f conftest* |
| 4965 | fi |
| 4966 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 4967 | echo "$ac_t""yes" 1>&6 |
| 4968 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
| 4969 | cat >> confdefs.h <<EOF |
| 4970 | #define $ac_tr_hdr 1 |
| 4971 | EOF |
| 4972 | |
| 4973 | else |
| 4974 | echo "$ac_t""no" 1>&6 |
| 4975 | fi |
| 4976 | done |
| 4977 | |
| 4978 | CPPFLAGS=$cppflags_save |
| 4979 | fi |
| 4980 | |
| 4981 | |
| 4982 | if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF" -o -z "$SKIP_GTK"; then |
| 4983 | cppflags_save=$CPPFLAGS |
| 4984 | CPPFLAGS="$CPPFLAGS $X_CFLAGS" |
| 4985 | for ac_hdr in X11/xpm.h X11/Sunkeysym.h |
| 4986 | do |
| 4987 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
| 4988 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
| 4989 | echo "configure:4990: checking for $ac_hdr" >&5 |
| 4990 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
| 4991 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4992 | else |
| 4993 | cat > conftest.$ac_ext <<EOF |
| 4994 | #line 4995 "configure" |
| 4995 | #include "confdefs.h" |
| 4996 | #include <$ac_hdr> |
| 4997 | EOF |
| 4998 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 4999 | { (eval echo configure:5000: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 5000 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 5001 | if test -z "$ac_err"; then |
| 5002 | rm -rf conftest* |
| 5003 | eval "ac_cv_header_$ac_safe=yes" |
| 5004 | else |
| 5005 | echo "$ac_err" >&5 |
| 5006 | echo "configure: failed program was:" >&5 |
| 5007 | cat conftest.$ac_ext >&5 |
| 5008 | rm -rf conftest* |
| 5009 | eval "ac_cv_header_$ac_safe=no" |
| 5010 | fi |
| 5011 | rm -f conftest* |
| 5012 | fi |
| 5013 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 5014 | echo "$ac_t""yes" 1>&6 |
| 5015 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
| 5016 | cat >> confdefs.h <<EOF |
| 5017 | #define $ac_tr_hdr 1 |
| 5018 | EOF |
| 5019 | |
| 5020 | else |
| 5021 | echo "$ac_t""no" 1>&6 |
| 5022 | fi |
| 5023 | done |
| 5024 | |
| 5025 | |
| 5026 | if test ! "$enable_xim" = "no"; then |
| 5027 | echo $ac_n "checking for XIMText in X11/Xlib.h""... $ac_c" 1>&6 |
| 5028 | echo "configure:5029: checking for XIMText in X11/Xlib.h" >&5 |
| 5029 | cat > conftest.$ac_ext <<EOF |
| 5030 | #line 5031 "configure" |
| 5031 | #include "confdefs.h" |
| 5032 | #include <X11/Xlib.h> |
| 5033 | EOF |
| 5034 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 5035 | egrep "XIMText" >/dev/null 2>&1; then |
| 5036 | rm -rf conftest* |
| 5037 | echo "$ac_t""yes" 1>&6 |
| 5038 | else |
| 5039 | rm -rf conftest* |
| 5040 | echo "$ac_t""no; xim has been disabled" 1>&6; enable_xim = "no" |
| 5041 | fi |
| 5042 | rm -f conftest* |
| 5043 | |
| 5044 | fi |
| 5045 | CPPFLAGS=$cppflags_save |
| 5046 | |
| 5047 | if test "$enable_xim" = "auto" -a "$enable_hangulinput" != "yes" \ |
| 5048 | -a "x$GUITYPE" != "xNONE" ; then |
| 5049 | echo "$ac_t""X GUI selected; xim has been enabled" 1>&6 |
| 5050 | enable_xim="yes" |
| 5051 | fi |
| 5052 | fi |
| 5053 | |
| 5054 | if test -z "$SKIP_ATHENA" -o -z "$SKIP_NEXTAW" -o -z "$SKIP_MOTIF"; then |
| 5055 | cppflags_save=$CPPFLAGS |
| 5056 | CPPFLAGS="$CPPFLAGS $X_CFLAGS" |
| 5057 | for ac_hdr in X11/Xmu/Editres.h |
| 5058 | do |
| 5059 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
| 5060 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
| 5061 | echo "configure:5062: checking for $ac_hdr" >&5 |
| 5062 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
| 5063 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5064 | else |
| 5065 | cat > conftest.$ac_ext <<EOF |
| 5066 | #line 5067 "configure" |
| 5067 | #include "confdefs.h" |
| 5068 | #include <$ac_hdr> |
| 5069 | EOF |
| 5070 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 5071 | { (eval echo configure:5072: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 5072 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 5073 | if test -z "$ac_err"; then |
| 5074 | rm -rf conftest* |
| 5075 | eval "ac_cv_header_$ac_safe=yes" |
| 5076 | else |
| 5077 | echo "$ac_err" >&5 |
| 5078 | echo "configure: failed program was:" >&5 |
| 5079 | cat conftest.$ac_ext >&5 |
| 5080 | rm -rf conftest* |
| 5081 | eval "ac_cv_header_$ac_safe=no" |
| 5082 | fi |
| 5083 | rm -f conftest* |
| 5084 | fi |
| 5085 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 5086 | echo "$ac_t""yes" 1>&6 |
| 5087 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
| 5088 | cat >> confdefs.h <<EOF |
| 5089 | #define $ac_tr_hdr 1 |
| 5090 | EOF |
| 5091 | |
| 5092 | else |
| 5093 | echo "$ac_t""no" 1>&6 |
| 5094 | fi |
| 5095 | done |
| 5096 | |
| 5097 | CPPFLAGS=$cppflags_save |
| 5098 | fi |
| 5099 | |
| 5100 | if test -z "$SKIP_MOTIF"; then |
| 5101 | cppflags_save=$CPPFLAGS |
| 5102 | CPPFLAGS="$CPPFLAGS $X_CFLAGS" |
| 5103 | for ac_hdr in Xm/Xm.h Xm/XpmP.h |
| 5104 | do |
| 5105 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
| 5106 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
| 5107 | echo "configure:5108: checking for $ac_hdr" >&5 |
| 5108 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
| 5109 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5110 | else |
| 5111 | cat > conftest.$ac_ext <<EOF |
| 5112 | #line 5113 "configure" |
| 5113 | #include "confdefs.h" |
| 5114 | #include <$ac_hdr> |
| 5115 | EOF |
| 5116 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 5117 | { (eval echo configure:5118: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 5118 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 5119 | if test -z "$ac_err"; then |
| 5120 | rm -rf conftest* |
| 5121 | eval "ac_cv_header_$ac_safe=yes" |
| 5122 | else |
| 5123 | echo "$ac_err" >&5 |
| 5124 | echo "configure: failed program was:" >&5 |
| 5125 | cat conftest.$ac_ext >&5 |
| 5126 | rm -rf conftest* |
| 5127 | eval "ac_cv_header_$ac_safe=no" |
| 5128 | fi |
| 5129 | rm -f conftest* |
| 5130 | fi |
| 5131 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 5132 | echo "$ac_t""yes" 1>&6 |
| 5133 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
| 5134 | cat >> confdefs.h <<EOF |
| 5135 | #define $ac_tr_hdr 1 |
| 5136 | EOF |
| 5137 | |
| 5138 | else |
| 5139 | echo "$ac_t""no" 1>&6 |
| 5140 | fi |
| 5141 | done |
| 5142 | |
| 5143 | CPPFLAGS=$cppflags_save |
| 5144 | fi |
| 5145 | |
| 5146 | if test "x$GUITYPE" = "xNONE" -a "$enable_xim" = "yes"; then |
| 5147 | echo "$ac_t""no GUI selected; xim has been disabled" 1>&6 |
| 5148 | enable_xim="no" |
| 5149 | fi |
| 5150 | if test "x$GUITYPE" = "xNONE" -a "$enable_fontset" = "yes"; then |
| 5151 | echo "$ac_t""no GUI selected; fontset has been disabled" 1>&6 |
| 5152 | enable_fontset="no" |
| 5153 | fi |
| 5154 | if test "x$GUITYPE:$enable_fontset" = "xGTK:yes" -a "0$gtk_major_version" -ge 2; then |
| 5155 | echo "$ac_t""GTK+ 2 GUI selected; fontset has been disabled" 1>&6 |
| 5156 | enable_fontset="no" |
| 5157 | fi |
| 5158 | |
| 5159 | if test -z "$SKIP_BEOS"; then |
| 5160 | GUITYPE=BEOSGUI |
| 5161 | fi |
| 5162 | |
| 5163 | if test -z "$SKIP_PHOTON"; then |
| 5164 | GUITYPE=PHOTONGUI |
| 5165 | fi |
| 5166 | |
| 5167 | |
| 5168 | |
| 5169 | |
| 5170 | |
| 5171 | |
| 5172 | if test "$enable_workshop" = "yes" -a -n "$SKIP_MOTIF"; then |
| 5173 | { echo "configure: error: cannot use workshop without Motif" 1>&2; exit 1; } |
| 5174 | fi |
| 5175 | |
| 5176 | if test "$enable_xim" = "yes"; then |
| 5177 | cat >> confdefs.h <<\EOF |
| 5178 | #define FEAT_XIM 1 |
| 5179 | EOF |
| 5180 | |
| 5181 | fi |
| 5182 | if test "$enable_fontset" = "yes"; then |
| 5183 | cat >> confdefs.h <<\EOF |
| 5184 | #define FEAT_XFONTSET 1 |
| 5185 | EOF |
| 5186 | |
| 5187 | fi |
| 5188 | |
| 5189 | |
| 5190 | |
| 5191 | |
| 5192 | if test "$enable_hangulinput" = "yes"; then |
| 5193 | if test "x$GUITYPE" = "xNONE"; then |
| 5194 | echo "$ac_t""no GUI selected; hangul input has been disabled" 1>&6 |
| 5195 | enable_hangulinput=no |
| 5196 | else |
| 5197 | cat >> confdefs.h <<\EOF |
| 5198 | #define FEAT_HANGULIN 1 |
| 5199 | EOF |
| 5200 | |
| 5201 | HANGULIN_SRC=hangulin.c |
| 5202 | |
| 5203 | HANGULIN_OBJ=objects/hangulin.o |
| 5204 | |
| 5205 | fi |
| 5206 | fi |
| 5207 | |
| 5208 | |
| 5209 | echo $ac_n "checking quality of toupper""... $ac_c" 1>&6 |
| 5210 | echo "configure:5211: checking quality of toupper" >&5 |
| 5211 | if test "$cross_compiling" = yes; then |
| 5212 | { echo "configure: error: failed to compile test program" 1>&2; exit 1; } |
| 5213 | else |
| 5214 | cat > conftest.$ac_ext <<EOF |
| 5215 | #line 5216 "configure" |
| 5216 | #include "confdefs.h" |
| 5217 | #include <ctype.h> |
| 5218 | main() { exit(toupper('A') == 'A' && tolower('z') == 'z'); } |
| 5219 | EOF |
| 5220 | if { (eval echo configure:5221: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
| 5221 | then |
| 5222 | cat >> confdefs.h <<\EOF |
| 5223 | #define BROKEN_TOUPPER 1 |
| 5224 | EOF |
| 5225 | echo "$ac_t""bad" 1>&6 |
| 5226 | else |
| 5227 | echo "configure: failed program was:" >&5 |
| 5228 | cat conftest.$ac_ext >&5 |
| 5229 | rm -fr conftest* |
| 5230 | echo "$ac_t""good" 1>&6 |
| 5231 | fi |
| 5232 | rm -fr conftest* |
| 5233 | fi |
| 5234 | |
| 5235 | |
| 5236 | echo $ac_n "checking whether __DATE__ and __TIME__ work""... $ac_c" 1>&6 |
| 5237 | echo "configure:5238: checking whether __DATE__ and __TIME__ work" >&5 |
| 5238 | cat > conftest.$ac_ext <<EOF |
| 5239 | #line 5240 "configure" |
| 5240 | #include "confdefs.h" |
| 5241 | |
| 5242 | int main() { |
| 5243 | printf("(" __DATE__ " " __TIME__ ")"); |
| 5244 | ; return 0; } |
| 5245 | EOF |
| 5246 | if { (eval echo configure:5247: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| 5247 | rm -rf conftest* |
| 5248 | echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF |
| 5249 | #define HAVE_DATE_TIME 1 |
| 5250 | EOF |
| 5251 | |
| 5252 | else |
| 5253 | echo "configure: failed program was:" >&5 |
| 5254 | cat conftest.$ac_ext >&5 |
| 5255 | rm -rf conftest* |
| 5256 | echo "$ac_t""no" 1>&6 |
| 5257 | fi |
| 5258 | rm -f conftest* |
| 5259 | |
| 5260 | ac_safe=`echo "elf.h" | sed 'y%./+-%__p_%'` |
| 5261 | echo $ac_n "checking for elf.h""... $ac_c" 1>&6 |
| 5262 | echo "configure:5263: checking for elf.h" >&5 |
| 5263 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
| 5264 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5265 | else |
| 5266 | cat > conftest.$ac_ext <<EOF |
| 5267 | #line 5268 "configure" |
| 5268 | #include "confdefs.h" |
| 5269 | #include <elf.h> |
| 5270 | EOF |
| 5271 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 5272 | { (eval echo configure:5273: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 5273 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 5274 | if test -z "$ac_err"; then |
| 5275 | rm -rf conftest* |
| 5276 | eval "ac_cv_header_$ac_safe=yes" |
| 5277 | else |
| 5278 | echo "$ac_err" >&5 |
| 5279 | echo "configure: failed program was:" >&5 |
| 5280 | cat conftest.$ac_ext >&5 |
| 5281 | rm -rf conftest* |
| 5282 | eval "ac_cv_header_$ac_safe=no" |
| 5283 | fi |
| 5284 | rm -f conftest* |
| 5285 | fi |
| 5286 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 5287 | echo "$ac_t""yes" 1>&6 |
| 5288 | HAS_ELF=1 |
| 5289 | else |
| 5290 | echo "$ac_t""no" 1>&6 |
| 5291 | fi |
| 5292 | |
| 5293 | if test "$HAS_ELF" = 1; then |
| 5294 | echo $ac_n "checking for main in -lelf""... $ac_c" 1>&6 |
| 5295 | echo "configure:5296: checking for main in -lelf" >&5 |
| 5296 | ac_lib_var=`echo elf'_'main | sed 'y%./+-%__p_%'` |
| 5297 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 5298 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5299 | else |
| 5300 | ac_save_LIBS="$LIBS" |
| 5301 | LIBS="-lelf $LIBS" |
| 5302 | cat > conftest.$ac_ext <<EOF |
| 5303 | #line 5304 "configure" |
| 5304 | #include "confdefs.h" |
| 5305 | |
| 5306 | int main() { |
| 5307 | main() |
| 5308 | ; return 0; } |
| 5309 | EOF |
| 5310 | if { (eval echo configure:5311: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 5311 | rm -rf conftest* |
| 5312 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 5313 | else |
| 5314 | echo "configure: failed program was:" >&5 |
| 5315 | cat conftest.$ac_ext >&5 |
| 5316 | rm -rf conftest* |
| 5317 | eval "ac_cv_lib_$ac_lib_var=no" |
| 5318 | fi |
| 5319 | rm -f conftest* |
| 5320 | LIBS="$ac_save_LIBS" |
| 5321 | |
| 5322 | fi |
| 5323 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 5324 | echo "$ac_t""yes" 1>&6 |
| 5325 | ac_tr_lib=HAVE_LIB`echo elf | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
| 5326 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
| 5327 | cat >> confdefs.h <<EOF |
| 5328 | #define $ac_tr_lib 1 |
| 5329 | EOF |
| 5330 | |
| 5331 | LIBS="-lelf $LIBS" |
| 5332 | |
| 5333 | else |
| 5334 | echo "$ac_t""no" 1>&6 |
| 5335 | fi |
| 5336 | |
| 5337 | fi |
| 5338 | |
| 5339 | ac_header_dirent=no |
| 5340 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h |
| 5341 | do |
| 5342 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
| 5343 | echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6 |
| 5344 | echo "configure:5345: checking for $ac_hdr that defines DIR" >&5 |
| 5345 | if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then |
| 5346 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5347 | else |
| 5348 | cat > conftest.$ac_ext <<EOF |
| 5349 | #line 5350 "configure" |
| 5350 | #include "confdefs.h" |
| 5351 | #include <sys/types.h> |
| 5352 | #include <$ac_hdr> |
| 5353 | int main() { |
| 5354 | DIR *dirp = 0; |
| 5355 | ; return 0; } |
| 5356 | EOF |
| 5357 | if { (eval echo configure:5358: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| 5358 | rm -rf conftest* |
| 5359 | eval "ac_cv_header_dirent_$ac_safe=yes" |
| 5360 | else |
| 5361 | echo "configure: failed program was:" >&5 |
| 5362 | cat conftest.$ac_ext >&5 |
| 5363 | rm -rf conftest* |
| 5364 | eval "ac_cv_header_dirent_$ac_safe=no" |
| 5365 | fi |
| 5366 | rm -f conftest* |
| 5367 | fi |
| 5368 | if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then |
| 5369 | echo "$ac_t""yes" 1>&6 |
| 5370 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
| 5371 | cat >> confdefs.h <<EOF |
| 5372 | #define $ac_tr_hdr 1 |
| 5373 | EOF |
| 5374 | ac_header_dirent=$ac_hdr; break |
| 5375 | else |
| 5376 | echo "$ac_t""no" 1>&6 |
| 5377 | fi |
| 5378 | done |
| 5379 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 5380 | if test $ac_header_dirent = dirent.h; then |
| 5381 | echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6 |
| 5382 | echo "configure:5383: checking for opendir in -ldir" >&5 |
| 5383 | ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'` |
| 5384 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 5385 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5386 | else |
| 5387 | ac_save_LIBS="$LIBS" |
| 5388 | LIBS="-ldir $LIBS" |
| 5389 | cat > conftest.$ac_ext <<EOF |
| 5390 | #line 5391 "configure" |
| 5391 | #include "confdefs.h" |
| 5392 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 5393 | /* We use char because int might match the return type of a gcc2 |
| 5394 | builtin and then its argument prototype would still apply. */ |
| 5395 | char opendir(); |
| 5396 | |
| 5397 | int main() { |
| 5398 | opendir() |
| 5399 | ; return 0; } |
| 5400 | EOF |
| 5401 | if { (eval echo configure:5402: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 5402 | rm -rf conftest* |
| 5403 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 5404 | else |
| 5405 | echo "configure: failed program was:" >&5 |
| 5406 | cat conftest.$ac_ext >&5 |
| 5407 | rm -rf conftest* |
| 5408 | eval "ac_cv_lib_$ac_lib_var=no" |
| 5409 | fi |
| 5410 | rm -f conftest* |
| 5411 | LIBS="$ac_save_LIBS" |
| 5412 | |
| 5413 | fi |
| 5414 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 5415 | echo "$ac_t""yes" 1>&6 |
| 5416 | LIBS="$LIBS -ldir" |
| 5417 | else |
| 5418 | echo "$ac_t""no" 1>&6 |
| 5419 | fi |
| 5420 | |
| 5421 | else |
| 5422 | echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6 |
| 5423 | echo "configure:5424: checking for opendir in -lx" >&5 |
| 5424 | ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'` |
| 5425 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 5426 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5427 | else |
| 5428 | ac_save_LIBS="$LIBS" |
| 5429 | LIBS="-lx $LIBS" |
| 5430 | cat > conftest.$ac_ext <<EOF |
| 5431 | #line 5432 "configure" |
| 5432 | #include "confdefs.h" |
| 5433 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 5434 | /* We use char because int might match the return type of a gcc2 |
| 5435 | builtin and then its argument prototype would still apply. */ |
| 5436 | char opendir(); |
| 5437 | |
| 5438 | int main() { |
| 5439 | opendir() |
| 5440 | ; return 0; } |
| 5441 | EOF |
| 5442 | if { (eval echo configure:5443: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 5443 | rm -rf conftest* |
| 5444 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 5445 | else |
| 5446 | echo "configure: failed program was:" >&5 |
| 5447 | cat conftest.$ac_ext >&5 |
| 5448 | rm -rf conftest* |
| 5449 | eval "ac_cv_lib_$ac_lib_var=no" |
| 5450 | fi |
| 5451 | rm -f conftest* |
| 5452 | LIBS="$ac_save_LIBS" |
| 5453 | |
| 5454 | fi |
| 5455 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 5456 | echo "$ac_t""yes" 1>&6 |
| 5457 | LIBS="$LIBS -lx" |
| 5458 | else |
| 5459 | echo "$ac_t""no" 1>&6 |
| 5460 | fi |
| 5461 | |
| 5462 | fi |
| 5463 | |
| 5464 | |
| 5465 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 |
| 5466 | echo "configure:5467: checking for ANSI C header files" >&5 |
| 5467 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then |
| 5468 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5469 | else |
| 5470 | cat > conftest.$ac_ext <<EOF |
| 5471 | #line 5472 "configure" |
| 5472 | #include "confdefs.h" |
| 5473 | #include <stdlib.h> |
| 5474 | #include <stdarg.h> |
| 5475 | #include <string.h> |
| 5476 | #include <float.h> |
| 5477 | EOF |
| 5478 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 5479 | { (eval echo configure:5480: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 5480 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 5481 | if test -z "$ac_err"; then |
| 5482 | rm -rf conftest* |
| 5483 | ac_cv_header_stdc=yes |
| 5484 | else |
| 5485 | echo "$ac_err" >&5 |
| 5486 | echo "configure: failed program was:" >&5 |
| 5487 | cat conftest.$ac_ext >&5 |
| 5488 | rm -rf conftest* |
| 5489 | ac_cv_header_stdc=no |
| 5490 | fi |
| 5491 | rm -f conftest* |
| 5492 | |
| 5493 | if test $ac_cv_header_stdc = yes; then |
| 5494 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 5495 | cat > conftest.$ac_ext <<EOF |
| 5496 | #line 5497 "configure" |
| 5497 | #include "confdefs.h" |
| 5498 | #include <string.h> |
| 5499 | EOF |
| 5500 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 5501 | egrep "memchr" >/dev/null 2>&1; then |
| 5502 | : |
| 5503 | else |
| 5504 | rm -rf conftest* |
| 5505 | ac_cv_header_stdc=no |
| 5506 | fi |
| 5507 | rm -f conftest* |
| 5508 | |
| 5509 | fi |
| 5510 | |
| 5511 | if test $ac_cv_header_stdc = yes; then |
| 5512 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 5513 | cat > conftest.$ac_ext <<EOF |
| 5514 | #line 5515 "configure" |
| 5515 | #include "confdefs.h" |
| 5516 | #include <stdlib.h> |
| 5517 | EOF |
| 5518 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 5519 | egrep "free" >/dev/null 2>&1; then |
| 5520 | : |
| 5521 | else |
| 5522 | rm -rf conftest* |
| 5523 | ac_cv_header_stdc=no |
| 5524 | fi |
| 5525 | rm -f conftest* |
| 5526 | |
| 5527 | fi |
| 5528 | |
| 5529 | if test $ac_cv_header_stdc = yes; then |
| 5530 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 5531 | if test "$cross_compiling" = yes; then |
| 5532 | : |
| 5533 | else |
| 5534 | cat > conftest.$ac_ext <<EOF |
| 5535 | #line 5536 "configure" |
| 5536 | #include "confdefs.h" |
| 5537 | #include <ctype.h> |
| 5538 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 5539 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 5540 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 5541 | int main () { int i; for (i = 0; i < 256; i++) |
| 5542 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); |
| 5543 | exit (0); } |
| 5544 | |
| 5545 | EOF |
| 5546 | if { (eval echo configure:5547: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
| 5547 | then |
| 5548 | : |
| 5549 | else |
| 5550 | echo "configure: failed program was:" >&5 |
| 5551 | cat conftest.$ac_ext >&5 |
| 5552 | rm -fr conftest* |
| 5553 | ac_cv_header_stdc=no |
| 5554 | fi |
| 5555 | rm -fr conftest* |
| 5556 | fi |
| 5557 | |
| 5558 | fi |
| 5559 | fi |
| 5560 | |
| 5561 | echo "$ac_t""$ac_cv_header_stdc" 1>&6 |
| 5562 | if test $ac_cv_header_stdc = yes; then |
| 5563 | cat >> confdefs.h <<\EOF |
| 5564 | #define STDC_HEADERS 1 |
| 5565 | EOF |
| 5566 | |
| 5567 | fi |
| 5568 | |
| 5569 | echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6 |
| 5570 | echo "configure:5571: checking for sys/wait.h that is POSIX.1 compatible" >&5 |
| 5571 | if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then |
| 5572 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5573 | else |
| 5574 | cat > conftest.$ac_ext <<EOF |
| 5575 | #line 5576 "configure" |
| 5576 | #include "confdefs.h" |
| 5577 | #include <sys/types.h> |
| 5578 | #include <sys/wait.h> |
| 5579 | #ifndef WEXITSTATUS |
| 5580 | #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) |
| 5581 | #endif |
| 5582 | #ifndef WIFEXITED |
| 5583 | #define WIFEXITED(stat_val) (((stat_val) & 255) == 0) |
| 5584 | #endif |
| 5585 | int main() { |
| 5586 | int s; |
| 5587 | wait (&s); |
| 5588 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; |
| 5589 | ; return 0; } |
| 5590 | EOF |
| 5591 | if { (eval echo configure:5592: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| 5592 | rm -rf conftest* |
| 5593 | ac_cv_header_sys_wait_h=yes |
| 5594 | else |
| 5595 | echo "configure: failed program was:" >&5 |
| 5596 | cat conftest.$ac_ext >&5 |
| 5597 | rm -rf conftest* |
| 5598 | ac_cv_header_sys_wait_h=no |
| 5599 | fi |
| 5600 | rm -f conftest* |
| 5601 | fi |
| 5602 | |
| 5603 | echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6 |
| 5604 | if test $ac_cv_header_sys_wait_h = yes; then |
| 5605 | cat >> confdefs.h <<\EOF |
| 5606 | #define HAVE_SYS_WAIT_H 1 |
| 5607 | EOF |
| 5608 | |
| 5609 | fi |
| 5610 | |
| 5611 | |
| 5612 | if test $ac_cv_header_sys_wait_h = no; then |
| 5613 | echo $ac_n "checking for sys/wait.h that defines union wait""... $ac_c" 1>&6 |
| 5614 | echo "configure:5615: checking for sys/wait.h that defines union wait" >&5 |
| 5615 | cat > conftest.$ac_ext <<EOF |
| 5616 | #line 5617 "configure" |
| 5617 | #include "confdefs.h" |
| 5618 | #include <sys/wait.h> |
| 5619 | int main() { |
| 5620 | union wait xx, yy; xx = yy |
| 5621 | ; return 0; } |
| 5622 | EOF |
| 5623 | if { (eval echo configure:5624: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| 5624 | rm -rf conftest* |
| 5625 | echo "$ac_t""yes" 1>&6 |
| 5626 | cat >> confdefs.h <<\EOF |
| 5627 | #define HAVE_SYS_WAIT_H 1 |
| 5628 | EOF |
| 5629 | |
| 5630 | cat >> confdefs.h <<\EOF |
| 5631 | #define HAVE_UNION_WAIT 1 |
| 5632 | EOF |
| 5633 | |
| 5634 | else |
| 5635 | echo "configure: failed program was:" >&5 |
| 5636 | cat conftest.$ac_ext >&5 |
| 5637 | rm -rf conftest* |
| 5638 | echo "$ac_t""no" 1>&6 |
| 5639 | fi |
| 5640 | rm -f conftest* |
| 5641 | fi |
| 5642 | |
| 5643 | for ac_hdr in stdarg.h stdlib.h string.h sys/select.h sys/utsname.h \ |
| 5644 | termcap.h fcntl.h sgtty.h sys/ioctl.h sys/time.h termio.h \ |
| 5645 | iconv.h langinfo.h unistd.h stropts.h errno.h \ |
| 5646 | sys/resource.h sys/systeminfo.h locale.h \ |
| 5647 | sys/stream.h sys/ptem.h termios.h libc.h sys/statfs.h \ |
| 5648 | poll.h sys/poll.h pwd.h utime.h sys/param.h libintl.h \ |
| 5649 | libgen.h util/debug.h util/msg18n.h frame.h pthread_np.h \ |
| 5650 | sys/acl.h sys/access.h sys/sysctl.h sys/sysinfo.h wchar.h |
| 5651 | do |
| 5652 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
| 5653 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
| 5654 | echo "configure:5655: checking for $ac_hdr" >&5 |
| 5655 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
| 5656 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5657 | else |
| 5658 | cat > conftest.$ac_ext <<EOF |
| 5659 | #line 5660 "configure" |
| 5660 | #include "confdefs.h" |
| 5661 | #include <$ac_hdr> |
| 5662 | EOF |
| 5663 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 5664 | { (eval echo configure:5665: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 5665 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 5666 | if test -z "$ac_err"; then |
| 5667 | rm -rf conftest* |
| 5668 | eval "ac_cv_header_$ac_safe=yes" |
| 5669 | else |
| 5670 | echo "$ac_err" >&5 |
| 5671 | echo "configure: failed program was:" >&5 |
| 5672 | cat conftest.$ac_ext >&5 |
| 5673 | rm -rf conftest* |
| 5674 | eval "ac_cv_header_$ac_safe=no" |
| 5675 | fi |
| 5676 | rm -f conftest* |
| 5677 | fi |
| 5678 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 5679 | echo "$ac_t""yes" 1>&6 |
| 5680 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
| 5681 | cat >> confdefs.h <<EOF |
| 5682 | #define $ac_tr_hdr 1 |
| 5683 | EOF |
| 5684 | |
| 5685 | else |
| 5686 | echo "$ac_t""no" 1>&6 |
| 5687 | fi |
| 5688 | done |
| 5689 | |
| 5690 | |
| 5691 | if test "x$MACOSX" != "xyes"; then |
| 5692 | for ac_hdr in strings.h |
| 5693 | do |
| 5694 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
| 5695 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
| 5696 | echo "configure:5697: checking for $ac_hdr" >&5 |
| 5697 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
| 5698 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5699 | else |
| 5700 | cat > conftest.$ac_ext <<EOF |
| 5701 | #line 5702 "configure" |
| 5702 | #include "confdefs.h" |
| 5703 | #include <$ac_hdr> |
| 5704 | EOF |
| 5705 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 5706 | { (eval echo configure:5707: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 5707 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 5708 | if test -z "$ac_err"; then |
| 5709 | rm -rf conftest* |
| 5710 | eval "ac_cv_header_$ac_safe=yes" |
| 5711 | else |
| 5712 | echo "$ac_err" >&5 |
| 5713 | echo "configure: failed program was:" >&5 |
| 5714 | cat conftest.$ac_ext >&5 |
| 5715 | rm -rf conftest* |
| 5716 | eval "ac_cv_header_$ac_safe=no" |
| 5717 | fi |
| 5718 | rm -f conftest* |
| 5719 | fi |
| 5720 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 5721 | echo "$ac_t""yes" 1>&6 |
| 5722 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
| 5723 | cat >> confdefs.h <<EOF |
| 5724 | #define $ac_tr_hdr 1 |
| 5725 | EOF |
| 5726 | |
| 5727 | else |
| 5728 | echo "$ac_t""no" 1>&6 |
| 5729 | fi |
| 5730 | done |
| 5731 | |
| 5732 | fi |
| 5733 | |
| 5734 | echo $ac_n "checking if strings.h can be included after string.h""... $ac_c" 1>&6 |
| 5735 | echo "configure:5736: checking if strings.h can be included after string.h" >&5 |
| 5736 | cppflags_save=$CPPFLAGS |
| 5737 | CPPFLAGS="$CPPFLAGS $X_CFLAGS" |
| 5738 | cat > conftest.$ac_ext <<EOF |
| 5739 | #line 5740 "configure" |
| 5740 | #include "confdefs.h" |
| 5741 | |
| 5742 | #if defined(_AIX) && !defined(_AIX51) && !defined(_NO_PROTO) |
| 5743 | # define _NO_PROTO /* like in os_unix.h, causes conflict for AIX (Winn) */ |
| 5744 | /* but don't do it on AIX 5.1 (Uribarri) */ |
| 5745 | #endif |
| 5746 | #ifdef HAVE_XM_XM_H |
| 5747 | # include <Xm/Xm.h> /* This breaks it for HP-UX 11 (Squassabia) */ |
| 5748 | #endif |
| 5749 | #ifdef HAVE_STRING_H |
| 5750 | # include <string.h> |
| 5751 | #endif |
| 5752 | #if defined(HAVE_STRINGS_H) |
| 5753 | # include <strings.h> |
| 5754 | #endif |
| 5755 | |
| 5756 | int main() { |
| 5757 | int i; i = 0; |
| 5758 | ; return 0; } |
| 5759 | EOF |
| 5760 | if { (eval echo configure:5761: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| 5761 | rm -rf conftest* |
| 5762 | echo "$ac_t""yes" 1>&6 |
| 5763 | else |
| 5764 | echo "configure: failed program was:" >&5 |
| 5765 | cat conftest.$ac_ext >&5 |
| 5766 | rm -rf conftest* |
| 5767 | cat >> confdefs.h <<\EOF |
| 5768 | #define NO_STRINGS_WITH_STRING_H 1 |
| 5769 | EOF |
| 5770 | |
| 5771 | echo "$ac_t""no" 1>&6 |
| 5772 | fi |
| 5773 | rm -f conftest* |
| 5774 | CPPFLAGS=$cppflags_save |
| 5775 | |
| 5776 | if test $ac_cv_prog_gcc = yes; then |
| 5777 | echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6 |
| 5778 | echo "configure:5779: checking whether ${CC-cc} needs -traditional" >&5 |
| 5779 | if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then |
| 5780 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5781 | else |
| 5782 | ac_pattern="Autoconf.*'x'" |
| 5783 | cat > conftest.$ac_ext <<EOF |
| 5784 | #line 5785 "configure" |
| 5785 | #include "confdefs.h" |
| 5786 | #include <sgtty.h> |
| 5787 | Autoconf TIOCGETP |
| 5788 | EOF |
| 5789 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 5790 | egrep "$ac_pattern" >/dev/null 2>&1; then |
| 5791 | rm -rf conftest* |
| 5792 | ac_cv_prog_gcc_traditional=yes |
| 5793 | else |
| 5794 | rm -rf conftest* |
| 5795 | ac_cv_prog_gcc_traditional=no |
| 5796 | fi |
| 5797 | rm -f conftest* |
| 5798 | |
| 5799 | |
| 5800 | if test $ac_cv_prog_gcc_traditional = no; then |
| 5801 | cat > conftest.$ac_ext <<EOF |
| 5802 | #line 5803 "configure" |
| 5803 | #include "confdefs.h" |
| 5804 | #include <termio.h> |
| 5805 | Autoconf TCGETA |
| 5806 | EOF |
| 5807 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 5808 | egrep "$ac_pattern" >/dev/null 2>&1; then |
| 5809 | rm -rf conftest* |
| 5810 | ac_cv_prog_gcc_traditional=yes |
| 5811 | fi |
| 5812 | rm -f conftest* |
| 5813 | |
| 5814 | fi |
| 5815 | fi |
| 5816 | |
| 5817 | echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6 |
| 5818 | if test $ac_cv_prog_gcc_traditional = yes; then |
| 5819 | CC="$CC -traditional" |
| 5820 | fi |
| 5821 | fi |
| 5822 | |
| 5823 | echo $ac_n "checking for working const""... $ac_c" 1>&6 |
| 5824 | echo "configure:5825: checking for working const" >&5 |
| 5825 | if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then |
| 5826 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5827 | else |
| 5828 | cat > conftest.$ac_ext <<EOF |
| 5829 | #line 5830 "configure" |
| 5830 | #include "confdefs.h" |
| 5831 | |
| 5832 | int main() { |
| 5833 | |
| 5834 | /* Ultrix mips cc rejects this. */ |
| 5835 | typedef int charset[2]; const charset x; |
| 5836 | /* SunOS 4.1.1 cc rejects this. */ |
| 5837 | char const *const *ccp; |
| 5838 | char **p; |
| 5839 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 5840 | struct point {int x, y;}; |
| 5841 | static struct point const zero = {0,0}; |
| 5842 | /* AIX XL C 1.02.0.0 rejects this. |
| 5843 | It does not let you subtract one const X* pointer from another in an arm |
| 5844 | of an if-expression whose if-part is not a constant expression */ |
| 5845 | const char *g = "string"; |
| 5846 | ccp = &g + (g ? g-g : 0); |
| 5847 | /* HPUX 7.0 cc rejects these. */ |
| 5848 | ++ccp; |
| 5849 | p = (char**) ccp; |
| 5850 | ccp = (char const *const *) p; |
| 5851 | { /* SCO 3.2v4 cc rejects this. */ |
| 5852 | char *t; |
| 5853 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
| 5854 | |
| 5855 | *t++ = 0; |
| 5856 | } |
| 5857 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 5858 | int x[] = {25, 17}; |
| 5859 | const int *foo = &x[0]; |
| 5860 | ++foo; |
| 5861 | } |
| 5862 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 5863 | typedef const int *iptr; |
| 5864 | iptr p = 0; |
| 5865 | ++p; |
| 5866 | } |
| 5867 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 5868 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 5869 | struct s { int j; const int *ap[3]; }; |
| 5870 | struct s *b; b->j = 5; |
| 5871 | } |
| 5872 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 5873 | const int foo = 10; |
| 5874 | } |
| 5875 | |
| 5876 | ; return 0; } |
| 5877 | EOF |
| 5878 | if { (eval echo configure:5879: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| 5879 | rm -rf conftest* |
| 5880 | ac_cv_c_const=yes |
| 5881 | else |
| 5882 | echo "configure: failed program was:" >&5 |
| 5883 | cat conftest.$ac_ext >&5 |
| 5884 | rm -rf conftest* |
| 5885 | ac_cv_c_const=no |
| 5886 | fi |
| 5887 | rm -f conftest* |
| 5888 | fi |
| 5889 | |
| 5890 | echo "$ac_t""$ac_cv_c_const" 1>&6 |
| 5891 | if test $ac_cv_c_const = no; then |
| 5892 | cat >> confdefs.h <<\EOF |
| 5893 | #define const |
| 5894 | EOF |
| 5895 | |
| 5896 | fi |
| 5897 | |
| 5898 | echo $ac_n "checking for mode_t""... $ac_c" 1>&6 |
| 5899 | echo "configure:5900: checking for mode_t" >&5 |
| 5900 | if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then |
| 5901 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5902 | else |
| 5903 | cat > conftest.$ac_ext <<EOF |
| 5904 | #line 5905 "configure" |
| 5905 | #include "confdefs.h" |
| 5906 | #include <sys/types.h> |
| 5907 | #if STDC_HEADERS |
| 5908 | #include <stdlib.h> |
| 5909 | #include <stddef.h> |
| 5910 | #endif |
| 5911 | EOF |
| 5912 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 5913 | egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then |
| 5914 | rm -rf conftest* |
| 5915 | ac_cv_type_mode_t=yes |
| 5916 | else |
| 5917 | rm -rf conftest* |
| 5918 | ac_cv_type_mode_t=no |
| 5919 | fi |
| 5920 | rm -f conftest* |
| 5921 | |
| 5922 | fi |
| 5923 | echo "$ac_t""$ac_cv_type_mode_t" 1>&6 |
| 5924 | if test $ac_cv_type_mode_t = no; then |
| 5925 | cat >> confdefs.h <<\EOF |
| 5926 | #define mode_t int |
| 5927 | EOF |
| 5928 | |
| 5929 | fi |
| 5930 | |
| 5931 | echo $ac_n "checking for off_t""... $ac_c" 1>&6 |
| 5932 | echo "configure:5933: checking for off_t" >&5 |
| 5933 | if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then |
| 5934 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5935 | else |
| 5936 | cat > conftest.$ac_ext <<EOF |
| 5937 | #line 5938 "configure" |
| 5938 | #include "confdefs.h" |
| 5939 | #include <sys/types.h> |
| 5940 | #if STDC_HEADERS |
| 5941 | #include <stdlib.h> |
| 5942 | #include <stddef.h> |
| 5943 | #endif |
| 5944 | EOF |
| 5945 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 5946 | egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then |
| 5947 | rm -rf conftest* |
| 5948 | ac_cv_type_off_t=yes |
| 5949 | else |
| 5950 | rm -rf conftest* |
| 5951 | ac_cv_type_off_t=no |
| 5952 | fi |
| 5953 | rm -f conftest* |
| 5954 | |
| 5955 | fi |
| 5956 | echo "$ac_t""$ac_cv_type_off_t" 1>&6 |
| 5957 | if test $ac_cv_type_off_t = no; then |
| 5958 | cat >> confdefs.h <<\EOF |
| 5959 | #define off_t long |
| 5960 | EOF |
| 5961 | |
| 5962 | fi |
| 5963 | |
| 5964 | echo $ac_n "checking for pid_t""... $ac_c" 1>&6 |
| 5965 | echo "configure:5966: checking for pid_t" >&5 |
| 5966 | if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then |
| 5967 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5968 | else |
| 5969 | cat > conftest.$ac_ext <<EOF |
| 5970 | #line 5971 "configure" |
| 5971 | #include "confdefs.h" |
| 5972 | #include <sys/types.h> |
| 5973 | #if STDC_HEADERS |
| 5974 | #include <stdlib.h> |
| 5975 | #include <stddef.h> |
| 5976 | #endif |
| 5977 | EOF |
| 5978 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 5979 | egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then |
| 5980 | rm -rf conftest* |
| 5981 | ac_cv_type_pid_t=yes |
| 5982 | else |
| 5983 | rm -rf conftest* |
| 5984 | ac_cv_type_pid_t=no |
| 5985 | fi |
| 5986 | rm -f conftest* |
| 5987 | |
| 5988 | fi |
| 5989 | echo "$ac_t""$ac_cv_type_pid_t" 1>&6 |
| 5990 | if test $ac_cv_type_pid_t = no; then |
| 5991 | cat >> confdefs.h <<\EOF |
| 5992 | #define pid_t int |
| 5993 | EOF |
| 5994 | |
| 5995 | fi |
| 5996 | |
| 5997 | echo $ac_n "checking for size_t""... $ac_c" 1>&6 |
| 5998 | echo "configure:5999: checking for size_t" >&5 |
| 5999 | if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then |
| 6000 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 6001 | else |
| 6002 | cat > conftest.$ac_ext <<EOF |
| 6003 | #line 6004 "configure" |
| 6004 | #include "confdefs.h" |
| 6005 | #include <sys/types.h> |
| 6006 | #if STDC_HEADERS |
| 6007 | #include <stdlib.h> |
| 6008 | #include <stddef.h> |
| 6009 | #endif |
| 6010 | EOF |
| 6011 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 6012 | egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then |
| 6013 | rm -rf conftest* |
| 6014 | ac_cv_type_size_t=yes |
| 6015 | else |
| 6016 | rm -rf conftest* |
| 6017 | ac_cv_type_size_t=no |
| 6018 | fi |
| 6019 | rm -f conftest* |
| 6020 | |
| 6021 | fi |
| 6022 | echo "$ac_t""$ac_cv_type_size_t" 1>&6 |
| 6023 | if test $ac_cv_type_size_t = no; then |
| 6024 | cat >> confdefs.h <<\EOF |
| 6025 | #define size_t unsigned |
| 6026 | EOF |
| 6027 | |
| 6028 | fi |
| 6029 | |
| 6030 | echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6 |
| 6031 | echo "configure:6032: checking for uid_t in sys/types.h" >&5 |
| 6032 | if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then |
| 6033 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 6034 | else |
| 6035 | cat > conftest.$ac_ext <<EOF |
| 6036 | #line 6037 "configure" |
| 6037 | #include "confdefs.h" |
| 6038 | #include <sys/types.h> |
| 6039 | EOF |
| 6040 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 6041 | egrep "uid_t" >/dev/null 2>&1; then |
| 6042 | rm -rf conftest* |
| 6043 | ac_cv_type_uid_t=yes |
| 6044 | else |
| 6045 | rm -rf conftest* |
| 6046 | ac_cv_type_uid_t=no |
| 6047 | fi |
| 6048 | rm -f conftest* |
| 6049 | |
| 6050 | fi |
| 6051 | |
| 6052 | echo "$ac_t""$ac_cv_type_uid_t" 1>&6 |
| 6053 | if test $ac_cv_type_uid_t = no; then |
| 6054 | cat >> confdefs.h <<\EOF |
| 6055 | #define uid_t int |
| 6056 | EOF |
| 6057 | |
| 6058 | cat >> confdefs.h <<\EOF |
| 6059 | #define gid_t int |
| 6060 | EOF |
| 6061 | |
| 6062 | fi |
| 6063 | |
| 6064 | echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 |
| 6065 | echo "configure:6066: checking whether time.h and sys/time.h may both be included" >&5 |
| 6066 | if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then |
| 6067 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 6068 | else |
| 6069 | cat > conftest.$ac_ext <<EOF |
| 6070 | #line 6071 "configure" |
| 6071 | #include "confdefs.h" |
| 6072 | #include <sys/types.h> |
| 6073 | #include <sys/time.h> |
| 6074 | #include <time.h> |
| 6075 | int main() { |
| 6076 | struct tm *tp; |
| 6077 | ; return 0; } |
| 6078 | EOF |
| 6079 | if { (eval echo configure:6080: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| 6080 | rm -rf conftest* |
| 6081 | ac_cv_header_time=yes |
| 6082 | else |
| 6083 | echo "configure: failed program was:" >&5 |
| 6084 | cat conftest.$ac_ext >&5 |
| 6085 | rm -rf conftest* |
| 6086 | ac_cv_header_time=no |
| 6087 | fi |
| 6088 | rm -f conftest* |
| 6089 | fi |
| 6090 | |
| 6091 | echo "$ac_t""$ac_cv_header_time" 1>&6 |
| 6092 | if test $ac_cv_header_time = yes; then |
| 6093 | cat >> confdefs.h <<\EOF |
| 6094 | #define TIME_WITH_SYS_TIME 1 |
| 6095 | EOF |
| 6096 | |
| 6097 | fi |
| 6098 | |
| 6099 | echo $ac_n "checking for ino_t""... $ac_c" 1>&6 |
| 6100 | echo "configure:6101: checking for ino_t" >&5 |
| 6101 | if eval "test \"`echo '$''{'ac_cv_type_ino_t'+set}'`\" = set"; then |
| 6102 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 6103 | else |
| 6104 | cat > conftest.$ac_ext <<EOF |
| 6105 | #line 6106 "configure" |
| 6106 | #include "confdefs.h" |
| 6107 | #include <sys/types.h> |
| 6108 | #if STDC_HEADERS |
| 6109 | #include <stdlib.h> |
| 6110 | #include <stddef.h> |
| 6111 | #endif |
| 6112 | EOF |
| 6113 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 6114 | egrep "(^|[^a-zA-Z_0-9])ino_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then |
| 6115 | rm -rf conftest* |
| 6116 | ac_cv_type_ino_t=yes |
| 6117 | else |
| 6118 | rm -rf conftest* |
| 6119 | ac_cv_type_ino_t=no |
| 6120 | fi |
| 6121 | rm -f conftest* |
| 6122 | |
| 6123 | fi |
| 6124 | echo "$ac_t""$ac_cv_type_ino_t" 1>&6 |
| 6125 | if test $ac_cv_type_ino_t = no; then |
| 6126 | cat >> confdefs.h <<\EOF |
| 6127 | #define ino_t long |
| 6128 | EOF |
| 6129 | |
| 6130 | fi |
| 6131 | |
| 6132 | echo $ac_n "checking for dev_t""... $ac_c" 1>&6 |
| 6133 | echo "configure:6134: checking for dev_t" >&5 |
| 6134 | if eval "test \"`echo '$''{'ac_cv_type_dev_t'+set}'`\" = set"; then |
| 6135 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 6136 | else |
| 6137 | cat > conftest.$ac_ext <<EOF |
| 6138 | #line 6139 "configure" |
| 6139 | #include "confdefs.h" |
| 6140 | #include <sys/types.h> |
| 6141 | #if STDC_HEADERS |
| 6142 | #include <stdlib.h> |
| 6143 | #include <stddef.h> |
| 6144 | #endif |
| 6145 | EOF |
| 6146 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 6147 | egrep "(^|[^a-zA-Z_0-9])dev_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then |
| 6148 | rm -rf conftest* |
| 6149 | ac_cv_type_dev_t=yes |
| 6150 | else |
| 6151 | rm -rf conftest* |
| 6152 | ac_cv_type_dev_t=no |
| 6153 | fi |
| 6154 | rm -f conftest* |
| 6155 | |
| 6156 | fi |
| 6157 | echo "$ac_t""$ac_cv_type_dev_t" 1>&6 |
| 6158 | if test $ac_cv_type_dev_t = no; then |
| 6159 | cat >> confdefs.h <<\EOF |
| 6160 | #define dev_t unsigned |
| 6161 | EOF |
| 6162 | |
| 6163 | fi |
| 6164 | |
| 6165 | |
| 6166 | echo $ac_n "checking for rlim_t""... $ac_c" 1>&6 |
| 6167 | echo "configure:6168: checking for rlim_t" >&5 |
| 6168 | if eval "test \"`echo '$''{'ac_cv_type_rlim_t'+set}'`\" = set"; then |
| 6169 | echo "$ac_t""(cached) $ac_cv_type_rlim_t" 1>&6 |
| 6170 | else |
| 6171 | cat > conftest.$ac_ext <<EOF |
| 6172 | #line 6173 "configure" |
| 6173 | #include "confdefs.h" |
| 6174 | |
| 6175 | #include <sys/types.h> |
| 6176 | #if STDC_HEADERS |
| 6177 | #include <stdlib.h> |
| 6178 | #include <stddef.h> |
| 6179 | #endif |
| 6180 | #ifdef HAVE_SYS_RESOURCE_H |
| 6181 | #include <sys/resource.h> |
| 6182 | #endif |
| 6183 | |
| 6184 | EOF |
| 6185 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 6186 | egrep "(^|[^a-zA-Z_0-9])rlim_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then |
| 6187 | rm -rf conftest* |
| 6188 | ac_cv_type_rlim_t=yes |
| 6189 | else |
| 6190 | rm -rf conftest* |
| 6191 | ac_cv_type_rlim_t=no |
| 6192 | fi |
| 6193 | rm -f conftest* |
| 6194 | |
| 6195 | echo "$ac_t""$ac_cv_type_rlim_t" 1>&6 |
| 6196 | fi |
| 6197 | if test $ac_cv_type_rlim_t = no; then |
| 6198 | cat >> confdefs.h <<\EOF |
| 6199 | #define rlim_t unsigned long |
| 6200 | EOF |
| 6201 | fi |
| 6202 | |
| 6203 | echo $ac_n "checking for stack_t""... $ac_c" 1>&6 |
| 6204 | echo "configure:6205: checking for stack_t" >&5 |
| 6205 | if eval "test \"`echo '$''{'ac_cv_type_stack_t'+set}'`\" = set"; then |
| 6206 | echo "$ac_t""(cached) $ac_cv_type_stack_t" 1>&6 |
| 6207 | else |
| 6208 | cat > conftest.$ac_ext <<EOF |
| 6209 | #line 6210 "configure" |
| 6210 | #include "confdefs.h" |
| 6211 | |
| 6212 | #include <sys/types.h> |
| 6213 | #if STDC_HEADERS |
| 6214 | #include <stdlib.h> |
| 6215 | #include <stddef.h> |
| 6216 | #endif |
| 6217 | #include <signal.h> |
| 6218 | |
| 6219 | EOF |
| 6220 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 6221 | egrep "stack_t" >/dev/null 2>&1; then |
| 6222 | rm -rf conftest* |
| 6223 | ac_cv_type_stack_t=yes |
| 6224 | else |
| 6225 | rm -rf conftest* |
| 6226 | ac_cv_type_stack_t=no |
| 6227 | fi |
| 6228 | rm -f conftest* |
| 6229 | |
| 6230 | echo "$ac_t""$ac_cv_type_stack_t" 1>&6 |
| 6231 | fi |
| 6232 | if test $ac_cv_type_stack_t = no; then |
| 6233 | cat >> confdefs.h <<\EOF |
| 6234 | #define stack_t struct sigaltstack |
| 6235 | EOF |
| 6236 | fi |
| 6237 | |
| 6238 | echo $ac_n "checking whether stack_t has an ss_base field""... $ac_c" 1>&6 |
| 6239 | echo "configure:6240: checking whether stack_t has an ss_base field" >&5 |
| 6240 | cat > conftest.$ac_ext <<EOF |
| 6241 | #line 6242 "configure" |
| 6242 | #include "confdefs.h" |
| 6243 | |
| 6244 | #include <sys/types.h> |
| 6245 | #if STDC_HEADERS |
| 6246 | #include <stdlib.h> |
| 6247 | #include <stddef.h> |
| 6248 | #endif |
| 6249 | #include <signal.h> |
| 6250 | #include "confdefs.h" |
| 6251 | |
| 6252 | int main() { |
| 6253 | stack_t sigstk; sigstk.ss_base = 0; |
| 6254 | ; return 0; } |
| 6255 | EOF |
| 6256 | if { (eval echo configure:6257: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| 6257 | rm -rf conftest* |
| 6258 | echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF |
| 6259 | #define HAVE_SS_BASE 1 |
| 6260 | EOF |
| 6261 | |
| 6262 | else |
| 6263 | echo "configure: failed program was:" >&5 |
| 6264 | cat conftest.$ac_ext >&5 |
| 6265 | rm -rf conftest* |
| 6266 | echo "$ac_t""no" 1>&6 |
| 6267 | fi |
| 6268 | rm -f conftest* |
| 6269 | |
| 6270 | olibs="$LIBS" |
| 6271 | echo $ac_n "checking --with-tlib argument""... $ac_c" 1>&6 |
| 6272 | echo "configure:6273: checking --with-tlib argument" >&5 |
| 6273 | # Check whether --with-tlib or --without-tlib was given. |
| 6274 | if test "${with_tlib+set}" = set; then |
| 6275 | withval="$with_tlib" |
| 6276 | : |
| 6277 | fi |
| 6278 | |
| 6279 | if test -n "$with_tlib"; then |
| 6280 | echo "$ac_t""$with_tlib" 1>&6 |
| 6281 | LIBS="$LIBS -l$with_tlib" |
| 6282 | else |
| 6283 | echo "$ac_t""automatic terminal library selection" 1>&6 |
| 6284 | case "`uname -s 2>/dev/null`" in |
| 6285 | OSF1) tlibs="ncurses curses termlib termcap";; |
| 6286 | *) tlibs="ncurses termlib termcap curses";; |
| 6287 | esac |
| 6288 | for libname in $tlibs; do |
| 6289 | echo $ac_n "checking for tgetent in -l${libname}""... $ac_c" 1>&6 |
| 6290 | echo "configure:6291: checking for tgetent in -l${libname}" >&5 |
| 6291 | ac_lib_var=`echo ${libname}'_'tgetent | sed 'y%./+-%__p_%'` |
| 6292 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 6293 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 6294 | else |
| 6295 | ac_save_LIBS="$LIBS" |
| 6296 | LIBS="-l${libname} $LIBS" |
| 6297 | cat > conftest.$ac_ext <<EOF |
| 6298 | #line 6299 "configure" |
| 6299 | #include "confdefs.h" |
| 6300 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 6301 | /* We use char because int might match the return type of a gcc2 |
| 6302 | builtin and then its argument prototype would still apply. */ |
| 6303 | char tgetent(); |
| 6304 | |
| 6305 | int main() { |
| 6306 | tgetent() |
| 6307 | ; return 0; } |
| 6308 | EOF |
| 6309 | if { (eval echo configure:6310: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 6310 | rm -rf conftest* |
| 6311 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 6312 | else |
| 6313 | echo "configure: failed program was:" >&5 |
| 6314 | cat conftest.$ac_ext >&5 |
| 6315 | rm -rf conftest* |
| 6316 | eval "ac_cv_lib_$ac_lib_var=no" |
| 6317 | fi |
| 6318 | rm -f conftest* |
| 6319 | LIBS="$ac_save_LIBS" |
| 6320 | |
| 6321 | fi |
| 6322 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 6323 | echo "$ac_t""yes" 1>&6 |
| 6324 | ac_tr_lib=HAVE_LIB`echo ${libname} | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
| 6325 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
| 6326 | cat >> confdefs.h <<EOF |
| 6327 | #define $ac_tr_lib 1 |
| 6328 | EOF |
| 6329 | |
| 6330 | LIBS="-l${libname} $LIBS" |
| 6331 | |
| 6332 | else |
| 6333 | echo "$ac_t""no" 1>&6 |
| 6334 | fi |
| 6335 | |
| 6336 | if test "x$olibs" != "x$LIBS"; then |
| 6337 | if test "$cross_compiling" = yes; then |
| 6338 | res="FAIL" |
| 6339 | else |
| 6340 | cat > conftest.$ac_ext <<EOF |
| 6341 | #line 6342 "configure" |
| 6342 | #include "confdefs.h" |
| 6343 | |
| 6344 | #ifdef HAVE_TERMCAP_H |
| 6345 | # include <termcap.h> |
| 6346 | #endif |
| 6347 | main() {char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(0); } |
| 6348 | EOF |
| 6349 | if { (eval echo configure:6350: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
| 6350 | then |
| 6351 | res="OK" |
| 6352 | else |
| 6353 | echo "configure: failed program was:" >&5 |
| 6354 | cat conftest.$ac_ext >&5 |
| 6355 | rm -fr conftest* |
| 6356 | res="FAIL" |
| 6357 | fi |
| 6358 | rm -fr conftest* |
| 6359 | fi |
| 6360 | |
| 6361 | if test "$res" = "OK"; then |
| 6362 | break |
| 6363 | fi |
| 6364 | echo "$ac_t""$libname library is not usable" 1>&6 |
| 6365 | LIBS="$olibs" |
| 6366 | fi |
| 6367 | done |
| 6368 | fi |
| 6369 | if test "x$olibs" != "x$LIBS"; then |
| 6370 | echo $ac_n "checking whether we talk terminfo""... $ac_c" 1>&6 |
| 6371 | echo "configure:6372: checking whether we talk terminfo" >&5 |
| 6372 | if test "$cross_compiling" = yes; then |
| 6373 | { echo "configure: error: failed to compile test program." 1>&2; exit 1; } |
| 6374 | else |
| 6375 | cat > conftest.$ac_ext <<EOF |
| 6376 | #line 6377 "configure" |
| 6377 | #include "confdefs.h" |
| 6378 | |
| 6379 | #ifdef HAVE_TERMCAP_H |
| 6380 | # include <termcap.h> |
| 6381 | #endif |
| 6382 | main() |
| 6383 | {char *s; s=(char *)tgoto("%p1%d", 0, 1); exit(!strcmp(s==0 ? "" : s, "1")); } |
| 6384 | EOF |
| 6385 | if { (eval echo configure:6386: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
| 6386 | then |
| 6387 | echo "$ac_t""no -- we are in termcap land" 1>&6 |
| 6388 | else |
| 6389 | echo "configure: failed program was:" >&5 |
| 6390 | cat conftest.$ac_ext >&5 |
| 6391 | rm -fr conftest* |
| 6392 | echo "$ac_t""yes -- terminfo spoken here" 1>&6; cat >> confdefs.h <<\EOF |
| 6393 | #define TERMINFO 1 |
| 6394 | EOF |
| 6395 | |
| 6396 | fi |
| 6397 | rm -fr conftest* |
| 6398 | fi |
| 6399 | |
| 6400 | else |
| 6401 | echo "$ac_t""none found" 1>&6 |
| 6402 | fi |
| 6403 | |
| 6404 | if test "x$olibs" != "x$LIBS"; then |
| 6405 | echo $ac_n "checking what tgetent() returns for an unknown terminal""... $ac_c" 1>&6 |
| 6406 | echo "configure:6407: checking what tgetent() returns for an unknown terminal" >&5 |
| 6407 | if test "$cross_compiling" = yes; then |
| 6408 | { echo "configure: error: failed to compile test program." 1>&2; exit 1; } |
| 6409 | else |
| 6410 | cat > conftest.$ac_ext <<EOF |
| 6411 | #line 6412 "configure" |
| 6412 | #include "confdefs.h" |
| 6413 | |
| 6414 | #ifdef HAVE_TERMCAP_H |
| 6415 | # include <termcap.h> |
| 6416 | #endif |
| 6417 | main() |
| 6418 | {char s[10000]; int res = tgetent(s, "thisterminaldoesnotexist"); exit(res != 0); } |
| 6419 | EOF |
| 6420 | if { (eval echo configure:6421: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
| 6421 | then |
| 6422 | echo "$ac_t""zero" 1>&6; cat >> confdefs.h <<\EOF |
| 6423 | #define TGETENT_ZERO_ERR 0 |
| 6424 | EOF |
| 6425 | |
| 6426 | else |
| 6427 | echo "configure: failed program was:" >&5 |
| 6428 | cat conftest.$ac_ext >&5 |
| 6429 | rm -fr conftest* |
| 6430 | echo "$ac_t""non-zero" 1>&6 |
| 6431 | fi |
| 6432 | rm -fr conftest* |
| 6433 | fi |
| 6434 | |
| 6435 | fi |
| 6436 | |
| 6437 | echo $ac_n "checking whether termcap.h contains ospeed""... $ac_c" 1>&6 |
| 6438 | echo "configure:6439: checking whether termcap.h contains ospeed" >&5 |
| 6439 | cat > conftest.$ac_ext <<EOF |
| 6440 | #line 6441 "configure" |
| 6441 | #include "confdefs.h" |
| 6442 | |
| 6443 | #ifdef HAVE_TERMCAP_H |
| 6444 | # include <termcap.h> |
| 6445 | #endif |
| 6446 | |
| 6447 | int main() { |
| 6448 | ospeed = 20000 |
| 6449 | ; return 0; } |
| 6450 | EOF |
| 6451 | if { (eval echo configure:6452: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 6452 | rm -rf conftest* |
| 6453 | echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF |
| 6454 | #define HAVE_OSPEED 1 |
| 6455 | EOF |
| 6456 | |
| 6457 | else |
| 6458 | echo "configure: failed program was:" >&5 |
| 6459 | cat conftest.$ac_ext >&5 |
| 6460 | rm -rf conftest* |
| 6461 | echo "$ac_t""no" 1>&6 |
| 6462 | echo $ac_n "checking whether ospeed can be extern""... $ac_c" 1>&6 |
| 6463 | echo "configure:6464: checking whether ospeed can be extern" >&5 |
| 6464 | cat > conftest.$ac_ext <<EOF |
| 6465 | #line 6466 "configure" |
| 6466 | #include "confdefs.h" |
| 6467 | |
| 6468 | #ifdef HAVE_TERMCAP_H |
| 6469 | # include <termcap.h> |
| 6470 | #endif |
| 6471 | extern short ospeed; |
| 6472 | |
| 6473 | int main() { |
| 6474 | ospeed = 20000 |
| 6475 | ; return 0; } |
| 6476 | EOF |
| 6477 | if { (eval echo configure:6478: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 6478 | rm -rf conftest* |
| 6479 | echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF |
| 6480 | #define OSPEED_EXTERN 1 |
| 6481 | EOF |
| 6482 | |
| 6483 | else |
| 6484 | echo "configure: failed program was:" >&5 |
| 6485 | cat conftest.$ac_ext >&5 |
| 6486 | rm -rf conftest* |
| 6487 | echo "$ac_t""no" 1>&6 |
| 6488 | fi |
| 6489 | rm -f conftest* |
| 6490 | |
| 6491 | fi |
| 6492 | rm -f conftest* |
| 6493 | |
| 6494 | echo $ac_n "checking whether termcap.h contains UP, BC and PC""... $ac_c" 1>&6 |
| 6495 | echo "configure:6496: checking whether termcap.h contains UP, BC and PC" >&5 |
| 6496 | cat > conftest.$ac_ext <<EOF |
| 6497 | #line 6498 "configure" |
| 6498 | #include "confdefs.h" |
| 6499 | |
| 6500 | #ifdef HAVE_TERMCAP_H |
| 6501 | # include <termcap.h> |
| 6502 | #endif |
| 6503 | |
| 6504 | int main() { |
| 6505 | if (UP == 0 && BC == 0) PC = 1 |
| 6506 | ; return 0; } |
| 6507 | EOF |
| 6508 | if { (eval echo configure:6509: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 6509 | rm -rf conftest* |
| 6510 | echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF |
| 6511 | #define HAVE_UP_BC_PC 1 |
| 6512 | EOF |
| 6513 | |
| 6514 | else |
| 6515 | echo "configure: failed program was:" >&5 |
| 6516 | cat conftest.$ac_ext >&5 |
| 6517 | rm -rf conftest* |
| 6518 | echo "$ac_t""no" 1>&6 |
| 6519 | echo $ac_n "checking whether UP, BC and PC can be extern""... $ac_c" 1>&6 |
| 6520 | echo "configure:6521: checking whether UP, BC and PC can be extern" >&5 |
| 6521 | cat > conftest.$ac_ext <<EOF |
| 6522 | #line 6523 "configure" |
| 6523 | #include "confdefs.h" |
| 6524 | |
| 6525 | #ifdef HAVE_TERMCAP_H |
| 6526 | # include <termcap.h> |
| 6527 | #endif |
| 6528 | extern char *UP, *BC, PC; |
| 6529 | |
| 6530 | int main() { |
| 6531 | if (UP == 0 && BC == 0) PC = 1 |
| 6532 | ; return 0; } |
| 6533 | EOF |
| 6534 | if { (eval echo configure:6535: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 6535 | rm -rf conftest* |
| 6536 | echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF |
| 6537 | #define UP_BC_PC_EXTERN 1 |
| 6538 | EOF |
| 6539 | |
| 6540 | else |
| 6541 | echo "configure: failed program was:" >&5 |
| 6542 | cat conftest.$ac_ext >&5 |
| 6543 | rm -rf conftest* |
| 6544 | echo "$ac_t""no" 1>&6 |
| 6545 | fi |
| 6546 | rm -f conftest* |
| 6547 | |
| 6548 | fi |
| 6549 | rm -f conftest* |
| 6550 | |
| 6551 | echo $ac_n "checking whether tputs() uses outfuntype""... $ac_c" 1>&6 |
| 6552 | echo "configure:6553: checking whether tputs() uses outfuntype" >&5 |
| 6553 | cat > conftest.$ac_ext <<EOF |
| 6554 | #line 6555 "configure" |
| 6555 | #include "confdefs.h" |
| 6556 | |
| 6557 | #ifdef HAVE_TERMCAP_H |
| 6558 | # include <termcap.h> |
| 6559 | #endif |
| 6560 | |
| 6561 | int main() { |
| 6562 | extern int xx(); tputs("test", 1, (outfuntype)xx) |
| 6563 | ; return 0; } |
| 6564 | EOF |
| 6565 | if { (eval echo configure:6566: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| 6566 | rm -rf conftest* |
| 6567 | echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF |
| 6568 | #define HAVE_OUTFUNTYPE 1 |
| 6569 | EOF |
| 6570 | |
| 6571 | else |
| 6572 | echo "configure: failed program was:" >&5 |
| 6573 | cat conftest.$ac_ext >&5 |
| 6574 | rm -rf conftest* |
| 6575 | echo "$ac_t""no" 1>&6 |
| 6576 | fi |
| 6577 | rm -f conftest* |
| 6578 | |
| 6579 | echo $ac_n "checking whether sys/select.h and sys/time.h may both be included""... $ac_c" 1>&6 |
| 6580 | echo "configure:6581: checking whether sys/select.h and sys/time.h may both be included" >&5 |
| 6581 | cat > conftest.$ac_ext <<EOF |
| 6582 | #line 6583 "configure" |
| 6583 | #include "confdefs.h" |
| 6584 | |
| 6585 | #include <sys/types.h> |
| 6586 | #include <sys/time.h> |
| 6587 | #include <sys/select.h> |
| 6588 | int main() { |
| 6589 | |
| 6590 | ; return 0; } |
| 6591 | EOF |
| 6592 | if { (eval echo configure:6593: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| 6593 | rm -rf conftest* |
| 6594 | echo "$ac_t""yes" 1>&6 |
| 6595 | cat >> confdefs.h <<\EOF |
| 6596 | #define SYS_SELECT_WITH_SYS_TIME 1 |
| 6597 | EOF |
| 6598 | |
| 6599 | else |
| 6600 | echo "configure: failed program was:" >&5 |
| 6601 | cat conftest.$ac_ext >&5 |
| 6602 | rm -rf conftest* |
| 6603 | echo "$ac_t""no" 1>&6 |
| 6604 | fi |
| 6605 | rm -f conftest* |
| 6606 | |
| 6607 | |
| 6608 | echo $ac_n "checking for /dev/ptc""... $ac_c" 1>&6 |
| 6609 | echo "configure:6610: checking for /dev/ptc" >&5 |
| 6610 | if test -r /dev/ptc; then |
| 6611 | cat >> confdefs.h <<\EOF |
| 6612 | #define HAVE_DEV_PTC 1 |
| 6613 | EOF |
| 6614 | |
| 6615 | echo "$ac_t""yes" 1>&6 |
| 6616 | else |
| 6617 | echo "$ac_t""no" 1>&6 |
| 6618 | fi |
| 6619 | |
| 6620 | echo $ac_n "checking for SVR4 ptys""... $ac_c" 1>&6 |
| 6621 | echo "configure:6622: checking for SVR4 ptys" >&5 |
| 6622 | if test -c /dev/ptmx ; then |
| 6623 | cat > conftest.$ac_ext <<EOF |
| 6624 | #line 6625 "configure" |
| 6625 | #include "confdefs.h" |
| 6626 | |
| 6627 | int main() { |
| 6628 | ptsname(0);grantpt(0);unlockpt(0); |
| 6629 | ; return 0; } |
| 6630 | EOF |
| 6631 | if { (eval echo configure:6632: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 6632 | rm -rf conftest* |
| 6633 | echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF |
| 6634 | #define HAVE_SVR4_PTYS 1 |
| 6635 | EOF |
| 6636 | |
| 6637 | else |
| 6638 | echo "configure: failed program was:" >&5 |
| 6639 | cat conftest.$ac_ext >&5 |
| 6640 | rm -rf conftest* |
| 6641 | echo "$ac_t""no" 1>&6 |
| 6642 | fi |
| 6643 | rm -f conftest* |
| 6644 | else |
| 6645 | echo "$ac_t""no" 1>&6 |
| 6646 | fi |
| 6647 | |
| 6648 | echo $ac_n "checking for ptyranges""... $ac_c" 1>&6 |
| 6649 | echo "configure:6650: checking for ptyranges" >&5 |
| 6650 | if test -d /dev/ptym ; then |
| 6651 | pdir='/dev/ptym' |
| 6652 | else |
| 6653 | pdir='/dev' |
| 6654 | fi |
| 6655 | cat > conftest.$ac_ext <<EOF |
| 6656 | #line 6657 "configure" |
| 6657 | #include "confdefs.h" |
| 6658 | #ifdef M_UNIX |
| 6659 | yes; |
| 6660 | #endif |
| 6661 | |
| 6662 | EOF |
| 6663 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 6664 | egrep "yes" >/dev/null 2>&1; then |
| 6665 | rm -rf conftest* |
| 6666 | ptys=`echo /dev/ptyp??` |
| 6667 | else |
| 6668 | rm -rf conftest* |
| 6669 | ptys=`echo $pdir/pty??` |
| 6670 | fi |
| 6671 | rm -f conftest* |
| 6672 | |
| 6673 | if test "$ptys" != "$pdir/pty??" ; then |
| 6674 | p0=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\).$/\1/g' | sort -u | tr -d '\012'` |
| 6675 | p1=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\)$/\1/g' | sort -u | tr -d '\012'` |
| 6676 | cat >> confdefs.h <<EOF |
| 6677 | #define PTYRANGE0 "$p0" |
| 6678 | EOF |
| 6679 | |
| 6680 | cat >> confdefs.h <<EOF |
| 6681 | #define PTYRANGE1 "$p1" |
| 6682 | EOF |
| 6683 | |
| 6684 | echo "$ac_t""$p0 / $p1" 1>&6 |
| 6685 | else |
| 6686 | echo "$ac_t""don't know" 1>&6 |
| 6687 | fi |
| 6688 | |
| 6689 | echo $ac_n "checking default tty permissions/group""... $ac_c" 1>&6 |
| 6690 | echo "configure:6691: checking default tty permissions/group" >&5 |
| 6691 | rm -f conftest_grp |
| 6692 | if test "$cross_compiling" = yes; then |
| 6693 | { echo "configure: error: failed to compile test program" 1>&2; exit 1; } |
| 6694 | else |
| 6695 | cat > conftest.$ac_ext <<EOF |
| 6696 | #line 6697 "configure" |
| 6697 | #include "confdefs.h" |
| 6698 | |
| 6699 | #include <sys/types.h> |
| 6700 | #include <sys/stat.h> |
| 6701 | #include <stdio.h> |
| 6702 | main() |
| 6703 | { |
| 6704 | struct stat sb; |
| 6705 | char *x,*ttyname(); |
| 6706 | int om, m; |
| 6707 | FILE *fp; |
| 6708 | |
| 6709 | if (!(x = ttyname(0))) exit(1); |
| 6710 | if (stat(x, &sb)) exit(1); |
| 6711 | om = sb.st_mode; |
| 6712 | if (om & 002) exit(0); |
| 6713 | m = system("mesg y"); |
| 6714 | if (m == -1 || m == 127) exit(1); |
| 6715 | if (stat(x, &sb)) exit(1); |
| 6716 | m = sb.st_mode; |
| 6717 | if (chmod(x, om)) exit(1); |
| 6718 | if (m & 002) exit(0); |
| 6719 | if (sb.st_gid == getgid()) exit(1); |
| 6720 | if (!(fp=fopen("conftest_grp", "w"))) |
| 6721 | exit(1); |
| 6722 | fprintf(fp, "%d\n", sb.st_gid); |
| 6723 | fclose(fp); |
| 6724 | exit(0); |
| 6725 | } |
| 6726 | |
| 6727 | EOF |
| 6728 | if { (eval echo configure:6729: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
| 6729 | then |
| 6730 | |
| 6731 | if test -f conftest_grp; then |
| 6732 | ptygrp=`cat conftest_grp` |
| 6733 | echo "$ac_t""pty mode: 0620, group: $ptygrp" 1>&6 |
| 6734 | cat >> confdefs.h <<\EOF |
| 6735 | #define PTYMODE 0620 |
| 6736 | EOF |
| 6737 | |
| 6738 | cat >> confdefs.h <<EOF |
| 6739 | #define PTYGROUP $ptygrp |
| 6740 | EOF |
| 6741 | |
| 6742 | else |
| 6743 | echo "$ac_t""ptys are world accessable" 1>&6 |
| 6744 | fi |
| 6745 | |
| 6746 | else |
| 6747 | echo "configure: failed program was:" >&5 |
| 6748 | cat conftest.$ac_ext >&5 |
| 6749 | rm -fr conftest* |
| 6750 | echo "$ac_t""can't determine - assume ptys are world accessable" 1>&6 |
| 6751 | fi |
| 6752 | rm -fr conftest* |
| 6753 | fi |
| 6754 | |
| 6755 | rm -f conftest_grp |
| 6756 | |
| 6757 | |
| 6758 | echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 |
| 6759 | echo "configure:6760: checking return type of signal handlers" >&5 |
| 6760 | if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then |
| 6761 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 6762 | else |
| 6763 | cat > conftest.$ac_ext <<EOF |
| 6764 | #line 6765 "configure" |
| 6765 | #include "confdefs.h" |
| 6766 | #include <sys/types.h> |
| 6767 | #include <signal.h> |
| 6768 | #ifdef signal |
| 6769 | #undef signal |
| 6770 | #endif |
| 6771 | #ifdef __cplusplus |
| 6772 | extern "C" void (*signal (int, void (*)(int)))(int); |
| 6773 | #else |
| 6774 | void (*signal ()) (); |
| 6775 | #endif |
| 6776 | |
| 6777 | int main() { |
| 6778 | int i; |
| 6779 | ; return 0; } |
| 6780 | EOF |
| 6781 | if { (eval echo configure:6782: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| 6782 | rm -rf conftest* |
| 6783 | ac_cv_type_signal=void |
| 6784 | else |
| 6785 | echo "configure: failed program was:" >&5 |
| 6786 | cat conftest.$ac_ext >&5 |
| 6787 | rm -rf conftest* |
| 6788 | ac_cv_type_signal=int |
| 6789 | fi |
| 6790 | rm -f conftest* |
| 6791 | fi |
| 6792 | |
| 6793 | echo "$ac_t""$ac_cv_type_signal" 1>&6 |
| 6794 | cat >> confdefs.h <<EOF |
| 6795 | #define RETSIGTYPE $ac_cv_type_signal |
| 6796 | EOF |
| 6797 | |
| 6798 | |
| 6799 | |
| 6800 | if test $ac_cv_type_signal = void; then |
| 6801 | cat >> confdefs.h <<\EOF |
| 6802 | #define SIGRETURN return |
| 6803 | EOF |
| 6804 | |
| 6805 | else |
| 6806 | cat >> confdefs.h <<\EOF |
| 6807 | #define SIGRETURN return 0 |
| 6808 | EOF |
| 6809 | |
| 6810 | fi |
| 6811 | |
| 6812 | echo $ac_n "checking for struct sigcontext""... $ac_c" 1>&6 |
| 6813 | echo "configure:6814: checking for struct sigcontext" >&5 |
| 6814 | cat > conftest.$ac_ext <<EOF |
| 6815 | #line 6816 "configure" |
| 6816 | #include "confdefs.h" |
| 6817 | |
| 6818 | #include <signal.h> |
| 6819 | test_sig() |
| 6820 | { |
| 6821 | struct sigcontext *scont; |
| 6822 | scont = (struct sigcontext *)0; |
| 6823 | return 1; |
| 6824 | } |
| 6825 | int main() { |
| 6826 | |
| 6827 | ; return 0; } |
| 6828 | EOF |
| 6829 | if { (eval echo configure:6830: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| 6830 | rm -rf conftest* |
| 6831 | echo "$ac_t""yes" 1>&6 |
| 6832 | cat >> confdefs.h <<\EOF |
| 6833 | #define HAVE_SIGCONTEXT 1 |
| 6834 | EOF |
| 6835 | |
| 6836 | else |
| 6837 | echo "configure: failed program was:" >&5 |
| 6838 | cat conftest.$ac_ext >&5 |
| 6839 | rm -rf conftest* |
| 6840 | echo "$ac_t""no" 1>&6 |
| 6841 | fi |
| 6842 | rm -f conftest* |
| 6843 | |
| 6844 | echo $ac_n "checking getcwd implementation""... $ac_c" 1>&6 |
| 6845 | echo "configure:6846: checking getcwd implementation" >&5 |
| 6846 | if test "$cross_compiling" = yes; then |
| 6847 | { echo "configure: error: failed to compile test program" 1>&2; exit 1; } |
| 6848 | else |
| 6849 | cat > conftest.$ac_ext <<EOF |
| 6850 | #line 6851 "configure" |
| 6851 | #include "confdefs.h" |
| 6852 | |
| 6853 | char *dagger[] = { "IFS=pwd", 0 }; |
| 6854 | main() |
| 6855 | { |
| 6856 | char buffer[500]; |
| 6857 | extern char **environ; |
| 6858 | environ = dagger; |
| 6859 | return getcwd(buffer, 500) ? 0 : 1; |
| 6860 | } |
| 6861 | EOF |
| 6862 | if { (eval echo configure:6863: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
| 6863 | then |
| 6864 | echo "$ac_t""it is usable" 1>&6 |
| 6865 | else |
| 6866 | echo "configure: failed program was:" >&5 |
| 6867 | cat conftest.$ac_ext >&5 |
| 6868 | rm -fr conftest* |
| 6869 | echo "$ac_t""it stinks" 1>&6 |
| 6870 | cat >> confdefs.h <<\EOF |
| 6871 | #define BAD_GETCWD 1 |
| 6872 | EOF |
| 6873 | |
| 6874 | fi |
| 6875 | rm -fr conftest* |
| 6876 | fi |
| 6877 | |
| 6878 | |
| 6879 | for ac_func in bcmp fchdir fchown fseeko fsync ftello getcwd getpseudotty \ |
| 6880 | getpwnam getpwuid getrlimit gettimeofday getwd lstat memcmp \ |
| 6881 | memset nanosleep opendir putenv qsort readlink select setenv \ |
| 6882 | setpgid setsid sigaltstack sigstack sigset sigsetjmp sigaction \ |
| 6883 | sigvec snprintf strcasecmp strerror strftime stricmp strncasecmp \ |
| 6884 | strnicmp strpbrk strtol tgetent towlower towupper usleep utime utimes |
| 6885 | do |
| 6886 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
| 6887 | echo "configure:6888: checking for $ac_func" >&5 |
| 6888 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
| 6889 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 6890 | else |
| 6891 | cat > conftest.$ac_ext <<EOF |
| 6892 | #line 6893 "configure" |
| 6893 | #include "confdefs.h" |
| 6894 | /* System header to define __stub macros and hopefully few prototypes, |
| 6895 | which can conflict with char $ac_func(); below. */ |
| 6896 | #include <assert.h> |
| 6897 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 6898 | /* We use char because int might match the return type of a gcc2 |
| 6899 | builtin and then its argument prototype would still apply. */ |
| 6900 | char $ac_func(); |
| 6901 | |
| 6902 | int main() { |
| 6903 | |
| 6904 | /* The GNU C library defines this for functions which it implements |
| 6905 | to always fail with ENOSYS. Some functions are actually named |
| 6906 | something starting with __ and the normal name is an alias. */ |
| 6907 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 6908 | choke me |
| 6909 | #else |
| 6910 | $ac_func(); |
| 6911 | #endif |
| 6912 | |
| 6913 | ; return 0; } |
| 6914 | EOF |
| 6915 | if { (eval echo configure:6916: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 6916 | rm -rf conftest* |
| 6917 | eval "ac_cv_func_$ac_func=yes" |
| 6918 | else |
| 6919 | echo "configure: failed program was:" >&5 |
| 6920 | cat conftest.$ac_ext >&5 |
| 6921 | rm -rf conftest* |
| 6922 | eval "ac_cv_func_$ac_func=no" |
| 6923 | fi |
| 6924 | rm -f conftest* |
| 6925 | fi |
| 6926 | |
| 6927 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
| 6928 | echo "$ac_t""yes" 1>&6 |
| 6929 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 6930 | cat >> confdefs.h <<EOF |
| 6931 | #define $ac_tr_func 1 |
| 6932 | EOF |
| 6933 | |
| 6934 | else |
| 6935 | echo "$ac_t""no" 1>&6 |
| 6936 | fi |
| 6937 | done |
| 6938 | |
| 6939 | |
| 6940 | echo $ac_n "checking for st_blksize""... $ac_c" 1>&6 |
| 6941 | echo "configure:6942: checking for st_blksize" >&5 |
| 6942 | cat > conftest.$ac_ext <<EOF |
| 6943 | #line 6944 "configure" |
| 6944 | #include "confdefs.h" |
| 6945 | #include <sys/types.h> |
| 6946 | #include <sys/stat.h> |
| 6947 | int main() { |
| 6948 | struct stat st; |
| 6949 | int n; |
| 6950 | |
| 6951 | stat("/", &st); |
| 6952 | n = (int)st.st_blksize; |
| 6953 | ; return 0; } |
| 6954 | EOF |
| 6955 | if { (eval echo configure:6956: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| 6956 | rm -rf conftest* |
| 6957 | echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF |
| 6958 | #define HAVE_ST_BLKSIZE 1 |
| 6959 | EOF |
| 6960 | |
| 6961 | else |
| 6962 | echo "configure: failed program was:" >&5 |
| 6963 | cat conftest.$ac_ext >&5 |
| 6964 | rm -rf conftest* |
| 6965 | echo "$ac_t""no" 1>&6 |
| 6966 | fi |
| 6967 | rm -f conftest* |
| 6968 | |
| 6969 | echo $ac_n "checking whether stat() ignores a trailing slash""... $ac_c" 1>&6 |
| 6970 | echo "configure:6971: checking whether stat() ignores a trailing slash" >&5 |
| 6971 | if test "$cross_compiling" = yes; then |
| 6972 | { echo "configure: error: failed to compile test program" 1>&2; exit 1; } |
| 6973 | else |
| 6974 | cat > conftest.$ac_ext <<EOF |
| 6975 | #line 6976 "configure" |
| 6976 | #include "confdefs.h" |
| 6977 | #include <sys/types.h> |
| 6978 | #include <sys/stat.h> |
| 6979 | main() {struct stat st; exit(stat("configure/", &st) != 0); } |
| 6980 | EOF |
| 6981 | if { (eval echo configure:6982: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
| 6982 | then |
| 6983 | echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF |
| 6984 | #define STAT_IGNORES_SLASH 1 |
| 6985 | EOF |
| 6986 | |
| 6987 | else |
| 6988 | echo "configure: failed program was:" >&5 |
| 6989 | cat conftest.$ac_ext >&5 |
| 6990 | rm -fr conftest* |
| 6991 | echo "$ac_t""no" 1>&6 |
| 6992 | fi |
| 6993 | rm -fr conftest* |
| 6994 | fi |
| 6995 | |
| 6996 | |
| 6997 | echo $ac_n "checking for iconv_open()""... $ac_c" 1>&6 |
| 6998 | echo "configure:6999: checking for iconv_open()" >&5 |
| 6999 | save_LIBS="$LIBS" |
| 7000 | LIBS="$LIBS -liconv" |
| 7001 | cat > conftest.$ac_ext <<EOF |
| 7002 | #line 7003 "configure" |
| 7003 | #include "confdefs.h" |
| 7004 | |
| 7005 | #ifdef HAVE_ICONV_H |
| 7006 | # include <iconv.h> |
| 7007 | #endif |
| 7008 | |
| 7009 | int main() { |
| 7010 | iconv_open("fr", "to"); |
| 7011 | ; return 0; } |
| 7012 | EOF |
| 7013 | if { (eval echo configure:7014: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 7014 | rm -rf conftest* |
| 7015 | echo "$ac_t""yes; with -liconv" 1>&6; cat >> confdefs.h <<\EOF |
| 7016 | #define HAVE_ICONV 1 |
| 7017 | EOF |
| 7018 | |
| 7019 | else |
| 7020 | echo "configure: failed program was:" >&5 |
| 7021 | cat conftest.$ac_ext >&5 |
| 7022 | rm -rf conftest* |
| 7023 | LIBS="$save_LIBS" |
| 7024 | cat > conftest.$ac_ext <<EOF |
| 7025 | #line 7026 "configure" |
| 7026 | #include "confdefs.h" |
| 7027 | |
| 7028 | #ifdef HAVE_ICONV_H |
| 7029 | # include <iconv.h> |
| 7030 | #endif |
| 7031 | |
| 7032 | int main() { |
| 7033 | iconv_open("fr", "to"); |
| 7034 | ; return 0; } |
| 7035 | EOF |
| 7036 | if { (eval echo configure:7037: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 7037 | rm -rf conftest* |
| 7038 | echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF |
| 7039 | #define HAVE_ICONV 1 |
| 7040 | EOF |
| 7041 | |
| 7042 | else |
| 7043 | echo "configure: failed program was:" >&5 |
| 7044 | cat conftest.$ac_ext >&5 |
| 7045 | rm -rf conftest* |
| 7046 | echo "$ac_t""no" 1>&6 |
| 7047 | fi |
| 7048 | rm -f conftest* |
| 7049 | fi |
| 7050 | rm -f conftest* |
| 7051 | |
| 7052 | |
| 7053 | echo $ac_n "checking for nl_langinfo(CODESET)""... $ac_c" 1>&6 |
| 7054 | echo "configure:7055: checking for nl_langinfo(CODESET)" >&5 |
| 7055 | cat > conftest.$ac_ext <<EOF |
| 7056 | #line 7057 "configure" |
| 7057 | #include "confdefs.h" |
| 7058 | |
| 7059 | #ifdef HAVE_LANGINFO_H |
| 7060 | # include <langinfo.h> |
| 7061 | #endif |
| 7062 | |
| 7063 | int main() { |
| 7064 | char *cs = nl_langinfo(CODESET); |
| 7065 | ; return 0; } |
| 7066 | EOF |
| 7067 | if { (eval echo configure:7068: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 7068 | rm -rf conftest* |
| 7069 | echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF |
| 7070 | #define HAVE_NL_LANGINFO_CODESET 1 |
| 7071 | EOF |
| 7072 | |
| 7073 | else |
| 7074 | echo "configure: failed program was:" >&5 |
| 7075 | cat conftest.$ac_ext >&5 |
| 7076 | rm -rf conftest* |
| 7077 | echo "$ac_t""no" 1>&6 |
| 7078 | fi |
| 7079 | rm -f conftest* |
| 7080 | |
| 7081 | echo $ac_n "checking --disable-acl argument""... $ac_c" 1>&6 |
| 7082 | echo "configure:7083: checking --disable-acl argument" >&5 |
| 7083 | # Check whether --enable-acl or --disable-acl was given. |
| 7084 | if test "${enable_acl+set}" = set; then |
| 7085 | enableval="$enable_acl" |
| 7086 | : |
| 7087 | else |
| 7088 | enable_acl="yes" |
| 7089 | fi |
| 7090 | |
| 7091 | if test "$enable_acl" = "yes"; then |
| 7092 | echo "$ac_t""no" 1>&6 |
| 7093 | echo $ac_n "checking for acl_get_file in -lposix1e""... $ac_c" 1>&6 |
| 7094 | echo "configure:7095: checking for acl_get_file in -lposix1e" >&5 |
| 7095 | ac_lib_var=`echo posix1e'_'acl_get_file | sed 'y%./+-%__p_%'` |
| 7096 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 7097 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 7098 | else |
| 7099 | ac_save_LIBS="$LIBS" |
| 7100 | LIBS="-lposix1e $LIBS" |
| 7101 | cat > conftest.$ac_ext <<EOF |
| 7102 | #line 7103 "configure" |
| 7103 | #include "confdefs.h" |
| 7104 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 7105 | /* We use char because int might match the return type of a gcc2 |
| 7106 | builtin and then its argument prototype would still apply. */ |
| 7107 | char acl_get_file(); |
| 7108 | |
| 7109 | int main() { |
| 7110 | acl_get_file() |
| 7111 | ; return 0; } |
| 7112 | EOF |
| 7113 | if { (eval echo configure:7114: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 7114 | rm -rf conftest* |
| 7115 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 7116 | else |
| 7117 | echo "configure: failed program was:" >&5 |
| 7118 | cat conftest.$ac_ext >&5 |
| 7119 | rm -rf conftest* |
| 7120 | eval "ac_cv_lib_$ac_lib_var=no" |
| 7121 | fi |
| 7122 | rm -f conftest* |
| 7123 | LIBS="$ac_save_LIBS" |
| 7124 | |
| 7125 | fi |
| 7126 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 7127 | echo "$ac_t""yes" 1>&6 |
| 7128 | LIBS="$LIBS -lposix1e" |
| 7129 | else |
| 7130 | echo "$ac_t""no" 1>&6 |
| 7131 | echo $ac_n "checking for acl_get_file in -lacl""... $ac_c" 1>&6 |
| 7132 | echo "configure:7133: checking for acl_get_file in -lacl" >&5 |
| 7133 | ac_lib_var=`echo acl'_'acl_get_file | sed 'y%./+-%__p_%'` |
| 7134 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 7135 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 7136 | else |
| 7137 | ac_save_LIBS="$LIBS" |
| 7138 | LIBS="-lacl $LIBS" |
| 7139 | cat > conftest.$ac_ext <<EOF |
| 7140 | #line 7141 "configure" |
| 7141 | #include "confdefs.h" |
| 7142 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 7143 | /* We use char because int might match the return type of a gcc2 |
| 7144 | builtin and then its argument prototype would still apply. */ |
| 7145 | char acl_get_file(); |
| 7146 | |
| 7147 | int main() { |
| 7148 | acl_get_file() |
| 7149 | ; return 0; } |
| 7150 | EOF |
| 7151 | if { (eval echo configure:7152: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 7152 | rm -rf conftest* |
| 7153 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 7154 | else |
| 7155 | echo "configure: failed program was:" >&5 |
| 7156 | cat conftest.$ac_ext >&5 |
| 7157 | rm -rf conftest* |
| 7158 | eval "ac_cv_lib_$ac_lib_var=no" |
| 7159 | fi |
| 7160 | rm -f conftest* |
| 7161 | LIBS="$ac_save_LIBS" |
| 7162 | |
| 7163 | fi |
| 7164 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 7165 | echo "$ac_t""yes" 1>&6 |
| 7166 | LIBS="$LIBS -lacl" |
| 7167 | echo $ac_n "checking for fgetxattr in -lattr""... $ac_c" 1>&6 |
| 7168 | echo "configure:7169: checking for fgetxattr in -lattr" >&5 |
| 7169 | ac_lib_var=`echo attr'_'fgetxattr | sed 'y%./+-%__p_%'` |
| 7170 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 7171 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 7172 | else |
| 7173 | ac_save_LIBS="$LIBS" |
| 7174 | LIBS="-lattr $LIBS" |
| 7175 | cat > conftest.$ac_ext <<EOF |
| 7176 | #line 7177 "configure" |
| 7177 | #include "confdefs.h" |
| 7178 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 7179 | /* We use char because int might match the return type of a gcc2 |
| 7180 | builtin and then its argument prototype would still apply. */ |
| 7181 | char fgetxattr(); |
| 7182 | |
| 7183 | int main() { |
| 7184 | fgetxattr() |
| 7185 | ; return 0; } |
| 7186 | EOF |
| 7187 | if { (eval echo configure:7188: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 7188 | rm -rf conftest* |
| 7189 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 7190 | else |
| 7191 | echo "configure: failed program was:" >&5 |
| 7192 | cat conftest.$ac_ext >&5 |
| 7193 | rm -rf conftest* |
| 7194 | eval "ac_cv_lib_$ac_lib_var=no" |
| 7195 | fi |
| 7196 | rm -f conftest* |
| 7197 | LIBS="$ac_save_LIBS" |
| 7198 | |
| 7199 | fi |
| 7200 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 7201 | echo "$ac_t""yes" 1>&6 |
| 7202 | LIBS="$LIBS -lattr" |
| 7203 | else |
| 7204 | echo "$ac_t""no" 1>&6 |
| 7205 | fi |
| 7206 | |
| 7207 | else |
| 7208 | echo "$ac_t""no" 1>&6 |
| 7209 | fi |
| 7210 | |
| 7211 | fi |
| 7212 | |
| 7213 | |
| 7214 | echo $ac_n "checking for POSIX ACL support""... $ac_c" 1>&6 |
| 7215 | echo "configure:7216: checking for POSIX ACL support" >&5 |
| 7216 | cat > conftest.$ac_ext <<EOF |
| 7217 | #line 7218 "configure" |
| 7218 | #include "confdefs.h" |
| 7219 | |
| 7220 | #include <sys/types.h> |
| 7221 | #ifdef HAVE_SYS_ACL_H |
| 7222 | # include <sys/acl.h> |
| 7223 | #endif |
| 7224 | acl_t acl; |
| 7225 | int main() { |
| 7226 | acl = acl_get_file("foo", ACL_TYPE_ACCESS); |
| 7227 | acl_set_file("foo", ACL_TYPE_ACCESS, acl); |
| 7228 | acl_free(acl); |
| 7229 | ; return 0; } |
| 7230 | EOF |
| 7231 | if { (eval echo configure:7232: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 7232 | rm -rf conftest* |
| 7233 | echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF |
| 7234 | #define HAVE_POSIX_ACL 1 |
| 7235 | EOF |
| 7236 | |
| 7237 | else |
| 7238 | echo "configure: failed program was:" >&5 |
| 7239 | cat conftest.$ac_ext >&5 |
| 7240 | rm -rf conftest* |
| 7241 | echo "$ac_t""no" 1>&6 |
| 7242 | fi |
| 7243 | rm -f conftest* |
| 7244 | |
| 7245 | echo $ac_n "checking for Solaris ACL support""... $ac_c" 1>&6 |
| 7246 | echo "configure:7247: checking for Solaris ACL support" >&5 |
| 7247 | cat > conftest.$ac_ext <<EOF |
| 7248 | #line 7249 "configure" |
| 7249 | #include "confdefs.h" |
| 7250 | |
| 7251 | #ifdef HAVE_SYS_ACL_H |
| 7252 | # include <sys/acl.h> |
| 7253 | #endif |
| 7254 | int main() { |
| 7255 | acl("foo", GETACLCNT, 0, NULL); |
| 7256 | |
| 7257 | ; return 0; } |
| 7258 | EOF |
| 7259 | if { (eval echo configure:7260: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 7260 | rm -rf conftest* |
| 7261 | echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF |
| 7262 | #define HAVE_SOLARIS_ACL 1 |
| 7263 | EOF |
| 7264 | |
| 7265 | else |
| 7266 | echo "configure: failed program was:" >&5 |
| 7267 | cat conftest.$ac_ext >&5 |
| 7268 | rm -rf conftest* |
| 7269 | echo "$ac_t""no" 1>&6 |
| 7270 | fi |
| 7271 | rm -f conftest* |
| 7272 | |
| 7273 | echo $ac_n "checking for AIX ACL support""... $ac_c" 1>&6 |
| 7274 | echo "configure:7275: checking for AIX ACL support" >&5 |
| 7275 | cat > conftest.$ac_ext <<EOF |
| 7276 | #line 7277 "configure" |
| 7277 | #include "confdefs.h" |
| 7278 | |
| 7279 | #ifdef HAVE_SYS_ACL_H |
| 7280 | # include <sys/acl.h> |
| 7281 | #endif |
| 7282 | #ifdef HAVE_SYS_ACCESS_H |
| 7283 | # include <sys/access.h> |
| 7284 | #endif |
| 7285 | #define _ALL_SOURCE |
| 7286 | |
| 7287 | #include <sys/stat.h> |
| 7288 | |
| 7289 | int aclsize; |
| 7290 | struct acl *aclent; |
| 7291 | int main() { |
| 7292 | aclsize = sizeof(struct acl); |
| 7293 | aclent = (void *)malloc(aclsize); |
| 7294 | statacl("foo", STX_NORMAL, aclent, aclsize); |
| 7295 | |
| 7296 | ; return 0; } |
| 7297 | EOF |
| 7298 | if { (eval echo configure:7299: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 7299 | rm -rf conftest* |
| 7300 | echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF |
| 7301 | #define HAVE_AIX_ACL 1 |
| 7302 | EOF |
| 7303 | |
| 7304 | else |
| 7305 | echo "configure: failed program was:" >&5 |
| 7306 | cat conftest.$ac_ext >&5 |
| 7307 | rm -rf conftest* |
| 7308 | echo "$ac_t""no" 1>&6 |
| 7309 | fi |
| 7310 | rm -f conftest* |
| 7311 | else |
| 7312 | echo "$ac_t""yes" 1>&6 |
| 7313 | fi |
| 7314 | |
| 7315 | echo $ac_n "checking --disable-gpm argument""... $ac_c" 1>&6 |
| 7316 | echo "configure:7317: checking --disable-gpm argument" >&5 |
| 7317 | # Check whether --enable-gpm or --disable-gpm was given. |
| 7318 | if test "${enable_gpm+set}" = set; then |
| 7319 | enableval="$enable_gpm" |
| 7320 | : |
| 7321 | else |
| 7322 | enable_gpm="yes" |
| 7323 | fi |
| 7324 | |
| 7325 | |
| 7326 | if test "$enable_gpm" = "yes"; then |
| 7327 | echo "$ac_t""no" 1>&6 |
| 7328 | echo $ac_n "checking for gpm""... $ac_c" 1>&6 |
| 7329 | echo "configure:7330: checking for gpm" >&5 |
| 7330 | if eval "test \"`echo '$''{'vi_cv_have_gpm'+set}'`\" = set"; then |
| 7331 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 7332 | else |
| 7333 | olibs="$LIBS" ; LIBS="-lgpm" |
| 7334 | cat > conftest.$ac_ext <<EOF |
| 7335 | #line 7336 "configure" |
| 7336 | #include "confdefs.h" |
| 7337 | #include <gpm.h> |
| 7338 | #include <linux/keyboard.h> |
| 7339 | int main() { |
| 7340 | Gpm_GetLibVersion(NULL); |
| 7341 | ; return 0; } |
| 7342 | EOF |
| 7343 | if { (eval echo configure:7344: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 7344 | rm -rf conftest* |
| 7345 | vi_cv_have_gpm=yes |
| 7346 | else |
| 7347 | echo "configure: failed program was:" >&5 |
| 7348 | cat conftest.$ac_ext >&5 |
| 7349 | rm -rf conftest* |
| 7350 | vi_cv_have_gpm=no |
| 7351 | fi |
| 7352 | rm -f conftest* |
| 7353 | LIBS="$olibs" |
| 7354 | |
| 7355 | fi |
| 7356 | |
| 7357 | echo "$ac_t""$vi_cv_have_gpm" 1>&6 |
| 7358 | if test $vi_cv_have_gpm = yes; then |
| 7359 | LIBS="$LIBS -lgpm" |
| 7360 | cat >> confdefs.h <<\EOF |
| 7361 | #define HAVE_GPM 1 |
| 7362 | EOF |
| 7363 | |
| 7364 | fi |
| 7365 | else |
| 7366 | echo "$ac_t""yes" 1>&6 |
| 7367 | fi |
| 7368 | |
| 7369 | echo $ac_n "checking for vsnprintf()""... $ac_c" 1>&6 |
| 7370 | echo "configure:7371: checking for vsnprintf()" >&5 |
| 7371 | if test "$cross_compiling" = yes; then |
| 7372 | { echo "configure: error: failed to compile test program" 1>&2; exit 1; } |
| 7373 | else |
| 7374 | cat > conftest.$ac_ext <<EOF |
| 7375 | #line 7376 "configure" |
| 7376 | #include "confdefs.h" |
| 7377 | |
| 7378 | #include <stdio.h> |
| 7379 | #include <stdarg.h> |
| 7380 | /* Check use of vsnprintf() */ |
| 7381 | void warn(char *fmt, ...); |
| 7382 | void warn(char *fmt, ...) |
| 7383 | { |
| 7384 | va_list ap; char buf[20]; |
| 7385 | va_start(ap, fmt); |
| 7386 | vsnprintf(buf, 20, fmt, ap); |
| 7387 | va_end(ap); |
| 7388 | } |
| 7389 | main() |
| 7390 | { |
| 7391 | warn("testing %s\n", "a very long string that won't fit"); |
| 7392 | exit(0); |
| 7393 | } |
| 7394 | |
| 7395 | EOF |
| 7396 | if { (eval echo configure:7397: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
| 7397 | then |
| 7398 | cat >> confdefs.h <<\EOF |
| 7399 | #define HAVE_VSNPRINTF 1 |
| 7400 | EOF |
| 7401 | echo "$ac_t""yes" 1>&6 |
| 7402 | else |
| 7403 | echo "configure: failed program was:" >&5 |
| 7404 | cat conftest.$ac_ext >&5 |
| 7405 | rm -fr conftest* |
| 7406 | echo "$ac_t""no" 1>&6 |
| 7407 | fi |
| 7408 | rm -fr conftest* |
| 7409 | fi |
| 7410 | |
| 7411 | |
| 7412 | |
| 7413 | echo $ac_n "checking for rename""... $ac_c" 1>&6 |
| 7414 | echo "configure:7415: checking for rename" >&5 |
| 7415 | cat > conftest.$ac_ext <<EOF |
| 7416 | #line 7417 "configure" |
| 7417 | #include "confdefs.h" |
| 7418 | #include <stdio.h> |
| 7419 | int main() { |
| 7420 | rename("this", "that") |
| 7421 | ; return 0; } |
| 7422 | EOF |
| 7423 | if { (eval echo configure:7424: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 7424 | rm -rf conftest* |
| 7425 | echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF |
| 7426 | #define HAVE_RENAME 1 |
| 7427 | EOF |
| 7428 | |
| 7429 | else |
| 7430 | echo "configure: failed program was:" >&5 |
| 7431 | cat conftest.$ac_ext >&5 |
| 7432 | rm -rf conftest* |
| 7433 | echo "$ac_t""no" 1>&6 |
| 7434 | fi |
| 7435 | rm -f conftest* |
| 7436 | |
| 7437 | echo $ac_n "checking for sysctl""... $ac_c" 1>&6 |
| 7438 | echo "configure:7439: checking for sysctl" >&5 |
| 7439 | cat > conftest.$ac_ext <<EOF |
| 7440 | #line 7441 "configure" |
| 7441 | #include "confdefs.h" |
| 7442 | #include <sys/types.h> |
| 7443 | #include <sys/sysctl.h> |
| 7444 | int main() { |
| 7445 | int mib[2], r; |
| 7446 | size_t len; |
| 7447 | |
| 7448 | mib[0] = CTL_HW; |
| 7449 | mib[1] = HW_USERMEM; |
| 7450 | len = sizeof(r); |
| 7451 | (void)sysctl(mib, 2, &r, &len, (void *)0, (size_t)0); |
| 7452 | |
| 7453 | ; return 0; } |
| 7454 | EOF |
| 7455 | if { (eval echo configure:7456: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| 7456 | rm -rf conftest* |
| 7457 | echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF |
| 7458 | #define HAVE_SYSCTL 1 |
| 7459 | EOF |
| 7460 | |
| 7461 | else |
| 7462 | echo "configure: failed program was:" >&5 |
| 7463 | cat conftest.$ac_ext >&5 |
| 7464 | rm -rf conftest* |
| 7465 | echo "$ac_t""not usable" 1>&6 |
| 7466 | fi |
| 7467 | rm -f conftest* |
| 7468 | |
| 7469 | echo $ac_n "checking for sysinfo""... $ac_c" 1>&6 |
| 7470 | echo "configure:7471: checking for sysinfo" >&5 |
| 7471 | cat > conftest.$ac_ext <<EOF |
| 7472 | #line 7473 "configure" |
| 7473 | #include "confdefs.h" |
| 7474 | #include <sys/types.h> |
| 7475 | #include <sys/sysinfo.h> |
| 7476 | int main() { |
| 7477 | struct sysinfo sinfo; |
| 7478 | int t; |
| 7479 | |
| 7480 | (void)sysinfo(&sinfo); |
| 7481 | t = sinfo.totalram; |
| 7482 | |
| 7483 | ; return 0; } |
| 7484 | EOF |
| 7485 | if { (eval echo configure:7486: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| 7486 | rm -rf conftest* |
| 7487 | echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF |
| 7488 | #define HAVE_SYSINFO 1 |
| 7489 | EOF |
| 7490 | |
| 7491 | else |
| 7492 | echo "configure: failed program was:" >&5 |
| 7493 | cat conftest.$ac_ext >&5 |
| 7494 | rm -rf conftest* |
| 7495 | echo "$ac_t""not usable" 1>&6 |
| 7496 | fi |
| 7497 | rm -f conftest* |
| 7498 | |
| 7499 | echo $ac_n "checking for sysconf""... $ac_c" 1>&6 |
| 7500 | echo "configure:7501: checking for sysconf" >&5 |
| 7501 | cat > conftest.$ac_ext <<EOF |
| 7502 | #line 7503 "configure" |
| 7503 | #include "confdefs.h" |
| 7504 | #include <unistd.h> |
| 7505 | int main() { |
| 7506 | (void)sysconf(_SC_PAGESIZE); |
| 7507 | (void)sysconf(_SC_PHYS_PAGES); |
| 7508 | |
| 7509 | ; return 0; } |
| 7510 | EOF |
| 7511 | if { (eval echo configure:7512: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| 7512 | rm -rf conftest* |
| 7513 | echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF |
| 7514 | #define HAVE_SYSCONF 1 |
| 7515 | EOF |
| 7516 | |
| 7517 | else |
| 7518 | echo "configure: failed program was:" >&5 |
| 7519 | cat conftest.$ac_ext >&5 |
| 7520 | rm -rf conftest* |
| 7521 | echo "$ac_t""not usable" 1>&6 |
| 7522 | fi |
| 7523 | rm -f conftest* |
| 7524 | |
| 7525 | |
| 7526 | echo $ac_n "checking size of int""... $ac_c" 1>&6 |
| 7527 | echo "configure:7528: checking size of int" >&5 |
| 7528 | if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then |
| 7529 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 7530 | else |
| 7531 | if test "$cross_compiling" = yes; then |
| 7532 | { echo "configure: error: failed to compile test program" 1>&2; exit 1; } |
| 7533 | else |
| 7534 | cat > conftest.$ac_ext <<EOF |
| 7535 | #line 7536 "configure" |
| 7536 | #include "confdefs.h" |
| 7537 | #include <stdio.h> |
| 7538 | main() |
| 7539 | { |
| 7540 | FILE *f=fopen("conftestval", "w"); |
| 7541 | if (!f) exit(1); |
| 7542 | fprintf(f, "%d\n", (int)sizeof(int)); |
| 7543 | exit(0); |
| 7544 | } |
| 7545 | EOF |
| 7546 | if { (eval echo configure:7547: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
| 7547 | then |
| 7548 | ac_cv_sizeof_int=`cat conftestval` |
| 7549 | else |
| 7550 | echo "configure: failed program was:" >&5 |
| 7551 | cat conftest.$ac_ext >&5 |
| 7552 | rm -fr conftest* |
| 7553 | ac_cv_sizeof_int=0 |
| 7554 | fi |
| 7555 | rm -fr conftest* |
| 7556 | fi |
| 7557 | |
| 7558 | fi |
| 7559 | |
| 7560 | echo "$ac_t""$ac_cv_sizeof_int" 1>&6 |
| 7561 | cat >> confdefs.h <<EOF |
| 7562 | #define SIZEOF_INT $ac_cv_sizeof_int |
| 7563 | EOF |
| 7564 | |
| 7565 | |
| 7566 | echo $ac_n "checking whether memmove/bcopy/memcpy handle overlaps""... $ac_c" 1>&6 |
| 7567 | echo "configure:7568: checking whether memmove/bcopy/memcpy handle overlaps" >&5 |
| 7568 | bcopy_test_prog=' |
| 7569 | main() { |
| 7570 | char buf[10]; |
| 7571 | strcpy(buf, "abcdefghi"); |
| 7572 | mch_memmove(buf, buf + 2, 3); |
| 7573 | if (strncmp(buf, "ababcf", 6)) |
| 7574 | exit(1); |
| 7575 | strcpy(buf, "abcdefghi"); |
| 7576 | mch_memmove(buf + 2, buf, 3); |
| 7577 | if (strncmp(buf, "cdedef", 6)) |
| 7578 | exit(1); |
| 7579 | exit(0); /* libc version works properly. */ |
| 7580 | }' |
| 7581 | |
| 7582 | |
| 7583 | if test "$cross_compiling" = yes; then |
| 7584 | { echo "configure: error: failed to compile test program" 1>&2; exit 1; } |
| 7585 | else |
| 7586 | cat > conftest.$ac_ext <<EOF |
| 7587 | #line 7588 "configure" |
| 7588 | #include "confdefs.h" |
| 7589 | #define mch_memmove(s,d,l) memmove(d,s,l) $bcopy_test_prog |
| 7590 | EOF |
| 7591 | if { (eval echo configure:7592: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
| 7592 | then |
| 7593 | cat >> confdefs.h <<\EOF |
| 7594 | #define USEMEMMOVE 1 |
| 7595 | EOF |
| 7596 | echo "$ac_t""memmove does" 1>&6 |
| 7597 | else |
| 7598 | echo "configure: failed program was:" >&5 |
| 7599 | cat conftest.$ac_ext >&5 |
| 7600 | rm -fr conftest* |
| 7601 | if test "$cross_compiling" = yes; then |
| 7602 | { echo "configure: error: failed to compile test program" 1>&2; exit 1; } |
| 7603 | else |
| 7604 | cat > conftest.$ac_ext <<EOF |
| 7605 | #line 7606 "configure" |
| 7606 | #include "confdefs.h" |
| 7607 | #define mch_memmove(s,d,l) bcopy(d,s,l) $bcopy_test_prog |
| 7608 | EOF |
| 7609 | if { (eval echo configure:7610: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
| 7610 | then |
| 7611 | cat >> confdefs.h <<\EOF |
| 7612 | #define USEBCOPY 1 |
| 7613 | EOF |
| 7614 | echo "$ac_t""bcopy does" 1>&6 |
| 7615 | else |
| 7616 | echo "configure: failed program was:" >&5 |
| 7617 | cat conftest.$ac_ext >&5 |
| 7618 | rm -fr conftest* |
| 7619 | if test "$cross_compiling" = yes; then |
| 7620 | { echo "configure: error: failed to compile test program" 1>&2; exit 1; } |
| 7621 | else |
| 7622 | cat > conftest.$ac_ext <<EOF |
| 7623 | #line 7624 "configure" |
| 7624 | #include "confdefs.h" |
| 7625 | #define mch_memmove(s,d,l) memcpy(d,s,l) $bcopy_test_prog |
| 7626 | EOF |
| 7627 | if { (eval echo configure:7628: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
| 7628 | then |
| 7629 | cat >> confdefs.h <<\EOF |
| 7630 | #define USEMEMCPY 1 |
| 7631 | EOF |
| 7632 | echo "$ac_t""memcpy does" 1>&6 |
| 7633 | else |
| 7634 | echo "configure: failed program was:" >&5 |
| 7635 | cat conftest.$ac_ext >&5 |
| 7636 | rm -fr conftest* |
| 7637 | echo "$ac_t""no" 1>&6 |
| 7638 | fi |
| 7639 | rm -fr conftest* |
| 7640 | fi |
| 7641 | |
| 7642 | fi |
| 7643 | rm -fr conftest* |
| 7644 | fi |
| 7645 | |
| 7646 | fi |
| 7647 | rm -fr conftest* |
| 7648 | fi |
| 7649 | |
| 7650 | |
| 7651 | |
| 7652 | if test "$enable_multibyte" = "yes"; then |
| 7653 | cflags_save=$CFLAGS |
| 7654 | ldflags_save=$LDFLAGS |
| 7655 | if test -n "$x_includes" ; then |
| 7656 | CFLAGS="$CFLAGS -I$x_includes" |
| 7657 | LDFLAGS="$X_LIBS $LDFLAGS -lX11" |
| 7658 | echo $ac_n "checking whether X_LOCALE needed""... $ac_c" 1>&6 |
| 7659 | echo "configure:7660: checking whether X_LOCALE needed" >&5 |
| 7660 | cat > conftest.$ac_ext <<EOF |
| 7661 | #line 7662 "configure" |
| 7662 | #include "confdefs.h" |
| 7663 | #include <X11/Xlocale.h> |
| 7664 | int main() { |
| 7665 | |
| 7666 | ; return 0; } |
| 7667 | EOF |
| 7668 | if { (eval echo configure:7669: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| 7669 | rm -rf conftest* |
| 7670 | cat > conftest.$ac_ext <<EOF |
| 7671 | #line 7672 "configure" |
| 7672 | #include "confdefs.h" |
| 7673 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 7674 | /* We use char because int might match the return type of a gcc2 |
| 7675 | builtin and then its argument prototype would still apply. */ |
| 7676 | char _Xsetlocale(); |
| 7677 | |
| 7678 | int main() { |
| 7679 | _Xsetlocale() |
| 7680 | ; return 0; } |
| 7681 | EOF |
| 7682 | if { (eval echo configure:7683: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 7683 | rm -rf conftest* |
| 7684 | echo "$ac_t""yes" 1>&6 |
| 7685 | cat >> confdefs.h <<\EOF |
| 7686 | #define X_LOCALE 1 |
| 7687 | EOF |
| 7688 | |
| 7689 | else |
| 7690 | echo "configure: failed program was:" >&5 |
| 7691 | cat conftest.$ac_ext >&5 |
| 7692 | rm -rf conftest* |
| 7693 | echo "$ac_t""no" 1>&6 |
| 7694 | fi |
| 7695 | rm -f conftest* |
| 7696 | else |
| 7697 | echo "configure: failed program was:" >&5 |
| 7698 | cat conftest.$ac_ext >&5 |
| 7699 | rm -rf conftest* |
| 7700 | echo "$ac_t""no" 1>&6 |
| 7701 | fi |
| 7702 | rm -f conftest* |
| 7703 | fi |
| 7704 | CFLAGS=$cflags_save |
| 7705 | LDFLAGS=$ldflags_save |
| 7706 | fi |
| 7707 | |
| 7708 | echo $ac_n "checking for _xpg4_setrunelocale in -lxpg4""... $ac_c" 1>&6 |
| 7709 | echo "configure:7710: checking for _xpg4_setrunelocale in -lxpg4" >&5 |
| 7710 | ac_lib_var=`echo xpg4'_'_xpg4_setrunelocale | sed 'y%./+-%__p_%'` |
| 7711 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 7712 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 7713 | else |
| 7714 | ac_save_LIBS="$LIBS" |
| 7715 | LIBS="-lxpg4 $LIBS" |
| 7716 | cat > conftest.$ac_ext <<EOF |
| 7717 | #line 7718 "configure" |
| 7718 | #include "confdefs.h" |
| 7719 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 7720 | /* We use char because int might match the return type of a gcc2 |
| 7721 | builtin and then its argument prototype would still apply. */ |
| 7722 | char _xpg4_setrunelocale(); |
| 7723 | |
| 7724 | int main() { |
| 7725 | _xpg4_setrunelocale() |
| 7726 | ; return 0; } |
| 7727 | EOF |
| 7728 | if { (eval echo configure:7729: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 7729 | rm -rf conftest* |
| 7730 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 7731 | else |
| 7732 | echo "configure: failed program was:" >&5 |
| 7733 | cat conftest.$ac_ext >&5 |
| 7734 | rm -rf conftest* |
| 7735 | eval "ac_cv_lib_$ac_lib_var=no" |
| 7736 | fi |
| 7737 | rm -f conftest* |
| 7738 | LIBS="$ac_save_LIBS" |
| 7739 | |
| 7740 | fi |
| 7741 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 7742 | echo "$ac_t""yes" 1>&6 |
| 7743 | LIBS="$LIBS -lxpg4" |
| 7744 | else |
| 7745 | echo "$ac_t""no" 1>&6 |
| 7746 | fi |
| 7747 | |
| 7748 | |
| 7749 | echo $ac_n "checking how to create tags""... $ac_c" 1>&6 |
| 7750 | echo "configure:7751: checking how to create tags" >&5 |
| 7751 | test -f tags && mv tags tags.save |
| 7752 | if (eval ctags --version /dev/null | grep Exuberant) < /dev/null 1>&5 2>&1; then |
| 7753 | TAGPRG="ctags" |
| 7754 | else |
| 7755 | (eval etags /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags" |
| 7756 | (eval etags -c /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="etags -c" |
| 7757 | (eval ctags /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags" |
| 7758 | (eval ctags -t /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -t" |
| 7759 | (eval ctags -ts /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -ts" |
| 7760 | (eval ctags -tvs /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -tvs" |
| 7761 | (eval ctags -i+m /dev/null) < /dev/null 1>&5 2>&1 && TAGPRG="ctags -i+m" |
| 7762 | fi |
| 7763 | test -f tags.save && mv tags.save tags |
| 7764 | echo "$ac_t""$TAGPRG" 1>&6 |
| 7765 | |
| 7766 | echo $ac_n "checking how to run man with a section nr""... $ac_c" 1>&6 |
| 7767 | echo "configure:7768: checking how to run man with a section nr" >&5 |
| 7768 | MANDEF="man" |
| 7769 | (eval man -s 2 read) < /dev/null > /dev/null 2>&5 && MANDEF="man -s" |
| 7770 | echo "$ac_t""$MANDEF" 1>&6 |
| 7771 | if test "$MANDEF" = "man -s"; then |
| 7772 | cat >> confdefs.h <<\EOF |
| 7773 | #define USEMAN_S 1 |
| 7774 | EOF |
| 7775 | |
| 7776 | fi |
| 7777 | |
| 7778 | echo $ac_n "checking --disable-nls argument""... $ac_c" 1>&6 |
| 7779 | echo "configure:7780: checking --disable-nls argument" >&5 |
| 7780 | # Check whether --enable-nls or --disable-nls was given. |
| 7781 | if test "${enable_nls+set}" = set; then |
| 7782 | enableval="$enable_nls" |
| 7783 | : |
| 7784 | else |
| 7785 | enable_nls="yes" |
| 7786 | fi |
| 7787 | |
| 7788 | |
| 7789 | if test "$enable_nls" = "yes"; then |
| 7790 | echo "$ac_t""no" 1>&6 |
| 7791 | # Extract the first word of "msgfmt", so it can be a program name with args. |
| 7792 | set dummy msgfmt; ac_word=$2 |
| 7793 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| 7794 | echo "configure:7795: checking for $ac_word" >&5 |
| 7795 | if eval "test \"`echo '$''{'ac_cv_prog_MSGFMT'+set}'`\" = set"; then |
| 7796 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 7797 | else |
| 7798 | if test -n "$MSGFMT"; then |
| 7799 | ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test. |
| 7800 | else |
| 7801 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 7802 | ac_dummy="$PATH" |
| 7803 | for ac_dir in $ac_dummy; do |
| 7804 | test -z "$ac_dir" && ac_dir=. |
| 7805 | if test -f $ac_dir/$ac_word; then |
| 7806 | ac_cv_prog_MSGFMT="msgfmt" |
| 7807 | break |
| 7808 | fi |
| 7809 | done |
| 7810 | IFS="$ac_save_ifs" |
| 7811 | fi |
| 7812 | fi |
| 7813 | MSGFMT="$ac_cv_prog_MSGFMT" |
| 7814 | if test -n "$MSGFMT"; then |
| 7815 | echo "$ac_t""$MSGFMT" 1>&6 |
| 7816 | else |
| 7817 | echo "$ac_t""no" 1>&6 |
| 7818 | fi |
| 7819 | |
| 7820 | echo $ac_n "checking for NLS""... $ac_c" 1>&6 |
| 7821 | echo "configure:7822: checking for NLS" >&5 |
| 7822 | if test -f po/Makefile; then |
| 7823 | have_gettext="no" |
| 7824 | if test -n "$MSGFMT"; then |
| 7825 | cat > conftest.$ac_ext <<EOF |
| 7826 | #line 7827 "configure" |
| 7827 | #include "confdefs.h" |
| 7828 | #include <libintl.h> |
| 7829 | int main() { |
| 7830 | gettext("Test"); |
| 7831 | ; return 0; } |
| 7832 | EOF |
| 7833 | if { (eval echo configure:7834: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 7834 | rm -rf conftest* |
| 7835 | echo "$ac_t""gettext() works" 1>&6; have_gettext="yes" |
| 7836 | else |
| 7837 | echo "configure: failed program was:" >&5 |
| 7838 | cat conftest.$ac_ext >&5 |
| 7839 | rm -rf conftest* |
| 7840 | olibs=$LIBS |
| 7841 | LIBS="$LIBS -lintl" |
| 7842 | cat > conftest.$ac_ext <<EOF |
| 7843 | #line 7844 "configure" |
| 7844 | #include "confdefs.h" |
| 7845 | #include <libintl.h> |
| 7846 | int main() { |
| 7847 | gettext("Test"); |
| 7848 | ; return 0; } |
| 7849 | EOF |
| 7850 | if { (eval echo configure:7851: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 7851 | rm -rf conftest* |
| 7852 | echo "$ac_t""gettext() works with -lintl" 1>&6; have_gettext="yes" |
| 7853 | else |
| 7854 | echo "configure: failed program was:" >&5 |
| 7855 | cat conftest.$ac_ext >&5 |
| 7856 | rm -rf conftest* |
| 7857 | echo "$ac_t""gettext() doesn't work" 1>&6; |
| 7858 | LIBS=$olibs |
| 7859 | fi |
| 7860 | rm -f conftest* |
| 7861 | fi |
| 7862 | rm -f conftest* |
| 7863 | else |
| 7864 | echo "$ac_t""msgfmt not found - disabled" 1>&6; |
| 7865 | fi |
| 7866 | if test $have_gettext = "yes"; then |
| 7867 | cat >> confdefs.h <<\EOF |
| 7868 | #define HAVE_GETTEXT 1 |
| 7869 | EOF |
| 7870 | |
| 7871 | MAKEMO=yes |
| 7872 | |
| 7873 | for ac_func in bind_textdomain_codeset |
| 7874 | do |
| 7875 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
| 7876 | echo "configure:7877: checking for $ac_func" >&5 |
| 7877 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
| 7878 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 7879 | else |
| 7880 | cat > conftest.$ac_ext <<EOF |
| 7881 | #line 7882 "configure" |
| 7882 | #include "confdefs.h" |
| 7883 | /* System header to define __stub macros and hopefully few prototypes, |
| 7884 | which can conflict with char $ac_func(); below. */ |
| 7885 | #include <assert.h> |
| 7886 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 7887 | /* We use char because int might match the return type of a gcc2 |
| 7888 | builtin and then its argument prototype would still apply. */ |
| 7889 | char $ac_func(); |
| 7890 | |
| 7891 | int main() { |
| 7892 | |
| 7893 | /* The GNU C library defines this for functions which it implements |
| 7894 | to always fail with ENOSYS. Some functions are actually named |
| 7895 | something starting with __ and the normal name is an alias. */ |
| 7896 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 7897 | choke me |
| 7898 | #else |
| 7899 | $ac_func(); |
| 7900 | #endif |
| 7901 | |
| 7902 | ; return 0; } |
| 7903 | EOF |
| 7904 | if { (eval echo configure:7905: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 7905 | rm -rf conftest* |
| 7906 | eval "ac_cv_func_$ac_func=yes" |
| 7907 | else |
| 7908 | echo "configure: failed program was:" >&5 |
| 7909 | cat conftest.$ac_ext >&5 |
| 7910 | rm -rf conftest* |
| 7911 | eval "ac_cv_func_$ac_func=no" |
| 7912 | fi |
| 7913 | rm -f conftest* |
| 7914 | fi |
| 7915 | |
| 7916 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
| 7917 | echo "$ac_t""yes" 1>&6 |
| 7918 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 7919 | cat >> confdefs.h <<EOF |
| 7920 | #define $ac_tr_func 1 |
| 7921 | EOF |
| 7922 | |
| 7923 | else |
| 7924 | echo "$ac_t""no" 1>&6 |
| 7925 | fi |
| 7926 | done |
| 7927 | |
| 7928 | echo $ac_n "checking for _nl_msg_cat_cntr""... $ac_c" 1>&6 |
| 7929 | echo "configure:7930: checking for _nl_msg_cat_cntr" >&5 |
| 7930 | cat > conftest.$ac_ext <<EOF |
| 7931 | #line 7932 "configure" |
| 7932 | #include "confdefs.h" |
| 7933 | #include <libintl.h> |
| 7934 | extern int _nl_msg_cat_cntr; |
| 7935 | int main() { |
| 7936 | ++_nl_msg_cat_cntr; |
| 7937 | ; return 0; } |
| 7938 | EOF |
| 7939 | if { (eval echo configure:7940: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 7940 | rm -rf conftest* |
| 7941 | echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF |
| 7942 | #define HAVE_NL_MSG_CAT_CNTR 1 |
| 7943 | EOF |
| 7944 | |
| 7945 | else |
| 7946 | echo "configure: failed program was:" >&5 |
| 7947 | cat conftest.$ac_ext >&5 |
| 7948 | rm -rf conftest* |
| 7949 | echo "$ac_t""no" 1>&6 |
| 7950 | fi |
| 7951 | rm -f conftest* |
| 7952 | fi |
| 7953 | else |
| 7954 | echo "$ac_t""no "po/Makefile" - disabled" 1>&6; |
| 7955 | fi |
| 7956 | else |
| 7957 | echo "$ac_t""yes" 1>&6 |
| 7958 | fi |
| 7959 | |
| 7960 | ac_safe=`echo "dlfcn.h" | sed 'y%./+-%__p_%'` |
| 7961 | echo $ac_n "checking for dlfcn.h""... $ac_c" 1>&6 |
| 7962 | echo "configure:7963: checking for dlfcn.h" >&5 |
| 7963 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
| 7964 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 7965 | else |
| 7966 | cat > conftest.$ac_ext <<EOF |
| 7967 | #line 7968 "configure" |
| 7968 | #include "confdefs.h" |
| 7969 | #include <dlfcn.h> |
| 7970 | EOF |
| 7971 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 7972 | { (eval echo configure:7973: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 7973 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 7974 | if test -z "$ac_err"; then |
| 7975 | rm -rf conftest* |
| 7976 | eval "ac_cv_header_$ac_safe=yes" |
| 7977 | else |
| 7978 | echo "$ac_err" >&5 |
| 7979 | echo "configure: failed program was:" >&5 |
| 7980 | cat conftest.$ac_ext >&5 |
| 7981 | rm -rf conftest* |
| 7982 | eval "ac_cv_header_$ac_safe=no" |
| 7983 | fi |
| 7984 | rm -f conftest* |
| 7985 | fi |
| 7986 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 7987 | echo "$ac_t""yes" 1>&6 |
| 7988 | DLL=dlfcn.h |
| 7989 | else |
| 7990 | echo "$ac_t""no" 1>&6 |
| 7991 | ac_safe=`echo "dl.h" | sed 'y%./+-%__p_%'` |
| 7992 | echo $ac_n "checking for dl.h""... $ac_c" 1>&6 |
| 7993 | echo "configure:7994: checking for dl.h" >&5 |
| 7994 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
| 7995 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 7996 | else |
| 7997 | cat > conftest.$ac_ext <<EOF |
| 7998 | #line 7999 "configure" |
| 7999 | #include "confdefs.h" |
| 8000 | #include <dl.h> |
| 8001 | EOF |
| 8002 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 8003 | { (eval echo configure:8004: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 8004 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 8005 | if test -z "$ac_err"; then |
| 8006 | rm -rf conftest* |
| 8007 | eval "ac_cv_header_$ac_safe=yes" |
| 8008 | else |
| 8009 | echo "$ac_err" >&5 |
| 8010 | echo "configure: failed program was:" >&5 |
| 8011 | cat conftest.$ac_ext >&5 |
| 8012 | rm -rf conftest* |
| 8013 | eval "ac_cv_header_$ac_safe=no" |
| 8014 | fi |
| 8015 | rm -f conftest* |
| 8016 | fi |
| 8017 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 8018 | echo "$ac_t""yes" 1>&6 |
| 8019 | DLL=dl.h |
| 8020 | else |
| 8021 | echo "$ac_t""no" 1>&6 |
| 8022 | fi |
| 8023 | |
| 8024 | fi |
| 8025 | |
| 8026 | if test x${DLL} = xdlfcn.h; then |
| 8027 | cat >> confdefs.h <<\EOF |
| 8028 | #define HAVE_DLFCN_H 1 |
| 8029 | EOF |
| 8030 | |
| 8031 | echo $ac_n "checking for dlopen()""... $ac_c" 1>&6 |
| 8032 | echo "configure:8033: checking for dlopen()" >&5 |
| 8033 | cat > conftest.$ac_ext <<EOF |
| 8034 | #line 8035 "configure" |
| 8035 | #include "confdefs.h" |
| 8036 | |
| 8037 | int main() { |
| 8038 | |
| 8039 | extern void* dlopen(); |
| 8040 | dlopen(); |
| 8041 | |
| 8042 | ; return 0; } |
| 8043 | EOF |
| 8044 | if { (eval echo configure:8045: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 8045 | rm -rf conftest* |
| 8046 | echo "$ac_t""yes" 1>&6; |
| 8047 | cat >> confdefs.h <<\EOF |
| 8048 | #define HAVE_DLOPEN 1 |
| 8049 | EOF |
| 8050 | |
| 8051 | else |
| 8052 | echo "configure: failed program was:" >&5 |
| 8053 | cat conftest.$ac_ext >&5 |
| 8054 | rm -rf conftest* |
| 8055 | echo "$ac_t""no" 1>&6; |
| 8056 | echo $ac_n "checking for dlopen() in -ldl""... $ac_c" 1>&6 |
| 8057 | echo "configure:8058: checking for dlopen() in -ldl" >&5 |
| 8058 | olibs=$LIBS |
| 8059 | LIBS="$LIBS -ldl" |
| 8060 | cat > conftest.$ac_ext <<EOF |
| 8061 | #line 8062 "configure" |
| 8062 | #include "confdefs.h" |
| 8063 | |
| 8064 | int main() { |
| 8065 | |
| 8066 | extern void* dlopen(); |
| 8067 | dlopen(); |
| 8068 | |
| 8069 | ; return 0; } |
| 8070 | EOF |
| 8071 | if { (eval echo configure:8072: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 8072 | rm -rf conftest* |
| 8073 | echo "$ac_t""yes" 1>&6; |
| 8074 | cat >> confdefs.h <<\EOF |
| 8075 | #define HAVE_DLOPEN 1 |
| 8076 | EOF |
| 8077 | |
| 8078 | else |
| 8079 | echo "configure: failed program was:" >&5 |
| 8080 | cat conftest.$ac_ext >&5 |
| 8081 | rm -rf conftest* |
| 8082 | echo "$ac_t""no" 1>&6; |
| 8083 | LIBS=$olibs |
| 8084 | fi |
| 8085 | rm -f conftest* |
| 8086 | fi |
| 8087 | rm -f conftest* |
| 8088 | echo $ac_n "checking for dlsym()""... $ac_c" 1>&6 |
| 8089 | echo "configure:8090: checking for dlsym()" >&5 |
| 8090 | cat > conftest.$ac_ext <<EOF |
| 8091 | #line 8092 "configure" |
| 8092 | #include "confdefs.h" |
| 8093 | |
| 8094 | int main() { |
| 8095 | |
| 8096 | extern void* dlsym(); |
| 8097 | dlsym(); |
| 8098 | |
| 8099 | ; return 0; } |
| 8100 | EOF |
| 8101 | if { (eval echo configure:8102: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 8102 | rm -rf conftest* |
| 8103 | echo "$ac_t""yes" 1>&6; |
| 8104 | cat >> confdefs.h <<\EOF |
| 8105 | #define HAVE_DLSYM 1 |
| 8106 | EOF |
| 8107 | |
| 8108 | else |
| 8109 | echo "configure: failed program was:" >&5 |
| 8110 | cat conftest.$ac_ext >&5 |
| 8111 | rm -rf conftest* |
| 8112 | echo "$ac_t""no" 1>&6; |
| 8113 | echo $ac_n "checking for dlsym() in -ldl""... $ac_c" 1>&6 |
| 8114 | echo "configure:8115: checking for dlsym() in -ldl" >&5 |
| 8115 | olibs=$LIBS |
| 8116 | LIBS="$LIBS -ldl" |
| 8117 | cat > conftest.$ac_ext <<EOF |
| 8118 | #line 8119 "configure" |
| 8119 | #include "confdefs.h" |
| 8120 | |
| 8121 | int main() { |
| 8122 | |
| 8123 | extern void* dlsym(); |
| 8124 | dlsym(); |
| 8125 | |
| 8126 | ; return 0; } |
| 8127 | EOF |
| 8128 | if { (eval echo configure:8129: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 8129 | rm -rf conftest* |
| 8130 | echo "$ac_t""yes" 1>&6; |
| 8131 | cat >> confdefs.h <<\EOF |
| 8132 | #define HAVE_DLSYM 1 |
| 8133 | EOF |
| 8134 | |
| 8135 | else |
| 8136 | echo "configure: failed program was:" >&5 |
| 8137 | cat conftest.$ac_ext >&5 |
| 8138 | rm -rf conftest* |
| 8139 | echo "$ac_t""no" 1>&6; |
| 8140 | LIBS=$olibs |
| 8141 | fi |
| 8142 | rm -f conftest* |
| 8143 | fi |
| 8144 | rm -f conftest* |
| 8145 | elif test x${DLL} = xdl.h; then |
| 8146 | cat >> confdefs.h <<\EOF |
| 8147 | #define HAVE_DL_H 1 |
| 8148 | EOF |
| 8149 | |
| 8150 | echo $ac_n "checking for shl_load()""... $ac_c" 1>&6 |
| 8151 | echo "configure:8152: checking for shl_load()" >&5 |
| 8152 | cat > conftest.$ac_ext <<EOF |
| 8153 | #line 8154 "configure" |
| 8154 | #include "confdefs.h" |
| 8155 | |
| 8156 | int main() { |
| 8157 | |
| 8158 | extern void* shl_load(); |
| 8159 | shl_load(); |
| 8160 | |
| 8161 | ; return 0; } |
| 8162 | EOF |
| 8163 | if { (eval echo configure:8164: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 8164 | rm -rf conftest* |
| 8165 | echo "$ac_t""yes" 1>&6; |
| 8166 | cat >> confdefs.h <<\EOF |
| 8167 | #define HAVE_SHL_LOAD 1 |
| 8168 | EOF |
| 8169 | |
| 8170 | else |
| 8171 | echo "configure: failed program was:" >&5 |
| 8172 | cat conftest.$ac_ext >&5 |
| 8173 | rm -rf conftest* |
| 8174 | echo "$ac_t""no" 1>&6; |
| 8175 | echo $ac_n "checking for shl_load() in -ldld""... $ac_c" 1>&6 |
| 8176 | echo "configure:8177: checking for shl_load() in -ldld" >&5 |
| 8177 | olibs=$LIBS |
| 8178 | LIBS="$LIBS -ldld" |
| 8179 | cat > conftest.$ac_ext <<EOF |
| 8180 | #line 8181 "configure" |
| 8181 | #include "confdefs.h" |
| 8182 | |
| 8183 | int main() { |
| 8184 | |
| 8185 | extern void* shl_load(); |
| 8186 | shl_load(); |
| 8187 | |
| 8188 | ; return 0; } |
| 8189 | EOF |
| 8190 | if { (eval echo configure:8191: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 8191 | rm -rf conftest* |
| 8192 | echo "$ac_t""yes" 1>&6; |
| 8193 | cat >> confdefs.h <<\EOF |
| 8194 | #define HAVE_SHL_LOAD 1 |
| 8195 | EOF |
| 8196 | |
| 8197 | else |
| 8198 | echo "configure: failed program was:" >&5 |
| 8199 | cat conftest.$ac_ext >&5 |
| 8200 | rm -rf conftest* |
| 8201 | echo "$ac_t""no" 1>&6; |
| 8202 | LIBS=$olibs |
| 8203 | fi |
| 8204 | rm -f conftest* |
| 8205 | fi |
| 8206 | rm -f conftest* |
| 8207 | fi |
| 8208 | for ac_hdr in setjmp.h |
| 8209 | do |
| 8210 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
| 8211 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
| 8212 | echo "configure:8213: checking for $ac_hdr" >&5 |
| 8213 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
| 8214 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 8215 | else |
| 8216 | cat > conftest.$ac_ext <<EOF |
| 8217 | #line 8218 "configure" |
| 8218 | #include "confdefs.h" |
| 8219 | #include <$ac_hdr> |
| 8220 | EOF |
| 8221 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 8222 | { (eval echo configure:8223: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 8223 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 8224 | if test -z "$ac_err"; then |
| 8225 | rm -rf conftest* |
| 8226 | eval "ac_cv_header_$ac_safe=yes" |
| 8227 | else |
| 8228 | echo "$ac_err" >&5 |
| 8229 | echo "configure: failed program was:" >&5 |
| 8230 | cat conftest.$ac_ext >&5 |
| 8231 | rm -rf conftest* |
| 8232 | eval "ac_cv_header_$ac_safe=no" |
| 8233 | fi |
| 8234 | rm -f conftest* |
| 8235 | fi |
| 8236 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 8237 | echo "$ac_t""yes" 1>&6 |
| 8238 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
| 8239 | cat >> confdefs.h <<EOF |
| 8240 | #define $ac_tr_hdr 1 |
| 8241 | EOF |
| 8242 | |
| 8243 | else |
| 8244 | echo "$ac_t""no" 1>&6 |
| 8245 | fi |
| 8246 | done |
| 8247 | |
| 8248 | |
| 8249 | if test "x$MACOSX" = "xyes" -a -n "$PERL"; then |
| 8250 | if echo $LIBS | grep -e '-ldl' >/dev/null; then |
| 8251 | LIBS=`echo $LIBS | sed s/-ldl//` |
| 8252 | PERL_LIBS="$PERL_LIBS -ldl" |
| 8253 | fi |
| 8254 | fi |
| 8255 | |
| 8256 | if test "x$MACOSX" = "xyes" && test "x$CARBON" = "xyes" \ |
| 8257 | && test "x$GUITYPE" != "xCARBONGUI"; then |
| 8258 | echo $ac_n "checking whether we need -framework Carbon""... $ac_c" 1>&6 |
| 8259 | echo "configure:8260: checking whether we need -framework Carbon" >&5 |
| 8260 | if test "x$enable_multibyte" = "xyes" || test "x$features" == "xbig" \ |
| 8261 | || test "x$features" = "xhuge"; then |
| 8262 | LIBS="$LIBS -framework Carbon" |
| 8263 | echo "$ac_t""yes" 1>&6 |
| 8264 | else |
| 8265 | echo "$ac_t""no" 1>&6 |
| 8266 | fi |
| 8267 | fi |
| 8268 | |
| 8269 | |
| 8270 | trap '' 1 2 15 |
| 8271 | cat > confcache <<\EOF |
| 8272 | # This file is a shell script that caches the results of configure |
| 8273 | # tests run on this system so they can be shared between configure |
| 8274 | # scripts and configure runs. It is not useful on other systems. |
| 8275 | # If it contains results you don't want to keep, you may remove or edit it. |
| 8276 | # |
| 8277 | # By default, configure uses ./config.cache as the cache file, |
| 8278 | # creating it if it does not exist already. You can give configure |
| 8279 | # the --cache-file=FILE option to use a different cache file; that is |
| 8280 | # what configure does when it calls configure scripts in |
| 8281 | # subdirectories, so they share the cache. |
| 8282 | # Giving --cache-file=/dev/null disables caching, for debugging configure. |
| 8283 | # config.status only pays attention to the cache file if you give it the |
| 8284 | # --recheck option to rerun configure. |
| 8285 | # |
| 8286 | EOF |
| 8287 | # The following way of writing the cache mishandles newlines in values, |
| 8288 | # but we know of no workaround that is simple, portable, and efficient. |
| 8289 | # So, don't put newlines in cache variables' values. |
| 8290 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 8291 | # and sets the high bit in the cache file unless we assign to the vars. |
| 8292 | (set) 2>&1 | |
| 8293 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
| 8294 | *ac_space=\ *) |
| 8295 | # `set' does not quote correctly, so add quotes (double-quote substitution |
| 8296 | # turns \\\\ into \\, and sed turns \\ into \). |
| 8297 | sed -n \ |
| 8298 | -e "s/'/'\\\\''/g" \ |
| 8299 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" |
| 8300 | ;; |
| 8301 | *) |
| 8302 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
| 8303 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' |
| 8304 | ;; |
| 8305 | esac >> confcache |
| 8306 | if cmp -s $cache_file confcache; then |
| 8307 | : |
| 8308 | else |
| 8309 | if test -w $cache_file; then |
| 8310 | echo "updating cache $cache_file" |
| 8311 | cat confcache > $cache_file |
| 8312 | else |
| 8313 | echo "not updating unwritable cache $cache_file" |
| 8314 | fi |
| 8315 | fi |
| 8316 | rm -f confcache |
| 8317 | |
| 8318 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
| 8319 | |
| 8320 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 8321 | # Let make expand exec_prefix. |
| 8322 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 8323 | |
| 8324 | # Any assignment to VPATH causes Sun make to only execute |
| 8325 | # the first set of double-colon rules, so remove it if not needed. |
| 8326 | # If there is a colon in the path, we need to keep it. |
| 8327 | if test "x$srcdir" = x.; then |
| 8328 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' |
| 8329 | fi |
| 8330 | |
| 8331 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 |
| 8332 | |
| 8333 | DEFS=-DHAVE_CONFIG_H |
| 8334 | |
| 8335 | # Without the "./", some shells look in PATH for config.status. |
| 8336 | : ${CONFIG_STATUS=./config.status} |
| 8337 | |
| 8338 | echo creating $CONFIG_STATUS |
| 8339 | rm -f $CONFIG_STATUS |
| 8340 | cat > $CONFIG_STATUS <<EOF |
| 8341 | #! /bin/sh |
| 8342 | # Generated automatically by configure. |
| 8343 | # Run this file to recreate the current configuration. |
| 8344 | # This directory was configured as follows, |
| 8345 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 8346 | # |
| 8347 | # $0 $ac_configure_args |
| 8348 | # |
| 8349 | # Compiler output produced by configure, useful for debugging |
| 8350 | # configure, is in auto/config.log if it exists. |
| 8351 | |
| 8352 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" |
| 8353 | for ac_option |
| 8354 | do |
| 8355 | case "\$ac_option" in |
| 8356 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 8357 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" |
| 8358 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; |
| 8359 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) |
| 8360 | echo "$CONFIG_STATUS generated by autoconf version 2.13" |
| 8361 | exit 0 ;; |
| 8362 | -help | --help | --hel | --he | --h) |
| 8363 | echo "\$ac_cs_usage"; exit 0 ;; |
| 8364 | *) echo "\$ac_cs_usage"; exit 1 ;; |
| 8365 | esac |
| 8366 | done |
| 8367 | |
| 8368 | ac_given_srcdir=$srcdir |
| 8369 | |
| 8370 | trap 'rm -fr `echo "auto/config.mk:config.mk.in auto/config.h:config.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 |
| 8371 | EOF |
| 8372 | cat >> $CONFIG_STATUS <<EOF |
| 8373 | |
| 8374 | # Protect against being on the right side of a sed subst in config.status. |
| 8375 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; |
| 8376 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF |
| 8377 | $ac_vpsub |
| 8378 | $extrasub |
| 8379 | s%@SHELL@%$SHELL%g |
| 8380 | s%@CFLAGS@%$CFLAGS%g |
| 8381 | s%@CPPFLAGS@%$CPPFLAGS%g |
| 8382 | s%@CXXFLAGS@%$CXXFLAGS%g |
| 8383 | s%@FFLAGS@%$FFLAGS%g |
| 8384 | s%@DEFS@%$DEFS%g |
| 8385 | s%@LDFLAGS@%$LDFLAGS%g |
| 8386 | s%@LIBS@%$LIBS%g |
| 8387 | s%@exec_prefix@%$exec_prefix%g |
| 8388 | s%@prefix@%$prefix%g |
| 8389 | s%@program_transform_name@%$program_transform_name%g |
| 8390 | s%@bindir@%$bindir%g |
| 8391 | s%@sbindir@%$sbindir%g |
| 8392 | s%@libexecdir@%$libexecdir%g |
| 8393 | s%@datadir@%$datadir%g |
| 8394 | s%@sysconfdir@%$sysconfdir%g |
| 8395 | s%@sharedstatedir@%$sharedstatedir%g |
| 8396 | s%@localstatedir@%$localstatedir%g |
| 8397 | s%@libdir@%$libdir%g |
| 8398 | s%@includedir@%$includedir%g |
| 8399 | s%@oldincludedir@%$oldincludedir%g |
| 8400 | s%@infodir@%$infodir%g |
| 8401 | s%@mandir@%$mandir%g |
| 8402 | s%@SET_MAKE@%$SET_MAKE%g |
| 8403 | s%@CC@%$CC%g |
| 8404 | s%@CPP@%$CPP%g |
| 8405 | s%@AWK@%$AWK%g |
| 8406 | s%@STRIP@%$STRIP%g |
| 8407 | s%@EXEEXT@%$EXEEXT%g |
| 8408 | s%@CPP_MM@%$CPP_MM%g |
| 8409 | s%@OS_EXTRA_SRC@%$OS_EXTRA_SRC%g |
| 8410 | s%@OS_EXTRA_OBJ@%$OS_EXTRA_OBJ%g |
| 8411 | s%@VIMNAME@%$VIMNAME%g |
| 8412 | s%@EXNAME@%$EXNAME%g |
| 8413 | s%@VIEWNAME@%$VIEWNAME%g |
| 8414 | s%@line_break@%$line_break%g |
| 8415 | s%@dovimdiff@%$dovimdiff%g |
| 8416 | s%@dogvimdiff@%$dogvimdiff%g |
| 8417 | s%@compiledby@%$compiledby%g |
| 8418 | s%@vi_cv_path_perl@%$vi_cv_path_perl%g |
| 8419 | s%@vi_cv_perllib@%$vi_cv_perllib%g |
| 8420 | s%@shrpenv@%$shrpenv%g |
| 8421 | s%@PERL_SRC@%$PERL_SRC%g |
| 8422 | s%@PERL_OBJ@%$PERL_OBJ%g |
| 8423 | s%@PERL_PRO@%$PERL_PRO%g |
| 8424 | s%@PERL_CFLAGS@%$PERL_CFLAGS%g |
| 8425 | s%@PERL_LIBS@%$PERL_LIBS%g |
| 8426 | s%@vi_cv_path_python@%$vi_cv_path_python%g |
| 8427 | s%@PYTHON_CONFDIR@%$PYTHON_CONFDIR%g |
| 8428 | s%@PYTHON_LIBS@%$PYTHON_LIBS%g |
| 8429 | s%@PYTHON_GETPATH_CFLAGS@%$PYTHON_GETPATH_CFLAGS%g |
| 8430 | s%@PYTHON_CFLAGS@%$PYTHON_CFLAGS%g |
| 8431 | s%@PYTHON_SRC@%$PYTHON_SRC%g |
| 8432 | s%@PYTHON_OBJ@%$PYTHON_OBJ%g |
| 8433 | s%@vi_cv_path_tcl@%$vi_cv_path_tcl%g |
| 8434 | s%@TCL_SRC@%$TCL_SRC%g |
| 8435 | s%@TCL_OBJ@%$TCL_OBJ%g |
| 8436 | s%@TCL_PRO@%$TCL_PRO%g |
| 8437 | s%@TCL_CFLAGS@%$TCL_CFLAGS%g |
| 8438 | s%@TCL_LIBS@%$TCL_LIBS%g |
| 8439 | s%@vi_cv_path_ruby@%$vi_cv_path_ruby%g |
| 8440 | s%@RUBY_SRC@%$RUBY_SRC%g |
| 8441 | s%@RUBY_OBJ@%$RUBY_OBJ%g |
| 8442 | s%@RUBY_PRO@%$RUBY_PRO%g |
| 8443 | s%@RUBY_CFLAGS@%$RUBY_CFLAGS%g |
| 8444 | s%@RUBY_LIBS@%$RUBY_LIBS%g |
| 8445 | s%@WORKSHOP_SRC@%$WORKSHOP_SRC%g |
| 8446 | s%@WORKSHOP_OBJ@%$WORKSHOP_OBJ%g |
| 8447 | s%@NETBEANS_SRC@%$NETBEANS_SRC%g |
| 8448 | s%@NETBEANS_OBJ@%$NETBEANS_OBJ%g |
| 8449 | s%@SNIFF_SRC@%$SNIFF_SRC%g |
| 8450 | s%@SNIFF_OBJ@%$SNIFF_OBJ%g |
| 8451 | s%@xmkmfpath@%$xmkmfpath%g |
| 8452 | s%@X_CFLAGS@%$X_CFLAGS%g |
| 8453 | s%@X_PRE_LIBS@%$X_PRE_LIBS%g |
| 8454 | s%@X_LIBS@%$X_LIBS%g |
| 8455 | s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g |
| 8456 | s%@X_LIB@%$X_LIB%g |
| 8457 | s%@GTK_CONFIG@%$GTK_CONFIG%g |
| 8458 | s%@GTK12_CONFIG@%$GTK12_CONFIG%g |
| 8459 | s%@PKG_CONFIG@%$PKG_CONFIG%g |
| 8460 | s%@GTK_CFLAGS@%$GTK_CFLAGS%g |
| 8461 | s%@GTK_LIBS@%$GTK_LIBS%g |
| 8462 | s%@GTK_LIBNAME@%$GTK_LIBNAME%g |
| 8463 | s%@GNOME_LIBS@%$GNOME_LIBS%g |
| 8464 | s%@GNOME_LIBDIR@%$GNOME_LIBDIR%g |
| 8465 | s%@GNOME_INCLUDEDIR@%$GNOME_INCLUDEDIR%g |
| 8466 | s%@GNOME_CONFIG@%$GNOME_CONFIG%g |
| 8467 | s%@MOTIF_LIBNAME@%$MOTIF_LIBNAME%g |
| 8468 | s%@NARROW_PROTO@%$NARROW_PROTO%g |
| 8469 | s%@GUI_INC_LOC@%$GUI_INC_LOC%g |
| 8470 | s%@GUI_LIB_LOC@%$GUI_LIB_LOC%g |
| 8471 | s%@GUITYPE@%$GUITYPE%g |
| 8472 | s%@GUI_X_LIBS@%$GUI_X_LIBS%g |
| 8473 | s%@HANGULIN_SRC@%$HANGULIN_SRC%g |
| 8474 | s%@HANGULIN_OBJ@%$HANGULIN_OBJ%g |
| 8475 | s%@TAGPRG@%$TAGPRG%g |
| 8476 | s%@MSGFMT@%$MSGFMT%g |
| 8477 | s%@MAKEMO@%$MAKEMO%g |
| 8478 | |
| 8479 | CEOF |
| 8480 | EOF |
| 8481 | |
| 8482 | cat >> $CONFIG_STATUS <<\EOF |
| 8483 | |
| 8484 | # Split the substitutions into bite-sized pieces for seds with |
| 8485 | # small command number limits, like on Digital OSF/1 and HP-UX. |
| 8486 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. |
| 8487 | ac_file=1 # Number of current file. |
| 8488 | ac_beg=1 # First line for current file. |
| 8489 | ac_end=$ac_max_sed_cmds # Line after last line for current file. |
| 8490 | ac_more_lines=: |
| 8491 | ac_sed_cmds="" |
| 8492 | while $ac_more_lines; do |
| 8493 | if test $ac_beg -gt 1; then |
| 8494 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file |
| 8495 | else |
| 8496 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file |
| 8497 | fi |
| 8498 | if test ! -s conftest.s$ac_file; then |
| 8499 | ac_more_lines=false |
| 8500 | rm -f conftest.s$ac_file |
| 8501 | else |
| 8502 | if test -z "$ac_sed_cmds"; then |
| 8503 | ac_sed_cmds="sed -f conftest.s$ac_file" |
| 8504 | else |
| 8505 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" |
| 8506 | fi |
| 8507 | ac_file=`expr $ac_file + 1` |
| 8508 | ac_beg=$ac_end |
| 8509 | ac_end=`expr $ac_end + $ac_max_sed_cmds` |
| 8510 | fi |
| 8511 | done |
| 8512 | if test -z "$ac_sed_cmds"; then |
| 8513 | ac_sed_cmds=cat |
| 8514 | fi |
| 8515 | EOF |
| 8516 | |
| 8517 | cat >> $CONFIG_STATUS <<EOF |
| 8518 | |
| 8519 | CONFIG_FILES=\${CONFIG_FILES-"auto/config.mk:config.mk.in"} |
| 8520 | EOF |
| 8521 | cat >> $CONFIG_STATUS <<\EOF |
| 8522 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then |
| 8523 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
| 8524 | case "$ac_file" in |
| 8525 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` |
| 8526 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
| 8527 | *) ac_file_in="${ac_file}.in" ;; |
| 8528 | esac |
| 8529 | |
| 8530 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. |
| 8531 | |
| 8532 | # Remove last slash and all that follows it. Not all systems have dirname. |
| 8533 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` |
| 8534 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
| 8535 | # The file is in a subdirectory. |
| 8536 | test ! -d "$ac_dir" && mkdir "$ac_dir" |
| 8537 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" |
| 8538 | # A "../" for each directory in $ac_dir_suffix. |
| 8539 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` |
| 8540 | else |
| 8541 | ac_dir_suffix= ac_dots= |
| 8542 | fi |
| 8543 | |
| 8544 | case "$ac_given_srcdir" in |
| 8545 | .) srcdir=. |
| 8546 | if test -z "$ac_dots"; then top_srcdir=. |
| 8547 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; |
| 8548 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; |
| 8549 | *) # Relative path. |
| 8550 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" |
| 8551 | top_srcdir="$ac_dots$ac_given_srcdir" ;; |
| 8552 | esac |
| 8553 | |
| 8554 | |
| 8555 | echo creating "$ac_file" |
| 8556 | rm -f "$ac_file" |
| 8557 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." |
| 8558 | case "$ac_file" in |
| 8559 | *Makefile*) ac_comsub="1i\\ |
| 8560 | # $configure_input" ;; |
| 8561 | *) ac_comsub= ;; |
| 8562 | esac |
| 8563 | |
| 8564 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` |
| 8565 | sed -e "$ac_comsub |
| 8566 | s%@configure_input@%$configure_input%g |
| 8567 | s%@srcdir@%$srcdir%g |
| 8568 | s%@top_srcdir@%$top_srcdir%g |
| 8569 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file |
| 8570 | fi; done |
| 8571 | rm -f conftest.s* |
| 8572 | |
| 8573 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
| 8574 | # NAME is the cpp macro being defined and VALUE is the value it is being given. |
| 8575 | # |
| 8576 | # ac_d sets the value in "#define NAME VALUE" lines. |
| 8577 | ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
| 8578 | ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' |
| 8579 | ac_dC='\3' |
| 8580 | ac_dD='%g' |
| 8581 | # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". |
| 8582 | ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
| 8583 | ac_uB='\([ ]\)%\1#\2define\3' |
| 8584 | ac_uC=' ' |
| 8585 | ac_uD='\4%g' |
| 8586 | # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
| 8587 | ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
| 8588 | ac_eB='$%\1#\2define\3' |
| 8589 | ac_eC=' ' |
| 8590 | ac_eD='%g' |
| 8591 | |
| 8592 | if test "${CONFIG_HEADERS+set}" != set; then |
| 8593 | EOF |
| 8594 | cat >> $CONFIG_STATUS <<EOF |
| 8595 | CONFIG_HEADERS="auto/config.h:config.h.in" |
| 8596 | EOF |
| 8597 | cat >> $CONFIG_STATUS <<\EOF |
| 8598 | fi |
| 8599 | for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then |
| 8600 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
| 8601 | case "$ac_file" in |
| 8602 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` |
| 8603 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
| 8604 | *) ac_file_in="${ac_file}.in" ;; |
| 8605 | esac |
| 8606 | |
| 8607 | echo creating $ac_file |
| 8608 | |
| 8609 | rm -f conftest.frag conftest.in conftest.out |
| 8610 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` |
| 8611 | cat $ac_file_inputs > conftest.in |
| 8612 | |
| 8613 | EOF |
| 8614 | |
| 8615 | # Transform confdefs.h into a sed script conftest.vals that substitutes |
| 8616 | # the proper values into config.h.in to produce config.h. And first: |
| 8617 | # Protect against being on the right side of a sed subst in config.status. |
| 8618 | # Protect against being in an unquoted here document in config.status. |
| 8619 | rm -f conftest.vals |
| 8620 | cat > conftest.hdr <<\EOF |
| 8621 | s/[\\&%]/\\&/g |
| 8622 | s%[\\$`]%\\&%g |
| 8623 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp |
| 8624 | s%ac_d%ac_u%gp |
| 8625 | s%ac_u%ac_e%gp |
| 8626 | EOF |
| 8627 | sed -n -f conftest.hdr confdefs.h > conftest.vals |
| 8628 | rm -f conftest.hdr |
| 8629 | |
| 8630 | # This sed command replaces #undef with comments. This is necessary, for |
| 8631 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
| 8632 | # on some systems where configure will not decide to define it. |
| 8633 | cat >> conftest.vals <<\EOF |
| 8634 | s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% |
| 8635 | EOF |
| 8636 | |
| 8637 | # Break up conftest.vals because some shells have a limit on |
| 8638 | # the size of here documents, and old seds have small limits too. |
| 8639 | |
| 8640 | rm -f conftest.tail |
| 8641 | while : |
| 8642 | do |
| 8643 | ac_lines=`grep -c . conftest.vals` |
| 8644 | # grep -c gives empty output for an empty file on some AIX systems. |
| 8645 | if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi |
| 8646 | # Write a limited-size here document to conftest.frag. |
| 8647 | echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS |
| 8648 | sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS |
| 8649 | echo 'CEOF |
| 8650 | sed -f conftest.frag conftest.in > conftest.out |
| 8651 | rm -f conftest.in |
| 8652 | mv conftest.out conftest.in |
| 8653 | ' >> $CONFIG_STATUS |
| 8654 | sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail |
| 8655 | rm -f conftest.vals |
| 8656 | mv conftest.tail conftest.vals |
| 8657 | done |
| 8658 | rm -f conftest.vals |
| 8659 | |
| 8660 | cat >> $CONFIG_STATUS <<\EOF |
| 8661 | rm -f conftest.frag conftest.h |
| 8662 | echo "/* $ac_file. Generated automatically by configure. */" > conftest.h |
| 8663 | cat conftest.in >> conftest.h |
| 8664 | rm -f conftest.in |
| 8665 | if cmp -s $ac_file conftest.h 2>/dev/null; then |
| 8666 | echo "$ac_file is unchanged" |
| 8667 | rm -f conftest.h |
| 8668 | else |
| 8669 | # Remove last slash and all that follows it. Not all systems have dirname. |
| 8670 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` |
| 8671 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
| 8672 | # The file is in a subdirectory. |
| 8673 | test ! -d "$ac_dir" && mkdir "$ac_dir" |
| 8674 | fi |
| 8675 | rm -f $ac_file |
| 8676 | mv conftest.h $ac_file |
| 8677 | fi |
| 8678 | fi; done |
| 8679 | |
| 8680 | EOF |
| 8681 | cat >> $CONFIG_STATUS <<EOF |
| 8682 | |
| 8683 | EOF |
| 8684 | cat >> $CONFIG_STATUS <<\EOF |
| 8685 | |
| 8686 | exit 0 |
| 8687 | EOF |
| 8688 | chmod +x $CONFIG_STATUS |
| 8689 | rm -fr confdefs* $ac_clean_files |
| 8690 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 |
| 8691 | |
| 8692 | |