Mercurial > emacs
annotate configure @ 40426:bb16255e7f21
*** empty log message ***
| author | Gerd Moellmann <gerd@gnu.org> |
|---|---|
| date | Sun, 28 Oct 2001 19:28:52 +0000 |
| parents | f53d3da02996 |
| children | 39fc5111667c |
| rev | line source |
|---|---|
| 25897 | 1 #! /bin/sh |
| 2 # Guess values for system-dependent variables and create Makefiles. | |
| 40056 | 3 # Generated by Autoconf 2.52. |
| 25897 | 4 # |
| 40056 | 5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 |
| 6 # Free Software Foundation, Inc. | |
| 25897 | 7 # This configure script is free software; the Free Software Foundation |
| 8 # gives unlimited permission to copy, distribute and modify it. | |
| 9 | |
| 40056 | 10 # Avoid depending upon Character Ranges. |
| 11 as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
| 12 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
| 13 as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
| 14 as_cr_digits='0123456789' | |
| 15 as_cr_alnum=$as_cr_Letters$as_cr_digits | |
| 16 | |
| 17 # Sed expression to map a string onto a valid variable name. | |
| 18 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" | |
| 19 | |
| 20 # Sed expression to map a string onto a valid CPP name. | |
| 21 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" | |
| 22 | |
| 23 # Be Bourne compatible | |
| 24 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
| 25 emulate sh | |
| 26 NULLCMD=: | |
| 27 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
| 28 set -o posix | |
| 29 fi | |
| 30 | |
| 31 # Name of the executable. | |
| 32 as_me=`echo "$0" |sed 's,.*[\\/],,'` | |
| 33 | |
| 34 if expr a : '\(a\)' >/dev/null 2>&1; then | |
| 35 as_expr=expr | |
| 36 else | |
| 37 as_expr=false | |
| 38 fi | |
| 39 | |
| 40 rm -f conf$$ conf$$.exe conf$$.file | |
| 41 echo >conf$$.file | |
| 42 if ln -s conf$$.file conf$$ 2>/dev/null; then | |
| 43 # We could just check for DJGPP; but this test a) works b) is more generic | |
| 44 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
| 45 if test -f conf$$.exe; then | |
| 46 # Don't use ln at all; we don't have any links | |
| 47 as_ln_s='cp -p' | |
| 48 else | |
| 49 as_ln_s='ln -s' | |
| 50 fi | |
| 51 elif ln conf$$.file conf$$ 2>/dev/null; then | |
| 52 as_ln_s=ln | |
| 53 else | |
| 54 as_ln_s='cp -p' | |
| 55 fi | |
| 56 rm -f conf$$ conf$$.exe conf$$.file | |
| 57 | |
| 58 as_executable_p="test -f" | |
| 59 | |
| 60 # Support unset when possible. | |
| 61 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then | |
| 62 as_unset=unset | |
| 63 else | |
| 64 as_unset=false | |
| 65 fi | |
| 66 | |
| 67 # NLS nuisances. | |
| 68 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; } | |
| 69 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; } | |
| 70 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; } | |
| 71 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; } | |
| 72 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; } | |
| 73 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; } | |
| 74 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; } | |
| 75 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; } | |
| 76 | |
| 77 # IFS | |
| 78 # We need space, tab and new line, in precisely that order. | |
| 79 as_nl=' | |
| 80 ' | |
| 81 IFS=" $as_nl" | |
| 82 | |
| 83 # CDPATH. | |
| 84 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; } | |
| 85 | |
| 86 # Name of the host. | |
| 87 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
| 88 # so uname gets run too. | |
| 89 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
| 90 | |
| 91 exec 6>&1 | |
| 92 | |
| 93 # | |
| 94 # Initializations. | |
| 95 # | |
| 25897 | 96 ac_default_prefix=/usr/local |
| 40056 | 97 cross_compiling=no |
| 98 subdirs= | |
| 99 MFLAGS= MAKEFLAGS= | |
| 100 SHELL=${CONFIG_SHELL-/bin/sh} | |
| 101 | |
| 102 # Maximum number of lines to put in a shell here document. | |
| 103 # This variable seems obsolete. It should probably be removed, and | |
| 104 # only ac_max_sed_lines should be used. | |
| 105 : ${ac_max_here_lines=38} | |
| 106 | |
| 107 ac_unique_file="src/lisp.h" | |
| 108 # Factoring default headers for most tests. | |
| 109 ac_includes_default="\ | |
| 110 #include <stdio.h> | |
| 111 #if HAVE_SYS_TYPES_H | |
| 112 # include <sys/types.h> | |
| 113 #endif | |
| 114 #if HAVE_SYS_STAT_H | |
| 115 # include <sys/stat.h> | |
| 116 #endif | |
| 117 #if STDC_HEADERS | |
| 118 # include <stdlib.h> | |
| 119 # include <stddef.h> | |
| 120 #else | |
| 121 # if HAVE_STDLIB_H | |
| 122 # include <stdlib.h> | |
| 123 # endif | |
| 124 #endif | |
| 125 #if HAVE_STRING_H | |
| 126 # if !STDC_HEADERS && HAVE_MEMORY_H | |
| 127 # include <memory.h> | |
| 128 # endif | |
| 129 # include <string.h> | |
| 130 #endif | |
| 131 #if HAVE_STRINGS_H | |
| 132 # include <strings.h> | |
| 133 #endif | |
| 134 #if HAVE_INTTYPES_H | |
| 135 # include <inttypes.h> | |
| 136 #else | |
| 137 # if HAVE_STDINT_H | |
| 138 # include <stdint.h> | |
| 139 # endif | |
| 140 #endif | |
| 141 #if HAVE_UNISTD_H | |
| 142 # include <unistd.h> | |
| 143 #endif" | |
| 25897 | 144 |
| 145 # Initialize some variables set by options. | |
| 40056 | 146 ac_init_help= |
| 147 ac_init_version=false | |
| 25897 | 148 # The variables have the same names as the options, with |
| 149 # dashes changed to underlines. | |
| 40056 | 150 cache_file=/dev/null |
| 25897 | 151 exec_prefix=NONE |
| 152 no_create= | |
| 153 no_recursion= | |
| 154 prefix=NONE | |
| 155 program_prefix=NONE | |
| 156 program_suffix=NONE | |
| 157 program_transform_name=s,x,x, | |
| 158 silent= | |
| 159 site= | |
| 160 srcdir= | |
| 161 verbose= | |
| 162 x_includes=NONE | |
| 163 x_libraries=NONE | |
| 40056 | 164 |
| 165 # Installation directory options. | |
| 166 # These are left unexpanded so users can "make install exec_prefix=/foo" | |
| 167 # and all the variables that are supposed to be based on exec_prefix | |
| 168 # by default will actually change. | |
| 169 # Use braces instead of parens because sh, perl, etc. also accept them. | |
| 25897 | 170 bindir='${exec_prefix}/bin' |
| 171 sbindir='${exec_prefix}/sbin' | |
| 172 libexecdir='${exec_prefix}/libexec' | |
| 173 datadir='${prefix}/share' | |
| 174 sysconfdir='${prefix}/etc' | |
| 175 sharedstatedir='${prefix}/com' | |
| 176 localstatedir='${prefix}/var' | |
| 177 libdir='${exec_prefix}/lib' | |
| 178 includedir='${prefix}/include' | |
| 179 oldincludedir='/usr/include' | |
| 180 infodir='${prefix}/info' | |
| 181 mandir='${prefix}/man' | |
| 182 | |
| 40056 | 183 # Identity of this package. |
| 184 PACKAGE_NAME= | |
| 185 PACKAGE_TARNAME= | |
| 186 PACKAGE_VERSION= | |
| 187 PACKAGE_STRING= | |
| 188 PACKAGE_BUGREPORT= | |
| 25897 | 189 |
| 190 ac_prev= | |
| 191 for ac_option | |
| 192 do | |
| 193 # If the previous option needs an argument, assign it. | |
| 194 if test -n "$ac_prev"; then | |
| 195 eval "$ac_prev=\$ac_option" | |
| 196 ac_prev= | |
| 197 continue | |
| 198 fi | |
| 199 | |
| 40056 | 200 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
| 25897 | 201 |
| 202 # Accept the important Cygnus configure options, so we can diagnose typos. | |
| 203 | |
| 40056 | 204 case $ac_option in |
| 25897 | 205 |
| 206 -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
| 207 ac_prev=bindir ;; | |
| 208 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
| 40056 | 209 bindir=$ac_optarg ;; |
| 25897 | 210 |
| 211 -build | --build | --buil | --bui | --bu) | |
| 40056 | 212 ac_prev=build_alias ;; |
| 25897 | 213 -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
| 40056 | 214 build_alias=$ac_optarg ;; |
| 25897 | 215 |
| 216 -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
| 217 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
| 218 ac_prev=cache_file ;; | |
| 219 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
| 220 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
| 40056 | 221 cache_file=$ac_optarg ;; |
| 222 | |
| 223 --config-cache | -C) | |
| 224 cache_file=config.cache ;; | |
| 25897 | 225 |
| 226 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
| 227 ac_prev=datadir ;; | |
| 228 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
| 229 | --da=*) | |
| 40056 | 230 datadir=$ac_optarg ;; |
| 25897 | 231 |
| 232 -disable-* | --disable-*) | |
| 40056 | 233 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
| 25897 | 234 # Reject names that are not valid shell variable names. |
| 40056 | 235 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 236 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
| 237 { (exit 1); exit 1; }; } | |
| 238 ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
| 239 eval "enable_$ac_feature=no" ;; | |
| 25897 | 240 |
| 241 -enable-* | --enable-*) | |
| 40056 | 242 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
| 25897 | 243 # Reject names that are not valid shell variable names. |
| 40056 | 244 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 245 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
| 246 { (exit 1); exit 1; }; } | |
| 247 ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
| 248 case $ac_option in | |
| 249 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
| 25897 | 250 *) ac_optarg=yes ;; |
| 251 esac | |
| 40056 | 252 eval "enable_$ac_feature='$ac_optarg'" ;; |
| 25897 | 253 |
| 254 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
| 255 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
| 256 | --exec | --exe | --ex) | |
| 257 ac_prev=exec_prefix ;; | |
| 258 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
| 259 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
| 260 | --exec=* | --exe=* | --ex=*) | |
| 40056 | 261 exec_prefix=$ac_optarg ;; |
| 25897 | 262 |
| 263 -gas | --gas | --ga | --g) | |
| 264 # Obsolete; use --with-gas. | |
| 265 with_gas=yes ;; | |
| 266 | |
| 40056 | 267 -help | --help | --hel | --he | -h) |
| 268 ac_init_help=long ;; | |
| 269 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
| 270 ac_init_help=recursive ;; | |
| 271 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
| 272 ac_init_help=short ;; | |
| 25897 | 273 |
| 274 -host | --host | --hos | --ho) | |
| 40056 | 275 ac_prev=host_alias ;; |
| 25897 | 276 -host=* | --host=* | --hos=* | --ho=*) |
| 40056 | 277 host_alias=$ac_optarg ;; |
| 25897 | 278 |
| 279 -includedir | --includedir | --includedi | --included | --include \ | |
| 280 | --includ | --inclu | --incl | --inc) | |
| 281 ac_prev=includedir ;; | |
| 282 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
| 283 | --includ=* | --inclu=* | --incl=* | --inc=*) | |
| 40056 | 284 includedir=$ac_optarg ;; |
| 25897 | 285 |
| 286 -infodir | --infodir | --infodi | --infod | --info | --inf) | |
| 287 ac_prev=infodir ;; | |
| 288 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
| 40056 | 289 infodir=$ac_optarg ;; |
| 25897 | 290 |
| 291 -libdir | --libdir | --libdi | --libd) | |
| 292 ac_prev=libdir ;; | |
| 293 -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
| 40056 | 294 libdir=$ac_optarg ;; |
| 25897 | 295 |
| 296 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
| 297 | --libexe | --libex | --libe) | |
| 298 ac_prev=libexecdir ;; | |
| 299 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
| 300 | --libexe=* | --libex=* | --libe=*) | |
| 40056 | 301 libexecdir=$ac_optarg ;; |
| 25897 | 302 |
| 303 -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
| 304 | --localstate | --localstat | --localsta | --localst \ | |
| 305 | --locals | --local | --loca | --loc | --lo) | |
| 306 ac_prev=localstatedir ;; | |
| 307 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
| 308 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
| 309 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
| 40056 | 310 localstatedir=$ac_optarg ;; |
| 25897 | 311 |
| 312 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
| 313 ac_prev=mandir ;; | |
| 314 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
| 40056 | 315 mandir=$ac_optarg ;; |
| 25897 | 316 |
| 317 -nfp | --nfp | --nf) | |
| 318 # Obsolete; use --without-fp. | |
| 319 with_fp=no ;; | |
| 320 | |
| 321 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
| 322 | --no-cr | --no-c) | |
| 323 no_create=yes ;; | |
| 324 | |
| 325 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
| 326 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
| 327 no_recursion=yes ;; | |
| 328 | |
| 329 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
| 330 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
| 331 | --oldin | --oldi | --old | --ol | --o) | |
| 332 ac_prev=oldincludedir ;; | |
| 333 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
| 334 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
| 335 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
| 40056 | 336 oldincludedir=$ac_optarg ;; |
| 25897 | 337 |
| 338 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
| 339 ac_prev=prefix ;; | |
| 340 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
| 40056 | 341 prefix=$ac_optarg ;; |
| 25897 | 342 |
| 343 -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
| 344 | --program-pre | --program-pr | --program-p) | |
| 345 ac_prev=program_prefix ;; | |
| 346 -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
| 347 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
| 40056 | 348 program_prefix=$ac_optarg ;; |
| 25897 | 349 |
| 350 -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
| 351 | --program-suf | --program-su | --program-s) | |
| 352 ac_prev=program_suffix ;; | |
| 353 -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
| 354 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
| 40056 | 355 program_suffix=$ac_optarg ;; |
| 25897 | 356 |
| 357 -program-transform-name | --program-transform-name \ | |
| 358 | --program-transform-nam | --program-transform-na \ | |
| 359 | --program-transform-n | --program-transform- \ | |
| 360 | --program-transform | --program-transfor \ | |
| 361 | --program-transfo | --program-transf \ | |
| 362 | --program-trans | --program-tran \ | |
| 363 | --progr-tra | --program-tr | --program-t) | |
| 364 ac_prev=program_transform_name ;; | |
| 365 -program-transform-name=* | --program-transform-name=* \ | |
| 366 | --program-transform-nam=* | --program-transform-na=* \ | |
| 367 | --program-transform-n=* | --program-transform-=* \ | |
| 368 | --program-transform=* | --program-transfor=* \ | |
| 369 | --program-transfo=* | --program-transf=* \ | |
| 370 | --program-trans=* | --program-tran=* \ | |
| 371 | --progr-tra=* | --program-tr=* | --program-t=*) | |
| 40056 | 372 program_transform_name=$ac_optarg ;; |
| 25897 | 373 |
| 374 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
| 375 | -silent | --silent | --silen | --sile | --sil) | |
| 376 silent=yes ;; | |
| 377 | |
| 378 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
| 379 ac_prev=sbindir ;; | |
| 380 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
| 381 | --sbi=* | --sb=*) | |
| 40056 | 382 sbindir=$ac_optarg ;; |
| 25897 | 383 |
| 384 -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
| 385 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
| 386 | --sharedst | --shareds | --shared | --share | --shar \ | |
| 387 | --sha | --sh) | |
| 388 ac_prev=sharedstatedir ;; | |
| 389 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
| 390 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
| 391 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
| 392 | --sha=* | --sh=*) | |
| 40056 | 393 sharedstatedir=$ac_optarg ;; |
| 25897 | 394 |
| 395 -site | --site | --sit) | |
| 396 ac_prev=site ;; | |
| 397 -site=* | --site=* | --sit=*) | |
| 40056 | 398 site=$ac_optarg ;; |
| 25897 | 399 |
| 400 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
| 401 ac_prev=srcdir ;; | |
| 402 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
| 40056 | 403 srcdir=$ac_optarg ;; |
| 25897 | 404 |
| 405 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
| 406 | --syscon | --sysco | --sysc | --sys | --sy) | |
| 407 ac_prev=sysconfdir ;; | |
| 408 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
| 409 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
| 40056 | 410 sysconfdir=$ac_optarg ;; |
| 25897 | 411 |
| 412 -target | --target | --targe | --targ | --tar | --ta | --t) | |
| 40056 | 413 ac_prev=target_alias ;; |
| 25897 | 414 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 40056 | 415 target_alias=$ac_optarg ;; |
| 25897 | 416 |
| 417 -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
| 418 verbose=yes ;; | |
| 419 | |
| 40056 | 420 -version | --version | --versio | --versi | --vers | -V) |
| 421 ac_init_version=: ;; | |
| 25897 | 422 |
| 423 -with-* | --with-*) | |
| 40056 | 424 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
| 25897 | 425 # Reject names that are not valid shell variable names. |
| 40056 | 426 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 427 { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
| 428 { (exit 1); exit 1; }; } | |
| 25897 | 429 ac_package=`echo $ac_package| sed 's/-/_/g'` |
| 40056 | 430 case $ac_option in |
| 431 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
| 25897 | 432 *) ac_optarg=yes ;; |
| 433 esac | |
| 40056 | 434 eval "with_$ac_package='$ac_optarg'" ;; |
| 25897 | 435 |
| 436 -without-* | --without-*) | |
| 40056 | 437 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
| 25897 | 438 # Reject names that are not valid shell variable names. |
| 40056 | 439 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 440 { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
| 441 { (exit 1); exit 1; }; } | |
| 442 ac_package=`echo $ac_package | sed 's/-/_/g'` | |
| 443 eval "with_$ac_package=no" ;; | |
| 25897 | 444 |
| 445 --x) | |
| 446 # Obsolete; use --with-x. | |
| 447 with_x=yes ;; | |
| 448 | |
| 449 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
| 450 | --x-incl | --x-inc | --x-in | --x-i) | |
| 451 ac_prev=x_includes ;; | |
| 452 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
| 453 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
| 40056 | 454 x_includes=$ac_optarg ;; |
| 25897 | 455 |
| 456 -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
| 457 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
| 458 ac_prev=x_libraries ;; | |
| 459 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
| 460 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
| 40056 | 461 x_libraries=$ac_optarg ;; |
| 462 | |
| 463 -*) { echo "$as_me: error: unrecognized option: $ac_option | |
| 464 Try \`$0 --help' for more information." >&2 | |
| 465 { (exit 1); exit 1; }; } | |
| 25897 | 466 ;; |
| 467 | |
| 40056 | 468 *=*) |
| 469 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
| 470 # Reject names that are not valid shell variable names. | |
| 471 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
| 472 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 | |
| 473 { (exit 1); exit 1; }; } | |
| 474 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` | |
| 475 eval "$ac_envvar='$ac_optarg'" | |
| 476 export $ac_envvar ;; | |
| 477 | |
| 25897 | 478 *) |
| 40056 | 479 # FIXME: should be removed in autoconf 3.0. |
| 480 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
| 481 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
| 482 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
| 483 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | |
| 25897 | 484 ;; |
| 485 | |
| 486 esac | |
| 487 done | |
| 488 | |
| 489 if test -n "$ac_prev"; then | |
| 40056 | 490 ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
| 491 { echo "$as_me: error: missing argument to $ac_option" >&2 | |
| 492 { (exit 1); exit 1; }; } | |
| 493 fi | |
| 494 | |
| 495 # Be sure to have absolute paths. | |
| 496 for ac_var in exec_prefix prefix | |
| 25897 | 497 do |
| 40056 | 498 eval ac_val=$`echo $ac_var` |
| 499 case $ac_val in | |
| 500 [\\/$]* | ?:[\\/]* | NONE | '' ) ;; | |
| 501 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2 | |
| 502 { (exit 1); exit 1; }; };; | |
| 25897 | 503 esac |
| 504 done | |
| 505 | |
| 40056 | 506 # Be sure to have absolute paths. |
| 507 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ | |
| 508 localstatedir libdir includedir oldincludedir infodir mandir | |
| 509 do | |
| 510 eval ac_val=$`echo $ac_var` | |
| 511 case $ac_val in | |
| 512 [\\/$]* | ?:[\\/]* ) ;; | |
| 513 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2 | |
| 514 { (exit 1); exit 1; }; };; | |
| 515 esac | |
| 516 done | |
| 517 | |
| 518 # There might be people who depend on the old broken behavior: `$host' | |
| 519 # used to hold the argument of --host etc. | |
| 520 build=$build_alias | |
| 521 host=$host_alias | |
| 522 target=$target_alias | |
| 523 | |
| 524 # FIXME: should be removed in autoconf 3.0. | |
| 525 if test "x$host_alias" != x; then | |
| 526 if test "x$build_alias" = x; then | |
| 527 cross_compiling=maybe | |
| 528 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | |
| 529 If a cross compiler is detected then cross compile mode will be used." >&2 | |
| 530 elif test "x$build_alias" != "x$host_alias"; then | |
| 531 cross_compiling=yes | |
| 532 fi | |
| 533 fi | |
| 534 | |
| 535 ac_tool_prefix= | |
| 536 test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
| 537 | |
| 538 test "$silent" = yes && exec 6>/dev/null | |
| 25897 | 539 |
| 540 # Find the source files, if location was not specified. | |
| 541 if test -z "$srcdir"; then | |
| 542 ac_srcdir_defaulted=yes | |
| 543 # Try the directory containing this script, then its parent. | |
| 544 ac_prog=$0 | |
| 40056 | 545 ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'` |
| 25897 | 546 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. |
| 547 srcdir=$ac_confdir | |
| 548 if test ! -r $srcdir/$ac_unique_file; then | |
| 549 srcdir=.. | |
| 550 fi | |
| 551 else | |
| 552 ac_srcdir_defaulted=no | |
| 553 fi | |
| 554 if test ! -r $srcdir/$ac_unique_file; then | |
| 555 if test "$ac_srcdir_defaulted" = yes; then | |
| 40056 | 556 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2 |
| 557 { (exit 1); exit 1; }; } | |
| 25897 | 558 else |
| 40056 | 559 { echo "$as_me: error: cannot find sources in $srcdir" >&2 |
| 560 { (exit 1); exit 1; }; } | |
| 561 fi | |
| 562 fi | |
| 563 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` | |
| 564 ac_env_build_alias_set=${build_alias+set} | |
| 565 ac_env_build_alias_value=$build_alias | |
| 566 ac_cv_env_build_alias_set=${build_alias+set} | |
| 567 ac_cv_env_build_alias_value=$build_alias | |
| 568 ac_env_host_alias_set=${host_alias+set} | |
| 569 ac_env_host_alias_value=$host_alias | |
| 570 ac_cv_env_host_alias_set=${host_alias+set} | |
| 571 ac_cv_env_host_alias_value=$host_alias | |
| 572 ac_env_target_alias_set=${target_alias+set} | |
| 573 ac_env_target_alias_value=$target_alias | |
| 574 ac_cv_env_target_alias_set=${target_alias+set} | |
| 575 ac_cv_env_target_alias_value=$target_alias | |
| 576 ac_env_CC_set=${CC+set} | |
| 577 ac_env_CC_value=$CC | |
| 578 ac_cv_env_CC_set=${CC+set} | |
| 579 ac_cv_env_CC_value=$CC | |
| 580 ac_env_CFLAGS_set=${CFLAGS+set} | |
| 581 ac_env_CFLAGS_value=$CFLAGS | |
| 582 ac_cv_env_CFLAGS_set=${CFLAGS+set} | |
| 583 ac_cv_env_CFLAGS_value=$CFLAGS | |
| 584 ac_env_LDFLAGS_set=${LDFLAGS+set} | |
| 585 ac_env_LDFLAGS_value=$LDFLAGS | |
| 586 ac_cv_env_LDFLAGS_set=${LDFLAGS+set} | |
| 587 ac_cv_env_LDFLAGS_value=$LDFLAGS | |
| 588 ac_env_CPPFLAGS_set=${CPPFLAGS+set} | |
| 589 ac_env_CPPFLAGS_value=$CPPFLAGS | |
| 590 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} | |
| 591 ac_cv_env_CPPFLAGS_value=$CPPFLAGS | |
| 592 ac_env_CPP_set=${CPP+set} | |
| 593 ac_env_CPP_value=$CPP | |
| 594 ac_cv_env_CPP_set=${CPP+set} | |
| 595 ac_cv_env_CPP_value=$CPP | |
| 596 | |
| 597 # | |
| 598 # Report the --help message. | |
| 599 # | |
| 600 if test "$ac_init_help" = "long"; then | |
| 601 # Omit some internal or obsolete options to make the list less imposing. | |
| 602 # This message is too long to be a string in the A/UX 3.1 sh. | |
| 603 cat <<EOF | |
| 604 \`configure' configures this package to adapt to many kinds of systems. | |
| 605 | |
| 606 Usage: $0 [OPTION]... [VAR=VALUE]... | |
| 607 | |
| 608 To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
| 609 VAR=VALUE. See below for descriptions of some of the useful variables. | |
| 610 | |
| 611 Defaults for the options are specified in brackets. | |
| 612 | |
| 613 Configuration: | |
| 614 -h, --help display this help and exit | |
| 615 --help=short display options specific to this package | |
| 616 --help=recursive display the short help of all the included packages | |
| 617 -V, --version display version information and exit | |
| 618 -q, --quiet, --silent do not print \`checking...' messages | |
| 619 --cache-file=FILE cache test results in FILE [disabled] | |
| 620 -C, --config-cache alias for \`--cache-file=config.cache' | |
| 621 -n, --no-create do not create output files | |
| 622 --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
| 623 | |
| 624 EOF | |
| 625 | |
| 626 cat <<EOF | |
| 627 Installation directories: | |
| 628 --prefix=PREFIX install architecture-independent files in PREFIX | |
| 629 [$ac_default_prefix] | |
| 630 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
| 631 [PREFIX] | |
| 632 | |
| 633 By default, \`make install' will install all the files in | |
| 634 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
| 635 an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
| 636 for instance \`--prefix=\$HOME'. | |
| 637 | |
| 638 For better control, use the options below. | |
| 639 | |
| 640 Fine tuning of the installation directories: | |
| 641 --bindir=DIR user executables [EPREFIX/bin] | |
| 642 --sbindir=DIR system admin executables [EPREFIX/sbin] | |
| 643 --libexecdir=DIR program executables [EPREFIX/libexec] | |
| 644 --datadir=DIR read-only architecture-independent data [PREFIX/share] | |
| 645 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
| 646 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
| 647 --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
| 648 --libdir=DIR object code libraries [EPREFIX/lib] | |
| 649 --includedir=DIR C header files [PREFIX/include] | |
| 650 --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
| 651 --infodir=DIR info documentation [PREFIX/info] | |
| 652 --mandir=DIR man documentation [PREFIX/man] | |
| 653 EOF | |
| 654 | |
| 655 cat <<\EOF | |
| 656 | |
| 657 X features: | |
| 658 --x-includes=DIR X include files are in DIR | |
| 659 --x-libraries=DIR X library files are in DIR | |
| 660 | |
| 661 System types: | |
| 662 --build=BUILD configure for building on BUILD [guessed] | |
| 663 --host=HOST build programs to run on HOST [BUILD] | |
| 664 EOF | |
| 665 fi | |
| 666 | |
| 667 if test -n "$ac_init_help"; then | |
| 668 | |
| 669 cat <<\EOF | |
| 670 | |
| 671 Optional Features: | |
| 672 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
| 673 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
| 674 --disable-largefile omit support for large files | |
| 675 | |
| 676 Optional Packages: | |
| 677 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
| 678 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
| 679 --without-gcc don't use GCC to compile Emacs if GCC is found | |
| 680 --without-pop don't support POP mail retrieval with movemail | |
| 681 --with-kerberos support Kerberos-authenticated POP | |
| 682 --with-kerberos5 support Kerberos version 5 authenticated POP | |
| 683 --with-hesiod support Hesiod to get the POP server host | |
| 684 --with-x-toolkit=KIT use an X toolkit (KIT = yes/lucid/athena/motif/no) | |
| 685 --with-xpm use -lXpm for displaying XPM images | |
| 686 --with-jpeg use -ljpeg for displaying JPEG images | |
| 687 --with-tiff use -ltiff for displaying TIFF images | |
| 688 --with-gif use -lungif for displaying GIF images | |
| 689 --with-png use -lpng for displaying PNG images | |
| 690 --without-toolkit-scroll-bars | |
| 691 don't use Motif or Xaw3d scroll bars | |
| 692 --without-xim don't use X11 XIM | |
| 693 --with-x use the X Window System | |
| 694 | |
| 695 Some influential environment variables: | |
| 696 CC C compiler command | |
| 697 CFLAGS C compiler flags | |
| 698 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
| 699 nonstandard directory <lib dir> | |
| 700 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have | |
| 701 headers in a nonstandard directory <include dir> | |
| 702 CPP C preprocessor | |
| 703 | |
| 704 Use these variables to override the choices made by `configure' or to help | |
| 705 it to find libraries and programs with nonstandard names/locations. | |
| 706 | |
| 707 EOF | |
| 708 fi | |
| 709 | |
| 710 if test "$ac_init_help" = "recursive"; then | |
| 711 # If there are subdirs, report their specific --help. | |
| 712 ac_popdir=`pwd` | |
| 713 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue | |
| 714 cd $ac_subdir | |
| 715 # A "../" for each directory in /$ac_subdir. | |
| 716 ac_dots=`echo $ac_subdir | | |
| 717 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` | |
| 718 | |
| 719 case $srcdir in | |
| 720 .) # No --srcdir option. We are building in place. | |
| 721 ac_sub_srcdir=$srcdir ;; | |
| 722 [\\/]* | ?:[\\/]* ) # Absolute path. | |
| 723 ac_sub_srcdir=$srcdir/$ac_subdir ;; | |
| 724 *) # Relative path. | |
| 725 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;; | |
| 726 esac | |
| 727 | |
| 728 # Check for guested configure; otherwise get Cygnus style configure. | |
| 729 if test -f $ac_sub_srcdir/configure.gnu; then | |
| 730 echo | |
| 731 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive | |
| 732 elif test -f $ac_sub_srcdir/configure; then | |
| 733 echo | |
| 734 $SHELL $ac_sub_srcdir/configure --help=recursive | |
| 735 elif test -f $ac_sub_srcdir/configure.ac || | |
| 736 test -f $ac_sub_srcdir/configure.in; then | |
| 737 echo | |
| 738 $ac_configure --help | |
| 739 else | |
| 740 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2 | |
| 741 fi | |
| 742 cd $ac_popdir | |
| 743 done | |
| 744 fi | |
| 745 | |
| 746 test -n "$ac_init_help" && exit 0 | |
| 747 if $ac_init_version; then | |
| 748 cat <<\EOF | |
| 749 | |
| 750 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 | |
| 751 Free Software Foundation, Inc. | |
| 752 This configure script is free software; the Free Software Foundation | |
| 753 gives unlimited permission to copy, distribute and modify it. | |
| 754 EOF | |
| 755 exit 0 | |
| 756 fi | |
| 757 exec 5>config.log | |
| 758 cat >&5 <<EOF | |
| 759 This file contains any messages produced by compilers while | |
| 760 running configure, to aid debugging if configure makes a mistake. | |
| 761 | |
| 762 It was created by $as_me, which was | |
| 763 generated by GNU Autoconf 2.52. Invocation command line was | |
| 764 | |
| 765 $ $0 $@ | |
| 766 | |
| 767 EOF | |
| 768 { | |
| 769 cat <<_ASUNAME | |
| 770 ## ---------- ## | |
| 771 ## Platform. ## | |
| 772 ## ---------- ## | |
| 773 | |
| 774 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
| 775 uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
| 776 uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
| 777 uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
| 778 uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
| 779 | |
| 780 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
| 781 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
| 782 | |
| 783 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
| 784 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
| 785 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
| 786 hostinfo = `(hostinfo) 2>/dev/null || echo unknown` | |
| 787 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
| 788 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
| 789 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
| 790 | |
| 791 PATH = $PATH | |
| 792 | |
| 793 _ASUNAME | |
| 794 } >&5 | |
| 795 | |
| 796 cat >&5 <<EOF | |
| 797 ## ------------ ## | |
| 798 ## Core tests. ## | |
| 799 ## ------------ ## | |
| 800 | |
| 801 EOF | |
| 802 | |
| 803 # Keep a trace of the command line. | |
| 804 # Strip out --no-create and --no-recursion so they do not pile up. | |
| 805 # Also quote any args containing shell meta-characters. | |
| 806 ac_configure_args= | |
| 807 ac_sep= | |
| 808 for ac_arg | |
| 809 do | |
| 810 case $ac_arg in | |
| 811 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
| 812 | --no-cr | --no-c) ;; | |
| 813 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
| 814 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; | |
| 815 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
| 816 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` | |
| 817 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" | |
| 818 ac_sep=" " ;; | |
| 819 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg" | |
| 820 ac_sep=" " ;; | |
| 821 esac | |
| 822 # Get rid of the leading space. | |
| 823 done | |
| 824 | |
| 825 # When interrupted or exit'd, cleanup temporary files, and complete | |
| 826 # config.log. We remove comments because anyway the quotes in there | |
| 827 # would cause problems or look ugly. | |
| 828 trap 'exit_status=$? | |
| 829 # Save into config.log some information that might help in debugging. | |
| 830 echo >&5 | |
| 831 echo "## ----------------- ##" >&5 | |
| 832 echo "## Cache variables. ##" >&5 | |
| 833 echo "## ----------------- ##" >&5 | |
| 834 echo >&5 | |
| 835 # The following way of writing the cache mishandles newlines in values, | |
| 836 { | |
| 837 (set) 2>&1 | | |
| 838 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in | |
| 839 *ac_space=\ *) | |
| 840 sed -n \ | |
| 841 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; | |
| 842 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" | |
| 843 ;; | |
| 844 *) | |
| 845 sed -n \ | |
| 846 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
| 847 ;; | |
| 848 esac; | |
| 849 } >&5 | |
| 850 sed "/^$/d" confdefs.h >conftest.log | |
| 851 if test -s conftest.log; then | |
| 852 echo >&5 | |
| 853 echo "## ------------ ##" >&5 | |
| 854 echo "## confdefs.h. ##" >&5 | |
| 855 echo "## ------------ ##" >&5 | |
| 856 echo >&5 | |
| 857 cat conftest.log >&5 | |
| 858 fi | |
| 859 (echo; echo) >&5 | |
| 860 test "$ac_signal" != 0 && | |
| 861 echo "$as_me: caught signal $ac_signal" >&5 | |
| 862 echo "$as_me: exit $exit_status" >&5 | |
| 863 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files && | |
| 864 exit $exit_status | |
| 865 ' 0 | |
| 866 for ac_signal in 1 2 13 15; do | |
| 867 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
| 868 done | |
| 869 ac_signal=0 | |
| 870 | |
| 871 # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
| 872 rm -rf conftest* confdefs.h | |
| 873 # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
| 874 echo >confdefs.h | |
| 875 | |
| 876 # Let the site file select an alternate cache file if it wants to. | |
| 25897 | 877 # Prefer explicitly selected file to automatically selected ones. |
| 878 if test -z "$CONFIG_SITE"; then | |
| 879 if test "x$prefix" != xNONE; then | |
| 880 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
| 881 else | |
| 882 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
| 883 fi | |
| 884 fi | |
| 885 for ac_site_file in $CONFIG_SITE; do | |
| 886 if test -r "$ac_site_file"; then | |
| 40056 | 887 { echo "$as_me:887: loading site script $ac_site_file" >&5 |
| 888 echo "$as_me: loading site script $ac_site_file" >&6;} | |
| 889 cat "$ac_site_file" >&5 | |
| 25897 | 890 . "$ac_site_file" |
| 891 fi | |
| 892 done | |
| 893 | |
| 894 if test -r "$cache_file"; then | |
| 40056 | 895 # Some versions of bash will fail to source /dev/null (special |
| 896 # files actually), so we avoid doing that. | |
| 897 if test -f "$cache_file"; then | |
| 898 { echo "$as_me:898: loading cache $cache_file" >&5 | |
| 899 echo "$as_me: loading cache $cache_file" >&6;} | |
| 900 case $cache_file in | |
| 901 [\\/]* | ?:[\\/]* ) . $cache_file;; | |
| 902 *) . ./$cache_file;; | |
| 903 esac | |
| 904 fi | |
| 905 else | |
| 906 { echo "$as_me:906: creating cache $cache_file" >&5 | |
| 907 echo "$as_me: creating cache $cache_file" >&6;} | |
| 908 >$cache_file | |
| 909 fi | |
| 910 | |
| 911 # Check that the precious variables saved in the cache have kept the same | |
| 912 # value. | |
| 913 ac_cache_corrupted=false | |
| 914 for ac_var in `(set) 2>&1 | | |
| 915 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do | |
| 916 eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
| 917 eval ac_new_set=\$ac_env_${ac_var}_set | |
| 918 eval ac_old_val="\$ac_cv_env_${ac_var}_value" | |
| 919 eval ac_new_val="\$ac_env_${ac_var}_value" | |
| 920 case $ac_old_set,$ac_new_set in | |
| 921 set,) | |
| 922 { echo "$as_me:922: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
| 923 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
| 924 ac_cache_corrupted=: ;; | |
| 925 ,set) | |
| 926 { echo "$as_me:926: error: \`$ac_var' was not set in the previous run" >&5 | |
| 927 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
| 928 ac_cache_corrupted=: ;; | |
| 929 ,);; | |
| 930 *) | |
| 931 if test "x$ac_old_val" != "x$ac_new_val"; then | |
| 932 { echo "$as_me:932: error: \`$ac_var' has changed since the previous run:" >&5 | |
| 933 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
| 934 { echo "$as_me:934: former value: $ac_old_val" >&5 | |
| 935 echo "$as_me: former value: $ac_old_val" >&2;} | |
| 936 { echo "$as_me:936: current value: $ac_new_val" >&5 | |
| 937 echo "$as_me: current value: $ac_new_val" >&2;} | |
| 938 ac_cache_corrupted=: | |
| 939 fi;; | |
| 940 esac | |
| 941 # Pass precious variables to config.status. It doesn't matter if | |
| 942 # we pass some twice (in addition to the command line arguments). | |
| 943 if test "$ac_new_set" = set; then | |
| 944 case $ac_new_val in | |
| 945 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
| 946 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` | |
| 947 ac_configure_args="$ac_configure_args '$ac_arg'" | |
| 948 ;; | |
| 949 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val" | |
| 950 ;; | |
| 951 esac | |
| 952 fi | |
| 953 done | |
| 954 if $ac_cache_corrupted; then | |
| 955 { echo "$as_me:955: error: changes in the environment can compromise the build" >&5 | |
| 956 echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
| 957 { { echo "$as_me:957: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
| 958 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
| 959 { (exit 1); exit 1; }; } | |
| 25897 | 960 fi |
| 961 | |
| 962 ac_ext=c | |
| 963 ac_cpp='$CPP $CPPFLAGS' | |
| 40056 | 964 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 965 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
| 966 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
| 967 | |
| 968 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | |
| 969 *c*,-n*) ECHO_N= ECHO_C=' | |
| 970 ' ECHO_T=' ' ;; | |
| 971 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
| 972 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
| 973 esac | |
| 974 echo "#! $SHELL" >conftest.sh | |
| 975 echo "exit 0" >>conftest.sh | |
| 976 chmod +x conftest.sh | |
| 977 if { (echo "$as_me:977: PATH=\".;.\"; conftest.sh") >&5 | |
| 978 (PATH=".;."; conftest.sh) 2>&5 | |
| 979 ac_status=$? | |
| 980 echo "$as_me:980: \$? = $ac_status" >&5 | |
| 981 (exit $ac_status); }; then | |
| 982 ac_path_separator=';' | |
| 983 else | |
| 984 ac_path_separator=: | |
| 985 fi | |
| 986 PATH_SEPARATOR="$ac_path_separator" | |
| 987 rm -f conftest.sh | |
| 988 | |
| 989 ac_config_headers="$ac_config_headers src/config.h:src/config.in" | |
| 25897 | 990 |
| 991 lispdir='${datadir}/emacs/${version}/lisp' | |
| 992 locallisppath='${datadir}/emacs/${version}/site-lisp:'\ | |
| 993 '${datadir}/emacs/site-lisp:${datadir}/emacs/${version}/leim' | |
| 994 lisppath='${locallisppath}:${lispdir}' | |
| 995 etcdir='${datadir}/emacs/${version}/etc' | |
| 996 archlibdir='${libexecdir}/emacs/${version}/${configuration}' | |
| 997 docdir='${datadir}/emacs/${version}/etc' | |
| 998 | |
| 999 # Check whether --with-gcc or --without-gcc was given. | |
| 1000 if test "${with_gcc+set}" = set; then | |
| 1001 withval="$with_gcc" | |
| 40056 | 1002 |
| 1003 fi; | |
| 25897 | 1004 |
| 1005 # Check whether --with-pop or --without-pop was given. | |
| 1006 if test "${with_pop+set}" = set; then | |
| 1007 withval="$with_pop" | |
| 25994 | 1008 if test "$withval" = yes; then |
| 40056 | 1009 cat >>confdefs.h <<\EOF |
| 25897 | 1010 #define MAIL_USE_POP 1 |
| 1011 EOF | |
| 1012 | |
| 25994 | 1013 else : |
| 1014 fi | |
|
26382
78660eeae4b2
Fix change for --with-pop default.
Dave Love <fx@gnu.org>
parents:
26081
diff
changeset
|
1015 else |
| 40056 | 1016 cat >>confdefs.h <<\EOF |
|
26382
78660eeae4b2
Fix change for --with-pop default.
Dave Love <fx@gnu.org>
parents:
26081
diff
changeset
|
1017 #define MAIL_USE_POP 1 |
|
78660eeae4b2
Fix change for --with-pop default.
Dave Love <fx@gnu.org>
parents:
26081
diff
changeset
|
1018 EOF |
|
78660eeae4b2
Fix change for --with-pop default.
Dave Love <fx@gnu.org>
parents:
26081
diff
changeset
|
1019 |
| 40056 | 1020 fi; |
| 25897 | 1021 |
|
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
1022 # Check whether --with-kerberos or --without-kerberos was given. |
|
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
1023 if test "${with_kerberos+set}" = set; then |
|
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
1024 withval="$with_kerberos" |
| 40056 | 1025 cat >>confdefs.h <<\EOF |
|
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
1026 #define KERBEROS 1 |
|
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
1027 EOF |
|
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
1028 |
| 40056 | 1029 fi; |
|
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
1030 |
|
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
1031 # Check whether --with-kerberos5 or --without-kerberos5 was given. |
|
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
1032 if test "${with_kerberos5+set}" = set; then |
|
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
1033 withval="$with_kerberos5" |
|
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
1034 if test "${with_kerberos5+set}" = set; then |
|
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
1035 if test "${with_kerberos+set}" != set; then |
|
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
1036 with_kerberos=yes |
| 40056 | 1037 cat >>confdefs.h <<\EOF |
|
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
1038 #define KERBEROS 1 |
|
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
1039 EOF |
|
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
1040 |
|
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
1041 fi |
|
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
1042 fi |
| 40056 | 1043 cat >>confdefs.h <<\EOF |
|
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
1044 #define KERBEROS5 1 |
|
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
1045 EOF |
|
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
1046 |
| 40056 | 1047 fi; |
|
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
1048 |
| 25897 | 1049 # Check whether --with-hesiod or --without-hesiod was given. |
| 1050 if test "${with_hesiod+set}" = set; then | |
| 1051 withval="$with_hesiod" | |
| 40056 | 1052 cat >>confdefs.h <<\EOF |
| 25897 | 1053 #define HESIOD 1 |
| 1054 EOF | |
| 1055 | |
| 40056 | 1056 fi; |
| 25897 | 1057 |
| 1058 # Check whether --with-x-toolkit or --without-x-toolkit was given. | |
| 1059 if test "${with_x_toolkit+set}" = set; then | |
| 1060 withval="$with_x_toolkit" | |
| 1061 case "${withval}" in | |
| 1062 y | ye | yes ) val=athena ;; | |
| 1063 n | no ) val=no ;; | |
| 1064 l | lu | luc | luci | lucid ) val=lucid ;; | |
| 1065 a | at | ath | athe | athen | athena ) val=athena ;; | |
| 1066 m | mo | mot | moti | motif ) val=motif ;; | |
| 1067 * ) | |
| 40056 | 1068 { { echo "$as_me:1068: error: \`--with-x-toolkit=$withval' is invalid\; |
| 25897 | 1069 this option's value should be \`yes', \`no', \`lucid', \`athena', or \`motif'. |
| 40056 | 1070 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&5 |
| 1071 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid\; | |
| 1072 this option's value should be \`yes', \`no', \`lucid', \`athena', or \`motif'. | |
| 1073 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&2;} | |
| 1074 { (exit 1); exit 1; }; } | |
| 25897 | 1075 ;; |
| 1076 esac | |
| 1077 with_x_toolkit=$val | |
| 1078 | |
| 40056 | 1079 fi; |
| 25897 | 1080 |
| 1081 # Check whether --with-xpm or --without-xpm was given. | |
| 1082 if test "${with_xpm+set}" = set; then | |
| 1083 withval="$with_xpm" | |
| 40056 | 1084 |
| 1085 fi; | |
| 25897 | 1086 |
| 1087 # Check whether --with-jpeg or --without-jpeg was given. | |
| 1088 if test "${with_jpeg+set}" = set; then | |
| 1089 withval="$with_jpeg" | |
| 40056 | 1090 |
| 1091 fi; | |
| 25897 | 1092 |
| 1093 # Check whether --with-tiff or --without-tiff was given. | |
| 1094 if test "${with_tiff+set}" = set; then | |
| 1095 withval="$with_tiff" | |
| 40056 | 1096 |
| 1097 fi; | |
| 25897 | 1098 |
| 1099 # Check whether --with-gif or --without-gif was given. | |
| 1100 if test "${with_gif+set}" = set; then | |
| 1101 withval="$with_gif" | |
| 40056 | 1102 |
| 1103 fi; | |
| 25897 | 1104 |
| 1105 # Check whether --with-png or --without-png was given. | |
| 1106 if test "${with_png+set}" = set; then | |
| 1107 withval="$with_png" | |
| 40056 | 1108 |
| 1109 fi; | |
| 25897 | 1110 |
| 1111 # Check whether --with-toolkit-scroll-bars or --without-toolkit-scroll-bars was given. | |
| 1112 if test "${with_toolkit_scroll_bars+set}" = set; then | |
| 1113 withval="$with_toolkit_scroll_bars" | |
| 40056 | 1114 |
| 1115 fi; | |
| 25897 | 1116 |
| 29949 | 1117 # Check whether --with-xim or --without-xim was given. |
| 1118 if test "${with_xim+set}" = set; then | |
| 1119 withval="$with_xim" | |
| 40056 | 1120 |
| 1121 fi; | |
| 25897 | 1122 |
| 1123 #### Make srcdir absolute, if it isn't already. It's important to | |
| 31153 | 1124 #### avoid running the path through pwd unnecessarily, since pwd can |
| 25897 | 1125 #### give you automounter prefixes, which can go away. We do all this |
| 1126 #### so Emacs can find its files when run uninstalled. | |
| 31153 | 1127 ## Make sure CDPATH doesn't affect cd (in case PWD is relative). |
| 1128 unset CDPATH | |
| 25897 | 1129 case "${srcdir}" in |
| 1130 /* ) ;; | |
| 1131 . ) | |
| 1132 ## We may be able to use the $PWD environment variable to make this | |
| 1133 ## absolute. But sometimes PWD is inaccurate. | |
| 31153 | 1134 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".${PWD}" ; |
| 25897 | 1135 then |
| 1136 srcdir="$PWD" | |
| 1137 else | |
| 1138 srcdir="`(cd ${srcdir}; pwd)`" | |
| 1139 fi | |
| 1140 ;; | |
| 1141 * ) srcdir="`(cd ${srcdir}; pwd)`" ;; | |
| 1142 esac | |
| 1143 | |
| 1144 #### Check if the source directory already has a configured system in it. | |
| 1145 if test `pwd` != `(cd ${srcdir} && pwd)` \ | |
| 1146 && test -f "${srcdir}/src/config.h" ; then | |
| 40056 | 1147 { echo "$as_me:1147: WARNING: The directory tree \`${srcdir}' is being used |
| 25897 | 1148 as a build directory right now; it has been configured in its own |
| 1149 right. To configure in another directory as well, you MUST | |
| 1150 use GNU make. If you do not have GNU make, then you must | |
| 1151 now do \`make distclean' in ${srcdir}, | |
| 40056 | 1152 and then run $0 again." >&5 |
| 1153 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used | |
| 1154 as a build directory right now; it has been configured in its own | |
| 1155 right. To configure in another directory as well, you MUST | |
| 1156 use GNU make. If you do not have GNU make, then you must | |
| 1157 now do \`make distclean' in ${srcdir}, | |
| 1158 and then run $0 again." >&2;} | |
| 25897 | 1159 |
| 1160 extrasub='/^VPATH[ ]*=/c\ | |
| 1161 vpath %.c $(srcdir)\ | |
| 1162 vpath %.h $(srcdir)\ | |
| 1163 vpath %.y $(srcdir)\ | |
| 1164 vpath %.l $(srcdir)\ | |
| 1165 vpath %.s $(srcdir)\ | |
| 1166 vpath %.in $(srcdir)\ | |
| 1167 vpath %.texi $(srcdir)' | |
| 1168 fi | |
| 1169 | |
| 1170 #### Given the configuration name, set machfile and opsysfile to the | |
| 1171 #### names of the m/*.h and s/*.h files we should use. | |
| 1172 | |
| 1173 ### Canonicalize the configuration name. | |
| 1174 | |
| 1175 ac_aux_dir= | |
| 1176 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
| 1177 if test -f $ac_dir/install-sh; then | |
| 1178 ac_aux_dir=$ac_dir | |
| 1179 ac_install_sh="$ac_aux_dir/install-sh -c" | |
| 1180 break | |
| 1181 elif test -f $ac_dir/install.sh; then | |
| 1182 ac_aux_dir=$ac_dir | |
| 1183 ac_install_sh="$ac_aux_dir/install.sh -c" | |
| 1184 break | |
| 40056 | 1185 elif test -f $ac_dir/shtool; then |
| 1186 ac_aux_dir=$ac_dir | |
| 1187 ac_install_sh="$ac_aux_dir/shtool install -c" | |
| 1188 break | |
| 25897 | 1189 fi |
| 1190 done | |
| 1191 if test -z "$ac_aux_dir"; then | |
| 40056 | 1192 { { echo "$as_me:1192: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 |
| 1193 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} | |
| 1194 { (exit 1); exit 1; }; } | |
| 1195 fi | |
| 1196 ac_config_guess="$SHELL $ac_aux_dir/config.guess" | |
| 1197 ac_config_sub="$SHELL $ac_aux_dir/config.sub" | |
| 1198 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | |
| 25897 | 1199 |
| 1200 # Make sure we can run config.sub. | |
| 40056 | 1201 $ac_config_sub sun4 >/dev/null 2>&1 || |
| 1202 { { echo "$as_me:1202: error: cannot run $ac_config_sub" >&5 | |
| 1203 echo "$as_me: error: cannot run $ac_config_sub" >&2;} | |
| 1204 { (exit 1); exit 1; }; } | |
| 1205 | |
| 1206 echo "$as_me:1206: checking build system type" >&5 | |
| 1207 echo $ECHO_N "checking build system type... $ECHO_C" >&6 | |
| 1208 if test "${ac_cv_build+set}" = set; then | |
| 1209 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
| 1210 else | |
| 1211 ac_cv_build_alias=$build_alias | |
| 1212 test -z "$ac_cv_build_alias" && | |
| 1213 ac_cv_build_alias=`$ac_config_guess` | |
| 1214 test -z "$ac_cv_build_alias" && | |
| 1215 { { echo "$as_me:1215: error: cannot guess build type; you must specify one" >&5 | |
| 1216 echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
| 1217 { (exit 1); exit 1; }; } | |
| 1218 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || | |
| 1219 { { echo "$as_me:1219: error: $ac_config_sub $ac_cv_build_alias failed." >&5 | |
| 1220 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;} | |
| 1221 { (exit 1); exit 1; }; } | |
| 1222 | |
| 1223 fi | |
| 1224 echo "$as_me:1224: result: $ac_cv_build" >&5 | |
| 1225 echo "${ECHO_T}$ac_cv_build" >&6 | |
| 1226 build=$ac_cv_build | |
| 1227 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
| 1228 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
| 1229 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
| 1230 | |
| 1231 echo "$as_me:1231: checking host system type" >&5 | |
| 1232 echo $ECHO_N "checking host system type... $ECHO_C" >&6 | |
| 1233 if test "${ac_cv_host+set}" = set; then | |
| 1234 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
| 1235 else | |
| 1236 ac_cv_host_alias=$host_alias | |
| 1237 test -z "$ac_cv_host_alias" && | |
| 1238 ac_cv_host_alias=$ac_cv_build_alias | |
| 1239 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || | |
| 1240 { { echo "$as_me:1240: error: $ac_config_sub $ac_cv_host_alias failed" >&5 | |
| 1241 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} | |
| 1242 { (exit 1); exit 1; }; } | |
| 1243 | |
| 1244 fi | |
| 1245 echo "$as_me:1245: result: $ac_cv_host" >&5 | |
| 1246 echo "${ECHO_T}$ac_cv_host" >&6 | |
| 1247 host=$ac_cv_host | |
| 1248 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
| 1249 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
| 1250 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
| 25897 | 1251 |
| 1252 canonical=$host | |
| 40060 | 1253 configuration=${host_alias-$host} |
| 25897 | 1254 |
| 1255 ### If you add support for a new configuration, add code to this | |
| 1256 ### switch statement to recognize your configuration name and select | |
| 1257 ### the appropriate operating system and machine description files. | |
| 1258 | |
| 1259 ### You would hope that you could choose an m/*.h file pretty much | |
| 1260 ### based on the machine portion of the configuration name, and an s- | |
| 1261 ### file based on the operating system portion. However, it turns out | |
| 1262 ### that each m/*.h file is pretty manufacturer-specific - for | |
| 1263 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are | |
| 1264 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS | |
| 1265 ### machines. So we basically have to have a special case for each | |
| 1266 ### configuration name. | |
| 1267 ### | |
| 1268 ### As far as handling version numbers on operating systems is | |
| 1269 ### concerned, make sure things will fail in a fixable way. If | |
| 1270 ### /etc/MACHINES doesn't say anything about version numbers, be | |
| 1271 ### prepared to handle anything reasonably. If version numbers | |
| 1272 ### matter, be sure /etc/MACHINES says something about it. | |
| 1273 ### | |
| 1274 ### Eric Raymond says we should accept strings like "sysvr4" to mean | |
| 1275 ### "System V Release 4"; he writes, "The old convention encouraged | |
| 1276 ### confusion between `system' and `release' levels'." | |
| 1277 | |
| 1278 machine='' opsys='' unported=no | |
| 1279 case "${canonical}" in | |
| 1280 | |
| 1281 ## NetBSD ports | |
| 1282 *-*-netbsd* ) | |
| 1283 opsys=netbsd | |
| 1284 case "${canonical}" in | |
| 1285 alpha*-*-netbsd*) machine=alpha ;; | |
| 1286 i[3456]86-*-netbsd*) machine=intel386 ;; | |
| 1287 m68k-*-netbsd*) | |
| 1288 # This is somewhat bogus. | |
| 1289 machine=hp9000s300 ;; | |
| 1290 powerpc-apple-netbsd*) machine=macppc ;; | |
| 1291 mips-*-netbsd*) machine=pmax ;; | |
| 27927 | 1292 mipsel-*-netbsd*) machine=pmax ;; |
| 25897 | 1293 ns32k-*-netbsd*) machine=ns32000 ;; |
| 28674 | 1294 powerpc-*-netbsd*) machine=macppc ;; |
| 32034 | 1295 sparc*-*-netbsd*) machine=sparc ;; |
| 25897 | 1296 vax-*-netbsd*) machine=vax ;; |
| 27927 | 1297 arm-*-netbsd*) machine=arm ;; |
| 25897 | 1298 esac |
| 1299 ;; | |
| 1300 | |
| 1301 ## OpenBSD ports | |
| 1302 *-*-openbsd* ) | |
| 1303 opsys=openbsd | |
| 1304 case "${canonical}" in | |
| 1305 alpha*-*-openbsd*) machine=alpha ;; | |
| 1306 i386-*-openbsd*) machine=intel386 ;; | |
| 1307 m68k-*-openbsd*) machine=hp9000s300 ;; | |
| 1308 mipsel-*-openbsd*) machine=pmax ;; | |
| 1309 ns32k-*-openbsd*) machine=ns32000 ;; | |
| 1310 sparc-*-openbsd*) machine=sparc ;; | |
| 1311 vax-*-openbsd*) machine=vax ;; | |
| 1312 esac | |
| 1313 ;; | |
| 1314 | |
| 1315 ## Acorn RISCiX: | |
| 1316 arm-acorn-riscix1.1* ) | |
| 1317 machine=acorn opsys=riscix1-1 | |
| 1318 ;; | |
| 1319 arm-acorn-riscix1.2* | arm-acorn-riscix ) | |
| 1320 ## This name is riscix12 instead of riscix1.2 | |
| 1321 ## to avoid a file name conflict on MSDOS. | |
| 1322 machine=acorn opsys=riscix12 | |
| 1323 ;; | |
| 1324 | |
| 1325 ## BSDI ports | |
| 1326 *-*-bsdi* ) | |
| 1327 opsys=bsdi | |
| 1328 case "${canonical}" in | |
| 1329 i[345]86-*-bsdi*) machine=intel386 ;; | |
| 1330 sparc-*-bsdi*) machine=sparc ;; | |
| 33740 | 1331 powerpc-*-bsdi*) machine=macppc ;; |
| 25897 | 1332 esac |
| 1333 case "${canonical}" in | |
| 1334 *-*-bsd386* | *-*-bsdi1* ) opsys=bsd386 ;; | |
| 1335 *-*-bsdi2.0* ) opsys=bsdos2 ;; | |
| 1336 *-*-bsdi2* ) opsys=bsdos2-1 ;; | |
| 1337 *-*-bsdi3* ) opsys=bsdos3 ;; | |
| 1338 *-*-bsdi4* ) opsys=bsdos4 ;; | |
| 1339 esac | |
| 1340 ;; | |
| 1341 | |
| 1342 ## Alliant machines | |
| 1343 ## Strictly speaking, we need the version of the alliant operating | |
| 1344 ## system to choose the right machine file, but currently the | |
| 1345 ## configuration name doesn't tell us enough to choose the right | |
| 1346 ## one; we need to give alliants their own operating system name to | |
| 1347 ## do this right. When someone cares, they can help us. | |
| 1348 fx80-alliant-* ) | |
| 1349 machine=alliant4 opsys=bsd4-2 | |
| 1350 ;; | |
| 1351 i860-alliant-* ) | |
| 1352 machine=alliant-2800 opsys=bsd4-3 | |
| 1353 ;; | |
| 1354 | |
| 1355 ## Alpha (DEC) machines. | |
| 1356 alpha*-dec-osf* ) | |
| 1357 machine=alpha opsys=osf1 | |
| 1358 # This is needed to find X11R6.1 libraries for certain tests. | |
| 1359 NON_GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib | |
| 1360 GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib | |
| 34446 | 1361 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile |
| 1362 # due to non-traditional preprocessing with the current compiler | |
| 1363 # defaults. OSF 4 can also have that compiler version, and there | |
| 1364 # seems always to have been a usable /usr/bin/cpp. | |
| 1365 NON_GNU_CPP=/usr/bin/cpp | |
| 27883 | 1366 case "${canonical}" in |
| 31994 | 1367 alpha*-dec-osf[5-9]*) |
| 31229 | 1368 opsys=osf5-0 ;; |
| 27883 | 1369 esac |
| 25897 | 1370 ;; |
| 1371 | |
| 1372 alpha*-*-linux-gnu* ) | |
| 1373 machine=alpha opsys=gnu-linux | |
| 1374 ;; | |
| 1375 | |
| 27205 | 1376 arm*-*-linux-gnu* ) |
| 1377 machine=arm opsys=gnu-linux | |
| 1378 ;; | |
| 1379 | |
| 1380 ppc-*-linux | \ | |
| 1381 powerpc-*-linux* ) | |
| 33740 | 1382 machine=macppc opsys=gnu-linux |
| 27205 | 1383 ;; |
| 1384 | |
| 25897 | 1385 ## Altos 3068 |
| 1386 m68*-altos-sysv* ) | |
| 1387 machine=altos opsys=usg5-2 | |
| 1388 ;; | |
| 1389 | |
| 1390 ## Amdahl UTS | |
| 1391 580-amdahl-sysv* ) | |
| 1392 machine=amdahl opsys=usg5-2-2 | |
| 1393 ;; | |
| 1394 | |
| 1395 ## Apollo, Domain/OS | |
| 1396 m68*-apollo-* ) | |
| 1397 machine=apollo opsys=bsd4-3 | |
| 1398 ;; | |
| 1399 | |
| 1400 ## AT&T 3b2, 3b5, 3b15, 3b20 | |
| 1401 we32k-att-sysv* ) | |
| 1402 machine=att3b opsys=usg5-2-2 | |
| 1403 ;; | |
| 1404 | |
| 1405 ## AT&T 3b1 - The Mighty Unix PC! | |
| 1406 m68*-att-sysv* ) | |
| 1407 machine=7300 opsys=usg5-2-2 | |
| 1408 ;; | |
| 1409 | |
| 1410 ## Bull dpx20 | |
| 1411 rs6000-bull-bosx* ) | |
| 1412 machine=ibmrs6000 opsys=aix3-2 | |
| 1413 ;; | |
| 1414 | |
| 1415 ## Bull dpx2 | |
| 1416 m68*-bull-sysv3* ) | |
| 1417 machine=dpx2 opsys=usg5-3 | |
| 1418 ;; | |
| 1419 | |
| 1420 ## Bull sps7 | |
| 1421 m68*-bull-sysv2* ) | |
| 1422 machine=sps7 opsys=usg5-2 | |
| 1423 ;; | |
| 1424 | |
| 1425 ## CCI 5/32, 6/32 -- see "Tahoe". | |
| 1426 | |
| 1427 ## Celerity | |
| 1428 ## I don't know what configuration name to use for this; config.sub | |
| 1429 ## doesn't seem to know anything about it. Hey, Celerity users, get | |
| 1430 ## in touch with us! | |
| 1431 celerity-celerity-bsd* ) | |
| 1432 machine=celerity opsys=bsd4-2 | |
| 1433 ;; | |
| 1434 | |
| 1435 ## Clipper | |
| 1436 ## What operating systems does this chip run that Emacs has been | |
| 1437 ## tested on? | |
| 1438 clipper-* ) | |
| 1439 machine=clipper | |
| 1440 ## We'll use the catch-all code at the bottom to guess the | |
| 1441 ## operating system. | |
| 1442 ;; | |
| 1443 | |
| 1444 ## Convex | |
| 1445 *-convex-bsd* | *-convex-convexos* ) | |
| 1446 machine=convex opsys=bsd4-3 | |
| 1447 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov | |
| 1448 NON_GNU_CPP="cc -E -P" | |
| 1449 ;; | |
| 1450 | |
| 1451 ## Cubix QBx/386 | |
| 1452 i[3456]86-cubix-sysv* ) | |
| 1453 machine=intel386 opsys=usg5-3 | |
| 1454 ;; | |
| 1455 | |
| 1456 ## Cydra 5 | |
| 1457 cydra*-cydrome-sysv* ) | |
| 1458 machine=cydra5 opsys=usg5-3 | |
| 1459 ;; | |
| 1460 | |
| 1461 ## Data General AViiON Machines | |
| 1462 ## DG changed naming conventions with the release of 5.4.4.10, they | |
| 1463 ## dropped the initial 5.4 but left the intervening R. Because of the | |
| 1464 ## R this shouldn't conflict with older versions of the OS (which I | |
| 1465 ## think were named like dgux4.*). In addition, DG new AViiONs series | |
| 1466 ## uses either Motorola M88k or Intel Pentium CPUs. | |
| 1467 m88k-dg-dguxR4.* | m88k-dg-dgux4* ) | |
| 1468 machine=aviion opsys=dgux4 | |
| 1469 ;; | |
| 1470 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* ) | |
| 1471 ## This name is dgux5-4-3 instead of dgux5-4r3 | |
| 1472 ## to avoid a file name conflict on MSDOS. | |
| 1473 machine=aviion opsys=dgux5-4-3 | |
| 1474 ;; | |
| 1475 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* ) | |
| 1476 machine=aviion opsys=dgux5-4r2 | |
| 1477 ;; | |
| 1478 m88k-dg-dgux* ) | |
| 1479 machine=aviion opsys=dgux | |
| 1480 ;; | |
| 1481 | |
| 1482 ## Data General AViiON Intel (x86) Machines | |
| 1483 ## Exists from 5.4.3 (current i586-dg-dguxR4.11) | |
| 1484 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il | |
| 1485 i[345]86-dg-dguxR4* ) | |
| 1486 machine=aviion-intel opsys=dgux4 | |
| 1487 ;; | |
| 1488 | |
| 1489 ## DECstations | |
| 1490 mips-dec-ultrix[0-3].* | mips-dec-ultrix4.0* | mips-dec-bsd4.2* ) | |
| 1491 machine=pmax opsys=bsd4-2 | |
| 1492 ;; | |
| 1493 mips-dec-ultrix4.[12]* | mips-dec-bsd* ) | |
| 1494 machine=pmax opsys=bsd4-3 | |
| 1495 ;; | |
| 1496 mips-dec-ultrix* ) | |
| 1497 machine=pmax opsys=ultrix4-3 | |
| 1498 ;; | |
| 1499 mips-dec-osf* ) | |
| 1500 machine=pmax opsys=osf1 | |
| 1501 ;; | |
| 1502 mips-dec-mach_bsd4.3* ) | |
| 1503 machine=pmax opsys=mach-bsd4-3 | |
| 1504 ;; | |
| 1505 | |
| 1506 ## Motorola Delta machines | |
| 1507 m68k-motorola-sysv* | m68000-motorola-sysv* ) | |
| 1508 machine=delta opsys=usg5-3 | |
| 1509 if test -z "`type gnucc | grep 'not found'`" | |
| 1510 then | |
| 1511 if test -s /etc/167config | |
| 1512 then CC="gnucc -m68040" | |
| 1513 else CC="gnucc -m68881" | |
| 1514 fi | |
| 1515 else | |
| 1516 if test -z "`type gcc | grep 'not found'`" | |
| 1517 then CC=gcc | |
| 1518 else CC=cc | |
| 1519 fi | |
| 1520 fi | |
| 1521 ;; | |
| 1522 m88k-motorola-sysv4* ) | |
| 1523 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110 | |
| 1524 # needs POSIX_SIGNALS and therefore needs usg5-4-2. | |
| 1525 # I hope there are not other 4.0 versions for this machine | |
| 1526 # which really need usg5-4 instead. | |
| 1527 machine=delta88k opsys=usg5-4-2 | |
| 1528 ;; | |
| 1529 m88k-motorola-sysv* | m88k-motorola-m88kbcs* ) | |
| 1530 machine=delta88k opsys=usg5-3 | |
| 1531 ;; | |
| 1532 | |
| 1533 ## Dual machines | |
| 1534 m68*-dual-sysv* ) | |
| 1535 machine=dual opsys=usg5-2 | |
| 1536 ;; | |
| 1537 m68*-dual-uniplus* ) | |
| 1538 machine=dual opsys=unipl5-2 | |
| 1539 ;; | |
| 1540 | |
| 1541 ## Elxsi 6400 | |
| 1542 elxsi-elxsi-sysv* ) | |
| 1543 machine=elxsi opsys=usg5-2 | |
| 1544 ;; | |
| 1545 | |
| 1546 ## Encore machines | |
| 1547 ns16k-encore-bsd* ) | |
| 1548 machine=ns16000 opsys=umax | |
| 1549 ;; | |
| 1550 | |
| 30069 | 1551 ## The GEC 63 - apparently, this port isn't really finished yet. |
| 1552 # I'm sure we finished off the last of the machines, though. -- fx | |
| 25897 | 1553 |
| 1554 ## Gould Power Node and NP1 | |
| 1555 pn-gould-bsd4.2* ) | |
| 1556 machine=gould opsys=bsd4-2 | |
| 1557 ;; | |
| 1558 pn-gould-bsd4.3* ) | |
| 1559 machine=gould opsys=bsd4-3 | |
| 1560 ;; | |
| 1561 np1-gould-bsd* ) | |
| 1562 machine=gould-np1 opsys=bsd4-3 | |
| 1563 ;; | |
| 1564 | |
| 1565 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000 | |
| 1566 ## as far as Emacs is concerned). | |
| 1567 m88k-harris-cxux* ) | |
| 1568 # Build needs to be different on 7.0 and later releases | |
| 1569 case "`uname -r`" in | |
| 1570 [56].[0-9] ) machine=nh4000 opsys=cxux ;; | |
| 1571 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;; | |
| 1572 esac | |
| 1573 NON_GNU_CPP="/lib/cpp" | |
| 1574 ;; | |
| 1575 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000) | |
| 1576 m68k-harris-cxux* ) | |
| 1577 machine=nh3000 opsys=cxux | |
| 1578 ;; | |
| 1579 ## Harris power pc NightHawk running Power UNIX (Series 6000) | |
| 1580 powerpc-harris-powerunix ) | |
| 1581 machine=nh6000 opsys=powerunix | |
| 1582 NON_GNU_CPP="cc -Xo -E -P" | |
| 1583 ;; | |
| 1584 ## SR2001/SR2201 running HI-UX/MPP | |
| 1585 hppa1.1-hitachi-hiuxmpp* ) | |
| 1586 machine=sr2k opsys=hiuxmpp | |
| 1587 ;; | |
| 38811 | 1588 hppa1.1-hitachi-hiuxwe2* ) |
| 1589 machine=sr2k opsys=hiuxwe2 | |
| 1590 ;; | |
| 25897 | 1591 ## Honeywell XPS100 |
| 1592 xps*-honeywell-sysv* ) | |
| 1593 machine=xps100 opsys=usg5-2 | |
| 1594 ;; | |
| 1595 | |
| 1596 ## HP 9000 series 200 or 300 | |
| 1597 m68*-hp-bsd* ) | |
| 1598 machine=hp9000s300 opsys=bsd4-3 | |
| 1599 ;; | |
| 1600 ## HP/UX 7, 8, 9, and 10 are supported on these machines. | |
| 1601 m68*-hp-hpux* ) | |
| 1602 case "`uname -r`" in | |
| 1603 ## Someone's system reports A.B8.05 for this. | |
| 1604 ## I wonder what other possibilities there are. | |
| 1605 *.B8.* ) machine=hp9000s300 opsys=hpux8 ;; | |
| 1606 *.08.* ) machine=hp9000s300 opsys=hpux8 ;; | |
| 1607 *.09.* ) machine=hp9000s300 opsys=hpux9 ;; | |
| 1608 *.1[0-9].* ) machine=hp9000s300 opsys=hpux9shr ;; | |
| 1609 *) machine=hp9000s300 opsys=hpux ;; | |
| 1610 esac | |
| 1611 ;; | |
| 1612 | |
| 1613 ## HP 9000 series 700 and 800, running HP/UX | |
| 1614 hppa*-hp-hpux7* ) | |
| 1615 machine=hp800 opsys=hpux | |
| 1616 ;; | |
| 1617 hppa*-hp-hpux8* ) | |
| 1618 machine=hp800 opsys=hpux8 | |
| 1619 ;; | |
| 1620 hppa*-hp-hpux9shr* ) | |
| 1621 machine=hp800 opsys=hpux9shr | |
| 1622 ;; | |
| 1623 hppa*-hp-hpux9* ) | |
| 1624 machine=hp800 opsys=hpux9 | |
| 1625 ;; | |
| 1626 hppa*-hp-hpux1[0-9]* ) | |
| 1627 machine=hp800 opsys=hpux10 | |
| 1628 ;; | |
| 1629 | |
| 1630 ## HP 9000 series 700 and 800, running HP/UX | |
| 1631 hppa*-hp-hpux* ) | |
| 1632 ## Cross-compilation? Nah! | |
| 1633 case "`uname -r`" in | |
| 1634 ## Someone's system reports A.B8.05 for this. | |
| 1635 ## I wonder what other possibilities there are. | |
| 1636 *.B8.* ) machine=hp800 opsys=hpux8 ;; | |
| 1637 *.08.* ) machine=hp800 opsys=hpux8 ;; | |
| 1638 *.09.* ) machine=hp800 opsys=hpux9 ;; | |
| 1639 *) machine=hp800 opsys=hpux10 ;; | |
| 1640 esac | |
| 1641 ;; | |
| 1642 hppa*-*-nextstep* ) | |
| 1643 machine=hp800 opsys=nextstep | |
| 1644 ;; | |
| 1645 | |
| 1646 ## Orion machines | |
| 1647 orion-orion-bsd* ) | |
| 1648 machine=orion opsys=bsd4-2 | |
| 1649 ;; | |
| 1650 clipper-orion-bsd* ) | |
| 1651 machine=orion105 opsys=bsd4-2 | |
| 1652 ;; | |
| 1653 | |
| 1654 ## IBM machines | |
| 1655 i[3456]86-ibm-aix1.1* ) | |
| 1656 machine=ibmps2-aix opsys=usg5-2-2 | |
| 1657 ;; | |
| 1658 i[3456]86-ibm-aix1.[23]* | i[3456]86-ibm-aix* ) | |
| 1659 machine=ibmps2-aix opsys=usg5-3 | |
| 1660 ;; | |
| 1661 i370-ibm-aix*) | |
| 1662 machine=ibm370aix opsys=usg5-3 | |
| 1663 ;; | |
| 40426 | 1664 s390-*-linux-gnu) |
| 1665 machine=ibms390 opsys=gnu-linux | |
| 1666 ;; | |
| 25897 | 1667 rs6000-ibm-aix3.1* | powerpc-ibm-aix3.1* ) |
| 1668 machine=ibmrs6000 opsys=aix3-1 | |
| 1669 ;; | |
| 1670 rs6000-ibm-aix3.2.5 | powerpc-ibm-aix3.2.5 ) | |
| 1671 machine=ibmrs6000 opsys=aix3-2-5 | |
| 1672 ;; | |
| 1673 rs6000-ibm-aix4.1* | powerpc-ibm-aix4.1* ) | |
| 1674 machine=ibmrs6000 opsys=aix4-1 | |
| 1675 ;; | |
| 1676 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* ) | |
| 1677 machine=ibmrs6000 opsys=aix4-2 | |
| 1678 ;; | |
| 1679 rs6000-ibm-aix4.0* | powerpc-ibm-aix4.0* ) | |
| 1680 machine=ibmrs6000 opsys=aix4 | |
| 1681 ;; | |
| 1682 rs6000-ibm-aix4* | powerpc-ibm-aix4* ) | |
| 1683 machine=ibmrs6000 opsys=aix4-1 | |
| 1684 ;; | |
| 1685 rs6000-ibm-aix* | powerpc-ibm-aix* ) | |
| 1686 machine=ibmrs6000 opsys=aix3-2 | |
| 1687 ;; | |
| 1688 romp-ibm-bsd4.3* ) | |
| 1689 machine=ibmrt opsys=bsd4-3 | |
| 1690 ;; | |
| 1691 romp-ibm-bsd4.2* ) | |
| 1692 machine=ibmrt opsys=bsd4-2 | |
| 1693 ;; | |
| 1694 romp-ibm-aos4.3* ) | |
| 1695 machine=ibmrt opsys=bsd4-3 | |
| 1696 ;; | |
| 1697 romp-ibm-aos4.2* ) | |
| 1698 machine=ibmrt opsys=bsd4-2 | |
| 1699 ;; | |
| 1700 romp-ibm-aos* ) | |
| 1701 machine=ibmrt opsys=bsd4-3 | |
| 1702 ;; | |
| 1703 romp-ibm-bsd* ) | |
| 1704 machine=ibmrt opsys=bsd4-3 | |
| 1705 ;; | |
| 1706 romp-ibm-aix* ) | |
| 1707 machine=ibmrt-aix opsys=usg5-2-2 | |
| 1708 ;; | |
| 1709 | |
| 1710 ## Integrated Solutions `Optimum V' | |
| 1711 m68*-isi-bsd4.2* ) | |
| 1712 machine=isi-ov opsys=bsd4-2 | |
| 1713 ;; | |
| 1714 m68*-isi-bsd4.3* ) | |
| 1715 machine=isi-ov opsys=bsd4-3 | |
| 1716 ;; | |
| 1717 | |
| 1718 ## Intel 386 machines where we do care about the manufacturer | |
| 1719 i[3456]86-intsys-sysv* ) | |
| 1720 machine=is386 opsys=usg5-2-2 | |
| 1721 ;; | |
| 1722 | |
| 1723 ## Prime EXL | |
| 1724 i[3456]86-prime-sysv* ) | |
| 1725 machine=i386 opsys=usg5-3 | |
| 1726 ;; | |
| 1727 | |
| 1728 ## Sequent Symmetry running Dynix | |
| 1729 i[3456]86-sequent-bsd* ) | |
| 1730 machine=symmetry opsys=bsd4-3 | |
| 1731 ;; | |
| 1732 | |
| 1733 ## Sequent Symmetry running ptx 4, which is a modified SVR4. | |
| 1734 i[3456]86-sequent-ptx4* | i[3456]86-sequent-sysv4* ) | |
| 1735 machine=sequent-ptx opsys=ptx4 | |
| 1736 NON_GNU_CPP=/lib/cpp | |
| 1737 ;; | |
| 1738 | |
| 1739 ## Sequent Symmetry running DYNIX/ptx | |
| 1740 ## Use the old cpp rather than the newer ANSI one. | |
| 1741 i[3456]86-sequent-ptx* ) | |
| 1742 machine=sequent-ptx opsys=ptx | |
| 1743 NON_GNU_CPP="/lib/cpp" | |
| 1744 ;; | |
| 1745 | |
| 1746 ## ncr machine running svr4.3. | |
| 1747 i[3456]86-ncr-sysv4.3 ) | |
| 1748 machine=ncr386 opsys=usg5-4-3 | |
| 1749 ;; | |
| 1750 | |
| 1751 ## Unspecified sysv on an ncr machine defaults to svr4.2. | |
| 1752 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.) | |
| 1753 i[3456]86-ncr-sysv* ) | |
| 1754 machine=ncr386 opsys=usg5-4-2 | |
| 1755 ;; | |
| 1756 | |
| 1757 ## Intel Paragon OSF/1 | |
| 1758 i860-intel-osf1* ) | |
| 1759 machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp | |
| 1760 ;; | |
| 1761 | |
| 1762 ## Intel 860 | |
| 1763 i860-*-sysv4* ) | |
| 1764 machine=i860 opsys=usg5-4 | |
| 1765 NON_GNU_CC="/bin/cc" # Ie, not the one in /usr/ucb/cc. | |
| 1766 NON_GNU_CPP="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion. | |
| 1767 ;; | |
| 1768 | |
| 28748 | 1769 ## Macintosh PowerPC |
| 1770 powerpc*-*-linux-gnu* ) | |
| 1771 machine=macppc opsys=gnu-linux | |
| 1772 ;; | |
| 1773 | |
| 25897 | 1774 ## Masscomp machines |
| 1775 m68*-masscomp-rtu* ) | |
| 1776 machine=masscomp opsys=rtu | |
| 1777 ;; | |
| 1778 | |
| 1779 ## Megatest machines | |
| 1780 m68*-megatest-bsd* ) | |
| 1781 machine=mega68 opsys=bsd4-2 | |
| 1782 ;; | |
| 1783 | |
| 1784 ## Workstations sold by MIPS | |
| 1785 ## This is not necessarily all workstations using the MIPS processor - | |
| 1786 ## Irises are produced by SGI, and DECstations by DEC. | |
| 1787 | |
| 1788 ## etc/MACHINES lists mips.h and mips4.h as possible machine files, | |
| 1789 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance | |
| 1790 ## it gives for choosing between the alternatives seems to be "Use | |
| 1791 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with | |
| 1792 ## the BSD world." I'll assume that these are instructions for | |
| 1793 ## handling two odd situations, and that every other situation | |
| 1794 ## should use mips.h and usg5-2-2, they being listed first. | |
| 1795 mips-mips-usg* ) | |
| 1796 machine=mips4 | |
| 1797 ## Fall through to the general code at the bottom to decide on the OS. | |
| 1798 ;; | |
| 1799 mips-mips-riscos4* ) | |
| 1800 machine=mips4 opsys=bsd4-3 | |
| 1801 NON_GNU_CC="cc -systype bsd43" | |
| 1802 NON_GNU_CPP="cc -systype bsd43 -E" | |
| 1803 ;; | |
| 1804 mips-mips-riscos5* ) | |
| 1805 machine=mips4 opsys=riscos5 | |
| 1806 NON_GNU_CC="cc -systype bsd43" | |
| 1807 NON_GNU_CPP="cc -systype bsd43 -E" | |
| 1808 ;; | |
| 1809 mips-mips-bsd* ) | |
| 1810 machine=mips opsys=bsd4-3 | |
| 1811 ;; | |
| 1812 mips-mips-* ) | |
| 1813 machine=mips opsys=usg5-2-2 | |
| 1814 ;; | |
| 1815 | |
| 1816 ## NeXT | |
| 1817 m68*-next-* | m68k-*-nextstep* ) | |
| 1818 machine=m68k opsys=nextstep | |
| 1819 ;; | |
| 1820 | |
| 1821 ## The complete machine from National Semiconductor | |
| 1822 ns32k-ns-genix* ) | |
| 1823 machine=ns32000 opsys=usg5-2 | |
| 1824 ;; | |
| 1825 | |
| 1826 ## NCR machines | |
| 1827 m68*-ncr-sysv2* | m68*-ncr-sysvr2* ) | |
| 1828 machine=tower32 opsys=usg5-2-2 | |
| 1829 ;; | |
| 1830 m68*-ncr-sysv3* | m68*-ncr-sysvr3* ) | |
| 1831 machine=tower32v3 opsys=usg5-3 | |
| 1832 ;; | |
| 1833 | |
| 1834 ## NEC EWS4800 | |
| 1835 mips-nec-sysv4*) | |
| 1836 machine=ews4800 opsys=ux4800 | |
| 1837 ;; | |
| 1838 | |
| 1839 ## Nixdorf Targon 31 | |
| 1840 m68*-nixdorf-sysv* ) | |
| 1841 machine=targon31 opsys=usg5-2-2 | |
| 1842 ;; | |
| 1843 | |
| 1844 ## Nu (TI or LMI) | |
| 1845 m68*-nu-sysv* ) | |
| 1846 machine=nu opsys=usg5-2 | |
| 1847 ;; | |
| 1848 | |
| 1849 ## Plexus | |
| 1850 m68*-plexus-sysv* ) | |
| 1851 machine=plexus opsys=usg5-2 | |
| 1852 ;; | |
| 1853 | |
| 1854 ## PowerPC reference platform | |
| 1855 powerpcle-*-solaris2* ) | |
| 1856 machine=prep | |
| 1857 opsys=sol2-5 | |
| 1858 ;; | |
| 1859 | |
| 1860 ## Pyramid machines | |
| 1861 ## I don't really have any idea what sort of processor the Pyramid has, | |
| 1862 ## so I'm assuming it is its own architecture. | |
| 1863 pyramid-pyramid-bsd* ) | |
| 1864 machine=pyramid opsys=bsd4-2 | |
| 1865 ;; | |
| 1866 | |
| 1867 ## Sequent Balance | |
| 1868 ns32k-sequent-bsd4.2* ) | |
| 1869 machine=sequent opsys=bsd4-2 | |
| 1870 ;; | |
| 1871 ns32k-sequent-bsd4.3* ) | |
| 1872 machine=sequent opsys=bsd4-3 | |
| 1873 ;; | |
| 1874 | |
| 1875 ## Siemens Nixdorf | |
| 1876 mips-siemens-sysv* | mips-sni-sysv*) | |
| 1877 machine=mips-siemens opsys=usg5-4 | |
| 1878 NON_GNU_CC=/usr/ccs/bin/cc | |
| 1879 NON_GNU_CPP=/usr/ccs/lib/cpp | |
| 1880 ;; | |
| 1881 | |
| 1882 ## Silicon Graphics machines | |
| 1883 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030) | |
| 1884 m68*-sgi-iris3.5* ) | |
| 1885 machine=irist opsys=iris3-5 | |
| 1886 ;; | |
| 1887 m68*-sgi-iris3.6* | m68*-sgi-iris*) | |
| 1888 machine=irist opsys=iris3-6 | |
| 1889 ;; | |
| 1890 ## Iris 4D | |
| 1891 mips-sgi-irix3* ) | |
| 1892 machine=iris4d opsys=irix3-3 | |
| 1893 ;; | |
| 1894 mips-sgi-irix4* ) | |
| 1895 machine=iris4d opsys=irix4-0 | |
| 1896 ;; | |
| 1897 mips-sgi-irix6.5 ) | |
| 1898 machine=iris4d opsys=irix6-5 | |
| 26502 | 1899 # Without defining _LANGUAGE_C, things get masked out in the headers |
| 1900 # so that, for instance, grepping for `free' in stdlib.h fails and | |
| 1901 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m). | |
| 1902 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C" | |
| 29388 | 1903 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C" |
| 25897 | 1904 ;; |
| 1905 mips-sgi-irix6* ) | |
| 1906 machine=iris4d opsys=irix6-0 | |
| 27205 | 1907 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5, |
| 26502 | 1908 # but presumably it does no harm. |
| 1909 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C" | |
| 29388 | 1910 # -32 probably isn't necessary in later v.6s -- anyone know which? |
| 25897 | 1911 NON_GCC_TEST_OPTIONS=-32 |
| 1912 ;; | |
| 1913 mips-sgi-irix5.[01]* ) | |
| 1914 machine=iris4d opsys=irix5-0 | |
| 1915 ;; | |
| 1916 mips-sgi-irix5* | mips-sgi-irix* ) | |
| 1917 machine=iris4d opsys=irix5-2 | |
| 1918 ;; | |
| 1919 | |
| 1920 ## SONY machines | |
| 1921 m68*-sony-bsd4.2* ) | |
| 1922 machine=news opsys=bsd4-2 | |
| 1923 ;; | |
| 1924 m68*-sony-bsd4.3* ) | |
| 1925 machine=news opsys=bsd4-3 | |
| 1926 ;; | |
| 1927 m68*-sony-newsos3* | m68*-sony-news3*) | |
| 1928 machine=news opsys=bsd4-3 | |
| 1929 ;; | |
| 1930 mips-sony-bsd* | mips-sony-newsos4* | mips-sony-news4*) | |
| 1931 machine=news-risc opsys=bsd4-3 | |
| 1932 ;; | |
| 1933 mips-sony-newsos6* ) | |
| 1934 machine=news-r6 opsys=newsos6 | |
| 1935 ;; | |
| 1936 mips-sony-news* ) | |
| 1937 machine=news-risc opsys=newsos5 | |
| 1938 ;; | |
| 1939 | |
| 1940 ## Stride | |
| 1941 m68*-stride-sysv* ) | |
| 1942 machine=stride opsys=usg5-2 | |
| 1943 ;; | |
| 1944 | |
| 1945 ## Suns | |
| 1946 sparc-*-linux-gnu* | sparc64-*-linux-gnu* ) | |
| 1947 machine=sparc opsys=gnu-linux | |
| 1948 ;; | |
| 1949 | |
| 27949 | 1950 *-auspex-sunos* | *-sun-sunos* | *-sun-bsd* | *-sun-solaris* \ |
| 25897 | 1951 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* | powerpc*-*-solaris2* \ |
| 1952 | rs6000-*-solaris2*) | |
| 1953 case "${canonical}" in | |
| 1954 m68*-sunos1* ) machine=sun1 ;; | |
| 1955 m68*-sunos2* ) machine=sun2 ;; | |
| 1956 m68* ) machine=sun3 ;; | |
| 1957 i[3456]86-sun-sunos[34]* ) machine=sun386 ;; | |
| 1958 i[3456]86-*-* ) machine=intel386 ;; | |
| 1959 powerpcle* ) machine=powerpcle ;; | |
| 1960 powerpc* | rs6000* ) machine=ibmrs6000 ;; | |
| 1961 sparc* ) machine=sparc ;; | |
| 1962 * ) unported=yes ;; | |
| 1963 esac | |
| 1964 case "${canonical}" in | |
| 1965 ## The Sun386 didn't get past 4.0. | |
| 1966 i[3456]86-*-sunos4 ) opsys=sunos4-0 ;; | |
| 1967 *-sunos4.0* ) opsys=sunos4-0 ;; | |
| 1968 *-sunos4.1.[3-9]*noshare ) | |
| 1969 ## This name is sunos413 instead of sunos4-1-3 | |
| 1970 ## to avoid a file name conflict on MSDOS. | |
| 1971 opsys=sunos413 | |
| 1972 NON_GNU_CPP=/usr/lib/cpp | |
| 1973 NON_GCC_TEST_OPTIONS=-Bstatic | |
| 1974 GCC_TEST_OPTIONS=-static | |
| 1975 ;; | |
| 1976 *-sunos4.1.[3-9]* | *-sunos4shr*) | |
| 1977 opsys=sunos4shr | |
| 1978 NON_GNU_CPP=/usr/lib/cpp | |
| 1979 ;; | |
| 1980 *-sunos4* | *-sunos ) | |
| 1981 opsys=sunos4-1 | |
| 1982 NON_GCC_TEST_OPTIONS=-Bstatic | |
| 1983 GCC_TEST_OPTIONS=-static | |
| 1984 ;; | |
| 1985 *-sunos5.3* | *-solaris2.3* ) | |
| 1986 opsys=sol2-3 | |
| 1987 NON_GNU_CPP=/usr/ccs/lib/cpp | |
| 1988 ;; | |
| 1989 *-sunos5.4* | *-solaris2.4* ) | |
| 1990 opsys=sol2-4 | |
| 1991 NON_GNU_CPP=/usr/ccs/lib/cpp | |
| 1992 RANLIB="ar -ts" | |
| 1993 ;; | |
| 1994 *-sunos5.5* | *-solaris2.5* ) | |
| 1995 opsys=sol2-5 | |
| 1996 NON_GNU_CPP=/usr/ccs/lib/cpp | |
| 1997 RANLIB="ar -ts" | |
| 1998 ;; | |
| 1999 *-sunos5* | *-solaris* ) | |
| 2000 opsys=sol2-5 | |
| 2001 NON_GNU_CPP=/usr/ccs/lib/cpp | |
| 2002 ;; | |
| 2003 * ) opsys=bsd4-2 ;; | |
| 2004 esac | |
| 2005 ## Watch out for a compiler that we know will not work. | |
| 2006 case "${canonical}" in | |
| 2007 *-solaris* | *-sunos5* ) | |
| 2008 if [ "x$CC" = x/usr/ucb/cc ]; then | |
| 2009 ## /usr/ucb/cc doesn't work; | |
| 2010 ## we should find some other compiler that does work. | |
| 2011 unset CC | |
| 2012 fi | |
| 2013 ;; | |
| 2014 *) ;; | |
| 2015 esac | |
| 2016 ;; | |
| 2017 sparc-*-nextstep* ) | |
| 2018 machine=sparc opsys=nextstep | |
| 2019 ;; | |
| 2020 | |
| 2021 ## Tadpole 68k | |
| 2022 m68*-tadpole-sysv* ) | |
| 2023 machine=tad68k opsys=usg5-3 | |
| 2024 ;; | |
| 2025 | |
| 2026 ## Tahoe machines | |
| 2027 tahoe-tahoe-bsd4.2* ) | |
| 2028 machine=tahoe opsys=bsd4-2 | |
| 2029 ;; | |
| 2030 tahoe-tahoe-bsd4.3* ) | |
| 2031 machine=tahoe opsys=bsd4-3 | |
| 2032 ;; | |
| 2033 | |
| 2034 ## Tandem Integrity S2 | |
| 2035 mips-tandem-sysv* ) | |
| 2036 machine=tandem-s2 opsys=usg5-3 | |
| 2037 ;; | |
| 2038 | |
| 2039 ## Tektronix XD88 | |
| 2040 m88k-tektronix-sysv3* ) | |
| 2041 machine=tekxd88 opsys=usg5-3 | |
| 2042 ;; | |
| 2043 | |
| 2044 ## Tektronix 16000 box (6130?) | |
| 2045 ns16k-tektronix-bsd* ) | |
| 2046 machine=ns16000 opsys=bsd4-2 | |
| 2047 ;; | |
| 2048 ## Tektronix 4300 | |
| 2049 ## src/m/tek4300.h hints that this is a m68k machine. | |
| 2050 m68*-tektronix-bsd* ) | |
| 2051 machine=tek4300 opsys=bsd4-3 | |
| 2052 ;; | |
| 2053 | |
| 2054 ## Titan P2 or P3 | |
| 2055 ## We seem to have lost the machine-description file titan.h! | |
| 2056 titan-titan-sysv* ) | |
| 2057 machine=titan opsys=usg5-3 | |
| 2058 ;; | |
| 2059 | |
| 2060 ## Ustation E30 (SS5E) | |
| 2061 m68*-unisys-uniplus* ) | |
| 2062 machine=ustation opsystem=unipl5-2 | |
| 2063 ;; | |
| 2064 | |
| 2065 ## Vaxen. | |
| 2066 vax-dec-* ) | |
| 2067 machine=vax | |
| 2068 case "${canonical}" in | |
| 2069 *-bsd4.1* ) opsys=bsd4-1 ;; | |
| 2070 *-bsd4.2* | *-ultrix[0-3].* | *-ultrix4.0* ) opsys=bsd4-2 ;; | |
| 2071 *-bsd4.3* | *-ultrix* ) opsys=bsd4-3 ;; | |
| 2072 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;; | |
| 2073 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;; | |
| 2074 *-vms* ) opsys=vms ;; | |
| 2075 * ) unported=yes | |
| 2076 esac | |
| 2077 ;; | |
| 2078 | |
| 2079 ## Whitechapel MG1 | |
| 2080 ns16k-whitechapel-* ) | |
| 2081 machine=mg1 | |
| 2082 ## We don't know what sort of OS runs on these; we'll let the | |
| 2083 ## operating system guessing code below try. | |
| 2084 ;; | |
| 2085 | |
| 2086 ## Wicat | |
| 2087 m68*-wicat-sysv* ) | |
| 2088 machine=wicat opsys=usg5-2 | |
| 2089 ;; | |
| 2090 | |
| 30576 | 2091 ## IA-64 |
| 2092 ia64*-*-linux* ) | |
| 2093 machine=ia64 opsys=gnu-linux | |
| 2094 ;; | |
| 2095 | |
| 25897 | 2096 ## Intel 386 machines where we don't care about the manufacturer |
| 2097 i[3456]86-*-* ) | |
| 2098 machine=intel386 | |
| 2099 case "${canonical}" in | |
| 29654 | 2100 *-lynxos* ) opsys=lynxos ;; |
| 25897 | 2101 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;; |
| 2102 *-isc2.2* ) opsys=isc2-2 ;; | |
| 2103 *-isc4.0* ) opsys=isc4-0 ;; | |
| 2104 *-isc4.* ) opsys=isc4-1 | |
| 2105 GCC_TEST_OPTIONS=-posix | |
| 2106 NON_GCC_TEST_OPTIONS=-Xp | |
| 2107 ;; | |
| 2108 *-isc* ) opsys=isc3-0 ;; | |
| 2109 *-esix5* ) opsys=esix5r4; NON_GNU_CPP=/usr/lib/cpp ;; | |
| 2110 *-esix* ) opsys=esix ;; | |
| 2111 *-xenix* ) opsys=xenix ;; | |
| 2112 *-linux-gnu* ) opsys=gnu-linux ;; | |
| 2113 *-sco3.2v4* ) opsys=sco4 ; NON_GNU_CPP=/lib/cpp ;; | |
| 40056 | 2114 *-sco3.2v5* ) opsys=sco5 |
| 25897 | 2115 NON_GNU_CPP=/lib/cpp |
| 2116 # Prevent -belf from being passed to $CPP. | |
| 2117 # /lib/cpp does not accept it. | |
| 2118 OVERRIDE_CPPFLAGS=" " | |
| 2119 ;; | |
| 2120 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;; | |
| 2121 *-386bsd* ) opsys=386bsd ;; | |
| 2122 *-freebsd* ) opsys=freebsd ;; | |
| 2123 *-nextstep* ) opsys=nextstep ;; | |
| 2124 ## Otherwise, we'll fall through to the generic opsys code at the bottom. | |
| 2125 esac | |
| 2126 ;; | |
| 2127 | |
| 2128 ## m68k Linux-based GNU system | |
| 2129 m68k-*-linux-gnu* ) | |
| 2130 machine=m68k opsys=gnu-linux | |
| 2131 ;; | |
| 2132 | |
| 2133 ## Mips Linux-based GNU system | |
| 2134 mips-*-linux-gnu* ) | |
| 2135 machine=mips opsys=gnu-linux | |
| 2136 ;; | |
| 2137 | |
| 2138 ## UXP/DS | |
| 2139 sparc-fujitsu-sysv4* ) | |
| 2140 machine=sparc opsys=uxpds | |
| 2141 NON_GNU_CPP=/usr/ccs/lib/cpp | |
| 2142 RANLIB="ar -ts" | |
| 2143 ;; | |
| 2144 | |
| 2145 ## UXP/V | |
| 2146 f301-fujitsu-uxpv4.1) | |
| 2147 machine=f301 opsys=uxpv | |
| 2148 ;; | |
| 2149 | |
| 2150 * ) | |
| 2151 unported=yes | |
| 2152 ;; | |
| 2153 esac | |
| 2154 | |
| 2155 ### If the code above didn't choose an operating system, just choose | |
| 2156 ### an operating system based on the configuration name. You really | |
| 2157 ### only want to use this when you have no idea what the right | |
| 2158 ### operating system is; if you know what operating systems a machine | |
| 2159 ### runs, it's cleaner to make it explicit in the case statement | |
| 2160 ### above. | |
| 2161 if test x"${opsys}" = x; then | |
| 2162 case "${canonical}" in | |
| 2163 *-gnu* ) opsys=gnu ;; | |
| 2164 *-bsd4.[01] ) opsys=bsd4-1 ;; | |
| 2165 *-bsd4.2 ) opsys=bsd4-2 ;; | |
| 2166 *-bsd4.3 ) opsys=bsd4-3 ;; | |
| 2167 *-sysv0 | *-sysvr0 ) opsys=usg5-0 ;; | |
| 2168 *-sysv2 | *-sysvr2 ) opsys=usg5-2 ;; | |
| 2169 *-sysv2.2 | *-sysvr2.2 ) opsys=usg5-2-2 ;; | |
| 2170 *-sysv3* | *-sysvr3* ) opsys=usg5-3 ;; | |
| 2171 *-sysv4.2uw* ) opsys=unixware ;; | |
| 2172 *-sysv4.1* | *-sysvr4.1* ) | |
| 2173 NON_GNU_CPP=/usr/lib/cpp | |
| 2174 opsys=usg5-4 ;; | |
| 2175 *-sysv4.[2-9]* | *-sysvr4.[2-9]* ) | |
| 2176 if [ x$NON_GNU_CPP = x ]; then | |
| 2177 if [ -f /usr/ccs/lib/cpp ]; then | |
| 2178 NON_GNU_CPP=/usr/ccs/lib/cpp | |
| 2179 else | |
| 2180 NON_GNU_CPP=/lib/cpp | |
| 2181 fi | |
| 2182 fi | |
| 2183 opsys=usg5-4-2 ;; | |
| 2184 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;; | |
| 2185 * ) | |
| 2186 unported=yes | |
| 2187 ;; | |
| 2188 esac | |
| 2189 fi | |
| 2190 | |
| 2191 if test $unported = yes; then | |
| 40426 | 2192 { { echo "$as_me:2192: error: Emacs hasn't been ported to \`${canonical}' systems. |
| 40056 | 2193 Check \`etc/MACHINES' for recognized configuration names." >&5 |
| 2194 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems. | |
| 2195 Check \`etc/MACHINES' for recognized configuration names." >&2;} | |
| 2196 { (exit 1); exit 1; }; } | |
| 25897 | 2197 fi |
| 2198 | |
| 2199 machfile="m/${machine}.h" | |
| 2200 opsysfile="s/${opsys}.h" | |
| 2201 | |
| 2202 #### Choose a compiler. | |
| 2203 test -n "$CC" && cc_specified=yes | |
| 2204 | |
| 2205 # Save the value of CFLAGS that the user specified. | |
| 2206 SPECIFIED_CFLAGS="$CFLAGS" | |
| 2207 | |
| 2208 case ${with_gcc} in | |
| 2209 "yes" ) CC="gcc" GCC=yes ;; | |
| 2210 "no" ) : ${CC=cc} ;; | |
| 40056 | 2211 * ) |
| 2212 esac | |
| 2213 ac_ext=c | |
| 2214 ac_cpp='$CPP $CPPFLAGS' | |
| 2215 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
| 2216 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
| 2217 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
| 2218 if test -n "$ac_tool_prefix"; then | |
| 2219 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
| 2220 set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
| 40426 | 2221 echo "$as_me:2221: checking for $ac_word" >&5 |
| 40056 | 2222 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2223 if test "${ac_cv_prog_CC+set}" = set; then | |
| 2224 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
| 2225 else | |
| 2226 if test -n "$CC"; then | |
| 2227 ac_cv_prog_CC="$CC" # Let the user override the test. | |
| 2228 else | |
| 2229 ac_save_IFS=$IFS; IFS=$ac_path_separator | |
| 2230 ac_dummy="$PATH" | |
| 2231 for ac_dir in $ac_dummy; do | |
| 2232 IFS=$ac_save_IFS | |
| 2233 test -z "$ac_dir" && ac_dir=. | |
| 2234 $as_executable_p "$ac_dir/$ac_word" || continue | |
| 2235 ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
| 40426 | 2236 echo "$as_me:2236: found $ac_dir/$ac_word" >&5 |
| 40056 | 2237 break |
| 2238 done | |
| 2239 | |
| 2240 fi | |
| 2241 fi | |
| 2242 CC=$ac_cv_prog_CC | |
| 2243 if test -n "$CC"; then | |
| 40426 | 2244 echo "$as_me:2244: result: $CC" >&5 |
| 40056 | 2245 echo "${ECHO_T}$CC" >&6 |
| 2246 else | |
| 40426 | 2247 echo "$as_me:2247: result: no" >&5 |
| 40056 | 2248 echo "${ECHO_T}no" >&6 |
| 2249 fi | |
| 2250 | |
| 2251 fi | |
| 2252 if test -z "$ac_cv_prog_CC"; then | |
| 2253 ac_ct_CC=$CC | |
| 2254 # Extract the first word of "gcc", so it can be a program name with args. | |
| 25897 | 2255 set dummy gcc; ac_word=$2 |
| 40426 | 2256 echo "$as_me:2256: checking for $ac_word" >&5 |
| 40056 | 2257 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2258 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
| 2259 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
| 2260 else | |
| 2261 if test -n "$ac_ct_CC"; then | |
| 2262 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
| 2263 else | |
| 2264 ac_save_IFS=$IFS; IFS=$ac_path_separator | |
| 2265 ac_dummy="$PATH" | |
| 2266 for ac_dir in $ac_dummy; do | |
| 2267 IFS=$ac_save_IFS | |
| 2268 test -z "$ac_dir" && ac_dir=. | |
| 2269 $as_executable_p "$ac_dir/$ac_word" || continue | |
| 2270 ac_cv_prog_ac_ct_CC="gcc" | |
| 40426 | 2271 echo "$as_me:2271: found $ac_dir/$ac_word" >&5 |
| 40056 | 2272 break |
| 2273 done | |
| 2274 | |
| 2275 fi | |
| 2276 fi | |
| 2277 ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
| 2278 if test -n "$ac_ct_CC"; then | |
| 40426 | 2279 echo "$as_me:2279: result: $ac_ct_CC" >&5 |
| 40056 | 2280 echo "${ECHO_T}$ac_ct_CC" >&6 |
| 2281 else | |
| 40426 | 2282 echo "$as_me:2282: result: no" >&5 |
| 40056 | 2283 echo "${ECHO_T}no" >&6 |
| 2284 fi | |
| 2285 | |
| 2286 CC=$ac_ct_CC | |
| 2287 else | |
| 2288 CC="$ac_cv_prog_CC" | |
| 2289 fi | |
| 2290 | |
| 2291 if test -z "$CC"; then | |
| 2292 if test -n "$ac_tool_prefix"; then | |
| 2293 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
| 2294 set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
| 40426 | 2295 echo "$as_me:2295: checking for $ac_word" >&5 |
| 40056 | 2296 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2297 if test "${ac_cv_prog_CC+set}" = set; then | |
| 2298 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
| 25897 | 2299 else |
| 2300 if test -n "$CC"; then | |
| 2301 ac_cv_prog_CC="$CC" # Let the user override the test. | |
| 2302 else | |
| 40056 | 2303 ac_save_IFS=$IFS; IFS=$ac_path_separator |
| 2304 ac_dummy="$PATH" | |
| 2305 for ac_dir in $ac_dummy; do | |
| 2306 IFS=$ac_save_IFS | |
| 2307 test -z "$ac_dir" && ac_dir=. | |
| 2308 $as_executable_p "$ac_dir/$ac_word" || continue | |
| 2309 ac_cv_prog_CC="${ac_tool_prefix}cc" | |
| 40426 | 2310 echo "$as_me:2310: found $ac_dir/$ac_word" >&5 |
| 40056 | 2311 break |
| 2312 done | |
| 2313 | |
| 2314 fi | |
| 2315 fi | |
| 2316 CC=$ac_cv_prog_CC | |
| 25897 | 2317 if test -n "$CC"; then |
| 40426 | 2318 echo "$as_me:2318: result: $CC" >&5 |
| 40056 | 2319 echo "${ECHO_T}$CC" >&6 |
| 2320 else | |
| 40426 | 2321 echo "$as_me:2321: result: no" >&5 |
| 40056 | 2322 echo "${ECHO_T}no" >&6 |
| 2323 fi | |
| 2324 | |
| 2325 fi | |
| 2326 if test -z "$ac_cv_prog_CC"; then | |
| 2327 ac_ct_CC=$CC | |
| 2328 # Extract the first word of "cc", so it can be a program name with args. | |
| 2329 set dummy cc; ac_word=$2 | |
| 40426 | 2330 echo "$as_me:2330: checking for $ac_word" >&5 |
| 40056 | 2331 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2332 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
| 2333 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
| 2334 else | |
| 2335 if test -n "$ac_ct_CC"; then | |
| 2336 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
| 2337 else | |
| 2338 ac_save_IFS=$IFS; IFS=$ac_path_separator | |
| 2339 ac_dummy="$PATH" | |
| 2340 for ac_dir in $ac_dummy; do | |
| 2341 IFS=$ac_save_IFS | |
| 2342 test -z "$ac_dir" && ac_dir=. | |
| 2343 $as_executable_p "$ac_dir/$ac_word" || continue | |
| 2344 ac_cv_prog_ac_ct_CC="cc" | |
| 40426 | 2345 echo "$as_me:2345: found $ac_dir/$ac_word" >&5 |
| 40056 | 2346 break |
| 2347 done | |
| 2348 | |
| 2349 fi | |
| 2350 fi | |
| 2351 ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
| 2352 if test -n "$ac_ct_CC"; then | |
| 40426 | 2353 echo "$as_me:2353: result: $ac_ct_CC" >&5 |
| 40056 | 2354 echo "${ECHO_T}$ac_ct_CC" >&6 |
| 2355 else | |
| 40426 | 2356 echo "$as_me:2356: result: no" >&5 |
| 40056 | 2357 echo "${ECHO_T}no" >&6 |
| 2358 fi | |
| 2359 | |
| 2360 CC=$ac_ct_CC | |
| 2361 else | |
| 2362 CC="$ac_cv_prog_CC" | |
| 2363 fi | |
| 2364 | |
| 2365 fi | |
| 25897 | 2366 if test -z "$CC"; then |
| 2367 # Extract the first word of "cc", so it can be a program name with args. | |
| 2368 set dummy cc; ac_word=$2 | |
| 40426 | 2369 echo "$as_me:2369: checking for $ac_word" >&5 |
| 40056 | 2370 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2371 if test "${ac_cv_prog_CC+set}" = set; then | |
| 2372 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
| 25897 | 2373 else |
| 2374 if test -n "$CC"; then | |
| 2375 ac_cv_prog_CC="$CC" # Let the user override the test. | |
| 2376 else | |
| 2377 ac_prog_rejected=no | |
| 40056 | 2378 ac_save_IFS=$IFS; IFS=$ac_path_separator |
| 2379 ac_dummy="$PATH" | |
| 2380 for ac_dir in $ac_dummy; do | |
| 2381 IFS=$ac_save_IFS | |
| 2382 test -z "$ac_dir" && ac_dir=. | |
| 2383 $as_executable_p "$ac_dir/$ac_word" || continue | |
| 2384 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then | |
| 2385 ac_prog_rejected=yes | |
| 2386 continue | |
| 2387 fi | |
| 2388 ac_cv_prog_CC="cc" | |
| 40426 | 2389 echo "$as_me:2389: found $ac_dir/$ac_word" >&5 |
| 40056 | 2390 break |
| 2391 done | |
| 2392 | |
| 25897 | 2393 if test $ac_prog_rejected = yes; then |
| 2394 # We found a bogon in the path, so make sure we never use it. | |
| 2395 set dummy $ac_cv_prog_CC | |
| 2396 shift | |
| 40056 | 2397 if test $# != 0; then |
| 25897 | 2398 # We chose a different compiler from the bogus one. |
| 2399 # However, it has the same basename, so the bogon will be chosen | |
| 2400 # first if we set CC to just the basename; use the full file name. | |
| 2401 shift | |
| 40056 | 2402 set dummy "$ac_dir/$ac_word" ${1+"$@"} |
| 25897 | 2403 shift |
| 2404 ac_cv_prog_CC="$@" | |
| 2405 fi | |
| 2406 fi | |
| 2407 fi | |
| 2408 fi | |
| 40056 | 2409 CC=$ac_cv_prog_CC |
| 25897 | 2410 if test -n "$CC"; then |
| 40426 | 2411 echo "$as_me:2411: result: $CC" >&5 |
| 40056 | 2412 echo "${ECHO_T}$CC" >&6 |
| 2413 else | |
| 40426 | 2414 echo "$as_me:2414: result: no" >&5 |
| 40056 | 2415 echo "${ECHO_T}no" >&6 |
| 2416 fi | |
| 2417 | |
| 2418 fi | |
| 2419 if test -z "$CC"; then | |
| 2420 if test -n "$ac_tool_prefix"; then | |
| 2421 for ac_prog in cl | |
| 2422 do | |
| 2423 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
| 2424 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
| 40426 | 2425 echo "$as_me:2425: checking for $ac_word" >&5 |
| 40056 | 2426 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2427 if test "${ac_cv_prog_CC+set}" = set; then | |
| 2428 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
| 27205 | 2429 else |
| 2430 if test -n "$CC"; then | |
| 2431 ac_cv_prog_CC="$CC" # Let the user override the test. | |
| 2432 else | |
| 40056 | 2433 ac_save_IFS=$IFS; IFS=$ac_path_separator |
| 2434 ac_dummy="$PATH" | |
| 2435 for ac_dir in $ac_dummy; do | |
| 2436 IFS=$ac_save_IFS | |
| 2437 test -z "$ac_dir" && ac_dir=. | |
| 2438 $as_executable_p "$ac_dir/$ac_word" || continue | |
| 2439 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
| 40426 | 2440 echo "$as_me:2440: found $ac_dir/$ac_word" >&5 |
| 40056 | 2441 break |
| 2442 done | |
| 2443 | |
| 2444 fi | |
| 2445 fi | |
| 2446 CC=$ac_cv_prog_CC | |
| 27205 | 2447 if test -n "$CC"; then |
| 40426 | 2448 echo "$as_me:2448: result: $CC" >&5 |
| 40056 | 2449 echo "${ECHO_T}$CC" >&6 |
| 2450 else | |
| 40426 | 2451 echo "$as_me:2451: result: no" >&5 |
| 40056 | 2452 echo "${ECHO_T}no" >&6 |
| 2453 fi | |
| 2454 | |
| 2455 test -n "$CC" && break | |
| 2456 done | |
| 2457 fi | |
| 2458 if test -z "$CC"; then | |
| 2459 ac_ct_CC=$CC | |
| 2460 for ac_prog in cl | |
| 2461 do | |
| 2462 # Extract the first word of "$ac_prog", so it can be a program name with args. | |
| 2463 set dummy $ac_prog; ac_word=$2 | |
| 40426 | 2464 echo "$as_me:2464: checking for $ac_word" >&5 |
| 40056 | 2465 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2466 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
| 2467 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
| 2468 else | |
| 2469 if test -n "$ac_ct_CC"; then | |
| 2470 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
| 2471 else | |
| 2472 ac_save_IFS=$IFS; IFS=$ac_path_separator | |
| 2473 ac_dummy="$PATH" | |
| 2474 for ac_dir in $ac_dummy; do | |
| 2475 IFS=$ac_save_IFS | |
| 2476 test -z "$ac_dir" && ac_dir=. | |
| 2477 $as_executable_p "$ac_dir/$ac_word" || continue | |
| 2478 ac_cv_prog_ac_ct_CC="$ac_prog" | |
| 40426 | 2479 echo "$as_me:2479: found $ac_dir/$ac_word" >&5 |
| 40056 | 2480 break |
| 2481 done | |
| 2482 | |
| 2483 fi | |
| 2484 fi | |
| 2485 ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
| 2486 if test -n "$ac_ct_CC"; then | |
| 40426 | 2487 echo "$as_me:2487: result: $ac_ct_CC" >&5 |
| 40056 | 2488 echo "${ECHO_T}$ac_ct_CC" >&6 |
| 2489 else | |
| 40426 | 2490 echo "$as_me:2490: result: no" >&5 |
| 40056 | 2491 echo "${ECHO_T}no" >&6 |
| 2492 fi | |
| 2493 | |
| 2494 test -n "$ac_ct_CC" && break | |
| 2495 done | |
| 2496 | |
| 2497 CC=$ac_ct_CC | |
| 2498 fi | |
| 2499 | |
| 2500 fi | |
| 2501 | |
| 40426 | 2502 test -z "$CC" && { { echo "$as_me:2502: error: no acceptable cc found in \$PATH" >&5 |
| 40056 | 2503 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;} |
| 2504 { (exit 1); exit 1; }; } | |
| 2505 | |
| 2506 # Provide some information about the compiler. | |
| 40426 | 2507 echo "$as_me:2507:" \ |
| 40056 | 2508 "checking for C compiler version" >&5 |
| 2509 ac_compiler=`set X $ac_compile; echo $2` | |
| 40426 | 2510 { (eval echo "$as_me:2510: \"$ac_compiler --version </dev/null >&5\"") >&5 |
| 40056 | 2511 (eval $ac_compiler --version </dev/null >&5) 2>&5 |
| 2512 ac_status=$? | |
| 40426 | 2513 echo "$as_me:2513: \$? = $ac_status" >&5 |
| 40056 | 2514 (exit $ac_status); } |
| 40426 | 2515 { (eval echo "$as_me:2515: \"$ac_compiler -v </dev/null >&5\"") >&5 |
| 40056 | 2516 (eval $ac_compiler -v </dev/null >&5) 2>&5 |
| 2517 ac_status=$? | |
| 40426 | 2518 echo "$as_me:2518: \$? = $ac_status" >&5 |
| 40056 | 2519 (exit $ac_status); } |
| 40426 | 2520 { (eval echo "$as_me:2520: \"$ac_compiler -V </dev/null >&5\"") >&5 |
| 40056 | 2521 (eval $ac_compiler -V </dev/null >&5) 2>&5 |
| 2522 ac_status=$? | |
| 40426 | 2523 echo "$as_me:2523: \$? = $ac_status" >&5 |
| 40056 | 2524 (exit $ac_status); } |
| 2525 | |
| 2526 cat >conftest.$ac_ext <<_ACEOF | |
| 40426 | 2527 #line 2527 "configure" |
| 40056 | 2528 #include "confdefs.h" |
| 2529 | |
| 2530 int | |
| 2531 main () | |
| 2532 { | |
| 2533 | |
| 2534 ; | |
| 2535 return 0; | |
| 2536 } | |
| 2537 _ACEOF | |
| 2538 ac_clean_files_save=$ac_clean_files | |
| 2539 ac_clean_files="$ac_clean_files a.out a.exe" | |
| 2540 # Try to create an executable without -o first, disregard a.out. | |
| 2541 # It will help us diagnose broken compilers, and finding out an intuition | |
| 2542 # of exeext. | |
| 40426 | 2543 echo "$as_me:2543: checking for C compiler default output" >&5 |
| 40056 | 2544 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6 |
| 2545 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
| 40426 | 2546 if { (eval echo "$as_me:2546: \"$ac_link_default\"") >&5 |
| 40056 | 2547 (eval $ac_link_default) 2>&5 |
| 2548 ac_status=$? | |
| 40426 | 2549 echo "$as_me:2549: \$? = $ac_status" >&5 |
| 40056 | 2550 (exit $ac_status); }; then |
| 2551 # Find the output, starting from the most likely. This scheme is | |
| 2552 # not robust to junk in `.', hence go to wildcards (a.*) only as a last | |
| 2553 # resort. | |
| 2554 for ac_file in `ls a.exe conftest.exe 2>/dev/null; | |
| 2555 ls a.out conftest 2>/dev/null; | |
| 2556 ls a.* conftest.* 2>/dev/null`; do | |
| 2557 case $ac_file in | |
| 2558 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;; | |
| 2559 a.out ) # We found the default executable, but exeext='' is most | |
| 2560 # certainly right. | |
| 2561 break;; | |
| 2562 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
| 2563 # FIXME: I believe we export ac_cv_exeext for Libtool --akim. | |
| 2564 export ac_cv_exeext | |
| 2565 break;; | |
| 2566 * ) break;; | |
| 2567 esac | |
| 2568 done | |
| 2569 else | |
| 2570 echo "$as_me: failed program was:" >&5 | |
| 2571 cat conftest.$ac_ext >&5 | |
| 40426 | 2572 { { echo "$as_me:2572: error: C compiler cannot create executables" >&5 |
| 40056 | 2573 echo "$as_me: error: C compiler cannot create executables" >&2;} |
| 2574 { (exit 77); exit 77; }; } | |
| 2575 fi | |
| 2576 | |
| 2577 ac_exeext=$ac_cv_exeext | |
| 40426 | 2578 echo "$as_me:2578: result: $ac_file" >&5 |
| 40056 | 2579 echo "${ECHO_T}$ac_file" >&6 |
| 2580 | |
| 2581 # Check the compiler produces executables we can run. If not, either | |
| 2582 # the compiler is broken, or we cross compile. | |
| 40426 | 2583 echo "$as_me:2583: checking whether the C compiler works" >&5 |
| 40056 | 2584 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 |
| 2585 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | |
| 2586 # If not cross compiling, check that we can run a simple program. | |
| 2587 if test "$cross_compiling" != yes; then | |
| 2588 if { ac_try='./$ac_file' | |
| 40426 | 2589 { (eval echo "$as_me:2589: \"$ac_try\"") >&5 |
| 2590 (eval $ac_try) 2>&5 | |
| 2591 ac_status=$? | |
| 2592 echo "$as_me:2592: \$? = $ac_status" >&5 | |
| 40056 | 2593 (exit $ac_status); }; }; then |
| 2594 cross_compiling=no | |
| 25897 | 2595 else |
| 40056 | 2596 if test "$cross_compiling" = maybe; then |
| 2597 cross_compiling=yes | |
| 2598 else | |
| 40426 | 2599 { { echo "$as_me:2599: error: cannot run C compiled programs. |
| 40056 | 2600 If you meant to cross compile, use \`--host'." >&5 |
| 2601 echo "$as_me: error: cannot run C compiled programs. | |
| 2602 If you meant to cross compile, use \`--host'." >&2;} | |
| 2603 { (exit 1); exit 1; }; } | |
| 2604 fi | |
| 2605 fi | |
| 2606 fi | |
| 40426 | 2607 echo "$as_me:2607: result: yes" >&5 |
| 40056 | 2608 echo "${ECHO_T}yes" >&6 |
| 2609 | |
| 2610 rm -f a.out a.exe conftest$ac_cv_exeext | |
| 2611 ac_clean_files=$ac_clean_files_save | |
| 2612 # Check the compiler produces executables we can run. If not, either | |
| 2613 # the compiler is broken, or we cross compile. | |
| 40426 | 2614 echo "$as_me:2614: checking whether we are cross compiling" >&5 |
| 40056 | 2615 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
| 40426 | 2616 echo "$as_me:2616: result: $cross_compiling" >&5 |
| 40056 | 2617 echo "${ECHO_T}$cross_compiling" >&6 |
| 2618 | |
| 40426 | 2619 echo "$as_me:2619: checking for executable suffix" >&5 |
| 40056 | 2620 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6 |
| 40426 | 2621 if { (eval echo "$as_me:2621: \"$ac_link\"") >&5 |
| 2622 (eval $ac_link) 2>&5 | |
| 2623 ac_status=$? | |
| 2624 echo "$as_me:2624: \$? = $ac_status" >&5 | |
| 40056 | 2625 (exit $ac_status); }; then |
| 2626 # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
| 2627 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
| 2628 # work properly (i.e., refer to `conftest.exe'), while it won't with | |
| 2629 # `rm'. | |
| 2630 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do | |
| 2631 case $ac_file in | |
| 2632 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;; | |
| 2633 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
| 2634 export ac_cv_exeext | |
| 2635 break;; | |
| 2636 * ) break;; | |
| 2637 esac | |
| 2638 done | |
| 2639 else | |
| 40426 | 2640 { { echo "$as_me:2640: error: cannot compute EXEEXT: cannot compile and link" >&5 |
| 40056 | 2641 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;} |
| 2642 { (exit 1); exit 1; }; } | |
| 2643 fi | |
| 2644 | |
| 2645 rm -f conftest$ac_cv_exeext | |
| 40426 | 2646 echo "$as_me:2646: result: $ac_cv_exeext" >&5 |
| 40056 | 2647 echo "${ECHO_T}$ac_cv_exeext" >&6 |
| 2648 | |
| 2649 rm -f conftest.$ac_ext | |
| 2650 EXEEXT=$ac_cv_exeext | |
| 2651 ac_exeext=$EXEEXT | |
| 40426 | 2652 echo "$as_me:2652: checking for object suffix" >&5 |
| 40056 | 2653 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6 |
| 2654 if test "${ac_cv_objext+set}" = set; then | |
| 2655 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
| 2656 else | |
| 2657 cat >conftest.$ac_ext <<_ACEOF | |
| 40426 | 2658 #line 2658 "configure" |
| 40056 | 2659 #include "confdefs.h" |
| 2660 | |
| 2661 int | |
| 2662 main () | |
| 2663 { | |
| 2664 | |
| 2665 ; | |
| 2666 return 0; | |
| 2667 } | |
| 2668 _ACEOF | |
| 2669 rm -f conftest.o conftest.obj | |
| 40426 | 2670 if { (eval echo "$as_me:2670: \"$ac_compile\"") >&5 |
| 40056 | 2671 (eval $ac_compile) 2>&5 |
| 2672 ac_status=$? | |
| 40426 | 2673 echo "$as_me:2673: \$? = $ac_status" >&5 |
| 40056 | 2674 (exit $ac_status); }; then |
| 2675 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do | |
| 2676 case $ac_file in | |
| 2677 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;; | |
| 2678 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
| 2679 break;; | |
| 2680 esac | |
| 2681 done | |
| 2682 else | |
| 2683 echo "$as_me: failed program was:" >&5 | |
| 2684 cat conftest.$ac_ext >&5 | |
| 40426 | 2685 { { echo "$as_me:2685: error: cannot compute OBJEXT: cannot compile" >&5 |
| 40056 | 2686 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;} |
| 2687 { (exit 1); exit 1; }; } | |
| 2688 fi | |
| 2689 | |
| 2690 rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
| 2691 fi | |
| 40426 | 2692 echo "$as_me:2692: result: $ac_cv_objext" >&5 |
| 40056 | 2693 echo "${ECHO_T}$ac_cv_objext" >&6 |
| 2694 OBJEXT=$ac_cv_objext | |
| 2695 ac_objext=$OBJEXT | |
| 40426 | 2696 echo "$as_me:2696: checking whether we are using the GNU C compiler" >&5 |
| 40056 | 2697 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
| 2698 if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
| 2699 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
| 2700 else | |
| 2701 cat >conftest.$ac_ext <<_ACEOF | |
| 40426 | 2702 #line 2702 "configure" |
| 40056 | 2703 #include "confdefs.h" |
| 2704 | |
| 2705 int | |
| 2706 main () | |
| 2707 { | |
| 2708 #ifndef __GNUC__ | |
| 2709 choke me | |
| 2710 #endif | |
| 2711 | |
| 2712 ; | |
| 2713 return 0; | |
| 2714 } | |
| 2715 _ACEOF | |
| 2716 rm -f conftest.$ac_objext | |
| 40426 | 2717 if { (eval echo "$as_me:2717: \"$ac_compile\"") >&5 |
| 40056 | 2718 (eval $ac_compile) 2>&5 |
| 2719 ac_status=$? | |
| 40426 | 2720 echo "$as_me:2720: \$? = $ac_status" >&5 |
| 40056 | 2721 (exit $ac_status); } && |
| 2722 { ac_try='test -s conftest.$ac_objext' | |
| 40426 | 2723 { (eval echo "$as_me:2723: \"$ac_try\"") >&5 |
| 2724 (eval $ac_try) 2>&5 | |
| 2725 ac_status=$? | |
| 2726 echo "$as_me:2726: \$? = $ac_status" >&5 | |
| 40056 | 2727 (exit $ac_status); }; }; then |
| 2728 ac_compiler_gnu=yes | |
| 2729 else | |
| 2730 echo "$as_me: failed program was:" >&5 | |
| 2731 cat conftest.$ac_ext >&5 | |
| 2732 ac_compiler_gnu=no | |
| 2733 fi | |
| 2734 rm -f conftest.$ac_objext conftest.$ac_ext | |
| 2735 ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
| 2736 | |
| 2737 fi | |
| 40426 | 2738 echo "$as_me:2738: result: $ac_cv_c_compiler_gnu" >&5 |
| 40056 | 2739 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
| 2740 GCC=`test $ac_compiler_gnu = yes && echo yes` | |
| 2741 ac_test_CFLAGS=${CFLAGS+set} | |
| 2742 ac_save_CFLAGS=$CFLAGS | |
| 2743 CFLAGS="-g" | |
| 40426 | 2744 echo "$as_me:2744: checking whether $CC accepts -g" >&5 |
| 40056 | 2745 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
| 2746 if test "${ac_cv_prog_cc_g+set}" = set; then | |
| 2747 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
| 2748 else | |
| 2749 cat >conftest.$ac_ext <<_ACEOF | |
| 40426 | 2750 #line 2750 "configure" |
| 40056 | 2751 #include "confdefs.h" |
| 2752 | |
| 2753 int | |
| 2754 main () | |
| 2755 { | |
| 2756 | |
| 2757 ; | |
| 2758 return 0; | |
| 2759 } | |
| 2760 _ACEOF | |
| 2761 rm -f conftest.$ac_objext | |
| 40426 | 2762 if { (eval echo "$as_me:2762: \"$ac_compile\"") >&5 |
| 40056 | 2763 (eval $ac_compile) 2>&5 |
| 2764 ac_status=$? | |
| 40426 | 2765 echo "$as_me:2765: \$? = $ac_status" >&5 |
| 40056 | 2766 (exit $ac_status); } && |
| 2767 { ac_try='test -s conftest.$ac_objext' | |
| 40426 | 2768 { (eval echo "$as_me:2768: \"$ac_try\"") >&5 |
| 2769 (eval $ac_try) 2>&5 | |
| 2770 ac_status=$? | |
| 2771 echo "$as_me:2771: \$? = $ac_status" >&5 | |
| 40056 | 2772 (exit $ac_status); }; }; then |
| 25897 | 2773 ac_cv_prog_cc_g=yes |
| 2774 else | |
| 40056 | 2775 echo "$as_me: failed program was:" >&5 |
| 2776 cat conftest.$ac_ext >&5 | |
| 2777 ac_cv_prog_cc_g=no | |
| 2778 fi | |
| 2779 rm -f conftest.$ac_objext conftest.$ac_ext | |
| 2780 fi | |
| 40426 | 2781 echo "$as_me:2781: result: $ac_cv_prog_cc_g" >&5 |
| 40056 | 2782 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
| 27205 | 2783 if test "$ac_test_CFLAGS" = set; then |
| 40056 | 2784 CFLAGS=$ac_save_CFLAGS |
| 27205 | 2785 elif test $ac_cv_prog_cc_g = yes; then |
| 2786 if test "$GCC" = yes; then | |
| 25897 | 2787 CFLAGS="-g -O2" |
| 2788 else | |
| 27205 | 2789 CFLAGS="-g" |
| 25897 | 2790 fi |
| 2791 else | |
| 27205 | 2792 if test "$GCC" = yes; then |
| 2793 CFLAGS="-O2" | |
| 2794 else | |
| 2795 CFLAGS= | |
| 2796 fi | |
| 25897 | 2797 fi |
| 40056 | 2798 # Some people use a C++ compiler to compile C. Since we use `exit', |
| 2799 # in C++ we need to declare it. In case someone uses the same compiler | |
| 2800 # for both compiling C and C++ we need to have the C++ compiler decide | |
| 2801 # the declaration of exit, since it's the most demanding environment. | |
| 2802 cat >conftest.$ac_ext <<_ACEOF | |
| 2803 #ifndef __cplusplus | |
| 2804 choke me | |
| 2805 #endif | |
| 2806 _ACEOF | |
| 2807 rm -f conftest.$ac_objext | |
| 40426 | 2808 if { (eval echo "$as_me:2808: \"$ac_compile\"") >&5 |
| 40056 | 2809 (eval $ac_compile) 2>&5 |
| 2810 ac_status=$? | |
| 40426 | 2811 echo "$as_me:2811: \$? = $ac_status" >&5 |
| 40056 | 2812 (exit $ac_status); } && |
| 2813 { ac_try='test -s conftest.$ac_objext' | |
| 40426 | 2814 { (eval echo "$as_me:2814: \"$ac_try\"") >&5 |
| 2815 (eval $ac_try) 2>&5 | |
| 2816 ac_status=$? | |
| 2817 echo "$as_me:2817: \$? = $ac_status" >&5 | |
| 40056 | 2818 (exit $ac_status); }; }; then |
| 2819 for ac_declaration in \ | |
| 2820 ''\ | |
| 2821 '#include <stdlib.h>' \ | |
| 2822 'extern "C" void std::exit (int) throw (); using std::exit;' \ | |
| 2823 'extern "C" void std::exit (int); using std::exit;' \ | |
| 2824 'extern "C" void exit (int) throw ();' \ | |
| 2825 'extern "C" void exit (int);' \ | |
| 2826 'void exit (int);' | |
| 2827 do | |
| 2828 cat >conftest.$ac_ext <<_ACEOF | |
| 40426 | 2829 #line 2829 "configure" |
| 40056 | 2830 #include "confdefs.h" |
| 2831 #include <stdlib.h> | |
| 2832 $ac_declaration | |
| 2833 int | |
| 2834 main () | |
| 2835 { | |
| 2836 exit (42); | |
| 2837 ; | |
| 2838 return 0; | |
| 2839 } | |
| 2840 _ACEOF | |
| 2841 rm -f conftest.$ac_objext | |
| 40426 | 2842 if { (eval echo "$as_me:2842: \"$ac_compile\"") >&5 |
| 40056 | 2843 (eval $ac_compile) 2>&5 |
| 2844 ac_status=$? | |
| 40426 | 2845 echo "$as_me:2845: \$? = $ac_status" >&5 |
| 40056 | 2846 (exit $ac_status); } && |
| 2847 { ac_try='test -s conftest.$ac_objext' | |
| 40426 | 2848 { (eval echo "$as_me:2848: \"$ac_try\"") >&5 |
| 2849 (eval $ac_try) 2>&5 | |
| 2850 ac_status=$? | |
| 2851 echo "$as_me:2851: \$? = $ac_status" >&5 | |
| 40056 | 2852 (exit $ac_status); }; }; then |
| 2853 : | |
| 2854 else | |
| 2855 echo "$as_me: failed program was:" >&5 | |
| 2856 cat conftest.$ac_ext >&5 | |
| 2857 continue | |
| 2858 fi | |
| 2859 rm -f conftest.$ac_objext conftest.$ac_ext | |
| 2860 cat >conftest.$ac_ext <<_ACEOF | |
| 40426 | 2861 #line 2861 "configure" |
| 40056 | 2862 #include "confdefs.h" |
| 2863 $ac_declaration | |
| 2864 int | |
| 2865 main () | |
| 2866 { | |
| 2867 exit (42); | |
| 2868 ; | |
| 2869 return 0; | |
| 2870 } | |
| 2871 _ACEOF | |
| 2872 rm -f conftest.$ac_objext | |
| 40426 | 2873 if { (eval echo "$as_me:2873: \"$ac_compile\"") >&5 |
| 40056 | 2874 (eval $ac_compile) 2>&5 |
| 2875 ac_status=$? | |
| 40426 | 2876 echo "$as_me:2876: \$? = $ac_status" >&5 |
| 40056 | 2877 (exit $ac_status); } && |
| 2878 { ac_try='test -s conftest.$ac_objext' | |
| 40426 | 2879 { (eval echo "$as_me:2879: \"$ac_try\"") >&5 |
| 2880 (eval $ac_try) 2>&5 | |
| 2881 ac_status=$? | |
| 2882 echo "$as_me:2882: \$? = $ac_status" >&5 | |
| 40056 | 2883 (exit $ac_status); }; }; then |
| 2884 break | |
| 2885 else | |
| 2886 echo "$as_me: failed program was:" >&5 | |
| 2887 cat conftest.$ac_ext >&5 | |
| 2888 fi | |
| 2889 rm -f conftest.$ac_objext conftest.$ac_ext | |
| 2890 done | |
| 2891 rm -f conftest* | |
| 2892 if test -n "$ac_declaration"; then | |
| 2893 echo '#ifdef __cplusplus' >>confdefs.h | |
| 2894 echo $ac_declaration >>confdefs.h | |
| 2895 echo '#endif' >>confdefs.h | |
| 2896 fi | |
| 2897 | |
| 2898 else | |
| 2899 echo "$as_me: failed program was:" >&5 | |
| 2900 cat conftest.$ac_ext >&5 | |
| 2901 fi | |
| 2902 rm -f conftest.$ac_objext conftest.$ac_ext | |
| 2903 ac_ext=c | |
| 2904 ac_cpp='$CPP $CPPFLAGS' | |
| 2905 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
| 2906 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
| 2907 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
| 25897 | 2908 |
| 2909 # On Suns, sometimes $CPP names a directory. | |
| 2910 if test -n "$CPP" && test -d "$CPP"; then | |
| 2911 CPP= | |
| 2912 fi | |
| 2913 | |
| 2914 #### Some systems specify a CPP to use unless we are using GCC. | |
| 2915 #### Now that we know whether we are using GCC, we can decide whether | |
| 2916 #### to use that one. | |
| 2917 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x | |
| 2918 then | |
| 2919 CPP="$NON_GNU_CPP" | |
| 2920 fi | |
| 2921 | |
| 2922 #### Some systems specify a CC to use unless we are using GCC. | |
| 2923 #### Now that we know whether we are using GCC, we can decide whether | |
| 2924 #### to use that one. | |
| 2925 if test "x$NON_GNU_CC" != x && test x$GCC != xyes && | |
| 2926 test x$cc_specified != xyes | |
| 2927 then | |
| 2928 CC="$NON_GNU_CC" | |
| 2929 fi | |
| 2930 | |
| 2931 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x | |
| 2932 then | |
| 2933 CC="$CC $GCC_TEST_OPTIONS" | |
| 2934 fi | |
| 2935 | |
| 2936 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x | |
| 2937 then | |
| 2938 CC="$CC $NON_GCC_TEST_OPTIONS" | |
| 2939 fi | |
| 2940 | |
| 2941 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x | |
| 2942 then | |
| 2943 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS" | |
| 2944 fi | |
| 2945 | |
| 2946 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x | |
| 2947 then | |
| 2948 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS" | |
| 2949 fi | |
| 2950 | |
| 2951 #### Some other nice autoconf tests. If you add a test here which | |
| 2952 #### should make an entry in src/config.h, don't forget to add an | |
| 2953 #### #undef clause to src/config.h.in for autoconf to modify. | |
| 2954 | |
| 40426 | 2955 echo "$as_me:2955: checking whether ln -s works" >&5 |
| 40056 | 2956 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 |
| 2957 LN_S=$as_ln_s | |
| 2958 if test "$LN_S" = "ln -s"; then | |
| 40426 | 2959 echo "$as_me:2959: result: yes" >&5 |
| 40056 | 2960 echo "${ECHO_T}yes" >&6 |
| 2961 else | |
| 40426 | 2962 echo "$as_me:2962: result: no, using $LN_S" >&5 |
| 40056 | 2963 echo "${ECHO_T}no, using $LN_S" >&6 |
| 2964 fi | |
| 2965 | |
| 2966 ac_ext=c | |
| 2967 ac_cpp='$CPP $CPPFLAGS' | |
| 2968 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
| 2969 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
| 2970 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
| 40426 | 2971 echo "$as_me:2971: checking how to run the C preprocessor" >&5 |
| 40056 | 2972 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 |
| 25897 | 2973 # On Suns, sometimes $CPP names a directory. |
| 2974 if test -n "$CPP" && test -d "$CPP"; then | |
| 2975 CPP= | |
| 2976 fi | |
| 2977 if test -z "$CPP"; then | |
| 40056 | 2978 if test "${ac_cv_prog_CPP+set}" = set; then |
| 2979 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
| 2980 else | |
| 2981 # Double quotes because CPP needs to be expanded | |
| 2982 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
| 2983 do | |
| 2984 ac_preproc_ok=false | |
| 2985 for ac_c_preproc_warn_flag in '' yes | |
| 2986 do | |
| 2987 # Use a header file that comes with gcc, so configuring glibc | |
| 2988 # with a fresh cross-compiler works. | |
| 25897 | 2989 # On the NeXT, cc -E runs the code through the compiler's parser, |
| 40056 | 2990 # not just through cpp. "Syntax error" is here to catch this case. |
| 2991 cat >conftest.$ac_ext <<_ACEOF | |
| 40426 | 2992 #line 2992 "configure" |
| 25897 | 2993 #include "confdefs.h" |
| 2994 #include <assert.h> | |
| 40056 | 2995 Syntax error |
| 2996 _ACEOF | |
| 40426 | 2997 if { (eval echo "$as_me:2997: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 40056 | 2998 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 2999 ac_status=$? | |
| 3000 egrep -v '^ *\+' conftest.er1 >conftest.err | |
| 3001 rm -f conftest.er1 | |
| 3002 cat conftest.err >&5 | |
| 40426 | 3003 echo "$as_me:3003: \$? = $ac_status" >&5 |
| 40056 | 3004 (exit $ac_status); } >/dev/null; then |
| 3005 if test -s conftest.err; then | |
| 3006 ac_cpp_err=$ac_c_preproc_warn_flag | |
| 3007 else | |
| 3008 ac_cpp_err= | |
| 3009 fi | |
| 3010 else | |
| 3011 ac_cpp_err=yes | |
| 3012 fi | |
| 3013 if test -z "$ac_cpp_err"; then | |
| 27205 | 3014 : |
| 3015 else | |
| 40056 | 3016 echo "$as_me: failed program was:" >&5 |
| 27205 | 3017 cat conftest.$ac_ext >&5 |
| 40056 | 3018 # Broken: fails on valid input. |
| 3019 continue | |
| 3020 fi | |
| 3021 rm -f conftest.err conftest.$ac_ext | |
| 3022 | |
| 3023 # OK, works on sane cases. Now check whether non-existent headers | |
| 3024 # can be detected and how. | |
| 3025 cat >conftest.$ac_ext <<_ACEOF | |
| 40426 | 3026 #line 3026 "configure" |
| 40056 | 3027 #include "confdefs.h" |
| 3028 #include <ac_nonexistent.h> | |
| 3029 _ACEOF | |
| 40426 | 3030 if { (eval echo "$as_me:3030: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 40056 | 3031 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3032 ac_status=$? | |
| 3033 egrep -v '^ *\+' conftest.er1 >conftest.err | |
| 3034 rm -f conftest.er1 | |
| 3035 cat conftest.err >&5 | |
| 40426 | 3036 echo "$as_me:3036: \$? = $ac_status" >&5 |
| 40056 | 3037 (exit $ac_status); } >/dev/null; then |
| 3038 if test -s conftest.err; then | |
| 3039 ac_cpp_err=$ac_c_preproc_warn_flag | |
| 3040 else | |
| 3041 ac_cpp_err= | |
| 3042 fi | |
| 3043 else | |
| 3044 ac_cpp_err=yes | |
| 3045 fi | |
| 3046 if test -z "$ac_cpp_err"; then | |
| 3047 # Broken: success on invalid input. | |
| 3048 continue | |
| 3049 else | |
| 3050 echo "$as_me: failed program was:" >&5 | |
| 3051 cat conftest.$ac_ext >&5 | |
| 3052 # Passes both tests. | |
| 3053 ac_preproc_ok=: | |
| 3054 break | |
| 3055 fi | |
| 3056 rm -f conftest.err conftest.$ac_ext | |
| 3057 | |
| 3058 done | |
| 3059 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
| 3060 rm -f conftest.err conftest.$ac_ext | |
| 3061 if $ac_preproc_ok; then | |
| 3062 break | |
| 3063 fi | |
| 3064 | |
| 3065 done | |
| 3066 ac_cv_prog_CPP=$CPP | |
| 3067 | |
| 3068 fi | |
| 3069 CPP=$ac_cv_prog_CPP | |
| 3070 else | |
| 3071 ac_cv_prog_CPP=$CPP | |
| 3072 fi | |
| 40426 | 3073 echo "$as_me:3073: result: $CPP" >&5 |
| 40056 | 3074 echo "${ECHO_T}$CPP" >&6 |
| 3075 ac_preproc_ok=false | |
| 3076 for ac_c_preproc_warn_flag in '' yes | |
| 3077 do | |
| 3078 # Use a header file that comes with gcc, so configuring glibc | |
| 3079 # with a fresh cross-compiler works. | |
| 3080 # On the NeXT, cc -E runs the code through the compiler's parser, | |
| 3081 # not just through cpp. "Syntax error" is here to catch this case. | |
| 3082 cat >conftest.$ac_ext <<_ACEOF | |
| 40426 | 3083 #line 3083 "configure" |
| 27205 | 3084 #include "confdefs.h" |
| 3085 #include <assert.h> | |
| 40056 | 3086 Syntax error |
| 3087 _ACEOF | |
| 40426 | 3088 if { (eval echo "$as_me:3088: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 40056 | 3089 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3090 ac_status=$? | |
| 3091 egrep -v '^ *\+' conftest.er1 >conftest.err | |
| 3092 rm -f conftest.er1 | |
| 3093 cat conftest.err >&5 | |
| 40426 | 3094 echo "$as_me:3094: \$? = $ac_status" >&5 |
| 40056 | 3095 (exit $ac_status); } >/dev/null; then |
| 3096 if test -s conftest.err; then | |
| 3097 ac_cpp_err=$ac_c_preproc_warn_flag | |
| 3098 else | |
| 3099 ac_cpp_err= | |
| 3100 fi | |
| 3101 else | |
| 3102 ac_cpp_err=yes | |
| 3103 fi | |
| 3104 if test -z "$ac_cpp_err"; then | |
| 25897 | 3105 : |
| 3106 else | |
| 40056 | 3107 echo "$as_me: failed program was:" >&5 |
| 25897 | 3108 cat conftest.$ac_ext >&5 |
| 40056 | 3109 # Broken: fails on valid input. |
| 3110 continue | |
| 3111 fi | |
| 3112 rm -f conftest.err conftest.$ac_ext | |
| 3113 | |
| 3114 # OK, works on sane cases. Now check whether non-existent headers | |
| 3115 # can be detected and how. | |
| 3116 cat >conftest.$ac_ext <<_ACEOF | |
| 40426 | 3117 #line 3117 "configure" |
| 40056 | 3118 #include "confdefs.h" |
| 3119 #include <ac_nonexistent.h> | |
| 3120 _ACEOF | |
| 40426 | 3121 if { (eval echo "$as_me:3121: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 40056 | 3122 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3123 ac_status=$? | |
| 3124 egrep -v '^ *\+' conftest.er1 >conftest.err | |
| 3125 rm -f conftest.er1 | |
| 3126 cat conftest.err >&5 | |
| 40426 | 3127 echo "$as_me:3127: \$? = $ac_status" >&5 |
| 40056 | 3128 (exit $ac_status); } >/dev/null; then |
| 3129 if test -s conftest.err; then | |
| 3130 ac_cpp_err=$ac_c_preproc_warn_flag | |
| 3131 else | |
| 3132 ac_cpp_err= | |
| 3133 fi | |
| 3134 else | |
| 3135 ac_cpp_err=yes | |
| 3136 fi | |
| 3137 if test -z "$ac_cpp_err"; then | |
| 3138 # Broken: success on invalid input. | |
| 3139 continue | |
| 3140 else | |
| 3141 echo "$as_me: failed program was:" >&5 | |
| 3142 cat conftest.$ac_ext >&5 | |
| 3143 # Passes both tests. | |
| 3144 ac_preproc_ok=: | |
| 3145 break | |
| 3146 fi | |
| 3147 rm -f conftest.err conftest.$ac_ext | |
| 3148 | |
| 3149 done | |
| 3150 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
| 3151 rm -f conftest.err conftest.$ac_ext | |
| 3152 if $ac_preproc_ok; then | |
| 3153 : | |
| 3154 else | |
| 40426 | 3155 { { echo "$as_me:3155: error: C preprocessor \"$CPP\" fails sanity check" >&5 |
| 40056 | 3156 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;} |
| 3157 { (exit 1); exit 1; }; } | |
| 3158 fi | |
| 3159 | |
| 3160 ac_ext=c | |
| 3161 ac_cpp='$CPP $CPPFLAGS' | |
| 3162 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
| 3163 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
| 3164 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
| 25897 | 3165 |
| 3166 # Find a good install program. We prefer a C program (faster), | |
| 3167 # so one script is as good as another. But avoid the broken or | |
| 3168 # incompatible versions: | |
| 3169 # SysV /etc/install, /usr/sbin/install | |
| 3170 # SunOS /usr/etc/install | |
| 3171 # IRIX /sbin/install | |
| 3172 # AIX /bin/install | |
| 40056 | 3173 # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 27205 | 3174 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 25897 | 3175 # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 3176 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
| 3177 # ./install, which can be erroneously created by make from ./install.sh. | |
| 40426 | 3178 echo "$as_me:3178: checking for a BSD compatible install" >&5 |
| 40056 | 3179 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6 |
| 25897 | 3180 if test -z "$INSTALL"; then |
| 40056 | 3181 if test "${ac_cv_path_install+set}" = set; then |
| 3182 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
| 3183 else | |
| 3184 ac_save_IFS=$IFS; IFS=$ac_path_separator | |
| 25897 | 3185 for ac_dir in $PATH; do |
| 40056 | 3186 IFS=$ac_save_IFS |
| 25897 | 3187 # Account for people who put trailing slashes in PATH elements. |
| 40056 | 3188 case $ac_dir/ in |
| 3189 / | ./ | .// | /cC/* \ | |
| 3190 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \ | |
| 3191 | /usr/ucb/* ) ;; | |
| 25897 | 3192 *) |
| 3193 # OSF1 and SCO ODT 3.0 have their own names for install. | |
| 27205 | 3194 # Don't use installbsd from OSF since it installs stuff as root |
| 3195 # by default. | |
| 3196 for ac_prog in ginstall scoinst install; do | |
| 40056 | 3197 if $as_executable_p "$ac_dir/$ac_prog"; then |
| 25897 | 3198 if test $ac_prog = install && |
| 40056 | 3199 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then |
| 25897 | 3200 # AIX install. It has an incompatible calling convention. |
| 3201 : | |
| 40056 | 3202 elif test $ac_prog = install && |
| 3203 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then | |
| 3204 # program-specific install script used by HP pwplus--don't use. | |
| 3205 : | |
| 25897 | 3206 else |
| 3207 ac_cv_path_install="$ac_dir/$ac_prog -c" | |
| 3208 break 2 | |
| 3209 fi | |
| 3210 fi | |
| 3211 done | |
| 3212 ;; | |
| 3213 esac | |
| 3214 done | |
| 3215 | |
| 3216 fi | |
| 3217 if test "${ac_cv_path_install+set}" = set; then | |
| 40056 | 3218 INSTALL=$ac_cv_path_install |
| 25897 | 3219 else |
| 3220 # As a last resort, use the slow shell script. We don't cache a | |
| 3221 # path for INSTALL within a source directory, because that will | |
| 3222 # break other packages using the cache if that directory is | |
| 3223 # removed, or if the path is relative. | |
| 40056 | 3224 INSTALL=$ac_install_sh |
| 3225 fi | |
| 3226 fi | |
| 40426 | 3227 echo "$as_me:3227: result: $INSTALL" >&5 |
| 40056 | 3228 echo "${ECHO_T}$INSTALL" >&6 |
| 25897 | 3229 |
| 3230 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
| 3231 # It thinks the first close brace ends the variable substitution. | |
| 3232 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
| 3233 | |
| 40056 | 3234 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 27205 | 3235 |
| 25897 | 3236 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 3237 | |
| 3238 for ac_prog in 'bison -y' byacc | |
| 3239 do | |
| 40056 | 3240 # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 25897 | 3241 set dummy $ac_prog; ac_word=$2 |
| 40426 | 3242 echo "$as_me:3242: checking for $ac_word" >&5 |
| 40056 | 3243 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3244 if test "${ac_cv_prog_YACC+set}" = set; then | |
| 3245 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
| 25897 | 3246 else |
| 3247 if test -n "$YACC"; then | |
| 3248 ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
| 3249 else | |
| 40056 | 3250 ac_save_IFS=$IFS; IFS=$ac_path_separator |
| 3251 ac_dummy="$PATH" | |
| 3252 for ac_dir in $ac_dummy; do | |
| 3253 IFS=$ac_save_IFS | |
| 3254 test -z "$ac_dir" && ac_dir=. | |
| 3255 $as_executable_p "$ac_dir/$ac_word" || continue | |
| 3256 ac_cv_prog_YACC="$ac_prog" | |
| 40426 | 3257 echo "$as_me:3257: found $ac_dir/$ac_word" >&5 |
| 40056 | 3258 break |
| 3259 done | |
| 3260 | |
| 3261 fi | |
| 3262 fi | |
| 3263 YACC=$ac_cv_prog_YACC | |
| 25897 | 3264 if test -n "$YACC"; then |
| 40426 | 3265 echo "$as_me:3265: result: $YACC" >&5 |
| 40056 | 3266 echo "${ECHO_T}$YACC" >&6 |
| 3267 else | |
| 40426 | 3268 echo "$as_me:3268: result: no" >&5 |
| 40056 | 3269 echo "${ECHO_T}no" >&6 |
| 3270 fi | |
| 3271 | |
| 3272 test -n "$YACC" && break | |
| 25897 | 3273 done |
| 3274 test -n "$YACC" || YACC="yacc" | |
| 3275 | |
| 28060 | 3276 if test "x$RANLIB" = x; then |
| 40056 | 3277 if test -n "$ac_tool_prefix"; then |
| 3278 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
| 3279 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
| 40426 | 3280 echo "$as_me:3280: checking for $ac_word" >&5 |
| 40056 | 3281 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3282 if test "${ac_cv_prog_RANLIB+set}" = set; then | |
| 3283 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
| 28060 | 3284 else |
| 3285 if test -n "$RANLIB"; then | |
| 3286 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
| 3287 else | |
| 40056 | 3288 ac_save_IFS=$IFS; IFS=$ac_path_separator |
| 3289 ac_dummy="$PATH" | |
| 3290 for ac_dir in $ac_dummy; do | |
| 3291 IFS=$ac_save_IFS | |
| 3292 test -z "$ac_dir" && ac_dir=. | |
| 3293 $as_executable_p "$ac_dir/$ac_word" || continue | |
| 3294 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
| 40426 | 3295 echo "$as_me:3295: found $ac_dir/$ac_word" >&5 |
| 40056 | 3296 break |
| 3297 done | |
| 3298 | |
| 3299 fi | |
| 3300 fi | |
| 3301 RANLIB=$ac_cv_prog_RANLIB | |
| 28060 | 3302 if test -n "$RANLIB"; then |
| 40426 | 3303 echo "$as_me:3303: result: $RANLIB" >&5 |
| 40056 | 3304 echo "${ECHO_T}$RANLIB" >&6 |
| 3305 else | |
| 40426 | 3306 echo "$as_me:3306: result: no" >&5 |
| 40056 | 3307 echo "${ECHO_T}no" >&6 |
| 3308 fi | |
| 3309 | |
| 3310 fi | |
| 3311 if test -z "$ac_cv_prog_RANLIB"; then | |
| 3312 ac_ct_RANLIB=$RANLIB | |
| 3313 # Extract the first word of "ranlib", so it can be a program name with args. | |
| 3314 set dummy ranlib; ac_word=$2 | |
| 40426 | 3315 echo "$as_me:3315: checking for $ac_word" >&5 |
| 40056 | 3316 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3317 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
| 3318 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
| 3319 else | |
| 3320 if test -n "$ac_ct_RANLIB"; then | |
| 3321 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
| 3322 else | |
| 3323 ac_save_IFS=$IFS; IFS=$ac_path_separator | |
| 3324 ac_dummy="$PATH" | |
| 3325 for ac_dir in $ac_dummy; do | |
| 3326 IFS=$ac_save_IFS | |
| 3327 test -z "$ac_dir" && ac_dir=. | |
| 3328 $as_executable_p "$ac_dir/$ac_word" || continue | |
| 3329 ac_cv_prog_ac_ct_RANLIB="ranlib" | |
| 40426 | 3330 echo "$as_me:3330: found $ac_dir/$ac_word" >&5 |
| 40056 | 3331 break |
| 3332 done | |
| 3333 | |
| 3334 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
| 3335 fi | |
| 3336 fi | |
| 3337 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
| 3338 if test -n "$ac_ct_RANLIB"; then | |
| 40426 | 3339 echo "$as_me:3339: result: $ac_ct_RANLIB" >&5 |
| 40056 | 3340 echo "${ECHO_T}$ac_ct_RANLIB" >&6 |
| 3341 else | |
| 40426 | 3342 echo "$as_me:3342: result: no" >&5 |
| 40056 | 3343 echo "${ECHO_T}no" >&6 |
| 3344 fi | |
| 3345 | |
| 3346 RANLIB=$ac_ct_RANLIB | |
| 3347 else | |
| 3348 RANLIB="$ac_cv_prog_RANLIB" | |
| 3349 fi | |
| 3350 | |
| 3351 fi | |
| 3352 | |
| 40426 | 3353 echo "$as_me:3353: checking for AIX" >&5 |
| 40056 | 3354 echo $ECHO_N "checking for AIX... $ECHO_C" >&6 |
| 3355 cat >conftest.$ac_ext <<_ACEOF | |
| 40426 | 3356 #line 3356 "configure" |
| 25897 | 3357 #include "confdefs.h" |
| 3358 #ifdef _AIX | |
| 3359 yes | |
| 3360 #endif | |
| 3361 | |
| 40056 | 3362 _ACEOF |
| 25897 | 3363 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 3364 egrep "yes" >/dev/null 2>&1; then | |
| 40426 | 3365 echo "$as_me:3365: result: yes" >&5 |
| 40056 | 3366 echo "${ECHO_T}yes" >&6 |
| 3367 cat >>confdefs.h <<\EOF | |
| 25897 | 3368 #define _ALL_SOURCE 1 |
| 3369 EOF | |
| 3370 | |
| 3371 else | |
| 40426 | 3372 echo "$as_me:3372: result: no" >&5 |
| 40056 | 3373 echo "${ECHO_T}no" >&6 |
| 25897 | 3374 fi |
| 3375 rm -f conftest* | |
| 3376 | |
| 30311 | 3377 #### Extract some information from the operating system and machine files. |
| 3378 | |
| 40426 | 3379 { echo "$as_me:3379: checking the machine- and system-dependent files to find out |
| 30311 | 3380 - which libraries the lib-src programs will want, and |
| 40056 | 3381 - whether the GNU malloc routines are usable..." >&5 |
| 3382 echo "$as_me: checking the machine- and system-dependent files to find out | |
| 30311 | 3383 - which libraries the lib-src programs will want, and |
| 40056 | 3384 - whether the GNU malloc routines are usable..." >&6;} |
| 30311 | 3385 |
| 3386 ### First figure out CFLAGS (which we use for running the compiler here) | |
| 3387 ### and REAL_CFLAGS (which we use for real compilation). | |
| 3388 ### The two are the same except on a few systems, where they are made | |
| 3389 ### different to work around various lossages. For example, | |
| 3390 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g | |
| 3391 ### as implying static linking. | |
| 3392 | |
| 3393 ### If the CFLAGS env var is specified, we use that value | |
| 3394 ### instead of the default. | |
| 3395 | |
| 3396 ### It's not important that this name contain the PID; you can't run | |
| 3397 ### two configures in the same directory and have anything work | |
| 3398 ### anyway. | |
| 3399 tempcname="conftest.c" | |
| 3400 | |
| 3401 echo ' | |
| 3402 #include "'${srcdir}'/src/'${opsysfile}'" | |
| 3403 #include "'${srcdir}'/src/'${machfile}'" | |
| 3404 #ifndef LIBS_MACHINE | |
| 3405 #define LIBS_MACHINE | |
| 3406 #endif | |
| 3407 #ifndef LIBS_SYSTEM | |
| 3408 #define LIBS_SYSTEM | |
| 3409 #endif | |
| 3410 #ifndef C_SWITCH_SYSTEM | |
| 3411 #define C_SWITCH_SYSTEM | |
| 3412 #endif | |
| 3413 #ifndef C_SWITCH_MACHINE | |
| 3414 #define C_SWITCH_MACHINE | |
| 3415 #endif | |
| 3416 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM | |
| 3417 configure___ c_switch_system=C_SWITCH_SYSTEM | |
| 3418 configure___ c_switch_machine=C_SWITCH_MACHINE | |
| 3419 | |
| 3420 #ifndef LIB_X11_LIB | |
| 3421 #define LIB_X11_LIB -lX11 | |
| 3422 #endif | |
| 3423 | |
| 3424 #ifndef LIBX11_MACHINE | |
| 3425 #define LIBX11_MACHINE | |
| 3426 #endif | |
| 3427 | |
| 3428 #ifndef LIBX11_SYSTEM | |
| 3429 #define LIBX11_SYSTEM | |
| 3430 #endif | |
| 3431 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM | |
| 3432 | |
| 3433 #ifdef UNEXEC | |
| 3434 configure___ unexec=UNEXEC | |
| 3435 #else | |
| 3436 configure___ unexec=unexec.o | |
| 3437 #endif | |
| 3438 | |
| 3439 #ifdef SYSTEM_MALLOC | |
| 3440 configure___ system_malloc=yes | |
| 3441 #else | |
| 3442 configure___ system_malloc=no | |
| 3443 #endif | |
| 3444 | |
| 31607 | 3445 #ifdef USE_MMAP_FOR_BUFFERS |
| 3446 configure___ use_mmap_for_buffers=yes | |
| 31417 | 3447 #else |
| 31607 | 3448 configure___ use_mmap_for_buffers=no |
| 31417 | 3449 #endif |
| 3450 | |
| 30311 | 3451 #ifndef C_DEBUG_SWITCH |
| 3452 #define C_DEBUG_SWITCH -g | |
| 3453 #endif | |
| 3454 | |
| 3455 #ifndef C_OPTIMIZE_SWITCH | |
| 3456 #ifdef __GNUC__ | |
| 3457 #define C_OPTIMIZE_SWITCH -O2 | |
| 3458 #else | |
| 3459 #define C_OPTIMIZE_SWITCH -O | |
| 3460 #endif | |
| 3461 #endif | |
| 3462 | |
| 3463 #ifndef LD_SWITCH_MACHINE | |
| 3464 #define LD_SWITCH_MACHINE | |
| 3465 #endif | |
| 3466 | |
| 3467 #ifndef LD_SWITCH_SYSTEM | |
| 3468 #define LD_SWITCH_SYSTEM | |
| 3469 #endif | |
| 3470 | |
| 3471 #ifndef LD_SWITCH_X_SITE_AUX | |
| 3472 #define LD_SWITCH_X_SITE_AUX | |
| 40056 | 3473 #endif |
| 30311 | 3474 |
| 3475 configure___ ld_switch_system=LD_SWITCH_SYSTEM | |
| 3476 configure___ ld_switch_machine=LD_SWITCH_MACHINE | |
| 3477 | |
| 3478 #ifdef THIS_IS_CONFIGURE | |
| 3479 | |
| 3480 /* Get the CFLAGS for tests in configure. */ | |
| 3481 #ifdef __GNUC__ | |
| 3482 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}' | |
| 3483 #else | |
| 3484 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}' | |
| 3485 #endif | |
| 3486 | |
| 3487 #else /* not THIS_IS_CONFIGURE */ | |
| 3488 | |
| 3489 /* Get the CFLAGS for real compilation. */ | |
| 3490 #ifdef __GNUC__ | |
| 3491 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}' | |
| 3492 #else | |
| 3493 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}' | |
| 3494 #endif | |
| 3495 | |
| 3496 #endif /* not THIS_IS_CONFIGURE */ | |
| 3497 ' > ${tempcname} | |
| 3498 | |
| 3499 # The value of CPP is a quoted variable reference, so we need to do this | |
| 3500 # to get its actual value... | |
| 3501 CPP=`eval "echo $CPP"` | |
| 3502 eval `${CPP} -Isrc ${tempcname} \ | |
| 3503 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'` | |
| 3504 if test "x$SPECIFIED_CFLAGS" = x; then | |
| 3505 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \ | |
| 3506 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'` | |
| 3507 else | |
| 3508 REAL_CFLAGS="$CFLAGS" | |
| 3509 fi | |
| 3510 rm ${tempcname} | |
| 3511 | |
| 3512 ac_link="$ac_link $ld_switch_machine $ld_switch_system" | |
| 3513 | |
| 3514 ### Make sure subsequent tests use flags consistent with the build flags. | |
| 3515 | |
| 3516 if test x"${OVERRIDE_CPPFLAGS}" != x; then | |
| 3517 CPPFLAGS="${OVERRIDE_CPPFLAGS}" | |
| 3518 else | |
| 3519 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS" | |
| 3520 fi | |
| 3521 | |
| 40056 | 3522 # Check whether --enable-largefile or --disable-largefile was given. |
| 30576 | 3523 if test "${enable_largefile+set}" = set; then |
| 3524 enableval="$enable_largefile" | |
| 40056 | 3525 |
| 3526 fi; | |
| 3527 if test "$enable_largefile" != no; then | |
| 3528 | |
| 40426 | 3529 echo "$as_me:3529: checking for special C compiler options needed for large files" >&5 |
| 40056 | 3530 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6 |
| 3531 if test "${ac_cv_sys_largefile_CC+set}" = set; then | |
| 3532 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
| 30576 | 3533 else |
| 3534 ac_cv_sys_largefile_CC=no | |
| 40056 | 3535 if test "$GCC" != yes; then |
| 3536 ac_save_CC=$CC | |
| 3537 while :; do | |
| 3538 # IRIX 6.2 and later do not support large files by default, | |
| 3539 # so use the C compiler's -n32 option if that helps. | |
| 3540 cat >conftest.$ac_ext <<_ACEOF | |
| 40426 | 3541 #line 3541 "configure" |
| 30576 | 3542 #include "confdefs.h" |
| 3543 #include <sys/types.h> | |
| 40056 | 3544 /* Check that off_t can represent 2**63 - 1 correctly. |
| 3545 We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
| 3546 since some C++ compilers masquerading as C compilers | |
| 3547 incorrectly reject 9223372036854775807. */ | |
| 3548 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
| 3549 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
| 3550 && LARGE_OFF_T % 2147483647 == 1) | |
| 3551 ? 1 : -1]; | |
| 3552 int | |
| 3553 main () | |
| 3554 { | |
| 3555 | |
| 3556 ; | |
| 3557 return 0; | |
| 3558 } | |
| 3559 _ACEOF | |
| 3560 rm -f conftest.$ac_objext | |
| 40426 | 3561 if { (eval echo "$as_me:3561: \"$ac_compile\"") >&5 |
| 40056 | 3562 (eval $ac_compile) 2>&5 |
| 3563 ac_status=$? | |
| 40426 | 3564 echo "$as_me:3564: \$? = $ac_status" >&5 |
| 40056 | 3565 (exit $ac_status); } && |
| 3566 { ac_try='test -s conftest.$ac_objext' | |
| 40426 | 3567 { (eval echo "$as_me:3567: \"$ac_try\"") >&5 |
| 3568 (eval $ac_try) 2>&5 | |
| 3569 ac_status=$? | |
| 3570 echo "$as_me:3570: \$? = $ac_status" >&5 | |
| 40056 | 3571 (exit $ac_status); }; }; then |
| 3572 break | |
| 3573 else | |
| 3574 echo "$as_me: failed program was:" >&5 | |
| 3575 cat conftest.$ac_ext >&5 | |
| 3576 fi | |
| 3577 rm -f conftest.$ac_objext | |
| 3578 CC="$CC -n32" | |
| 3579 rm -f conftest.$ac_objext | |
| 40426 | 3580 if { (eval echo "$as_me:3580: \"$ac_compile\"") >&5 |
| 40056 | 3581 (eval $ac_compile) 2>&5 |
| 3582 ac_status=$? | |
| 40426 | 3583 echo "$as_me:3583: \$? = $ac_status" >&5 |
| 40056 | 3584 (exit $ac_status); } && |
| 3585 { ac_try='test -s conftest.$ac_objext' | |
| 40426 | 3586 { (eval echo "$as_me:3586: \"$ac_try\"") >&5 |
| 3587 (eval $ac_try) 2>&5 | |
| 3588 ac_status=$? | |
| 3589 echo "$as_me:3589: \$? = $ac_status" >&5 | |
| 40056 | 3590 (exit $ac_status); }; }; then |
| 3591 ac_cv_sys_largefile_CC=' -n32'; break | |
| 3592 else | |
| 3593 echo "$as_me: failed program was:" >&5 | |
| 3594 cat conftest.$ac_ext >&5 | |
| 3595 fi | |
| 3596 rm -f conftest.$ac_objext | |
| 3597 break | |
| 3598 done | |
| 3599 CC=$ac_save_CC | |
| 3600 rm -f conftest.$ac_ext | |
| 3601 fi | |
| 3602 fi | |
| 40426 | 3603 echo "$as_me:3603: result: $ac_cv_sys_largefile_CC" >&5 |
| 40056 | 3604 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6 |
| 3605 if test "$ac_cv_sys_largefile_CC" != no; then | |
| 3606 CC=$CC$ac_cv_sys_largefile_CC | |
| 3607 fi | |
| 3608 | |
| 40426 | 3609 echo "$as_me:3609: checking for _FILE_OFFSET_BITS value needed for large files" >&5 |
| 40056 | 3610 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6 |
| 3611 if test "${ac_cv_sys_file_offset_bits+set}" = set; then | |
| 3612 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
| 3613 else | |
| 3614 while :; do | |
| 30576 | 3615 ac_cv_sys_file_offset_bits=no |
| 40056 | 3616 cat >conftest.$ac_ext <<_ACEOF |
| 40426 | 3617 #line 3617 "configure" |
| 30576 | 3618 #include "confdefs.h" |
| 3619 #include <sys/types.h> | |
| 40056 | 3620 /* Check that off_t can represent 2**63 - 1 correctly. |
| 3621 We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
| 3622 since some C++ compilers masquerading as C compilers | |
| 3623 incorrectly reject 9223372036854775807. */ | |
| 3624 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
| 3625 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
| 3626 && LARGE_OFF_T % 2147483647 == 1) | |
| 3627 ? 1 : -1]; | |
| 3628 int | |
| 3629 main () | |
| 3630 { | |
| 3631 | |
| 3632 ; | |
| 3633 return 0; | |
| 3634 } | |
| 3635 _ACEOF | |
| 3636 rm -f conftest.$ac_objext | |
| 40426 | 3637 if { (eval echo "$as_me:3637: \"$ac_compile\"") >&5 |
| 40056 | 3638 (eval $ac_compile) 2>&5 |
| 3639 ac_status=$? | |
| 40426 | 3640 echo "$as_me:3640: \$? = $ac_status" >&5 |
| 40056 | 3641 (exit $ac_status); } && |
| 3642 { ac_try='test -s conftest.$ac_objext' | |
| 40426 | 3643 { (eval echo "$as_me:3643: \"$ac_try\"") >&5 |
| 3644 (eval $ac_try) 2>&5 | |
| 3645 ac_status=$? | |
| 3646 echo "$as_me:3646: \$? = $ac_status" >&5 | |
| 40056 | 3647 (exit $ac_status); }; }; then |
| 3648 break | |
| 3649 else | |
| 3650 echo "$as_me: failed program was:" >&5 | |
| 3651 cat conftest.$ac_ext >&5 | |
| 3652 fi | |
| 3653 rm -f conftest.$ac_objext conftest.$ac_ext | |
| 3654 cat >conftest.$ac_ext <<_ACEOF | |
| 40426 | 3655 #line 3655 "configure" |
| 30576 | 3656 #include "confdefs.h" |
| 3657 #define _FILE_OFFSET_BITS 64 | |
| 3658 #include <sys/types.h> | |
| 40056 | 3659 /* Check that off_t can represent 2**63 - 1 correctly. |
| 3660 We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
| 3661 since some C++ compilers masquerading as C compilers | |
| 3662 incorrectly reject 9223372036854775807. */ | |
| 3663 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
| 3664 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
| 3665 && LARGE_OFF_T % 2147483647 == 1) | |
| 3666 ? 1 : -1]; | |
| 3667 int | |
| 3668 main () | |
| 3669 { | |
| 3670 | |
| 3671 ; | |
| 3672 return 0; | |
| 3673 } | |
| 3674 _ACEOF | |
| 3675 rm -f conftest.$ac_objext | |
| 40426 | 3676 if { (eval echo "$as_me:3676: \"$ac_compile\"") >&5 |
| 40056 | 3677 (eval $ac_compile) 2>&5 |
| 3678 ac_status=$? | |
| 40426 | 3679 echo "$as_me:3679: \$? = $ac_status" >&5 |
| 40056 | 3680 (exit $ac_status); } && |
| 3681 { ac_try='test -s conftest.$ac_objext' | |
| 40426 | 3682 { (eval echo "$as_me:3682: \"$ac_try\"") >&5 |
| 3683 (eval $ac_try) 2>&5 | |
| 3684 ac_status=$? | |
| 3685 echo "$as_me:3685: \$? = $ac_status" >&5 | |
| 40056 | 3686 (exit $ac_status); }; }; then |
| 3687 ac_cv_sys_file_offset_bits=64; break | |
| 3688 else | |
| 3689 echo "$as_me: failed program was:" >&5 | |
| 3690 cat conftest.$ac_ext >&5 | |
| 3691 fi | |
| 3692 rm -f conftest.$ac_objext conftest.$ac_ext | |
| 3693 break | |
| 3694 done | |
| 3695 fi | |
| 40426 | 3696 echo "$as_me:3696: result: $ac_cv_sys_file_offset_bits" >&5 |
| 40056 | 3697 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6 |
| 3698 if test "$ac_cv_sys_file_offset_bits" != no; then | |
| 3699 | |
| 3700 cat >>confdefs.h <<EOF | |
| 3701 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits | |
| 3702 EOF | |
| 3703 | |
| 30576 | 3704 fi |
| 3705 rm -f conftest* | |
| 40426 | 3706 echo "$as_me:3706: checking for _LARGE_FILES value needed for large files" >&5 |
| 40056 | 3707 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6 |
| 3708 if test "${ac_cv_sys_large_files+set}" = set; then | |
| 3709 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
| 3710 else | |
| 3711 while :; do | |
| 34431 | 3712 ac_cv_sys_large_files=no |
| 40056 | 3713 cat >conftest.$ac_ext <<_ACEOF |
| 40426 | 3714 #line 3714 "configure" |
| 40056 | 3715 #include "confdefs.h" |
| 3716 #include <sys/types.h> | |
| 3717 /* Check that off_t can represent 2**63 - 1 correctly. | |
| 3718 We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
| 3719 since some C++ compilers masquerading as C compilers | |
| 3720 incorrectly reject 9223372036854775807. */ | |
| 3721 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
| 3722 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
| 3723 && LARGE_OFF_T % 2147483647 == 1) | |
| 3724 ? 1 : -1]; | |
| 3725 int | |
| 3726 main () | |
| 3727 { | |
| 3728 | |
| 3729 ; | |
| 3730 return 0; | |
| 3731 } | |
| 3732 _ACEOF | |
| 3733 rm -f conftest.$ac_objext | |
| 40426 | 3734 if { (eval echo "$as_me:3734: \"$ac_compile\"") >&5 |
| 40056 | 3735 (eval $ac_compile) 2>&5 |
| 3736 ac_status=$? | |
| 40426 | 3737 echo "$as_me:3737: \$? = $ac_status" >&5 |
| 40056 | 3738 (exit $ac_status); } && |
| 3739 { ac_try='test -s conftest.$ac_objext' | |
| 40426 | 3740 { (eval echo "$as_me:3740: \"$ac_try\"") >&5 |
| 3741 (eval $ac_try) 2>&5 | |
| 3742 ac_status=$? | |
| 3743 echo "$as_me:3743: \$? = $ac_status" >&5 | |
| 40056 | 3744 (exit $ac_status); }; }; then |
| 3745 break | |
| 3746 else | |
| 3747 echo "$as_me: failed program was:" >&5 | |
| 3748 cat conftest.$ac_ext >&5 | |
| 3749 fi | |
| 3750 rm -f conftest.$ac_objext conftest.$ac_ext | |
| 3751 cat >conftest.$ac_ext <<_ACEOF | |
| 40426 | 3752 #line 3752 "configure" |
| 30576 | 3753 #include "confdefs.h" |
| 3754 #define _LARGE_FILES 1 | |
| 40056 | 3755 #include <sys/types.h> |
| 3756 /* Check that off_t can represent 2**63 - 1 correctly. | |
| 3757 We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
| 3758 since some C++ compilers masquerading as C compilers | |
| 3759 incorrectly reject 9223372036854775807. */ | |
| 3760 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
| 3761 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
| 3762 && LARGE_OFF_T % 2147483647 == 1) | |
| 3763 ? 1 : -1]; | |
| 3764 int | |
| 3765 main () | |
| 3766 { | |
| 3767 | |
| 3768 ; | |
| 3769 return 0; | |
| 3770 } | |
| 3771 _ACEOF | |
| 3772 rm -f conftest.$ac_objext | |
| 40426 | 3773 if { (eval echo "$as_me:3773: \"$ac_compile\"") >&5 |
| 40056 | 3774 (eval $ac_compile) 2>&5 |
| 3775 ac_status=$? | |
| 40426 | 3776 echo "$as_me:3776: \$? = $ac_status" >&5 |
| 40056 | 3777 (exit $ac_status); } && |
| 3778 { ac_try='test -s conftest.$ac_objext' | |
| 40426 | 3779 { (eval echo "$as_me:3779: \"$ac_try\"") >&5 |
| 3780 (eval $ac_try) 2>&5 | |
| 3781 ac_status=$? | |
| 3782 echo "$as_me:3782: \$? = $ac_status" >&5 | |
| 40056 | 3783 (exit $ac_status); }; }; then |
| 3784 ac_cv_sys_large_files=1; break | |
| 3785 else | |
| 3786 echo "$as_me: failed program was:" >&5 | |
| 3787 cat conftest.$ac_ext >&5 | |
| 3788 fi | |
| 3789 rm -f conftest.$ac_objext conftest.$ac_ext | |
| 3790 break | |
| 3791 done | |
| 3792 fi | |
| 40426 | 3793 echo "$as_me:3793: result: $ac_cv_sys_large_files" >&5 |
| 40056 | 3794 echo "${ECHO_T}$ac_cv_sys_large_files" >&6 |
| 3795 if test "$ac_cv_sys_large_files" != no; then | |
| 3796 | |
| 3797 cat >>confdefs.h <<EOF | |
| 3798 #define _LARGE_FILES $ac_cv_sys_large_files | |
| 3799 EOF | |
| 3800 | |
| 30576 | 3801 fi |
| 3802 rm -f conftest* | |
| 3803 fi | |
| 3804 | |
| 25897 | 3805 # Sound support for GNU/Linux and the free BSDs. |
| 40056 | 3806 |
| 3807 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h | |
| 25897 | 3808 do |
| 40056 | 3809 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 40426 | 3810 echo "$as_me:3810: checking for $ac_header" >&5 |
| 40056 | 3811 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 3812 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
| 3813 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
| 3814 else | |
| 3815 cat >conftest.$ac_ext <<_ACEOF | |
| 40426 | 3816 #line 3816 "configure" |
| 40056 | 3817 #include "confdefs.h" |
| 3818 #include <$ac_header> | |
| 3819 _ACEOF | |
| 40426 | 3820 if { (eval echo "$as_me:3820: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 40056 | 3821 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3822 ac_status=$? | |
| 3823 egrep -v '^ *\+' conftest.er1 >conftest.err | |
| 3824 rm -f conftest.er1 | |
| 3825 cat conftest.err >&5 | |
| 40426 | 3826 echo "$as_me:3826: \$? = $ac_status" >&5 |
| 40056 | 3827 (exit $ac_status); } >/dev/null; then |
| 3828 if test -s conftest.err; then | |
| 3829 ac_cpp_err=$ac_c_preproc_warn_flag | |
| 3830 else | |
| 3831 ac_cpp_err= | |
| 3832 fi | |
| 3833 else | |
| 3834 ac_cpp_err=yes | |
| 3835 fi | |
| 3836 if test -z "$ac_cpp_err"; then | |
| 3837 eval "$as_ac_Header=yes" | |
| 3838 else | |
| 3839 echo "$as_me: failed program was:" >&5 | |
| 25897 | 3840 cat conftest.$ac_ext >&5 |
| 40056 | 3841 eval "$as_ac_Header=no" |
| 3842 fi | |
| 3843 rm -f conftest.err conftest.$ac_ext | |
| 3844 fi | |
| 40426 | 3845 echo "$as_me:3845: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 40056 | 3846 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 3847 if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
| 3848 cat >>confdefs.h <<EOF | |
| 3849 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
| 3850 EOF | |
| 3851 | |
| 25897 | 3852 fi |
| 3853 done | |
| 3854 | |
|
30078
58ce7aad3fff
* configure.in: Check for <soundcard.h>. Look for ossaudio library, and set
Ken Raeburn <raeburn@raeburn.org>
parents:
30069
diff
changeset
|
3855 # Emulation library used on NetBSD. |
| 40426 | 3856 echo "$as_me:3856: checking for _oss_ioctl in -lossaudio" >&5 |
| 40056 | 3857 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6 |
| 3858 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then | |
| 3859 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
| 3860 else | |
| 3861 ac_check_lib_save_LIBS=$LIBS | |
|
30078
58ce7aad3fff
* configure.in: Check for <soundcard.h>. Look for ossaudio library, and set
Ken Raeburn <raeburn@raeburn.org>
parents:
30069
diff
changeset
|
3862 LIBS="-lossaudio $LIBS" |
| 40056 | 3863 cat >conftest.$ac_ext <<_ACEOF |
| 40426 | 3864 #line 3864 "configure" |
| 40056 | 3865 #include "confdefs.h" |
| 3866 | |
|
30078
58ce7aad3fff
* configure.in: Check for <soundcard.h>. Look for ossaudio library, and set
Ken Raeburn <raeburn@raeburn.org>
parents:
30069
diff
changeset
|
3867 /* Override any gcc2 internal prototype to avoid an error. */ |
| 40056 | 3868 #ifdef __cplusplus |
| 3869 extern "C" | |
| 3870 #endif | |
|
30078
58ce7aad3fff
* configure.in: Check for <soundcard.h>. Look for ossaudio library, and set
Ken Raeburn <raeburn@raeburn.org>
parents:
30069
diff
changeset
|
3871 /* We use char because int might match the return type of a gcc2 |
| 40056 | 3872 builtin and then its argument prototype would still apply. */ |
| 3873 char _oss_ioctl (); | |
| 3874 int | |
| 3875 main () | |
| 3876 { | |
| 3877 _oss_ioctl (); | |
| 3878 ; | |
| 3879 return 0; | |
| 3880 } | |
| 3881 _ACEOF | |
| 3882 rm -f conftest.$ac_objext conftest$ac_exeext | |
| 40426 | 3883 if { (eval echo "$as_me:3883: \"$ac_link\"") >&5 |
| 3884 (eval $ac_link) 2>&5 | |
| 3885 ac_status=$? | |
| 3886 echo "$as_me:3886: \$? = $ac_status" >&5 | |
| 40056 | 3887 (exit $ac_status); } && |
| 3888 { ac_try='test -s conftest$ac_exeext' | |
| 40426 | 3889 { (eval echo "$as_me:3889: \"$ac_try\"") >&5 |
| 3890 (eval $ac_try) 2>&5 | |
| 3891 ac_status=$? | |
| 3892 echo "$as_me:3892: \$? = $ac_status" >&5 | |
| 40056 | 3893 (exit $ac_status); }; }; then |
| 3894 ac_cv_lib_ossaudio__oss_ioctl=yes | |
| 3895 else | |
| 3896 echo "$as_me: failed program was:" >&5 | |
| 3897 cat conftest.$ac_ext >&5 | |
| 3898 ac_cv_lib_ossaudio__oss_ioctl=no | |
| 3899 fi | |
| 3900 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
| 3901 LIBS=$ac_check_lib_save_LIBS | |
| 3902 fi | |
| 40426 | 3903 echo "$as_me:3903: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5 |
| 40056 | 3904 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6 |
| 3905 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then | |
|
30078
58ce7aad3fff
* configure.in: Check for <soundcard.h>. Look for ossaudio library, and set
Ken Raeburn <raeburn@raeburn.org>
parents:
30069
diff
changeset
|
3906 LIBSOUND=-lossaudio |
|
58ce7aad3fff
* configure.in: Check for <soundcard.h>. Look for ossaudio library, and set
Ken Raeburn <raeburn@raeburn.org>
parents:
30069
diff
changeset
|
3907 else |
| 40056 | 3908 LIBSOUND= |
| 3909 fi | |
| 3910 | |
| 3911 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \ | |
|
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
3912 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \ |
| 31229 | 3913 termcap.h stdio_ext.h fcntl.h term.h strings.h |
| 25897 | 3914 do |
| 40056 | 3915 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 40426 | 3916 echo "$as_me:3916: checking for $ac_header" >&5 |
| 40056 | 3917 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 3918 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
| 3919 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
| 3920 else | |
| 3921 cat >conftest.$ac_ext <<_ACEOF | |
| 40426 | 3922 #line 3922 "configure" |
| 40056 | 3923 #include "confdefs.h" |
| 3924 #include <$ac_header> | |
| 3925 _ACEOF | |
| 40426 | 3926 if { (eval echo "$as_me:3926: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 40056 | 3927 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3928 ac_status=$? | |
| 3929 egrep -v '^ *\+' conftest.er1 >conftest.err | |
| 3930 rm -f conftest.er1 | |
| 3931 cat conftest.err >&5 | |
| 40426 | 3932 echo "$as_me:3932: \$? = $ac_status" >&5 |
| 40056 | 3933 (exit $ac_status); } >/dev/null; then |
| 3934 if test -s conftest.err; then | |
| 3935 ac_cpp_err=$ac_c_preproc_warn_flag | |
| 3936 else | |
| 3937 ac_cpp_err= | |
| 3938 fi | |
| 3939 else | |
| 3940 ac_cpp_err=yes | |
| 3941 fi | |
| 3942 if test -z "$ac_cpp_err"; then | |
| 3943 eval "$as_ac_Header=yes" | |
| 3944 else | |
| 3945 echo "$as_me: failed program was:" >&5 | |
| 25897 | 3946 cat conftest.$ac_ext >&5 |
| 40056 | 3947 eval "$as_ac_Header=no" |
| 3948 fi | |
| 3949 rm -f conftest.err conftest.$ac_ext | |
| 3950 fi | |
| 40426 | 3951 echo "$as_me:3951: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 40056 | 3952 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 3953 if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
| 3954 cat >>confdefs.h <<EOF | |
| 3955 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
| 3956 EOF | |
| 3957 | |
| 25897 | 3958 fi |
| 3959 done | |
| 3960 | |
| 40426 | 3961 echo "$as_me:3961: checking for ANSI C header files" >&5 |
| 40056 | 3962 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
| 3963 if test "${ac_cv_header_stdc+set}" = set; then | |
| 3964 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
| 3965 else | |
| 3966 cat >conftest.$ac_ext <<_ACEOF | |
| 40426 | 3967 #line 3967 "configure" |
| 25897 | 3968 #include "confdefs.h" |
| 3969 #include <stdlib.h> | |
| 3970 #include <stdarg.h> | |
| 3971 #include <string.h> | |
| 3972 #include <float.h> | |
| 40056 | 3973 |
| 3974 _ACEOF | |
| 40426 | 3975 if { (eval echo "$as_me:3975: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 40056 | 3976 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 3977 ac_status=$? | |
| 3978 egrep -v '^ *\+' conftest.er1 >conftest.err | |
| 3979 rm -f conftest.er1 | |
| 3980 cat conftest.err >&5 | |
| 40426 | 3981 echo "$as_me:3981: \$? = $ac_status" >&5 |
| 40056 | 3982 (exit $ac_status); } >/dev/null; then |
| 3983 if test -s conftest.err; then | |
| 3984 ac_cpp_err=$ac_c_preproc_warn_flag | |
| 3985 else | |
| 3986 ac_cpp_err= | |
| 3987 fi | |
| 3988 else | |
| 3989 ac_cpp_err=yes | |
| 3990 fi | |
| 3991 if test -z "$ac_cpp_err"; then | |
| 25897 | 3992 ac_cv_header_stdc=yes |
| 3993 else | |
| 40056 | 3994 echo "$as_me: failed program was:" >&5 |
| 25897 | 3995 cat conftest.$ac_ext >&5 |
| 3996 ac_cv_header_stdc=no | |
| 3997 fi | |
| 40056 | 3998 rm -f conftest.err conftest.$ac_ext |
| 25897 | 3999 |
| 4000 if test $ac_cv_header_stdc = yes; then | |
| 4001 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
| 40056 | 4002 cat >conftest.$ac_ext <<_ACEOF |
| 40426 | 4003 #line 4003 "configure" |
| 25897 | 4004 #include "confdefs.h" |
| 4005 #include <string.h> | |
| 40056 | 4006 |
| 4007 _ACEOF | |
| 25897 | 4008 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 4009 egrep "memchr" >/dev/null 2>&1; then | |
| 4010 : | |
| 4011 else | |
| 4012 ac_cv_header_stdc=no | |
| 4013 fi | |
| 4014 rm -f conftest* | |
| 4015 | |
| 4016 fi | |
| 4017 | |
| 4018 if test $ac_cv_header_stdc = yes; then | |
| 4019 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
| 40056 | 4020 cat >conftest.$ac_ext <<_ACEOF |
| 40426 | 4021 #line 4021 "configure" |
| 25897 | 4022 #include "confdefs.h" |
| 4023 #include <stdlib.h> | |
| 40056 | 4024 |
| 4025 _ACEOF | |
| 25897 | 4026 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 4027 egrep "free" >/dev/null 2>&1; then | |
| 4028 : | |
| 4029 else | |
| 4030 ac_cv_header_stdc=no | |
| 4031 fi | |
| 4032 rm -f conftest* | |
| 4033 | |
| 4034 fi | |
| 4035 | |
| 4036 if test $ac_cv_header_stdc = yes; then | |
| 4037 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
| 40056 | 4038 if test "$cross_compiling" = yes; then |
| 25897 | 4039 : |
| 4040 else | |
| 40056 | 4041 cat >conftest.$ac_ext <<_ACEOF |
| 40426 | 4042 #line 4042 "configure" |
| 25897 | 4043 #include "confdefs.h" |
| 4044 #include <ctype.h> | |
| 40056 | 4045 #if ((' ' & 0x0FF) == 0x020) |
| 4046 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
| 4047 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
| 4048 #else | |
| 4049 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \ | |
| 4050 || ('j' <= (c) && (c) <= 'r') \ | |
| 4051 || ('s' <= (c) && (c) <= 'z')) | |
| 4052 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
| 4053 #endif | |
| 4054 | |
| 25897 | 4055 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 40056 | 4056 int |
| 4057 main () | |
| 4058 { | |
| 4059 int i; | |
| 4060 for (i = 0; i < 256; i++) | |
| 4061 if (XOR (islower (i), ISLOWER (i)) | |
| 4062 || toupper (i) != TOUPPER (i)) | |
| 4063 exit(2); | |
| 4064 exit (0); | |
| 4065 } | |
| 4066 _ACEOF | |
| 4067 rm -f conftest$ac_exeext | |
| 40426 | 4068 if { (eval echo "$as_me:4068: \"$ac_link\"") >&5 |
| 4069 (eval $ac_link) 2>&5 | |
| 4070 ac_status=$? | |
| 4071 echo "$as_me:4071: \$? = $ac_status" >&5 | |
| 40056 | 4072 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 40426 | 4073 { (eval echo "$as_me:4073: \"$ac_try\"") >&5 |
| 4074 (eval $ac_try) 2>&5 | |
| 4075 ac_status=$? | |
| 4076 echo "$as_me:4076: \$? = $ac_status" >&5 | |
| 40056 | 4077 (exit $ac_status); }; }; then |
| 25897 | 4078 : |
| 4079 else | |
| 40056 | 4080 echo "$as_me: program exited with status $ac_status" >&5 |
| 4081 echo "$as_me: failed program was:" >&5 | |
| 4082 cat conftest.$ac_ext >&5 | |
| 4083 ac_cv_header_stdc=no | |
| 4084 fi | |
| 4085 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
| 4086 fi | |
| 4087 fi | |
| 4088 fi | |
| 40426 | 4089 echo "$as_me:4089: result: $ac_cv_header_stdc" >&5 |
| 40056 | 4090 echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
| 25897 | 4091 if test $ac_cv_header_stdc = yes; then |
| 40056 | 4092 |
| 4093 cat >>confdefs.h <<\EOF | |
| 25897 | 4094 #define STDC_HEADERS 1 |
| 4095 EOF | |
| 4096 | |
| 4097 fi | |
| 4098 | |
| 40426 | 4099 echo "$as_me:4099: checking whether time.h and sys/time.h may both be included" >&5 |
| 40056 | 4100 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 |
| 4101 if test "${ac_cv_header_time+set}" = set; then | |
| 4102 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
| 4103 else | |
| 4104 cat >conftest.$ac_ext <<_ACEOF | |
| 40426 | 4105 #line 4105 "configure" |
| 25897 | 4106 #include "confdefs.h" |
| 4107 #include <sys/types.h> | |
| 4108 #include <sys/time.h> | |
| 4109 #include <time.h> | |
| 40056 | 4110 |
| 4111 int | |
| 4112 main () | |
| 4113 { | |
| 4114 if ((struct tm *) 0) | |
| 4115 return 0; | |
| 4116 ; | |
| 4117 return 0; | |
| 4118 } | |
| 4119 _ACEOF | |
| 4120 rm -f conftest.$ac_objext | |
| 40426 | 4121 if { (eval echo "$as_me:4121: \"$ac_compile\"") >&5 |
| 40056 | 4122 (eval $ac_compile) 2>&5 |
| 4123 ac_status=$? | |
| 40426 | 4124 echo "$as_me:4124: \$? = $ac_status" >&5 |
| 40056 | 4125 (exit $ac_status); } && |
| 4126 { ac_try='test -s conftest.$ac_objext' | |
| 40426 | 4127 { (eval echo "$as_me:4127: \"$ac_try\"") >&5 |
| 4128 (eval $ac_try) 2>&5 | |
| 4129 ac_status=$? | |
| 4130 echo "$as_me:4130: \$? = $ac_status" >&5 | |
| 40056 | 4131 (exit $ac_status); }; }; then |
| 25897 | 4132 ac_cv_header_time=yes |
| 4133 else | |
| 40056 | 4134 echo "$as_me: failed program was:" >&5 |
| 4135 cat conftest.$ac_ext >&5 | |
| 4136 ac_cv_header_time=no | |
| 4137 fi | |
| 4138 rm -f conftest.$ac_objext conftest.$ac_ext | |
| 4139 fi | |
| 40426 | 4140 echo "$as_me:4140: result: $ac_cv_header_time" >&5 |
| 40056 | 4141 echo "${ECHO_T}$ac_cv_header_time" >&6 |
| 25897 | 4142 if test $ac_cv_header_time = yes; then |
| 40056 | 4143 |
| 4144 cat >>confdefs.h <<\EOF | |
| 25897 | 4145 #define TIME_WITH_SYS_TIME 1 |
| 4146 EOF | |
| 4147 | |
| 4148 fi | |
| 4149 | |
| 40426 | 4150 echo "$as_me:4150: checking for sys_siglist declaration in signal.h or unistd.h" >&5 |
| 40056 | 4151 echo $ECHO_N "checking for sys_siglist declaration in signal.h or unistd.h... $ECHO_C" >&6 |
| 4152 if test "${ac_cv_decl_sys_siglist+set}" = set; then | |
| 4153 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
| 4154 else | |
| 4155 cat >conftest.$ac_ext <<_ACEOF | |
| 40426 | 4156 #line 4156 "configure" |
| 25897 | 4157 #include "confdefs.h" |
| 4158 #include <sys/types.h> | |
| 4159 #include <signal.h> | |
| 4160 /* NetBSD declares sys_siglist in unistd.h. */ | |
| 40056 | 4161 #if HAVE_UNISTD_H |
| 4162 # include <unistd.h> | |
| 4163 #endif | |
| 4164 | |
| 4165 int | |
| 4166 main () | |
| 4167 { | |
| 25897 | 4168 char *msg = *(sys_siglist + 1); |
| 40056 | 4169 ; |
| 4170 return 0; | |
| 4171 } | |
| 4172 _ACEOF | |
| 4173 rm -f conftest.$ac_objext | |
| 40426 | 4174 if { (eval echo "$as_me:4174: \"$ac_compile\"") >&5 |
| 40056 | 4175 (eval $ac_compile) 2>&5 |
| 4176 ac_status=$? | |
| 40426 | 4177 echo "$as_me:4177: \$? = $ac_status" >&5 |
| 40056 | 4178 (exit $ac_status); } && |
| 4179 { ac_try='test -s conftest.$ac_objext' | |
| 40426 | 4180 { (eval echo "$as_me:4180: \"$ac_try\"") >&5 |
| 4181 (eval $ac_try) 2>&5 | |
| 4182 ac_status=$? | |
| 4183 echo "$as_me:4183: \$? = $ac_status" >&5 | |
| 40056 | 4184 (exit $ac_status); }; }; then |
| 25897 | 4185 ac_cv_decl_sys_siglist=yes |
| 4186 else | |
| 40056 | 4187 echo "$as_me: failed program was:" >&5 |
| 4188 cat conftest.$ac_ext >&5 | |
| 4189 ac_cv_decl_sys_siglist=no | |
| 4190 fi | |
| 4191 rm -f conftest.$ac_objext conftest.$ac_ext | |
| 4192 fi | |
| 40426 | 4193 echo "$as_me:4193: result: $ac_cv_decl_sys_siglist" >&5 |
| 40056 | 4194 echo "${ECHO_T}$ac_cv_decl_sys_siglist" >&6 |
| 25897 | 4195 if test $ac_cv_decl_sys_siglist = yes; then |
| 40056 | 4196 |
| 4197 cat >>confdefs.h <<\EOF | |
| 25897 | 4198 #define SYS_SIGLIST_DECLARED 1 |
| 4199 EOF | |
| 4200 | |
| 4201 fi | |
| 4202 | |
| 40426 | 4203 echo "$as_me:4203: checking for sys/wait.h that is POSIX.1 compatible" >&5 |
| 40056 | 4204 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6 |
| 4205 if test "${ac_cv_header_sys_wait_h+set}" = set; then | |
| 4206 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
| 4207 else | |
| 4208 cat >conftest.$ac_ext <<_ACEOF | |
| 40426 | 4209 #line 4209 "configure" |
| 30069 | 4210 #include "confdefs.h" |
| 4211 #include <sys/types.h> | |
| 4212 #include <sys/wait.h> | |
| 4213 #ifndef WEXITSTATUS | |
| 40056 | 4214 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) |
| 30069 | 4215 #endif |
| 4216 #ifndef WIFEXITED | |
| 40056 | 4217 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) |
| 4218 #endif | |
| 4219 | |
| 4220 int | |
| 4221 main () | |
| 4222 { | |
| 4223 int s; | |
| 4224 wait (&s); | |
| 4225 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; | |
| 4226 ; | |
| 4227 return 0; | |
| 4228 } | |
| 4229 _ACEOF | |
| 4230 rm -f conftest.$ac_objext | |
| 40426 | 4231 if { (eval echo "$as_me:4231: \"$ac_compile\"") >&5 |
| 40056 | 4232 (eval $ac_compile) 2>&5 |
| 4233 ac_status=$? | |
| 40426 | 4234 echo "$as_me:4234: \$? = $ac_status" >&5 |
| 40056 | 4235 (exit $ac_status); } && |
| 4236 { ac_try='test -s conftest.$ac_objext' | |
| 40426 | 4237 { (eval echo "$as_me:4237: \"$ac_try\"") >&5 |
| 4238 (eval $ac_try) 2>&5 | |
| 4239 ac_status=$? | |
| 4240 echo "$as_me:4240: \$? = $ac_status" >&5 | |
| 40056 | 4241 (exit $ac_status); }; }; then |
| 30069 | 4242 ac_cv_header_sys_wait_h=yes |
| 4243 else | |
| 40056 | 4244 echo "$as_me: failed program was:" >&5 |
| 4245 cat conftest.$ac_ext >&5 | |
| 4246 ac_cv_header_sys_wait_h=no | |
| 4247 fi | |
| 4248 rm -f conftest.$ac_objext conftest.$ac_ext | |
| 4249 fi | |
| 40426 | 4250 echo "$as_me:4250: result: $ac_cv_header_sys_wait_h" >&5 |
| 40056 | 4251 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6 |
| 30069 | 4252 if test $ac_cv_header_sys_wait_h = yes; then |
| 40056 | 4253 |
| 4254 cat >>confdefs.h <<\EOF | |
| 30069 | 4255 #define HAVE_SYS_WAIT_H 1 |
| 4256 EOF | |
| 4257 | |
| 4258 fi | |
| 4259 | |
| 40426 | 4260 echo "$as_me:4260: checking for struct utimbuf" >&5 |
| 40056 | 4261 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6 |
| 4262 if test "${emacs_cv_struct_utimbuf+set}" = set; then | |
| 4263 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
| 4264 else | |
| 4265 cat >conftest.$ac_ext <<_ACEOF | |
| 40426 | 4266 #line 4266 "configure" |
| 25897 | 4267 #include "confdefs.h" |
| 4268 #ifdef TIME_WITH_SYS_TIME | |
| 4269 #include <sys/time.h> | |
| 4270 #include <time.h> | |
| 4271 #else | |
| 4272 #ifdef HAVE_SYS_TIME_H | |
| 4273 #include <sys/time.h> | |
| 4274 #else | |
| 4275 #include <time.h> | |
| 4276 #endif | |
| 4277 #endif | |
| 4278 #ifdef HAVE_UTIME_H | |
| 4279 #include <utime.h> | |
| 4280 #endif | |
| 40056 | 4281 int |
| 4282 main () | |
| 4283 { | |
| 25897 | 4284 static struct utimbuf x; x.actime = x.modtime; |
| 40056 | 4285 ; |
| 4286 return 0; | |
| 4287 } | |
| 4288 _ACEOF | |
| 4289 rm -f conftest.$ac_objext | |
| 40426 | 4290 if { (eval echo "$as_me:4290: \"$ac_compile\"") >&5 |
| 40056 | 4291 (eval $ac_compile) 2>&5 |
| 4292 ac_status=$? | |
| 40426 | 4293 echo "$as_me:4293: \$? = $ac_status" >&5 |
| 40056 | 4294 (exit $ac_status); } && |
| 4295 { ac_try='test -s conftest.$ac_objext' | |
| 40426 | 4296 { (eval echo "$as_me:4296: \"$ac_try\"") >&5 |
| 4297 (eval $ac_try) 2>&5 | |
| 4298 ac_status=$? | |
| 4299 echo "$as_me:4299: \$? = $ac_status" >&5 | |
| 40056 | 4300 (exit $ac_status); }; }; then |
| 25897 | 4301 emacs_cv_struct_utimbuf=yes |
| 4302 else | |
| 40056 | 4303 echo "$as_me: failed program was:" >&5 |
| 4304 cat conftest.$ac_ext >&5 | |
| 4305 emacs_cv_struct_utimbuf=no | |
| 4306 fi | |
| 4307 rm -f conftest.$ac_objext conftest.$ac_ext | |
| 4308 fi | |
| 40426 | 4309 echo "$as_me:4309: result: $emacs_cv_struct_utimbuf" >&5 |
| 40056 | 4310 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6 |
| 25897 | 4311 if test $emacs_cv_struct_utimbuf = yes; then |
| 40056 | 4312 cat >>confdefs.h <<\EOF |
| 25897 | 4313 #define HAVE_STRUCT_UTIMBUF 1 |
| 4314 EOF | |
| 4315 | |
| 4316 fi | |
| 4317 | |
| 40426 | 4318 echo "$as_me:4318: checking return type of signal handlers" >&5 |
| 40056 | 4319 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6 |
| 4320 if test "${ac_cv_type_signal+set}" = set; then | |
| 4321 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
| 4322 else | |
| 4323 cat >conftest.$ac_ext <<_ACEOF | |
| 40426 | 4324 #line 4324 "configure" |
| 25897 | 4325 #include "confdefs.h" |
| 4326 #include <sys/types.h> | |
| 4327 #include <signal.h> | |
| 4328 #ifdef signal | |
| 40056 | 4329 # undef signal |
| 25897 | 4330 #endif |
| 4331 #ifdef __cplusplus | |
| 4332 extern "C" void (*signal (int, void (*)(int)))(int); | |
| 4333 #else | |
| 4334 void (*signal ()) (); | |
| 4335 #endif | |
| 4336 | |
| 40056 | 4337 int |
| 4338 main () | |
| 4339 { | |
| 25897 | 4340 int i; |
| 40056 | 4341 ; |
| 4342 return 0; | |
| 4343 } | |
| 4344 _ACEOF | |
| 4345 rm -f conftest.$ac_objext | |
| 40426 | 4346 if { (eval echo "$as_me:4346: \"$ac_compile\"") >&5 |
| 40056 | 4347 (eval $ac_compile) 2>&5 |
| 4348 ac_status=$? | |
| 40426 | 4349 echo "$as_me:4349: \$? = $ac_status" >&5 |
| 40056 | 4350 (exit $ac_status); } && |
| 4351 { ac_try='test -s conftest.$ac_objext' | |
| 40426 | 4352 { (eval echo "$as_me:4352: \"$ac_try\"") >&5 |
| 4353 (eval $ac_try) 2>&5 | |
| 4354 ac_status=$? | |
| 4355 echo "$as_me:4355: \$? = $ac_status" >&5 | |
| 40056 | 4356 (exit $ac_status); }; }; then |
| 25897 | 4357 ac_cv_type_signal=void |
| 4358 else | |
| 40056 | 4359 echo "$as_me: failed program was:" >&5 |
| 4360 cat conftest.$ac_ext >&5 | |
| 4361 ac_cv_type_signal=int | |
| 4362 fi | |
| 4363 rm -f conftest.$ac_objext conftest.$ac_ext | |
| 4364 fi | |
| 40426 | 4365 echo "$as_me:4365: result: $ac_cv_type_signal" >&5 |
| 40056 | 4366 echo "${ECHO_T}$ac_cv_type_signal" >&6 |
| 4367 | |
| 4368 cat >>confdefs.h <<EOF | |
| 25897 | 4369 #define RETSIGTYPE $ac_cv_type_signal |
| 4370 EOF | |
| 4371 | |
| 40426 | 4372 echo "$as_me:4372: checking for speed_t" >&5 |
| 40056 | 4373 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6 |
| 4374 if test "${emacs_cv_speed_t+set}" = set; then | |
| 4375 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
| 4376 else | |
| 4377 cat >conftest.$ac_ext <<_ACEOF | |
| 40426 | 4378 #line 4378 "configure" |
| 29254 | 4379 #include "confdefs.h" |
| 4380 #include <termios.h> | |
| 40056 | 4381 int |
| 4382 main () | |
| 4383 { | |
| 29254 | 4384 speed_t x = 1; |
| 40056 | 4385 ; |
| 4386 return 0; | |
| 4387 } | |
| 4388 _ACEOF | |
| 4389 rm -f conftest.$ac_objext | |
| 40426 | 4390 if { (eval echo "$as_me:4390: \"$ac_compile\"") >&5 |
| 40056 | 4391 (eval $ac_compile) 2>&5 |
| 4392 ac_status=$? | |
| 40426 | 4393 echo "$as_me:4393: \$? = $ac_status" >&5 |
| 40056 | 4394 (exit $ac_status); } && |
| 4395 { ac_try='test -s conftest.$ac_objext' | |
| 40426 | 4396 { (eval echo "$as_me:4396: \"$ac_try\"") >&5 |
| 4397 (eval $ac_try) 2>&5 | |
| 4398 ac_status=$? | |
| 4399 echo "$as_me:4399: \$? = $ac_status" >&5 | |
| 40056 | 4400 (exit $ac_status); }; }; then |
| 29254 | 4401 emacs_cv_speed_t=yes |
| 4402 else | |
| 40056 | 4403 echo "$as_me: failed program was:" >&5 |
| 4404 cat conftest.$ac_ext >&5 | |
| 4405 emacs_cv_speed_t=no | |
| 4406 fi | |
| 4407 rm -f conftest.$ac_objext conftest.$ac_ext | |
| 4408 fi | |
| 40426 | 4409 echo "$as_me:4409: result: $emacs_cv_speed_t" >&5 |
| 40056 | 4410 echo "${ECHO_T}$emacs_cv_speed_t" >&6 |
| 29254 | 4411 if test $emacs_cv_speed_t = yes; then |
| 40056 | 4412 cat >>confdefs.h <<\EOF |
| 29254 | 4413 #define HAVE_SPEED_T 1 |
| 4414 EOF | |
| 4415 | |
| 4416 fi | |
| 4417 | |
| 40426 | 4418 echo "$as_me:4418: checking for struct timeval" >&5 |
| 40056 | 4419 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6 |
| 4420 if test "${emacs_cv_struct_timeval+set}" = set; then | |
| 4421 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
| 4422 else | |
| 4423 cat >conftest.$ac_ext <<_ACEOF | |
| 40426 | 4424 #line 4424 "configure" |
| 25897 | 4425 #include "confdefs.h" |
| 4426 #ifdef TIME_WITH_SYS_TIME | |
| 4427 #include <sys/time.h> | |
| 4428 #include <time.h> | |
| 4429 #else | |
| 4430 #ifdef HAVE_SYS_TIME_H | |
| 4431 #include <sys/time.h> | |
| 4432 #else | |
| 4433 #include <time.h> | |
| 4434 #endif | |
| 4435 #endif | |
| 40056 | 4436 int |
| 4437 main () | |
| 4438 { | |
| 25897 | 4439 static struct timeval x; x.tv_sec = x.tv_usec; |
| 40056 | 4440 ; |
| 4441 return 0; | |
| 4442 } | |
| 4443 _ACEOF | |
| 4444 rm -f conftest.$ac_objext | |
| 40426 | 4445 if { (eval echo "$as_me:4445: \"$ac_compile\"") >&5 |
| 40056 | 4446 (eval $ac_compile) 2>&5 |
| 4447 ac_status=$? | |
| 40426 | 4448 echo "$as_me:4448: \$? = $ac_status" >&5 |
| 40056 | 4449 (exit $ac_status); } && |
| 4450 { ac_try='test -s conftest.$ac_objext' | |
| 40426 | 4451 { (eval echo "$as_me:4451: \"$ac_try\"") >&5 |
| 4452 (eval $ac_try) 2>&5 | |
| 4453 ac_status=$? | |
| 4454 echo "$as_me:4454: \$? = $ac_status" >&5 | |
| 40056 | 4455 (exit $ac_status); }; }; then |
| 25897 | 4456 emacs_cv_struct_timeval=yes |
| 4457 else | |
| 40056 | 4458 echo "$as_me: failed program was:" >&5 |
| 4459 cat conftest.$ac_ext >&5 | |
| 4460 emacs_cv_struct_timeval=no | |
| 4461 fi | |
| 4462 rm -f conftest.$ac_objext conftest.$ac_ext | |
| 4463 fi | |
| 40426 | 4464 echo "$as_me:4464: result: $emacs_cv_struct_timeval" >&5 |
| 40056 | 4465 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6 |
| 25897 | 4466 HAVE_TIMEVAL=$emacs_cv_struct_timeval |
| 4467 if test $emacs_cv_struct_timeval = yes; then | |
| 40056 | 4468 cat >>confdefs.h <<\EOF |
| 25897 | 4469 #define HAVE_TIMEVAL 1 |
| 4470 EOF | |
| 4471 | |
| 4472 fi | |
| 4473 | |
| 40426 | 4474 echo "$as_me:4474: checking for struct exception" >&5 |
| 40056 | 4475 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6 |
| 4476 if test "${emacs_cv_struct_exception+set}" = set; then | |
| 4477 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
| 4478 else | |
| 4479 cat >conftest.$ac_ext <<_ACEOF | |
| 40426 | 4480 #line 4480 "configure" |
| 29388 | 4481 #include "confdefs.h" |
| 4482 #include <math.h> | |
| 40056 | 4483 int |
| 4484 main () | |
| 4485 { | |
| 29388 | 4486 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1; |
| 40056 | 4487 ; |
| 4488 return 0; | |
| 4489 } | |
| 4490 _ACEOF | |
| 4491 rm -f conftest.$ac_objext | |
| 40426 | 4492 if { (eval echo "$as_me:4492: \"$ac_compile\"") >&5 |
| 40056 | 4493 (eval $ac_compile) 2>&5 |
| 4494 ac_status=$? | |
| 40426 | 4495 echo "$as_me:4495: \$? = $ac_status" >&5 |
| 40056 | 4496 (exit $ac_status); } && |
| 4497 { ac_try='test -s conftest.$ac_objext' | |
| 40426 | 4498 { (eval echo "$as_me:4498: \"$ac_try\"") >&5 |
| 4499 (eval $ac_try) 2>&5 | |
| 4500 ac_status=$? | |
| 4501 echo "$as_me:4501: \$? = $ac_status" >&5 | |
| 40056 | 4502 (exit $ac_status); }; }; then |
| 29388 | 4503 emacs_cv_struct_exception=yes |
| 4504 else | |
| 40056 | 4505 echo "$as_me: failed program was:" >&5 |
| 4506 cat conftest.$ac_ext >&5 | |
| 4507 emacs_cv_struct_exception=no | |
| 4508 fi | |
| 4509 rm -f conftest.$ac_objext conftest.$ac_ext | |
| 4510 fi | |
| 40426 | 4511 echo "$as_me:4511: result: $emacs_cv_struct_exception" >&5 |
| 40056 | 4512 echo "${ECHO_T}$emacs_cv_struct_exception" >&6 |
| 29388 | 4513 HAVE_EXCEPTION=$emacs_cv_struct_exception |
| 4514 if test $emacs_cv_struct_exception != yes; then | |
| 40056 | 4515 cat >>confdefs.h <<\EOF |
| 29388 | 4516 #define NO_MATHERR 1 |
| 4517 EOF | |
| 4518 | |
| 4519 fi | |
| 4520 | |
| 40426 | 4521 echo "$as_me:4521: checking whether struct tm is in sys/time.h or time.h" >&5 |
| 40056 | 4522 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6 |
| 4523 if test "${ac_cv_struct_tm+set}" = set; then | |
| 4524 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
| 4525 else | |
| 4526 cat >conftest.$ac_ext <<_ACEOF | |
| 40426 | 4527 #line 4527 "configure" |
| 25897 | 4528 #include "confdefs.h" |
| 4529 #include <sys/types.h> | |
| 4530 #include <time.h> | |
| 40056 | 4531 |
| 4532 int | |
| 4533 main () | |
| 4534 { | |
| 25897 | 4535 struct tm *tp; tp->tm_sec; |
| 40056 | 4536 ; |
| 4537 return 0; | |
| 4538 } | |
| 4539 _ACEOF | |
| 4540 rm -f conftest.$ac_objext | |
| 40426 | 4541 if { (eval echo "$as_me:4541: \"$ac_compile\"") >&5 |
| 40056 | 4542 (eval $ac_compile) 2>&5 |
| 4543 ac_status=$? | |
| 40426 | 4544 echo "$as_me:4544: \$? = $ac_status" >&5 |
| 40056 | 4545 (exit $ac_status); } && |
| 4546 { ac_try='test -s conftest.$ac_objext' | |
| 40426 | 4547 { (eval echo "$as_me:4547: \"$ac_try\"") >&5 |
| 4548 (eval $ac_try) 2>&5 | |
| 4549 ac_status=$? | |
| 4550 echo "$as_me:4550: \$? = $ac_status" >&5 | |
| 40056 | 4551 (exit $ac_status); }; }; then |
| 25897 | 4552 ac_cv_struct_tm=time.h |
| 4553 else | |
| 40056 | 4554 echo "$as_me: failed program was:" >&5 |
| 4555 cat conftest.$ac_ext >&5 | |
| 4556 ac_cv_struct_tm=sys/time.h | |
| 4557 fi | |
| 4558 rm -f conftest.$ac_objext conftest.$ac_ext | |
| 4559 fi | |
| 40426 | 4560 echo "$as_me:4560: result: $ac_cv_struct_tm" >&5 |
| 40056 | 4561 echo "${ECHO_T}$ac_cv_struct_tm" >&6 |
| 25897 | 4562 if test $ac_cv_struct_tm = sys/time.h; then |
| 40056 | 4563 |
| 4564 cat >>confdefs.h <<\EOF | |
| 25897 | 4565 #define TM_IN_SYS_TIME 1 |
| 4566 EOF | |
| 4567 | |
| 4568 fi | |
| 4569 | |
| 40426 | 4570 echo "$as_me:4570: checking for struct tm.tm_zone" >&5 |
| 40056 | 4571 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6 |
| 4572 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then | |
| 4573 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
| 4574 else | |
| 4575 cat >conftest.$ac_ext <<_ACEOF | |
| 40426 | 4576 #line 4576 "configure" |
| 25897 | 4577 #include "confdefs.h" |
| 4578 #include <sys/types.h> | |
| 4579 #include <$ac_cv_struct_tm> | |
| 40056 | 4580 |
| 4581 int | |
| 4582 main () | |
| 4583 { | |
| 4584 static struct tm ac_aggr; | |
| 4585 if (ac_aggr.tm_zone) | |
| 4586 return 0; | |
| 4587 ; | |
| 4588 return 0; | |
| 4589 } | |
| 4590 _ACEOF | |
| 4591 rm -f conftest.$ac_objext | |
| 40426 | 4592 if { (eval echo "$as_me:4592: \"$ac_compile\"") >&5 |
| 40056 | 4593 (eval $ac_compile) 2>&5 |
| 4594 ac_status=$? | |
| 40426 | 4595 echo "$as_me:4595: \$? = $ac_status" >&5 |
| 40056 | 4596 (exit $ac_status); } && |
| 4597 { ac_try='test -s conftest.$ac_objext' | |
| 40426 | 4598 { (eval echo "$as_me:4598: \"$ac_try\"") >&5 |
| 4599 (eval $ac_try) 2>&5 | |
| 4600 ac_status=$? | |
| 4601 echo "$as_me:4601: \$? = $ac_status" >&5 | |
| 40056 | 4602 (exit $ac_status); }; }; then |
| 4603 ac_cv_member_struct_tm_tm_zone=yes | |
| 4604 else | |
| 4605 echo "$as_me: failed program was:" >&5 | |
| 4606 cat conftest.$ac_ext >&5 | |
| 4607 ac_cv_member_struct_tm_tm_zone=no | |
| 4608 fi | |
| 4609 rm -f conftest.$ac_objext conftest.$ac_ext | |
| 4610 fi | |
| 40426 | 4611 echo "$as_me:4611: result: $ac_cv_member_struct_tm_tm_zone" >&5 |
| 40056 | 4612 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6 |
| 4613 if test $ac_cv_member_struct_tm_tm_zone = yes; then | |
| 4614 | |
| 4615 cat >>confdefs.h <<EOF | |
| 4616 #define HAVE_STRUCT_TM_TM_ZONE 1 | |
| 4617 EOF | |
| 4618 | |
| 4619 fi | |
| 4620 | |
| 4621 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then | |
| 4622 | |
| 4623 cat >>confdefs.h <<\EOF | |
| 25897 | 4624 #define HAVE_TM_ZONE 1 |
| 4625 EOF | |
| 4626 | |
| 4627 else | |
| 40426 | 4628 echo "$as_me:4628: checking for tzname" >&5 |
| 40056 | 4629 echo $ECHO_N "checking for tzname... $ECHO_C" >&6 |
| 4630 if test "${ac_cv_var_tzname+set}" = set; then | |
| 4631 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
| 4632 else | |
| 4633 cat >conftest.$ac_ext <<_ACEOF | |
| 40426 | 4634 #line 4634 "configure" |
| 25897 | 4635 #include "confdefs.h" |
| 4636 #include <time.h> | |
| 4637 #ifndef tzname /* For SGI. */ | |
| 4638 extern char *tzname[]; /* RS6000 and others reject char **tzname. */ | |
| 4639 #endif | |
| 40056 | 4640 |
| 4641 int | |
| 4642 main () | |
| 4643 { | |
| 25897 | 4644 atoi(*tzname); |
| 40056 | 4645 ; |
| 4646 return 0; | |
| 4647 } | |
| 4648 _ACEOF | |
| 4649 rm -f conftest.$ac_objext conftest$ac_exeext | |
| 40426 | 4650 if { (eval echo "$as_me:4650: \"$ac_link\"") >&5 |
| 4651 (eval $ac_link) 2>&5 | |
| 4652 ac_status=$? | |
| 4653 echo "$as_me:4653: \$? = $ac_status" >&5 | |
| 40056 | 4654 (exit $ac_status); } && |
| 4655 { ac_try='test -s conftest$ac_exeext' | |
| 40426 | 4656 { (eval echo "$as_me:4656: \"$ac_try\"") >&5 |
| 4657 (eval $ac_try) 2>&5 | |
| 4658 ac_status=$? | |
| 4659 echo "$as_me:4659: \$? = $ac_status" >&5 | |
| 40056 | 4660 (exit $ac_status); }; }; then |
| 25897 | 4661 ac_cv_var_tzname=yes |
| 4662 else | |
| 40056 | 4663 echo "$as_me: failed program was:" >&5 |
| 4664 cat conftest.$ac_ext >&5 | |
| 4665 ac_cv_var_tzname=no | |
| 4666 fi | |
| 4667 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
| 4668 fi | |
| 40426 | 4669 echo "$as_me:4669: result: $ac_cv_var_tzname" >&5 |
| 40056 | 4670 echo "${ECHO_T}$ac_cv_var_tzname" >&6 |
| 25897 | 4671 if test $ac_cv_var_tzname = yes; then |
| 40056 | 4672 |
| 4673 cat >>confdefs.h <<\EOF | |
| 25897 | 4674 #define HAVE_TZNAME 1 |
| 4675 EOF | |
| 4676 | |
| 4677 fi | |
| 4678 fi | |
| 4679 | |
| 40426 | 4680 echo "$as_me:4680: checking for tm_gmtoff in struct tm" >&5 |
| 40056 | 4681 echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6 |
| 4682 if test "${emacs_cv_tm_gmtoff+set}" = set; then | |
| 4683 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
| 4684 else | |
| 4685 cat >conftest.$ac_ext <<_ACEOF | |
| 40426 | 4686 #line 4686 "configure" |
|
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
4687 #include "confdefs.h" |
|
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
4688 #include <time.h> |
| 40056 | 4689 int |
| 4690 main () | |
| 4691 { | |
|
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
4692 struct tm t; t.tm_gmtoff = 0 |
| 40056 | 4693 ; |
| 4694 return 0; | |
| 4695 } | |
| 4696 _ACEOF | |
| 4697 rm -f conftest.$ac_objext conftest$ac_exeext | |
| 40426 | 4698 if { (eval echo "$as_me:4698: \"$ac_link\"") >&5 |
| 4699 (eval $ac_link) 2>&5 | |
| 4700 ac_status=$? | |
| 4701 echo "$as_me:4701: \$? = $ac_status" >&5 | |
| 40056 | 4702 (exit $ac_status); } && |
| 4703 { ac_try='test -s conftest$ac_exeext' | |
| 40426 | 4704 { (eval echo "$as_me:4704: \"$ac_try\"") >&5 |
| 4705 (eval $ac_try) 2>&5 | |
| 4706 ac_status=$? | |
| 4707 echo "$as_me:4707: \$? = $ac_status" >&5 | |
| 40056 | 4708 (exit $ac_status); }; }; then |
|
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
4709 emacs_cv_tm_gmtoff=yes |
|
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
4710 else |
| 40056 | 4711 echo "$as_me: failed program was:" >&5 |
| 4712 cat conftest.$ac_ext >&5 | |
| 4713 emacs_cv_tm_gmtoff=no | |
| 4714 fi | |
| 4715 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
| 4716 fi | |
| 40426 | 4717 echo "$as_me:4717: result: $emacs_cv_tm_gmtoff" >&5 |
| 40056 | 4718 echo "${ECHO_T}$emacs_cv_tm_gmtoff" >&6 |
|
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
4719 if test $emacs_cv_tm_gmtoff = yes; then |
| 40056 | 4720 cat >>confdefs.h <<\EOF |
|
26081
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
4721 #define HAVE_TM_GMTOFF 1 |
|
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
4722 EOF |
|
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
4723 |
|
bfa8d94330b6
Add support for large files. Merge glibc 2.1.2.
Paul Eggert <eggert@twinsun.com>
parents:
25994
diff
changeset
|
4724 fi |
| 25897 | 4725 |
| 40426 | 4726 echo "$as_me:4726: checking for $CC option to accept ANSI C" >&5 |
| 40056 | 4727 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
| 4728 if test "${ac_cv_prog_cc_stdc+set}" = set; then | |
| 4729 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
| 28060 | 4730 else |
| 4731 ac_cv_prog_cc_stdc=no | |
| 40056 | 4732 ac_save_CC=$CC |
| 4733 cat >conftest.$ac_ext <<_ACEOF | |
| 40426 | 4734 #line 4734 "configure" |
| 28060 | 4735 #include "confdefs.h" |
| 4736 #include <stdarg.h> | |
| 4737 #include <stdio.h> | |
| 4738 #include <sys/types.h> | |
| 4739 #include <sys/stat.h> | |
| 4740 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
| 4741 struct buf { int x; }; | |
| 4742 FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
| 4743 static char *e (p, i) | |
| 4744 char **p; | |
| 4745 int i; | |
| 4746 { | |
| 4747 return p[i]; | |
| 4748 } | |
| 4749 static char *f (char * (*g) (char **, int), char **p, ...) | |
| 4750 { | |
| 4751 char *s; | |
| 4752 va_list v; | |
| 4753 va_start (v,p); | |
| 4754 s = g (p, va_arg (v,int)); | |
| 4755 va_end (v); | |
| 4756 return s; | |
| 4757 } | |
| 4758 int test (int i, double x); | |
| 4759 struct s1 {int (*f) (int a);}; | |
| 4760 struct s2 {int (*f) (double a);}; | |
| 4761 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
| 4762 int argc; | |
| 4763 char **argv; | |
| 40056 | 4764 int |
| 4765 main () | |
| 4766 { | |
| 28060 | 4767 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 40056 | 4768 ; |
| 4769 return 0; | |
| 4770 } | |
| 4771 _ACEOF | |
| 4772 # Don't try gcc -ansi; that turns off useful extensions and | |
| 4773 # breaks some systems' header files. | |
| 4774 # AIX -qlanglvl=ansi | |
| 4775 # Ultrix and OSF/1 -std1 | |
| 4776 # HP-UX 10.20 and later -Ae | |
| 4777 # HP-UX older versions -Aa -D_HPUX_SOURCE | |
| 4778 # SVR4 -Xc -D__EXTENSIONS__ | |
| 4779 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
| 4780 do | |
| 4781 CC="$ac_save_CC $ac_arg" | |
| 4782 rm -f conftest.$ac_objext | |
| 40426 | 4783 if { (eval echo "$as_me:4783: \"$ac_compile\"") >&5 |
| 40056 | 4784 (eval $ac_compile) 2>&5 |
| 4785 ac_status=$? | |
| 40426 | 4786 echo "$as_me:4786: \$? = $ac_status" >&5 |
| 40056 | 4787 (exit $ac_status); } && |
| 4788 { ac_try='test -s conftest.$ac_objext' | |
| 40426 | 4789 { (eval echo "$as_me:4789: \"$ac_try\"") >&5 |
| 4790 (eval $ac_try) 2>&5 | |
| 4791 ac_status=$? | |
| 4792 echo "$as_me:4792: \$? = $ac_status" >&5 | |
| 40056 | 4793 (exit $ac_status); }; }; then |
| 4794 ac_cv_prog_cc_stdc=$ac_arg | |
| 4795 break | |
| 4796 else | |
| 4797 echo "$as_me: failed program was:" >&5 | |
| 4798 cat conftest.$ac_ext >&5 | |
| 4799 fi | |
| 4800 rm -f conftest.$ac_objext | |
| 28060 | 4801 done |
| 40056 | 4802 rm -f conftest.$ac_ext conftest.$ac_objext |
| 4803 CC=$ac_save_CC | |
| 28060 | 4804 |
| 4805 fi | |
| 4806 | |
| 4807 case "x$ac_cv_prog_cc_stdc" in | |
| 4808 x|xno) | |
| 40426 | 4809 echo "$as_me:4809: result: none needed" >&5 |
| 40056 | 4810 echo "${ECHO_T}none needed" >&6 ;; |
| 28060 | 4811 *) |
| 40426 | 4812 echo "$as_me:4812: result: $ac_cv_prog_cc_stdc" >&5 |
| 40056 | 4813 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
| 28060 | 4814 CC="$CC $ac_cv_prog_cc_stdc" ;; |
| 4815 esac | |
| 4816 | |
| 40426 | 4817 echo "$as_me:4817: checking for function prototypes" >&5 |
| 40056 | 4818 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6 |
| 28060 | 4819 if test "$ac_cv_prog_cc_stdc" != no; then |
| 40426 | 4820 echo "$as_me:4820: result: yes" >&5 |
| 40056 | 4821 echo "${ECHO_T}yes" >&6 |
| 4822 | |
| 4823 cat >>confdefs.h <<\EOF | |
| 28060 | 4824 #define PROTOTYPES 1 |
| 4825 EOF | |
| 4826 | |
| 4827 else | |
| 40426 | 4828 echo "$as_me:4828: result: no" >&5 |
| 40056 | 4829 echo "${ECHO_T}no" >&6 |
| 4830 fi | |
| 4831 | |
| 40426 | 4832 echo "$as_me:4832: checking for working volatile" >&5 |
| 40056 | 4833 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6 |
| 4834 if test "${ac_cv_c_volatile+set}" = set; then | |
| 4835 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
| 4836 else | |
| 4837 cat >conftest.$ac_ext <<_ACEOF | |
| 40426 | 4838 #line 4838 "configure" |
| 40056 | 4839 #include "confdefs.h" |
| 4840 | |
| 4841 int | |
| 4842 main () | |
| 4843 { | |
| 28060 | 4844 |
| 4845 volatile int x; | |
| 4846 int * volatile y; | |
| 40056 | 4847 ; |
| 4848 return 0; | |
| 4849 } | |
| 4850 _ACEOF | |
| 4851 rm -f conftest.$ac_objext | |
| 40426 | 4852 if { (eval echo "$as_me:4852: \"$ac_compile\"") >&5 |
| 40056 | 4853 (eval $ac_compile) 2>&5 |
| 4854 ac_status=$? | |
| 40426 | 4855 echo "$as_me:4855: \$? = $ac_status" >&5 |
| 40056 | 4856 (exit $ac_status); } && |
| 4857 { ac_try='test -s conftest.$ac_objext' | |
| 40426 | 4858 { (eval echo "$as_me:4858: \"$ac_try\"") >&5 |
| 4859 (eval $ac_try) 2>&5 | |
| 4860 ac_status=$? | |
| 4861 echo "$as_me:4861: \$? = $ac_status" >&5 | |
| 40056 | 4862 (exit $ac_status); }; }; then |
| 28060 | 4863 ac_cv_c_volatile=yes |
| 4864 else | |
| 40056 | 4865 echo "$as_me: failed program was:" >&5 |
| 4866 cat conftest.$ac_ext >&5 | |
| 4867 ac_cv_c_volatile=no | |
| 4868 fi | |
| 4869 rm -f conftest.$ac_objext conftest.$ac_ext | |
| 4870 fi | |
| 40426 | 4871 echo "$as_me:4871: result: $ac_cv_c_volatile" >&5 |
| 40056 | 4872 echo "${ECHO_T}$ac_cv_c_volatile" >&6 |
| 28060 | 4873 if test $ac_cv_c_volatile = no; then |
| 40056 | 4874 |
| 4875 cat >>confdefs.h <<\EOF | |
| 4876 #define volatile | |
| 4877 EOF | |
| 4878 | |
| 4879 fi | |
| 4880 | |
| 40426 | 4881 echo "$as_me:4881: checking for an ANSI C-conforming const" >&5 |
| 40056 | 4882 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 |
| 4883 if test "${ac_cv_c_const+set}" = set; then | |
| 4884 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
| 4885 else | |
| 4886 cat >conftest.$ac_ext <<_ACEOF | |
| 40426 | 4887 #line 4887 "configure" |
| 40056 | 4888 #include "confdefs.h" |
| 4889 | |
| 4890 int | |
| 4891 main () | |
| 4892 { | |
| 4893 /* FIXME: Include the comments suggested by Paul. */ | |
| 4894 #ifndef __cplusplus | |
| 4895 /* Ultrix mips cc rejects this. */ | |
| 4896 typedef int charset[2]; | |
| 4897 const charset x; | |
| 4898 /* SunOS 4.1.1 cc rejects this. */ | |
| 4899 char const *const *ccp; | |
| 4900 char **p; | |
| 4901 /* NEC SVR4.0.2 mips cc rejects this. */ | |
| 4902 struct point {int x, y;}; | |
| 4903 static struct point const zero = {0,0}; | |
| 4904 /* AIX XL C 1.02.0.0 rejects this. | |
| 4905 It does not let you subtract one const X* pointer from another in | |
| 4906 an arm of an if-expression whose if-part is not a constant | |
| 4907 expression */ | |
| 4908 const char *g = "string"; | |
| 4909 ccp = &g + (g ? g-g : 0); | |
| 4910 /* HPUX 7.0 cc rejects these. */ | |
| 4911 ++ccp; | |
| 4912 p = (char**) ccp; | |
| 4913 ccp = (char const *const *) p; | |
| 4914 { /* SCO 3.2v4 cc rejects this. */ | |
| 4915 char *t; | |
| 4916 char const *s = 0 ? (char *) 0 : (char const *) 0; | |
| 4917 | |
| 4918 *t++ = 0; | |
| 4919 } | |
| 4920 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
| 4921 int x[] = {25, 17}; | |
| 4922 const int *foo = &x[0]; | |
| 4923 ++foo; | |
| 4924 } | |
| 4925 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
| 4926 typedef const int *iptr; | |
| 4927 iptr p = 0; | |
| 4928 ++p; | |
| 4929 } | |
| 4930 { /* AIX XL C 1.02.0.0 rejects this saying | |
| 4931 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
| 4932 struct s { int j; const int *ap[3]; }; | |
| 4933 struct s *b; b->j = 5; | |
| 4934 } | |
| 4935 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
| 4936 const int foo = 10; | |
| 4937 } | |
| 4938 #endif | |
| 4939 | |
| 4940 ; | |
| 4941 return 0; | |
| 4942 } | |
| 4943 _ACEOF | |
| 4944 rm -f conftest.$ac_objext | |
| 40426 | 4945 if { (eval echo "$as_me:4945: \"$ac_compile\"") >&5 |
| 40056 | 4946 (eval $ac_compile) 2>&5 |
| 4947 ac_status=$? | |
| 40426 | 4948 echo "$as_me:4948: \$? = $ac_status" >&5 |
| 40056 | 4949 (exit $ac_status); } && |
| 4950 { ac_try='test -s conftest.$ac_objext' | |
| 40426 | 4951 { (eval echo "$as_me:4951: \"$ac_try\"") >&5 |
| 4952 (eval $ac_try) 2>&5 | |
| 4953 ac_status=$? | |
| 4954 echo "$as_me:4954: \$? = $ac_status" >&5 | |
| 40056 | 4955 (exit $ac_status); }; }; then |
| 25897 | 4956 ac_cv_c_const=yes |
| 4957 else | |
| 40056 | 4958 echo "$as_me: failed program was:" >&5 |
| 4959 cat conftest.$ac_ext >&5 | |
| 4960 ac_cv_c_const=no | |
| 4961 fi | |
| 4962 rm -f conftest.$ac_objext conftest.$ac_ext | |
| 4963 fi | |
| 40426 | 4964 echo "$as_me:4964: result: $ac_cv_c_const" >&5 |
| 40056 | 4965 echo "${ECHO_T}$ac_cv_c_const" >&6 |
| 25897 | 4966 if test $ac_cv_c_const = no; then |
| 40056 | 4967 |
| 4968 cat >>confdefs.h <<\EOF | |
| 4969 #define const | |
| 4970 EOF | |
| 4971 | |
| 4972 fi | |
| 4973 | |
| 40426 | 4974 echo "$as_me:4974: checking for void * support" >&5 |
| 40056 | 4975 echo $ECHO_N "checking for void * support... $ECHO_C" >&6 |
| 4976 if test "${emacs_cv_void_star+set}" = set; then | |
| 4977 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
| 4978 else | |
| 4979 cat >conftest.$ac_ext <<_ACEOF | |
| 40426 | 4980 #line 4980 "configure" |
| 40056 | 4981 #include "confdefs.h" |
| 4982 | |
| 4983 int | |
| 4984 main () | |
| 4985 { | |
| 28060 | 4986 void * foo; |
| 40056 | 4987 ; |
| 4988 return 0; | |
| 4989 } | |
| 4990 _ACEOF | |
| 4991 rm -f conftest.$ac_objext | |
| 40426 | 4992 if { (eval echo "$as_me:4992: \"$ac_compile\"") >&5 |
| 40056 | 4993 (eval $ac_compile) 2>&5 |
| 4994 ac_status=$? | |
| 40426 | 4995 echo "$as_me:4995: \$? = $ac_status" >&5 |
| 40056 | 4996 (exit $ac_status); } && |
| 4997 { ac_try='test -s conftest.$ac_objext' | |
| 40426 | 4998 { (eval echo "$as_me:4998: \"$ac_try\"") >&5 |
| 4999 (eval $ac_try) 2>&5 | |
| 5000 ac_status=$? | |
| 5001 echo "$as_me:5001: \$? = $ac_status" >&5 | |
| 40056 | 5002 (exit $ac_status); }; }; then |
| 28060 | 5003 emacs_cv_void_star=yes |
| 5004 else | |
| 40056 | 5005 echo "$as_me: failed program was:" >&5 |
| 5006 cat conftest.$ac_ext >&5 | |
| 5007 emacs_cv_void_star=no | |
| 5008 fi | |
| 5009 rm -f conftest.$ac_objext conftest.$ac_ext | |
| 5010 fi | |
| 40426 | 5011 echo "$as_me:5011: result: $emacs_cv_void_star" >&5 |
| 40056 | 5012 echo "${ECHO_T}$emacs_cv_void_star" >&6 |
| 28060 | 5013 if test $emacs_cv_void_star = yes; then |
| 40056 | 5014 cat >>confdefs.h <<\EOF |
| 28060 | 5015 #define POINTER_TYPE void |
| 5016 EOF | |
| 5017 | |
| 5018 else | |
| 40056 | 5019 cat >>confdefs.h <<\EOF |
| 28060 | 5020 #define POINTER_TYPE char |
| 5021 EOF | |
| 5022 | |
| 5023 fi | |
| 25897 | 5024 |
| 40426 | 5025 echo "$as_me:5025: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
| 40056 | 5026 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6 |
| 5027 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'` | |
| 5028 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then | |
| 5029 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
| 5030 else | |
| 5031 cat >conftest.make <<\EOF | |
| 25897 | 5032 all: |
| 5033 @echo 'ac_maketemp="${MAKE}"' | |
| 5034 EOF | |
| 5035 # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
| 40056 | 5036 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` |
| 25897 | 5037 if test -n "$ac_maketemp"; then |
| 5038 eval ac_cv_prog_make_${ac_make}_set=yes | |
| 5039 else | |
| 5040 eval ac_cv_prog_make_${ac_make}_set=no | |
| 5041 fi | |
| 40056 | 5042 rm -f conftest.make |
| 25897 | 5043 fi |
| 5044 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
| 40426 | 5045 echo "$as_me:5045: result: yes" >&5 |
| 40056 | 5046 echo "${ECHO_T}yes" >&6 |
| 25897 | 5047 SET_MAKE= |
| 5048 else | |
| 40426 | 5049 echo "$as_me:5049: result: no" >&5 |
| 40056 | 5050 echo "${ECHO_T}no" >&6 |
| 25897 | 5051 SET_MAKE="MAKE=${MAKE-make}" |
| 5052 fi | |
| 5053 | |
| 40426 | 5054 echo "$as_me:5054: checking for long file names" >&5 |
| 40056 | 5055 echo $ECHO_N "checking for long file names... $ECHO_C" >&6 |
| 5056 if test "${ac_cv_sys_long_file_names+set}" = set; then | |
| 5057 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
| 25897 | 5058 else |
| 5059 ac_cv_sys_long_file_names=yes | |
| 5060 # Test for long file names in all the places we know might matter: | |
| 5061 # . the current directory, where building will happen | |
| 5062 # $prefix/lib where we will be installing things | |
| 5063 # $exec_prefix/lib likewise | |
| 5064 # eval it to expand exec_prefix. | |
| 5065 # $TMPDIR if set, where it might want to write temporary files | |
| 5066 # if $TMPDIR is not set: | |
| 5067 # /tmp where it might want to write temporary files | |
| 5068 # /var/tmp likewise | |
| 5069 # /usr/tmp likewise | |
| 5070 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then | |
| 40056 | 5071 ac_tmpdirs=$TMPDIR |
| 25897 | 5072 else |
| 5073 ac_tmpdirs='/tmp /var/tmp /usr/tmp' | |
| 5074 fi | |
| 5075 for ac_dir in . $ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do | |
| 5076 test -d $ac_dir || continue | |
| 5077 test -w $ac_dir || continue # It is less confusing to not echo anything here. | |
| 40056 | 5078 ac_xdir=$ac_dir/cf$$ |
| 5079 (umask 077 && mkdir $ac_xdir 2>/dev/null) || continue | |
| 5080 ac_tf1=$ac_xdir/conftest9012345 | |
| 5081 ac_tf2=$ac_xdir/conftest9012346 | |
| 5082 (echo 1 >$ac_tf1) 2>/dev/null | |
| 5083 (echo 2 >$ac_tf2) 2>/dev/null | |
| 5084 ac_val=`cat $ac_tf1 2>/dev/null` | |
| 5085 if test ! -f $ac_tf1 || test "$ac_val" != 1; then | |
| 25897 | 5086 ac_cv_sys_long_file_names=no |
| 40056 | 5087 rm -rf $ac_xdir 2>/dev/null |
| 25897 | 5088 break |
| 5089 fi | |
| 40056 | 5090 rm -rf $ac_xdir 2>/dev/null |
| 25897 | 5091 done |
| 5092 fi | |
| 40426 | 5093 echo "$as_me:5093: result: $ac_cv_sys_long_file_names" >&5 |
| 40056 | 5094 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6 |
| 25897 | 5095 if test $ac_cv_sys_long_file_names = yes; then |
| 40056 | 5096 |
| 5097 cat >>confdefs.h <<\EOF | |
| 25897 | 5098 #define HAVE_LONG_FILE_NAMES 1 |
| 5099 EOF | |
| 5100 | |
| 5101 fi | |
| 5102 | |
| 5103 #### Choose a window system. | |
| 5104 | |
| 40426 | 5105 echo "$as_me:5105: checking for X" >&5 |
| 40056 | 5106 echo $ECHO_N "checking for X... $ECHO_C" >&6 |
| 25897 | 5107 |
| 5108 # Check whether --with-x or --without-x was given. | |
| 5109 if test "${with_x+set}" = set; then | |
| 5110 withval="$with_x" | |
| 40056 | 5111 |
| 5112 fi; | |
| 25897 | 5113 # $have_x is `yes', `no', `disabled', or empty when we do not yet know. |
| 5114 if test "x$with_x" = xno; then | |
| 5115 # The user explicitly disabled X. | |
| 5116 have_x=disabled | |
| 5117 else | |
| 5118 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then | |
| 5119 # Both variables are already set. | |
| 5120 have_x=yes | |
| 5121 else | |
| 40056 | 5122 if test "${ac_cv_have_x+set}" = set; then |
| 5123 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
| 25897 | 5124 else |
| 5125 # One or both of the vars are not set, and there is no cached value. | |
| 40056 | 5126 ac_x_includes=no ac_x_libraries=no |
| 5127 rm -fr conftest.dir | |
| 5128 if mkdir conftest.dir; then | |
| 5129 cd conftest.dir | |
| 25897 | 5130 # Make sure to not put "make" in the Imakefile rules, since we grep it out. |
| 40056 | 5131 cat >Imakefile <<'EOF' |
| 25897 | 5132 acfindx: |
| 5133 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' | |
| 5134 EOF | |
| 5135 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then | |
| 5136 # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
| 5137 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` | |
| 5138 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. | |
| 5139 for ac_extension in a so sl; do | |
| 5140 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && | |
| 40056 | 5141 test -f $ac_im_libdir/libX11.$ac_extension; then |
| 25897 | 5142 ac_im_usrlibdir=$ac_im_libdir; break |
| 5143 fi | |
| 5144 done | |
| 5145 # Screen out bogus values from the imake configuration. They are | |
| 5146 # bogus both because they are the default anyway, and because | |
| 5147 # using them would break gcc on systems where it needs fixed includes. | |
| 40056 | 5148 case $ac_im_incroot in |
| 25897 | 5149 /usr/include) ;; |
| 40056 | 5150 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; |
| 25897 | 5151 esac |
| 40056 | 5152 case $ac_im_usrlibdir in |
| 25897 | 5153 /usr/lib | /lib) ;; |
| 40056 | 5154 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; |
| 25897 | 5155 esac |
| 5156 fi | |
| 5157 cd .. | |
| 40056 | 5158 rm -fr conftest.dir |
| 5159 fi | |
| 5160 | |
| 5161 # Standard set of common directories for X headers. | |
| 5162 # Check X11 before X11Rn because it is often a symlink to the current release. | |
| 5163 ac_x_header_dirs=' | |
| 5164 /usr/X11/include | |
| 5165 /usr/X11R6/include | |
| 5166 /usr/X11R5/include | |
| 5167 /usr/X11R4/include | |
| 5168 | |
| 5169 /usr/include/X11 | |
| 5170 /usr/include/X11R6 | |
| 5171 /usr/include/X11R5 | |
| 5172 /usr/include/X11R4 | |
| 5173 | |
| 5174 /usr/local/X11/include | |
| 5175 /usr/local/X11R6/include | |
| 5176 /usr/local/X11R5/include | |
| 5177 /usr/local/X11R4/include | |
| 5178 | |
| 5179 /usr/local/include/X11 | |
| 5180 /usr/local/include/X11R6 | |
| 5181 /usr/local/include/X11R5 | |
| 5182 /usr/local/include/X11R4 | |
| 5183 | |
| 5184 /usr/X386/include | |
| 5185 /usr/x386/include | |
| 5186 /usr/XFree86/include/X11 | |
| 5187 | |
| 5188 /usr/include | |
| 5189 /usr/local/include | |
| 5190 /usr/unsupported/include | |
| 5191 /usr/athena/include | |
| 5192 /usr/local/x11r5/include | |
| 5193 /usr/lpp/Xamples/include | |
| 5194 | |
| 5195 /usr/openwin/include | |
| 5196 /usr/openwin/share/include' | |
| 5197 | |
| 5198 if test "$ac_x_includes" = no; then | |
| 5199 # Guess where to find include files, by looking for Intrinsic.h. | |
| 25897 | 5200 # First, try using that file with no special directory specified. |
| 40056 | 5201 cat >conftest.$ac_ext <<_ACEOF |
| 40426 | 5202 #line 5202 "configure" |
| 40056 | 5203 #include "confdefs.h" |
| 5204 #include <X11/Intrinsic.h> | |
| 5205 _ACEOF | |
| 40426 | 5206 if { (eval echo "$as_me:5206: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 40056 | 5207 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 5208 ac_status=$? | |
| 5209 egrep -v '^ *\+' conftest.er1 >conftest.err | |
| 5210 rm -f conftest.er1 | |
| 5211 cat conftest.err >&5 | |
| 40426 | 5212 echo "$as_me:5212: \$? = $ac_status" >&5 |
| 40056 | 5213 (exit $ac_status); } >/dev/null; then |
| 5214 if test -s conftest.err; then | |
| 5215 ac_cpp_err=$ac_c_preproc_warn_flag | |
| 5216 else | |
| 5217 ac_cpp_err= | |
| 5218 fi | |
| 5219 else | |
| 5220 ac_cpp_err=yes | |
| 5221 fi | |
| 5222 if test -z "$ac_cpp_err"; then | |
| 25897 | 5223 # We can compile using X headers with no special include directory. |
| 5224 ac_x_includes= | |
| 5225 else | |
| 40056 | 5226 echo "$as_me: failed program was:" >&5 |
| 25897 | 5227 cat conftest.$ac_ext >&5 |
| 40056 | 5228 for ac_dir in $ac_x_header_dirs; do |
| 5229 if test -r "$ac_dir/X11/Intrinsic.h"; then | |
| 5230 ac_x_includes=$ac_dir | |
| 5231 break | |
| 5232 fi | |
| 5233 done | |
| 5234 fi | |
| 5235 rm -f conftest.err conftest.$ac_ext | |
| 5236 fi # $ac_x_includes = no | |
| 5237 | |
| 5238 if test "$ac_x_libraries" = no; then | |
| 25897 | 5239 # Check for the libraries. |
| 5240 # See if we find them without any special options. | |
| 5241 # Don't add to $LIBS permanently. | |
| 40056 | 5242 ac_save_LIBS=$LIBS |
| 5243 LIBS="-lXt $LIBS" | |
| 5244 cat >conftest.$ac_ext <<_ACEOF | |
| 40426 | 5245 #line 5245 "configure" |
| 40056 | 5246 #include "confdefs.h" |
| 5247 #include <X11/Intrinsic.h> | |
| 5248 int | |
| 5249 main () | |
| 5250 { | |
| 5251 XtMalloc (0) | |
| 5252 ; | |
| 5253 return 0; | |
| 5254 } | |
| 5255 _ACEOF | |
| 5256 rm -f conftest.$ac_objext conftest$ac_exeext | |
| 40426 | 5257 if { (eval echo "$as_me:5257: \"$ac_link\"") >&5 |
| 5258 (eval $ac_link) 2>&5 | |
| 5259 ac_status=$? | |
| 5260 echo "$as_me:5260: \$? = $ac_status" >&5 | |
| 40056 | 5261 (exit $ac_status); } && |
| 5262 { ac_try='test -s conftest$ac_exeext' | |
| 40426 | 5263 { (eval echo "$as_me:5263: \"$ac_try\"") >&5 |
| 5264 (eval $ac_try) 2>&5 | |
| 5265 ac_status=$? | |
| 5266 echo "$as_me:5266: \$? = $ac_status" >&5 | |
| 40056 | 5267 (exit $ac_status); }; }; then |
| 5268 LIBS=$ac_save_LIBS | |
| 25897 | 5269 # We can link X programs with no special library path. |
| 5270 ac_x_libraries= | |
| 5271 else | |
| 40056 | 5272 echo "$as_me: failed program was:" >&5 |
| 5273 cat conftest.$ac_ext >&5 | |
| 5274 LIBS=$ac_save_LIBS | |
| 5275 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` | |
| 25897 | 5276 do |
| 40056 | 5277 # Don't even attempt the hair of trying to link an X program! |
| 25897 | 5278 for ac_extension in a so sl; do |
| 40056 | 5279 if test -r $ac_dir/libXt.$ac_extension; then |
| 25897 | 5280 ac_x_libraries=$ac_dir |
| 5281 break 2 | |
| 5282 fi | |
| 5283 done | |
| 5284 done | |
| 5285 fi | |
| 40056 | 5286 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 5287 fi # $ac_x_libraries = no | |
| 5288 | |
| 5289 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then | |
| 25897 | 5290 # Didn't find X anywhere. Cache the known absence of X. |
| 5291 ac_cv_have_x="have_x=no" | |
| 5292 else | |
| 5293 # Record where we found X for the cache. | |
| 5294 ac_cv_have_x="have_x=yes \ | |
| 5295 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" | |
| 5296 fi | |
| 5297 fi | |
| 40056 | 5298 |
| 25897 | 5299 fi |
| 5300 eval "$ac_cv_have_x" | |
| 5301 fi # $with_x != no | |
| 5302 | |
| 5303 if test "$have_x" != yes; then | |
| 40426 | 5304 echo "$as_me:5304: result: $have_x" >&5 |
| 40056 | 5305 echo "${ECHO_T}$have_x" >&6 |
| 25897 | 5306 no_x=yes |
| 5307 else | |
| 5308 # If each of the values was on the command line, it overrides each guess. | |
| 5309 test "x$x_includes" = xNONE && x_includes=$ac_x_includes | |
| 5310 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | |
| 5311 # Update the cache value to reflect the command line values. | |
| 5312 ac_cv_have_x="have_x=yes \ | |
| 5313 ac_x_includes=$x_includes ac_x_libraries=$x_libraries" | |
| 40426 | 5314 echo "$as_me:5314: result: libraries $x_libraries, headers $x_includes" >&5 |
| 40056 | 5315 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6 |
| 25897 | 5316 fi |
| 5317 | |
| 5318 if test "$no_x" = yes; then | |
| 5319 window_system=none | |
| 5320 else | |
| 5321 window_system=x11 | |
| 5322 fi | |
| 5323 | |
| 5324 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then | |
| 5325 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"` | |
| 5326 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"` | |
| 5327 x_default_search_path="" | |
| 5328 for x_library in `echo ${x_libraries} | sed -e "s/:/ /g"`; do | |
| 35666 | 5329 x_search_path="\ |
| 5330 ${x_library}/X11/%L/%T/%N%C%S:\ | |
| 5331 ${x_library}/X11/%l/%T/%N%C%S:\ | |
| 5332 ${x_library}/X11/%T/%N%C%S:\ | |
| 5333 ${x_library}/X11/%L/%T/%N%S:\ | |
| 5334 ${x_library}/X11/%l/%T/%N%S:\ | |
| 5335 ${x_library}/X11/%T/%N%S" | |
| 25897 | 5336 if test x"${x_default_search_path}" = x; then |
| 5337 x_default_search_path=${x_search_path} | |
| 5338 else | |
| 5339 x_default_search_path="${x_search_path}:${x_default_search_path}" | |
| 5340 fi | |
| 5341 done | |
| 5342 fi | |
| 5343 if test "${x_includes}" != NONE && test -n "${x_includes}"; then | |
| 5344 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"` | |
| 5345 fi | |
| 5346 | |
| 5347 if test x"${x_includes}" = x; then | |
| 5348 bitmapdir=/usr/include/X11/bitmaps | |
| 5349 else | |
| 5350 # accumulate include directories that have X11 bitmap subdirectories | |
| 5351 bmd_acc="dummyval" | |
| 5352 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do | |
| 5353 if test -d "${bmd}/X11/bitmaps"; then | |
| 5354 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps" | |
| 26502 | 5355 fi |
| 5356 if test -d "${bmd}/bitmaps"; then | |
| 25897 | 5357 bmd_acc="${bmd_acc}:${bmd}/bitmaps" |
| 5358 fi | |
| 5359 done | |
| 5360 if test ${bmd_acc} != "dummyval"; then | |
| 5361 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"` | |
| 5362 fi | |
| 5363 fi | |
| 5364 | |
| 5365 case "${window_system}" in | |
| 5366 x11 ) | |
| 5367 HAVE_X_WINDOWS=yes | |
| 5368 HAVE_X11=yes | |
| 5369 case "${with_x_toolkit}" in | |
| 5370 athena | lucid ) USE_X_TOOLKIT=LUCID ;; | |
| 5371 motif ) USE_X_TOOLKIT=MOTIF ;; | |
| 5372 no ) USE_X_TOOLKIT=none ;; | |
| 5373 * ) USE_X_TOOLKIT=maybe ;; | |
| 5374 esac | |
| 5375 ;; | |
| 5376 none ) | |
| 5377 HAVE_X_WINDOWS=no | |
| 5378 HAVE_X11=no | |
| 5379 USE_X_TOOLKIT=none | |
| 5380 ;; | |
| 5381 esac | |
| 5382 | |
| 5383 ### If we're using X11, we should use the X menu package. | |
| 5384 HAVE_MENUS=no | |
| 5385 case ${HAVE_X11} in | |
| 5386 yes ) HAVE_MENUS=yes ;; | |
| 5387 esac | |
| 40056 | 5388 |
| 25897 | 5389 if test "${opsys}" = "hpux9"; then |
| 5390 case "${x_libraries}" in | |
| 5391 *X11R4* ) | |
| 5392 opsysfile="s/hpux9-x11r4.h" | |
| 5393 ;; | |
| 5394 esac | |
| 5395 fi | |
| 5396 | |
| 5397 if test "${opsys}" = "hpux9shr"; then | |
| 5398 case "${x_libraries}" in | |
| 5399 *X11R4* ) | |
| 5400 opsysfile="s/hpux9shxr4.h" | |
| 5401 ;; | |
| 5402 esac | |
| 5403 fi | |
| 5404 | |
| 5405 ### Compute the unexec source name from the object name. | |
| 5406 UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`" | |
| 5407 | |
| 5408 # Do the opsystem or machine files prohibit the use of the GNU malloc? | |
| 5409 # Assume not, until told otherwise. | |
| 5410 GNU_MALLOC=yes | |
| 5411 doug_lea_malloc=yes | |
| 40426 | 5412 echo "$as_me:5412: checking for malloc_get_state" >&5 |
| 40056 | 5413 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6 |
| 5414 if test "${ac_cv_func_malloc_get_state+set}" = set; then | |
| 5415 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
| 5416 else | |
| 5417 cat >conftest.$ac_ext <<_ACEOF | |
| 40426 | 5418 #line 5418 "configure" |
| 25897 | 5419 #include "confdefs.h" |
| 5420 /* System header to define __stub macros and hopefully few prototypes, | |
| 40056 | 5421 which can conflict with char malloc_get_state (); below. */ |
| 25897 | 5422 #include <assert.h> |
| 5423 /* Override any gcc2 internal prototype to avoid an error. */ | |
| 40056 | 5424 #ifdef __cplusplus |
| 5425 extern "C" | |
| 5426 #endif | |
| 25897 | 5427 /* We use char because int might match the return type of a gcc2 |
| 40056 | 5428 builtin and then its argument prototype would still apply. */ |
| 5429 char malloc_get_state (); | |
| 5430 char (*f) (); | |
| 5431 | |
| 5432 int | |
| 5433 main () | |
| 5434 { | |
| 25897 | 5435 /* The GNU C library defines this for functions which it implements |
| 5436 to always fail with ENOSYS. Some functions are actually named | |
| 5437 something starting with __ and the normal name is an alias. */ | |
| 5438 #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state) | |
| 5439 choke me | |
| 5440 #else | |
| 40056 | 5441 f = malloc_get_state; |
| 5442 #endif | |
| 5443 | |
| 5444 ; | |
| 5445 return 0; | |
| 5446 } | |
| 5447 _ACEOF | |
| 5448 rm -f conftest.$ac_objext conftest$ac_exeext | |
| 40426 | 5449 if { (eval echo "$as_me:5449: \"$ac_link\"") >&5 |
| 5450 (eval $ac_link) 2>&5 | |
| 5451 ac_status=$? | |
| 5452 echo "$as_me:5452: \$? = $ac_status" >&5 | |
| 40056 | 5453 (exit $ac_status); } && |
| 5454 { ac_try='test -s conftest$ac_exeext' | |
| 40426 | 5455 { (eval echo "$as_me:5455: \"$ac_try\"") >&5 |
| 5456 (eval $ac_try) 2>&5 | |
| 5457 ac_status=$? | |
| 5458 echo "$as_me:5458: \$? = $ac_status" >&5 | |
| 40056 | 5459 (exit $ac_status); }; }; then |
| 5460 ac_cv_func_malloc_get_state=yes | |
| 5461 else | |
| 5462 echo "$as_me: failed program was:" >&5 | |
| 5463 cat conftest.$ac_ext >&5 | |
| 5464 ac_cv_func_malloc_get_state=no | |
| 5465 fi | |
| 5466 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
| 5467 fi | |
| 40426 | 5468 echo "$as_me:5468: result: $ac_cv_func_malloc_get_state" >&5 |
| 40056 | 5469 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6 |
| 5470 if test $ac_cv_func_malloc_get_state = yes; then | |
| 25897 | 5471 : |
| 5472 else | |
| 40056 | 5473 doug_lea_malloc=no |
| 5474 fi | |
| 5475 | |
| 40426 | 5476 echo "$as_me:5476: checking for malloc_set_state" >&5 |
| 40056 | 5477 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6 |
| 5478 if test "${ac_cv_func_malloc_set_state+set}" = set; then | |
| 5479 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
| 5480 else | |
| 5481 cat >conftest.$ac_ext <<_ACEOF | |
| 40426 | 5482 #line 5482 "configure" |
| 25897 | 5483 #include "confdefs.h" |
| 5484 /* System header to define __stub macros and hopefully few prototypes, | |
| 40056 | 5485 which can conflict with char malloc_set_state (); below. */ |
| 25897 | 5486 #include <assert.h> |
| 5487 /* Override any gcc2 internal prototype to avoid an error. */ | |
| 40056 | 5488 #ifdef __cplusplus |
| 5489 extern "C" | |
| 5490 #endif | |
| 25897 | 5491 /* We use char because int might match the return type of a gcc2 |
| 40056 | 5492 builtin and then its argument prototype would still apply. */ |
| 5493 char malloc_set_state (); | |
| 5494 char (*f) (); | |
| 5495 | |
| 5496 int | |
| 5497 main () | |
| 5498 { | |
| 25897 | 5499 /* The GNU C library defines this for functions which it implements |
| 5500 to always fail with ENOSYS. Some functions are actually named | |
| 5501 something starting with __ and the normal name is an alias. */ | |
| 5502 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state) | |
| 5503 choke me | |
| 5504 #else | |
| 40056 | 5505 f = malloc_set_state; |
| 5506 #endif | |
| 5507 | |
| 5508 ; | |
| 5509 return 0; | |
| 5510 } | |
| 5511 _ACEOF | |
| 5512 rm -f conftest.$ac_objext conftest$ac_exeext | |
| 40426 | 5513 if { (eval echo "$as_me:5513: \"$ac_link\"") >&5 |
| 5514 (eval $ac_link) 2>&5 | |
| 5515 ac_status=$? | |
| 5516 echo "$as_me:5516: \$? = $ac_status" >&5 | |
| 40056 | 5517 (exit $ac_status); } && |
| 5518 { ac_try='test -s conftest$ac_exeext' | |
| 40426 | 5519 { (eval echo "$as_me:5519: \"$ac_try\"") >&5 |
| 5520 (eval $ac_try) 2>&5 | |
| 5521 ac_status=$? | |
| 5522 echo "$as_me:5522: \$? = $ac_status" >&5 | |
| 40056 | 5523 (exit $ac_status); }; }; then |
| 5524 ac_cv_func_malloc_set_state=yes | |
| 5525 else | |
| 5526 echo "$as_me: failed program was:" >&5 | |
| 5527 cat conftest.$ac_ext >&5 | |
| 5528 ac_cv_func_malloc_set_state=no | |
| 5529 fi | |
| 5530 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
| 5531 fi | |
| 40426 | 5532 echo "$as_me:5532: result: $ac_cv_func_malloc_set_state" >&5 |
| 40056 | 5533 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6 |
| 5534 if test $ac_cv_func_malloc_set_state = yes; then | |
| 25897 | 5535 : |
| 5536 else | |
| 40056 | 5537 doug_lea_malloc=no |
| 5538 fi | |
| 5539 | |
| 40426 | 5540 echo "$as_me:5540: checking whether __after_morecore_hook exists" >&5 |
| 40056 | 5541 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6 |
| 5542 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then | |
| 5543 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
| 5544 else | |
| 5545 cat >conftest.$ac_ext <<_ACEOF | |
| 40426 | 5546 #line 5546 "configure" |
| 25897 | 5547 #include "confdefs.h" |
| 5548 extern void (* __after_morecore_hook)(); | |
| 40056 | 5549 int |
| 5550 main () | |
| 5551 { | |
| 25897 | 5552 __after_morecore_hook = 0 |
| 40056 | 5553 ; |
| 5554 return 0; | |
| 5555 } | |
| 5556 _ACEOF | |
| 5557 rm -f conftest.$ac_objext conftest$ac_exeext | |
| 40426 | 5558 if { (eval echo "$as_me:5558: \"$ac_link\"") >&5 |
| 5559 (eval $ac_link) 2>&5 | |
| 5560 ac_status=$? | |
| 5561 echo "$as_me:5561: \$? = $ac_status" >&5 | |
| 40056 | 5562 (exit $ac_status); } && |
| 5563 { ac_try='test -s conftest$ac_exeext' | |
| 40426 | 5564 { (eval echo "$as_me:5564: \"$ac_try\"") >&5 |
| 5565 (eval $ac_try) 2>&5 | |
| 5566 ac_status=$? | |
| 5567 echo "$as_me:5567: \$? = $ac_status" >&5 | |
| 40056 | 5568 (exit $ac_status); }; }; then |
| 25897 | 5569 emacs_cv_var___after_morecore_hook=yes |
| 5570 else | |
| 40056 | 5571 echo "$as_me: failed program was:" >&5 |
| 5572 cat conftest.$ac_ext >&5 | |
| 5573 emacs_cv_var___after_morecore_hook=no | |
| 5574 fi | |
| 5575 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
| 5576 fi | |
| 40426 | 5577 echo "$as_me:5577: result: $emacs_cv_var___after_morecore_hook" >&5 |
| 40056 | 5578 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6 |
| 25897 | 5579 if test $emacs_cv_var___after_morecore_hook = no; then |
| 5580 doug_lea_malloc=no | |
| 5581 fi | |
| 5582 if test "${system_malloc}" = "yes"; then | |
| 5583 GNU_MALLOC=no | |
| 5584 GNU_MALLOC_reason=" | |
| 5585 (The GNU allocators don't work with this system configuration.)" | |
| 5586 fi | |
| 5587 if test "$doug_lea_malloc" = "yes" ; then | |
| 5588 if test "$GNU_MALLOC" = yes ; then | |
| 5589 GNU_MALLOC_reason=" | |
| 5590 (Using Doug Lea's new malloc from the GNU C Library.)" | |
| 5591 fi | |
| 40056 | 5592 cat >>confdefs.h <<\EOF |
| 25897 | 5593 #define DOUG_LEA_MALLOC 1 |
| 5594 EOF | |
| 5595 | |
| 5596 fi | |
| 5597 | |
| 5598 if test x"${REL_ALLOC}" = x; then | |
| 5599 REL_ALLOC=${GNU_MALLOC} | |
| 5600 fi | |
| 5601 | |
| 40056 | 5602 # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 5603 | |
| 5604 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
| 5605 inttypes.h stdint.h unistd.h | |
| 31417 | 5606 do |
| 40056 | 5607 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 40426 | 5608 echo "$as_me:5608: checking for $ac_header" >&5 |
| 40056 | 5609 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 5610 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
| 5611 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
| 5612 else | |
| 5613 cat >conftest.$ac_ext <<_ACEOF | |
| 40426 | 5614 #line 5614 "configure" |
| 40056 | 5615 #include "confdefs.h" |
| 5616 $ac_includes_default | |
| 5617 #include <$ac_header> | |
| 5618 _ACEOF | |
| 5619 rm -f conftest.$ac_objext | |
| 40426 | 5620 if { (eval echo "$as_me:5620: \"$ac_compile\"") >&5 |
| 40056 | 5621 (eval $ac_compile) 2>&5 |
| 5622 ac_status=$? | |
| 40426 | 5623 echo "$as_me:5623: \$? = $ac_status" >&5 |
| 40056 | 5624 (exit $ac_status); } && |
| 5625 { ac_try='test -s conftest.$ac_objext' | |
| 40426 | 5626 { (eval echo "$as_me:5626: \"$ac_try\"") >&5 |
| 5627 (eval $ac_try) 2>&5 | |
| 5628 ac_status=$? | |
| 5629 echo "$as_me:5629: \$? = $ac_status" >&5 | |
| 40056 | 5630 (exit $ac_status); }; }; then |
| 5631 eval "$as_ac_Header=yes" | |
| 5632 else | |
| 5633 echo "$as_me: failed program was:" >&5 | |
| 5634 cat conftest.$ac_ext >&5 | |
| 5635 eval "$as_ac_Header=no" | |
| 5636 fi | |
| 5637 rm -f conftest.$ac_objext conftest.$ac_ext | |
| 5638 fi | |
| 40426 | 5639 echo "$as_me:5639: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 40056 | 5640 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 5641 if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
| 5642 cat >>confdefs.h <<EOF | |
| 5643 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
| 5644 EOF | |
| 5645 | |
| 5646 fi | |
| 5647 done | |
| 5648 | |
| 5649 for ac_header in stdlib.h unistd.h | |
| 5650 do | |
| 5651 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
| 40426 | 5652 echo "$as_me:5652: checking for $ac_header" >&5 |
| 40056 | 5653 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 5654 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
| 5655 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
| 5656 else | |
| 5657 cat >conftest.$ac_ext <<_ACEOF | |
| 40426 | 5658 #line 5658 "configure" |
| 40056 | 5659 #include "confdefs.h" |
| 5660 #include <$ac_header> | |
| 5661 _ACEOF | |
| 40426 | 5662 if { (eval echo "$as_me:5662: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 40056 | 5663 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 5664 ac_status=$? | |
| 5665 egrep -v '^ *\+' conftest.er1 >conftest.err | |
| 5666 rm -f conftest.er1 | |
| 5667 cat conftest.err >&5 | |
| 40426 | 5668 echo "$as_me:5668: \$? = $ac_status" >&5 |
| 40056 | 5669 (exit $ac_status); } >/dev/null; then |
| 5670 if test -s conftest.err; then | |
| 5671 ac_cpp_err=$ac_c_preproc_warn_flag | |
| 5672 else | |
| 5673 ac_cpp_err= | |
| 5674 fi | |
| 5675 else | |
| 5676 ac_cpp_err=yes | |
| 5677 fi | |
| 5678 if test -z "$ac_cpp_err"; then | |
| 5679 eval "$as_ac_Header=yes" | |
| 5680 else | |
| 5681 echo "$as_me: failed program was:" >&5 | |
| 31417 | 5682 cat conftest.$ac_ext >&5 |
| 40056 | 5683 eval "$as_ac_Header=no" |
| 5684 fi | |
| 5685 rm -f conftest.err conftest.$ac_ext | |
| 5686 fi | |
| 40426 | 5687 echo "$as_me:5687: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 40056 | 5688 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 5689 if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
| 5690 cat >>confdefs.h <<EOF | |
| 5691 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
| 5692 EOF | |
| 5693 | |
| 31417 | 5694 fi |
| 5695 done | |
| 5696 | |
| 5697 for ac_func in getpagesize | |
| 5698 do | |
| 40056 | 5699 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 40426 | 5700 echo "$as_me:5700: checking for $ac_func" >&5 |
| 40056 | 5701 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 5702 if eval "test \"\${$as_ac_var+set}\" = set"; then | |
| 5703 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
| 5704 else | |
| 5705 cat >conftest.$ac_ext <<_ACEOF | |
| 40426 | 5706 #line 5706 "configure" |
| 31417 | 5707 #include "confdefs.h" |
| 5708 /* System header to define __stub macros and hopefully few prototypes, | |
| 40056 | 5709 which can conflict with char $ac_func (); below. */ |
| 31417 | 5710 #include <assert.h> |
| 5711 /* Override any gcc2 internal prototype to avoid an error. */ | |
| 40056 | 5712 #ifdef __cplusplus |
| 5713 extern "C" | |
| 5714 #endif | |
| 31417 | 5715 /* We use char because int might match the return type of a gcc2 |
| 40056 | 5716 builtin and then its argument prototype would still apply. */ |
| 5717 char $ac_func (); | |
| 5718 char (*f) (); | |
| 5719 | |
| 5720 int | |
| 5721 main () | |
| 5722 { | |
| 31417 | 5723 /* The GNU C library defines this for functions which it implements |
| 5724 to always fail with ENOSYS. Some functions are actually named | |
| 5725 something starting with __ and the normal name is an alias. */ | |
| 5726 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
| 5727 choke me | |
| 5728 #else | |
| 40056 | 5729 f = $ac_func; |
| 5730 #endif | |
| 5731 | |
| 5732 ; | |
| 5733 return 0; | |
| 5734 } | |
| 5735 _ACEOF | |
| 5736 rm -f conftest.$ac_objext conftest$ac_exeext | |
| 40426 | 5737 if { (eval echo "$as_me:5737: \"$ac_link\"") >&5 |
| 5738 (eval $ac_link) 2>&5 | |
| 5739 ac_status=$? | |
| 5740 echo "$as_me:5740: \$? = $ac_status" >&5 | |
| 40056 | 5741 (exit $ac_status); } && |
| 5742 { ac_try='test -s conftest$ac_exeext' | |
| 40426 | 5743 { (eval echo "$as_me:5743: \"$ac_try\"") >&5 |
| 5744 (eval $ac_try) 2>&5 | |
| 5745 ac_status=$? | |
| 5746 echo "$as_me:5746: \$? = $ac_status" >&5 | |
| 40056 | 5747 (exit $ac_status); }; }; then |
| 5748 eval "$as_ac_var=yes" | |
| 5749 else | |
| 5750 echo "$as_me: failed program was:" >&5 | |
| 5751 cat conftest.$ac_ext >&5 | |
| 5752 eval "$as_ac_var=no" | |
| 5753 fi | |
| 5754 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
| 5755 fi | |
| 40426 | 5756 echo "$as_me:5756: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 40056 | 5757 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 5758 if test `eval echo '${'$as_ac_var'}'` = yes; then | |
| 5759 cat >>confdefs.h <<EOF | |
| 5760 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
| 5761 EOF | |
| 5762 | |
| 31417 | 5763 fi |
| 5764 done | |
| 5765 | |
| 40426 | 5766 echo "$as_me:5766: checking for working mmap" >&5 |
| 40056 | 5767 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6 |
| 5768 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then | |
| 5769 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
| 31417 | 5770 else |
| 5771 if test "$cross_compiling" = yes; then | |
| 5772 ac_cv_func_mmap_fixed_mapped=no | |
| 5773 else | |
| 40056 | 5774 cat >conftest.$ac_ext <<_ACEOF |
| 40426 | 5775 #line 5775 "configure" |
| 40056 | 5776 #include "confdefs.h" |
| 5777 $ac_includes_default | |
| 31417 | 5778 /* Thanks to Mike Haertel and Jim Avera for this test. |
| 5779 Here is a matrix of mmap possibilities: | |
| 5780 mmap private not fixed | |
| 5781 mmap private fixed at somewhere currently unmapped | |
| 5782 mmap private fixed at somewhere already mapped | |
| 5783 mmap shared not fixed | |
| 5784 mmap shared fixed at somewhere currently unmapped | |
| 5785 mmap shared fixed at somewhere already mapped | |
| 5786 For private mappings, we should verify that changes cannot be read() | |
| 5787 back from the file, nor mmap's back from the file at a different | |
| 5788 address. (There have been systems where private was not correctly | |
| 5789 implemented like the infamous i386 svr4.0, and systems where the | |
| 31512 | 5790 VM page cache was not coherent with the file system buffer cache |
| 31417 | 5791 like early versions of FreeBSD and possibly contemporary NetBSD.) |
| 5792 For shared mappings, we should conversely verify that changes get | |
| 5793 propogated back to all the places they're supposed to be. | |
| 5794 | |
| 5795 Grep wants private fixed already mapped. | |
| 5796 The main things grep needs to know about mmap are: | |
| 5797 * does it exist and is it safe to write into the mmap'd area | |
| 5798 * how to use it (BSD variants) */ | |
| 40056 | 5799 |
| 31417 | 5800 #include <fcntl.h> |
| 5801 #include <sys/mman.h> | |
| 5802 | |
| 40056 | 5803 #if !STDC_HEADERS && !HAVE_STDLIB_H |
| 31512 | 5804 char *malloc (); |
| 5805 #endif | |
| 5806 | |
| 31417 | 5807 /* This mess was copied from the GNU getpagesize.h. */ |
| 31512 | 5808 #if !HAVE_GETPAGESIZE |
| 31417 | 5809 /* Assume that all systems that can run configure have sys/param.h. */ |
| 31512 | 5810 # if !HAVE_SYS_PARAM_H |
| 31417 | 5811 # define HAVE_SYS_PARAM_H 1 |
| 5812 # endif | |
| 5813 | |
| 5814 # ifdef _SC_PAGESIZE | |
| 5815 # define getpagesize() sysconf(_SC_PAGESIZE) | |
| 5816 # else /* no _SC_PAGESIZE */ | |
| 31512 | 5817 # if HAVE_SYS_PARAM_H |
| 31417 | 5818 # include <sys/param.h> |
| 5819 # ifdef EXEC_PAGESIZE | |
| 5820 # define getpagesize() EXEC_PAGESIZE | |
| 5821 # else /* no EXEC_PAGESIZE */ | |
| 5822 # ifdef NBPG | |
| 5823 # define getpagesize() NBPG * CLSIZE | |
| 5824 # ifndef CLSIZE | |
| 5825 # define CLSIZE 1 | |
| 5826 # endif /* no CLSIZE */ | |
| 5827 # else /* no NBPG */ | |
| 5828 # ifdef NBPC | |
| 5829 # define getpagesize() NBPC | |
| 5830 # else /* no NBPC */ | |
| 5831 # ifdef PAGESIZE | |
| 5832 # define getpagesize() PAGESIZE | |
| 5833 # endif /* PAGESIZE */ | |
| 5834 # endif /* no NBPC */ | |
| 5835 # endif /* no NBPG */ | |
| 5836 # endif /* no EXEC_PAGESIZE */ | |
| 5837 # else /* no HAVE_SYS_PARAM_H */ | |
| 5838 # define getpagesize() 8192 /* punt totally */ | |
| 5839 # endif /* no HAVE_SYS_PARAM_H */ | |
| 5840 # endif /* no _SC_PAGESIZE */ | |
| 5841 | |
| 5842 #endif /* no HAVE_GETPAGESIZE */ | |
| 5843 | |
| 5844 int | |
| 31512 | 5845 main () |
| 31417 | 5846 { |
| 31512 | 5847 char *data, *data2, *data3; |
| 5848 int i, pagesize; | |
| 5849 int fd; | |
| 5850 | |
| 5851 pagesize = getpagesize (); | |
| 5852 | |
| 5853 /* First, make a file with some known garbage in it. */ | |
| 5854 data = (char *) malloc (pagesize); | |
| 5855 if (!data) | |
| 5856 exit (1); | |
| 5857 for (i = 0; i < pagesize; ++i) | |
| 5858 *(data + i) = rand (); | |
| 5859 umask (0); | |
| 40056 | 5860 fd = creat ("conftest.mmap", 0600); |
| 31512 | 5861 if (fd < 0) |
| 5862 exit (1); | |
| 5863 if (write (fd, data, pagesize) != pagesize) | |
| 5864 exit (1); | |
| 5865 close (fd); | |
| 5866 | |
| 5867 /* Next, try to mmap the file at a fixed address which already has | |
| 5868 something else allocated at it. If we can, also make sure that | |
| 5869 we see the same garbage. */ | |
| 40056 | 5870 fd = open ("conftest.mmap", O_RDWR); |
| 31512 | 5871 if (fd < 0) |
| 5872 exit (1); | |
| 5873 data2 = (char *) malloc (2 * pagesize); | |
| 5874 if (!data2) | |
| 5875 exit (1); | |
| 5876 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1); | |
| 5877 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, | |
| 5878 MAP_PRIVATE | MAP_FIXED, fd, 0L)) | |
| 5879 exit (1); | |
| 5880 for (i = 0; i < pagesize; ++i) | |
| 5881 if (*(data + i) != *(data2 + i)) | |
| 5882 exit (1); | |
| 5883 | |
| 5884 /* Finally, make sure that changes to the mapped area do not | |
| 5885 percolate back to the file as seen by read(). (This is a bug on | |
| 5886 some variants of i386 svr4.0.) */ | |
| 5887 for (i = 0; i < pagesize; ++i) | |
| 5888 *(data2 + i) = *(data2 + i) + 1; | |
| 5889 data3 = (char *) malloc (pagesize); | |
| 5890 if (!data3) | |
| 5891 exit (1); | |
| 5892 if (read (fd, data3, pagesize) != pagesize) | |
| 5893 exit (1); | |
| 5894 for (i = 0; i < pagesize; ++i) | |
| 5895 if (*(data + i) != *(data3 + i)) | |
| 5896 exit (1); | |
| 5897 close (fd); | |
| 5898 exit (0); | |
| 31417 | 5899 } |
| 40056 | 5900 _ACEOF |
| 5901 rm -f conftest$ac_exeext | |
| 40426 | 5902 if { (eval echo "$as_me:5902: \"$ac_link\"") >&5 |
| 5903 (eval $ac_link) 2>&5 | |
| 5904 ac_status=$? | |
| 5905 echo "$as_me:5905: \$? = $ac_status" >&5 | |
| 40056 | 5906 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 40426 | 5907 { (eval echo "$as_me:5907: \"$ac_try\"") >&5 |
| 5908 (eval $ac_try) 2>&5 | |
| 5909 ac_status=$? | |
| 5910 echo "$as_me:5910: \$? = $ac_status" >&5 | |
| 40056 | 5911 (exit $ac_status); }; }; then |
| 31417 | 5912 ac_cv_func_mmap_fixed_mapped=yes |
| 5913 else | |
| 40056 | 5914 echo "$as_me: program exited with status $ac_status" >&5 |
| 5915 echo "$as_me: failed program was:" >&5 | |
| 5916 cat conftest.$ac_ext >&5 | |
| 5917 ac_cv_func_mmap_fixed_mapped=no | |
| 5918 fi | |
| 5919 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
| 5920 fi | |
| 5921 fi | |
| 40426 | 5922 echo "$as_me:5922: result: $ac_cv_func_mmap_fixed_mapped" >&5 |
| 40056 | 5923 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6 |
| 31417 | 5924 if test $ac_cv_func_mmap_fixed_mapped = yes; then |
| 40056 | 5925 |
| 5926 cat >>confdefs.h <<\EOF | |
| 31417 | 5927 #define HAVE_MMAP 1 |
| 5928 EOF | |
| 5929 | |
| 5930 fi | |
| 40056 | 5931 rm -f conftest.mmap |
| 31417 | 5932 |
| 31607 | 5933 if test $use_mmap_for_buffers = yes; then |
| 5934 REL_ALLOC=no | |
| 31417 | 5935 fi |
| 5936 | |
| 25897 | 5937 LIBS="$libsrc_libs $LIBS" |
| 5938 | |
| 40426 | 5939 echo "$as_me:5939: checking for dnet_ntoa in -ldnet" >&5 |
| 40056 | 5940 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6 |
| 5941 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then | |
| 5942 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
| 5943 else | |
| 5944 ac_check_lib_save_LIBS=$LIBS | |
| 25897 | 5945 LIBS="-ldnet $LIBS" |
| 40056 | 5946 cat >conftest.$ac_ext <<_ACEOF |
| 40426 | 5947 #line 5947 "configure" |
| 40056 | 5948 #include "confdefs.h" |
| 5949 | |
| 25897 | 5950 /* Override any gcc2 internal prototype to avoid an error. */ |
| 40056 | 5951 #ifdef __cplusplus |
| 5952 extern "C" | |
| 5953 #endif | |
| 25897 | 5954 /* We use char because int might match the return type of a gcc2 |
| 40056 | 5955 builtin and then its argument prototype would still apply. */ |
| 5956 char dnet_ntoa (); | |
| 5957 int | |
| 5958 main () | |
| 5959 { | |
| 5960 dnet_ntoa (); | |
| 5961 ; | |
| 5962 return 0; | |
| 5963 } | |
| 5964 _ACEOF | |
| 5965 rm -f conftest.$ac_objext conftest$ac_exeext | |
| 40426 | 5966 if { (eval echo "$as_me:5966: \"$ac_link\"") >&5 |
| 5967 (eval $ac_link) 2>&5 | |
| 5968 ac_status=$? | |
| 5969 echo "$as_me:5969: \$? = $ac_status" >&5 | |
| 40056 | 5970 (exit $ac_status); } && |
| 5971 { ac_try='test -s conftest$ac_exeext' | |
| 40426 | 5972 { (eval echo "$as_me:5972: \"$ac_try\"") >&5 |
| 5973 (eval $ac_try) 2>&5 | |
| 5974 ac_status=$? | |
| 5975 echo "$as_me:5975: \$? = $ac_status" >&5 | |
| 40056 | 5976 (exit $ac_status); }; }; then |
| 5977 ac_cv_lib_dnet_dnet_ntoa=yes | |
| 5978 else | |
| 5979 echo "$as_me: failed program was:" >&5 | |
| 5980 cat conftest.$ac_ext >&5 | |
| 5981 ac_cv_lib_dnet_dnet_ntoa=no | |
| 5982 fi | |
| 5983 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
| 5984 LIBS=$ac_check_lib_save_LIBS | |
| 5985 fi | |
| 40426 | 5986 echo "$as_me:5986: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 |
| 40056 | 5987 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6 |
| 5988 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then | |
| 5989 cat >>confdefs.h <<EOF | |
| 5990 #define HAVE_LIBDNET 1 | |
| 25897 | 5991 EOF |
| 5992 | |
| 5993 LIBS="-ldnet $LIBS" | |
| 5994 | |
| 40056 | 5995 fi |
| 5996 | |
| 40426 | 5997 echo "$as_me:5997: checking for main in -lXbsd" >&5 |
| 40056 | 5998 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6 |
| 5999 if test "${ac_cv_lib_Xbsd_main+set}" = set; then | |
| 6000 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
| 6001 else | |
| 6002 ac_check_lib_save_LIBS=$LIBS | |
| 25897 | 6003 LIBS="-lXbsd $LIBS" |
| 40056 | 6004 cat >conftest.$ac_ext <<_ACEOF |
| 40426 | 6005 #line 6005 "configure" |
| 40056 | 6006 #include "confdefs.h" |
| 6007 | |
| 6008 int | |
| 6009 main () | |
| 6010 { | |
| 6011 main (); | |
| 6012 ; | |
| 6013 return 0; | |
| 6014 } | |
| 6015 _ACEOF | |
| 6016 rm -f conftest.$ac_objext conftest$ac_exeext | |
| 40426 | 6017 if { (eval echo "$as_me:6017: \"$ac_link\"") >&5 |
| 6018 (eval $ac_link) 2>&5 | |
| 6019 ac_status=$? | |
| 6020 echo "$as_me:6020: \$? = $ac_status" >&5 | |
| 40056 | 6021 (exit $ac_status); } && |
| 6022 { ac_try='test -s conftest$ac_exeext' | |
| 40426 | 6023 { (eval echo "$as_me:6023: \"$ac_try\"") >&5 |
| 6024 (eval $ac_try) 2>&5 | |
| 6025 ac_status=$? | |
| 6026 echo "$as_me:6026: \$? = $ac_status" >&5 | |
| 40056 | 6027 (exit $ac_status); }; }; then |
| 6028 ac_cv_lib_Xbsd_main=yes | |
| 6029 else | |
| 6030 echo "$as_me: failed program was:" >&5 | |
| 6031 cat conftest.$ac_ext >&5 | |
| 6032 ac_cv_lib_Xbsd_main=no | |
| 6033 fi | |
| 6034 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
| 6035 LIBS=$ac_check_lib_save_LIBS | |
| 6036 fi | |
| 40426 | 6037 echo "$as_me:6037: result: $ac_cv_lib_Xbsd_main" >&5 |
| 40056 | 6038 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6 |
| 6039 if test $ac_cv_lib_Xbsd_main = yes; then | |
| 25897 | 6040 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd" |
| 40056 | 6041 fi |
| 6042 | |
| 40426 | 6043 echo "$as_me:6043: checking for cma_open in -lpthreads" >&5 |
| 40056 | 6044 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6 |
| 6045 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then | |
| 6046 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
| 6047 else | |
| 6048 ac_check_lib_save_LIBS=$LIBS | |
| 25897 | 6049 LIBS="-lpthreads $LIBS" |
| 40056 | 6050 cat >conftest.$ac_ext <<_ACEOF |
| 40426 | 6051 #line 6051 "configure" |
| 40056 | 6052 #include "confdefs.h" |
| 6053 | |
| 25897 | 6054 /* Override any gcc2 internal prototype to avoid an error. */ |
| 40056 | 6055 #ifdef __cplusplus |
| 6056 extern "C" | |
| 6057 #endif | |
| 25897 | 6058 /* We use char because int might match the return type of a gcc2 |
| 40056 | 6059 builtin and then its argument prototype would still apply. */ |
| 6060 char cma_open (); | |
| 6061 int | |
| 6062 main () | |
| 6063 { | |
| 6064 cma_open (); | |
| 6065 ; | |
| 6066 return 0; | |
| 6067 } | |
| 6068 _ACEOF | |
| 6069 rm -f conftest.$ac_objext conftest$ac_exeext | |
| 40426 | 6070 if { (eval echo "$as_me:6070: \"$ac_link\"") >&5 |
| 6071 (eval $ac_link) 2>&5 | |
| 6072 ac_status=$? | |
| 6073 echo "$as_me:6073: \$? = $ac_status" >&5 | |
| 40056 | 6074 (exit $ac_status); } && |
| 6075 { ac_try='test -s conftest$ac_exeext' | |
| 40426 | 6076 { (eval echo "$as_me:6076: \"$ac_try\"") >&5 |
| 6077 (eval $ac_try) 2>&5 | |
| 6078 ac_status=$? | |
| 6079 echo "$as_me:6079: \$? = $ac_status" >&5 | |
| 40056 | 6080 (exit $ac_status); }; }; then |
| 6081 ac_cv_lib_pthreads_cma_open=yes | |
| 6082 else | |
| 6083 echo "$as_me: failed program was:" >&5 | |
| 6084 cat conftest.$ac_ext >&5 | |
| 6085 ac_cv_lib_pthreads_cma_open=no | |
| 6086 fi | |
| 6087 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
| 6088 LIBS=$ac_check_lib_save_LIBS | |
| 6089 fi | |
| 40426 | 6090 echo "$as_me:6090: result: $ac_cv_lib_pthreads_cma_open" >&5 |
| 40056 | 6091 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6 |
| 6092 if test $ac_cv_lib_pthreads_cma_open = yes; then | |
| 6093 cat >>confdefs.h <<EOF | |
| 6094 #define HAVE_LIBPTHREADS 1 | |
| 25897 | 6095 EOF |
| 6096 | |
| 6097 LIBS="-lpthreads $LIBS" | |
| 6098 | |
| 40056 | 6099 fi |
| 6100 | |
| 40426 | 6101 echo "$as_me:6101: checking for XFree86 in /usr/X386" >&5 |
| 40056 | 6102 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6 |
| 25897 | 6103 if test -d /usr/X386/include; then |
| 6104 HAVE_XFREE386=yes | |
| 6105 : ${C_SWITCH_X_SITE="-I/usr/X386/include"} | |
| 6106 else | |
| 6107 HAVE_XFREE386=no | |
| 6108 fi | |
| 40426 | 6109 echo "$as_me:6109: result: $HAVE_XFREE386" >&5 |
| 40056 | 6110 echo "${ECHO_T}$HAVE_XFREE386" >&6 |
| 25897 | 6111 |
| 6112 # Change CFLAGS temporarily so that C_SWITCH_X_SITE gets used | |
| 6113 # for the tests that follow. We set it back to REAL_CFLAGS later on. | |
| 6114 | |
|
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
6115 REAL_CPPFLAGS="$CPPFLAGS" |
|
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
6116 |
| 25897 | 6117 if test "${HAVE_X11}" = "yes"; then |
| 6118 DEFS="$C_SWITCH_X_SITE $DEFS" | |
| 6119 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE" | |
| 6120 LIBS="$LIBX $LIBS" | |
| 6121 CFLAGS="$C_SWITCH_X_SITE $CFLAGS" | |
|
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
6122 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS" |
| 25897 | 6123 |
| 6124 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests. | |
| 6125 # This is handled by LD_SWITCH_X_SITE_AUX during the real build, | |
| 6126 # but it's more convenient here to set LD_RUN_PATH | |
| 6127 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX. | |
| 6128 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then | |
| 6129 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH | |
| 6130 export LD_RUN_PATH | |
| 6131 fi | |
| 6132 | |
| 6133 if test "${opsys}" = "gnu-linux"; then | |
| 40426 | 6134 echo "$as_me:6134: checking whether X on GNU/Linux needs -b to link" >&5 |
| 40056 | 6135 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6 |
| 6136 cat >conftest.$ac_ext <<_ACEOF | |
| 40426 | 6137 #line 6137 "configure" |
| 40056 | 6138 #include "confdefs.h" |
| 6139 | |
| 6140 int | |
| 6141 main () | |
| 6142 { | |
| 25897 | 6143 XOpenDisplay ("foo"); |
| 40056 | 6144 ; |
| 6145 return 0; | |
| 6146 } | |
| 6147 _ACEOF | |
| 6148 rm -f conftest.$ac_objext conftest$ac_exeext | |
| 40426 | 6149 if { (eval echo "$as_me:6149: \"$ac_link\"") >&5 |
| 6150 (eval $ac_link) 2>&5 | |
| 6151 ac_status=$? | |
| 6152 echo "$as_me:6152: \$? = $ac_status" >&5 | |
| 40056 | 6153 (exit $ac_status); } && |
| 6154 { ac_try='test -s conftest$ac_exeext' | |
| 40426 | 6155 { (eval echo "$as_me:6155: \"$ac_try\"") >&5 |
| 6156 (eval $ac_try) 2>&5 | |
| 6157 ac_status=$? | |
| 6158 echo "$as_me:6158: \$? = $ac_status" >&5 | |
| 40056 | 6159 (exit $ac_status); }; }; then |
| 25897 | 6160 xlinux_first_failure=no |
| 6161 else | |
| 40056 | 6162 echo "$as_me: failed program was:" >&5 |
| 6163 cat conftest.$ac_ext >&5 | |
| 6164 xlinux_first_failure=yes | |
| 6165 fi | |
| 6166 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
| 25897 | 6167 if test "${xlinux_first_failure}" = "yes"; then |
| 6168 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE" | |
| 6169 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE" | |
| 6170 OLD_CPPFLAGS="$CPPFLAGS" | |
| 6171 OLD_LIBS="$LIBS" | |
| 6172 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout" | |
| 6173 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout" | |
| 6174 CPPFLAGS="$CPPFLAGS -b i486-linuxaout" | |
| 6175 LIBS="$LIBS -b i486-linuxaout" | |
| 40056 | 6176 cat >conftest.$ac_ext <<_ACEOF |
| 40426 | 6177 #line 6177 "configure" |
| 40056 | 6178 #include "confdefs.h" |
| 6179 | |
| 6180 int | |
| 6181 main () | |
| 6182 { | |
| 25897 | 6183 XOpenDisplay ("foo"); |
| 40056 | 6184 ; |
| 6185 return 0; | |
| 6186 } | |
| 6187 _ACEOF | |
| 6188 rm -f conftest.$ac_objext conftest$ac_exeext | |
| 40426 | 6189 if { (eval echo "$as_me:6189: \"$ac_link\"") >&5 |
| 6190 (eval $ac_link) 2>&5 | |
| 6191 ac_status=$? | |
| 6192 echo "$as_me:6192: \$? = $ac_status" >&5 | |
| 40056 | 6193 (exit $ac_status); } && |
| 6194 { ac_try='test -s conftest$ac_exeext' | |
| 40426 | 6195 { (eval echo "$as_me:6195: \"$ac_try\"") >&5 |
| 6196 (eval $ac_try) 2>&5 | |
| 6197 ac_status=$? | |
| 6198 echo "$as_me:6198: \$? = $ac_status" >&5 | |
| 40056 | 6199 (exit $ac_status); }; }; then |
| 25897 | 6200 xlinux_second_failure=no |
| 6201 else | |
| 40056 | 6202 echo "$as_me: failed program was:" >&5 |
| 6203 cat conftest.$ac_ext >&5 | |
| 6204 xlinux_second_failure=yes | |
| 6205 fi | |
| 6206 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
| 25897 | 6207 if test "${xlinux_second_failure}" = "yes"; then |
| 6208 # If we get the same failure with -b, there is no use adding -b. | |
| 6209 # So take it out. This plays safe. | |
| 6210 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE" | |
| 6211 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE" | |
| 6212 CPPFLAGS="$OLD_CPPFLAGS" | |
| 6213 LIBS="$OLD_LIBS" | |
| 40426 | 6214 echo "$as_me:6214: result: no" >&5 |
| 40056 | 6215 echo "${ECHO_T}no" >&6 |
| 25897 | 6216 else |
| 40426 | 6217 echo "$as_me:6217: result: yes" >&5 |
| 40056 | 6218 echo "${ECHO_T}yes" >&6 |
| 25897 | 6219 fi |
| 6220 else | |
| 40426 | 6221 echo "$as_me:6221: result: no" >&5 |
| 40056 | 6222 echo "${ECHO_T}no" >&6 |
| 25897 | 6223 fi |
| 6224 fi | |
| 6225 | |
| 35196 | 6226 # Reportedly, some broken Solaris systems have XKBlib.h but are missing |
| 6227 # header files included from there. | |
| 40426 | 6228 echo "$as_me:6228: checking for Xkb" >&5 |
| 40056 | 6229 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6 |
| 6230 cat >conftest.$ac_ext <<_ACEOF | |
| 40426 | 6231 #line 6231 "configure" |
| 35196 | 6232 #include "confdefs.h" |
| 6233 #include <X11/Xlib.h> | |
| 6234 #include <X11/XKBlib.h> | |
| 40056 | 6235 int |
| 6236 main () | |
| 6237 { | |
| 35196 | 6238 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd); |
| 40056 | 6239 ; |
| 6240 return 0; | |
| 6241 } | |
| 6242 _ACEOF | |
| 6243 rm -f conftest.$ac_objext conftest$ac_exeext | |
| 40426 | 6244 if { (eval echo "$as_me:6244: \"$ac_link\"") >&5 |
| 6245 (eval $ac_link) 2>&5 | |
| 6246 ac_status=$? | |
| 6247 echo "$as_me:6247: \$? = $ac_status" >&5 | |
| 40056 | 6248 (exit $ac_status); } && |
| 6249 { ac_try='test -s conftest$ac_exeext' | |
| 40426 | 6250 { (eval echo "$as_me:6250: \"$ac_try\"") >&5 |
| 6251 (eval $ac_try) 2>&5 | |
| 6252 ac_status=$? | |
| 6253 echo "$as_me:6253: \$? = $ac_status" >&5 | |
| 40056 | 6254 (exit $ac_status); }; }; then |
| 35196 | 6255 emacs_xkb=yes |
| 6256 else | |
| 40056 | 6257 echo "$as_me: failed program was:" >&5 |
| 6258 cat conftest.$ac_ext >&5 | |
| 6259 emacs_xkb=no | |
| 6260 fi | |
| 6261 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
| 40426 | 6262 echo "$as_me:6262: result: $emacs_xkb" >&5 |
| 40056 | 6263 echo "${ECHO_T}$emacs_xkb" >&6 |
| 35196 | 6264 if test $emacs_xkb = yes; then |
| 40056 | 6265 cat >>confdefs.h <<\EOF |
| 35196 | 6266 #define HAVE_XKBGETKEYBOARD 1 |
| 6267 EOF | |
| 6268 | |
| 6269 fi | |
| 6270 | |
| 40056 | 6271 for ac_func in XrmSetDatabase XScreenResourceString \ |
| 25897 | 6272 XScreenNumberOfScreen XSetWMProtocols |
| 6273 do | |
| 40056 | 6274 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 40426 | 6275 echo "$as_me:6275: checking for $ac_func" >&5 |
| 40056 | 6276 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 6277 if eval "test \"\${$as_ac_var+set}\" = set"; then | |
| 6278 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
| 6279 else | |
| 6280 cat >conftest.$ac_ext <<_ACEOF | |
| 40426 | 6281 #line 6281 "configure" |
| 25897 | 6282 #include "confdefs.h" |
| 6283 /* System header to define __stub macros and hopefully few prototypes, | |
| 40056 | 6284 which can conflict with char $ac_func (); below. */ |
| 25897 | 6285 #include <assert.h> |
| 6286 /* Override any gcc2 internal prototype to avoid an error. */ | |
| 40056 | 6287 #ifdef __cplusplus |
| 6288 extern "C" | |
| 6289 #endif | |
| 25897 | 6290 /* We use char because int might match the return type of a gcc2 |
| 40056 | 6291 builtin and then its argument prototype would still apply. */ |
| 6292 char $ac_func (); | |
| 6293 char (*f) (); | |
| 6294 | |
| 6295 int | |
| 6296 main () | |
| 6297 { | |
| 25897 | 6298 /* The GNU C library defines this for functions which it implements |
| 6299 to always fail with ENOSYS. Some functions are actually named | |
| 6300 something starting with __ and the normal name is an alias. */ | |
| 6301 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
| 6302 choke me | |
| 6303 #else | |
| 40056 | 6304 f = $ac_func; |
| 6305 #endif | |
| 6306 | |
| 6307 ; | |
| 6308 return 0; | |
| 6309 } | |
| 6310 _ACEOF | |
| 6311 rm -f conftest.$ac_objext conftest$ac_exeext | |
| 40426 | 6312 if { (eval echo "$as_me:6312: \"$ac_link\"") >&5 |
| 6313 (eval $ac_link) 2>&5 | |
| 6314 ac_status=$? | |
| 6315 echo "$as_me:6315: \$? = $ac_status" >&5 | |
| 40056 | 6316 (exit $ac_status); } && |
| 6317 { ac_try='test -s conftest$ac_exeext' | |
| 40426 | 6318 { (eval echo "$as_me:6318: \"$ac_try\"") >&5 |
| 6319 (eval $ac_try) 2>&5 | |
| 6320 ac_status=$? | |
| 6321 echo "$as_me:6321: \$? = $ac_status" >&5 | |
| 40056 | 6322 (exit $ac_status); }; }; then |
| 6323 eval "$as_ac_var=yes" | |
| 6324 else | |
| 6325 echo "$as_me: failed program was:" >&5 | |
| 6326 cat conftest.$ac_ext >&5 | |
| 6327 eval "$as_ac_var=no" | |
| 6328 fi | |
| 6329 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
| 6330 fi | |
| 40426 | 6331 echo "$as_me:6331: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 40056 | 6332 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 6333 if test `eval echo '${'$as_ac_var'}'` = yes; then | |
| 6334 cat >>confdefs.h <<EOF | |
| 6335 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
| 6336 EOF | |
| 6337 | |
| 25897 | 6338 fi |
| 6339 done | |
| 6340 | |
| 6341 fi | |
| 6342 | |
| 6343 if test "${window_system}" = "x11"; then | |
| 40426 | 6344 echo "$as_me:6344: checking X11 version 6" >&5 |
| 40056 | 6345 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6 |
| 6346 if test "${emacs_cv_x11_version_6+set}" = set; then | |
| 6347 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
| 6348 else | |
| 6349 cat >conftest.$ac_ext <<_ACEOF | |
| 40426 | 6350 #line 6350 "configure" |
| 25897 | 6351 #include "confdefs.h" |
| 6352 #include <X11/Xlib.h> | |
| 40056 | 6353 int |
| 6354 main () | |
| 6355 { | |
| 25897 | 6356 #if XlibSpecificationRelease < 6 |
| 6357 fail; | |
| 6358 #endif | |
| 6359 | |
| 40056 | 6360 ; |
| 6361 return 0; | |
| 6362 } | |
| 6363 _ACEOF | |
| 6364 rm -f conftest.$ac_objext conftest$ac_exeext | |
| 40426 | 6365 if { (eval echo "$as_me:6365: \"$ac_link\"") >&5 |
| 6366 (eval $ac_link) 2>&5 | |
| 6367 ac_status=$? | |
| 6368 echo "$as_me:6368: \$? = $ac_status" >&5 | |
| 40056 | 6369 (exit $ac_status); } && |
| 6370 { ac_try='test -s conftest$ac_exeext' | |
| 40426 | 6371 { (eval echo "$as_me:6371: \"$ac_try\"") >&5 |
| 6372 (eval $ac_try) 2>&5 | |
| 6373 ac_status=$? | |
| 6374 echo "$as_me:6374: \$? = $ac_status" >&5 | |
| 40056 | 6375 (exit $ac_status); }; }; then |
| 25897 | 6376 emacs_cv_x11_version_6=yes |
| 6377 else | |
| 40056 | 6378 echo "$as_me: failed program was:" >&5 |
| 6379 cat conftest.$ac_ext >&5 | |
| 6380 emacs_cv_x11_version_6=no | |
| 6381 fi | |
| 6382 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
| 25897 | 6383 fi |
| 6384 | |
| 6385 if test $emacs_cv_x11_version_6 = yes; then | |
| 40426 | 6386 echo "$as_me:6386: result: 6 or newer" >&5 |
| 40056 | 6387 echo "${ECHO_T}6 or newer" >&6 |
| 6388 cat >>confdefs.h <<\EOF | |
| 25897 | 6389 #define HAVE_X11R6 1 |
| 6390 EOF | |
| 6391 | |
| 6392 else | |
| 40426 | 6393 echo "$as_me:6393: result: before 6" >&5 |
| 40056 | 6394 echo "${ECHO_T}before 6" >&6 |
| 25897 | 6395 fi |
| 6396 fi | |
| 6397 | |
| 6398 if test "${window_system}" = "x11"; then | |
| 40426 | 6399 echo "$as_me:6399: checking X11 version 5" >&5 |
| 40056 | 6400 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6 |
| 6401 if test "${emacs_cv_x11_version_5+set}" = set; then | |
| 6402 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
| 6403 else | |
| 6404 cat >conftest.$ac_ext <<_ACEOF | |
| 40426 | 6405 #line 6405 "configure" |
| 25897 | 6406 #include "confdefs.h" |
| 6407 #include <X11/Xlib.h> | |
| 40056 | 6408 int |
| 6409 main () | |
| 6410 { | |
| 25897 | 6411 #if XlibSpecificationRelease < 5 |
| 6412 fail; | |
| 6413 #endif | |
| 6414 | |
| 40056 | 6415 ; |
| 6416 return 0; | |
| 6417 } | |
| 6418 _ACEOF | |
| 6419 rm -f conftest.$ac_objext conftest$ac_exeext | |
| 40426 | 6420 if { (eval echo "$as_me:6420: \"$ac_link\"") >&5 |
| 6421 (eval $ac_link) 2>&5 | |
| 6422 ac_status=$? | |
| 6423 echo "$as_me:6423: \$? = $ac_status" >&5 | |
| 40056 | 6424 (exit $ac_status); } && |
| 6425 { ac_try='test -s conftest$ac_exeext' | |
| 40426 | 6426 { (eval echo "$as_me:6426: \"$ac_try\"") >&5 |
| 6427 (eval $ac_try) 2>&5 | |
| 6428 ac_status=$? | |
| 6429 echo "$as_me:6429: \$? = $ac_status" >&5 | |
| 40056 | 6430 (exit $ac_status); }; }; then |
| 25897 | 6431 emacs_cv_x11_version_5=yes |
| 6432 else | |
| 40056 | 6433 echo "$as_me: failed program was:" >&5 |
| 6434 cat conftest.$ac_ext >&5 | |
| 6435 emacs_cv_x11_version_5=no | |
| 6436 fi | |
| 6437 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
| 25897 | 6438 fi |
| 6439 | |
| 6440 if test $emacs_cv_x11_version_5 = yes; then | |
| 40426 | 6441 echo "$as_me:6441: result: 5 or newer" >&5 |
| 40056 | 6442 echo "${ECHO_T}5 or newer" >&6 |
| 25897 | 6443 HAVE_X11R5=yes |
| 40056 | 6444 cat >>confdefs.h <<\EOF |
| 25897 | 6445 #define HAVE_X11R5 1 |
| 6446 EOF | |
| 6447 | |
| 6448 else | |
| 6449 HAVE_X11R5=no | |
| 40426 | 6450 echo "$as_me:6450: result: before 5" >&5 |
| 40056 | 6451 echo "${ECHO_T}before 5" >&6 |
| 25897 | 6452 fi |
| 6453 fi | |
| 6454 | |
| 6455 if test x"${USE_X_TOOLKIT}" = xmaybe; then | |
| 6456 if test x"${HAVE_X11R5}" = xyes; then | |
| 40426 | 6457 echo "$as_me:6457: checking X11 version 5 with Xaw" >&5 |
| 40056 | 6458 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6 |
| 6459 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then | |
| 6460 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
| 6461 else | |
| 6462 cat >conftest.$ac_ext <<_ACEOF | |
| 40426 | 6463 #line 6463 "configure" |
| 25897 | 6464 #include "confdefs.h" |
| 6465 | |
| 6466 #include <X11/Intrinsic.h> | |
| 6467 #include <X11/Xaw/Simple.h> | |
| 40056 | 6468 int |
| 6469 main () | |
| 6470 { | |
| 6471 | |
| 6472 ; | |
| 6473 return 0; | |
| 6474 } | |
| 6475 _ACEOF | |
| 6476 rm -f conftest.$ac_objext conftest$ac_exeext | |
| 40426 | 6477 if { (eval echo "$as_me:6477: \"$ac_link\"") >&5 |
| 6478 (eval $ac_link) 2>&5 | |
| 6479 ac_status=$? | |
| 6480 echo "$as_me:6480: \$? = $ac_status" >&5 | |
| 40056 | 6481 (exit $ac_status); } && |
| 6482 { ac_try='test -s conftest$ac_exeext' | |
| 40426 | 6483 { (eval echo "$as_me:6483: \"$ac_try\"") >&5 |
| 6484 (eval $ac_try) 2>&5 | |
| 6485 ac_status=$? | |
| 6486 echo "$as_me:6486: \$? = $ac_status" >&5 | |
| 40056 | 6487 (exit $ac_status); }; }; then |
| 25897 | 6488 emacs_cv_x11_version_5_with_xaw=yes |
| 6489 else | |
| 40056 | 6490 echo "$as_me: failed program was:" >&5 |
| 6491 cat conftest.$ac_ext >&5 | |
| 6492 emacs_cv_x11_version_5_with_xaw=no | |
| 6493 fi | |
| 6494 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
| 25897 | 6495 fi |
| 6496 | |
| 6497 if test $emacs_cv_x11_version_5_with_xaw = yes; then | |
| 40426 | 6498 echo "$as_me:6498: result: 5 or newer, with Xaw; use toolkit by default" >&5 |
| 40056 | 6499 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6 |
| 25897 | 6500 USE_X_TOOLKIT=LUCID |
| 6501 else | |
| 40426 | 6502 echo "$as_me:6502: result: before 5 or no Xaw; do not use toolkit by default" >&5 |
| 40056 | 6503 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6 |
| 25897 | 6504 USE_X_TOOLKIT=none |
| 6505 fi | |
| 6506 else | |
| 6507 USE_X_TOOLKIT=none | |
| 6508 fi | |
| 6509 fi | |
| 6510 | |
| 6511 X_TOOLKIT_TYPE=$USE_X_TOOLKIT | |
| 6512 | |
| 6513 if test "${USE_X_TOOLKIT}" != "none"; then | |
| 40426 | 6514 echo "$as_me:6514: checking X11 toolkit version" >&5 |
| 40056 | 6515 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6 |
| 6516 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then | |
| 6517 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
| 6518 else | |
| 6519 cat >conftest.$ac_ext <<_ACEOF | |
| 40426 | 6520 #line 6520 "configure" |
| 25897 | 6521 #include "confdefs.h" |
| 6522 #include <X11/Intrinsic.h> | |
| 40056 | 6523 int |
| 6524 main () | |
| 6525 { | |
| 25897 | 6526 #if XtSpecificationRelease < 6 |
| 6527 fail; | |
| 6528 #endif | |
| 6529 | |
| 40056 | 6530 ; |
| 6531 return 0; | |
| 6532 } | |
| 6533 _ACEOF | |
| 6534 rm -f conftest.$ac_objext conftest$ac_exeext | |
| 40426 | 6535 if { (eval echo "$as_me:6535: \"$ac_link\"") >&5 |
| 6536 (eval $ac_link) 2>&5 | |
| 6537 ac_status=$? | |
| 6538 echo "$as_me:6538: \$? = $ac_status" >&5 | |
| 40056 | 6539 (exit $ac_status); } && |
| 6540 { ac_try='test -s conftest$ac_exeext' | |
| 40426 | 6541 { (eval echo "$as_me:6541: \"$ac_try\"") >&5 |
| 6542 (eval $ac_try) 2>&5 | |
| 6543 ac_status=$? | |
| 6544 echo "$as_me:6544: \$? = $ac_status" >&5 | |
| 40056 | 6545 (exit $ac_status); }; }; then |
| 25897 | 6546 emacs_cv_x11_toolkit_version_6=yes |
| 6547 else | |
| 40056 | 6548 echo "$as_me: failed program was:" >&5 |
| 6549 cat conftest.$ac_ext >&5 | |
| 6550 emacs_cv_x11_toolkit_version_6=no | |
| 6551 fi | |
| 6552 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
| 25897 | 6553 fi |
| 6554 | |
| 6555 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6 | |
| 6556 if test $emacs_cv_x11_toolkit_version_6 = yes; then | |
| 40426 | 6557 echo "$as_me:6557: result: 6 or newer" >&5 |
| 40056 | 6558 echo "${ECHO_T}6 or newer" >&6 |
| 6559 cat >>confdefs.h <<\EOF | |
| 25897 | 6560 #define HAVE_X11XTR6 1 |
| 6561 EOF | |
| 6562 | |
| 6563 else | |
| 40426 | 6564 echo "$as_me:6564: result: before 6" >&5 |
| 40056 | 6565 echo "${ECHO_T}before 6" >&6 |
| 25897 | 6566 fi |
| 6567 | |
| 6568 OLDLIBS="$LIBS" | |
| 6569 if test x$HAVE_X11XTR6 = xyes; then | |
| 6570 LIBS="-lXt -lSM -lICE $LIBS" | |
| 6571 else | |
| 6572 LIBS="-lXt $LIBS" | |
| 6573 fi | |
| 40056 | 6574 |
| 40426 | 6575 echo "$as_me:6575: checking for XmuConvertStandardSelection in -lXmu" >&5 |
| 40056 | 6576 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6 |
| 6577 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then | |
| 6578 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
| 6579 else | |
| 6580 ac_check_lib_save_LIBS=$LIBS | |
| 25897 | 6581 LIBS="-lXmu $LIBS" |
| 40056 | 6582 cat >conftest.$ac_ext <<_ACEOF |
| 40426 | 6583 #line 6583 "configure" |
| 40056 | 6584 #include "confdefs.h" |
| 6585 | |
| 25897 | 6586 /* Override any gcc2 internal prototype to avoid an error. */ |
| 40056 | 6587 #ifdef __cplusplus |
| 6588 extern "C" | |
| 6589 #endif | |
| 25897 | 6590 /* We use char because int might match the return type of a gcc2 |
| 40056 | 6591 builtin and then its argument prototype would still apply. */ |
| 6592 char XmuConvertStandardSelection (); | |
| 6593 int | |
| 6594 main () | |
| 6595 { | |
| 6596 XmuConvertStandardSelection (); | |
| 6597 ; | |
| 6598 return 0; | |
| 6599 } | |
| 6600 _ACEOF | |
| 6601 rm -f conftest.$ac_objext conftest$ac_exeext | |
| 40426 | 6602 if { (eval echo "$as_me:6602: \"$ac_link\"") >&5 |
| 6603 (eval $ac_link) 2>&5 | |
| 6604 ac_status=$? | |
| 6605 echo "$as_me:6605: \$? = $ac_status" >&5 | |
| 40056 | 6606 (exit $ac_status); } && |
| 6607 { ac_try='test -s conftest$ac_exeext' | |
| 40426 | 6608 { (eval echo "$as_me:6608: \"$ac_try\"") >&5 |
| 6609 (eval $ac_try) 2>&5 | |
| 6610 ac_status=$? | |
| 6611 echo "$as_me:6611: \$? = $ac_status" >&5 | |
| 40056 | 6612 (exit $ac_status); }; }; then |
| 6613 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes | |
| 6614 else | |
| 6615 echo "$as_me: failed program was:" >&5 | |
| 6616 cat conftest.$ac_ext >&5 | |
| 6617 ac_cv_lib_Xmu_XmuConvertStandardSelection=no | |
| 6618 fi | |
| 6619 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
| 6620 LIBS=$ac_check_lib_save_LIBS | |
| 6621 fi | |
| 40426 | 6622 echo "$as_me:6622: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5 |
| 40056 | 6623 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6 |
| 6624 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then | |
| 6625 cat >>confdefs.h <<EOF | |
| 6626 #define HAVE_LIBXMU 1 | |
| 25897 | 6627 EOF |
| 6628 | |
| 6629 LIBS="-lXmu $LIBS" | |
| 6630 | |
| 6631 fi | |
| 6632 | |
| 35206 | 6633 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS" |
| 6634 fi | |
| 6635 | |
| 6636 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D. | |
| 6637 if test "${HAVE_X11}" = "yes"; then | |
| 6638 if test "${USE_X_TOOLKIT}" != "none"; then | |
| 40056 | 6639 |
| 40426 | 6640 echo "$as_me:6640: checking for XShapeQueryExtension in -lXext" >&5 |
| 40056 | 6641 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6 |
| 6642 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then | |
| 6643 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
| 6644 else | |
| 6645 ac_check_lib_save_LIBS=$LIBS | |
| 35206 | 6646 LIBS="-lXext $LIBS" |
| 40056 | 6647 cat >conftest.$ac_ext <<_ACEOF |
| 40426 | 6648 #line 6648 "configure" |
| 40056 | 6649 #include "confdefs.h" |
| 6650 | |
| 35206 | 6651 /* Override any gcc2 internal prototype to avoid an error. */ |
| 40056 | 6652 #ifdef __cplusplus |
| 6653 extern "C" | |
| 6654 #endif | |
| 35206 | 6655 /* We use char because int might match the return type of a gcc2 |
| 40056 | 6656 builtin and then its argument prototype would still apply. */ |
| 6657 char XShapeQueryExtension (); | |
| 6658 int | |
| 6659 main () | |
| 6660 { | |
| 6661 XShapeQueryExtension (); | |
| 6662 ; | |
| 6663 return 0; | |
| 6664 } | |
| 6665 _ACEOF | |
| 6666 rm -f conftest.$ac_objext conftest$ac_exeext | |
| 40426 | 6667 if { (eval echo "$as_me:6667: \"$ac_link\"") >&5 |
| 6668 (eval $ac_link) 2>&5 | |
| 6669 ac_status=$? | |
| 6670 echo "$as_me:6670: \$? = $ac_status" >&5 | |
| 40056 | 6671 (exit $ac_status); } && |
| 6672 { ac_try='test -s conftest$ac_exeext' | |
| 40426 | 6673 { (eval echo "$as_me:6673: \"$ac_try\"") >&5 |
| 6674 (eval $ac_try) 2>&5 | |
| 6675 ac_status=$? | |
| 6676 echo "$as_me:6676: \$? = $ac_status" >&5 | |
| 40056 | 6677 (exit $ac_status); }; }; then |
| 6678 ac_cv_lib_Xext_XShapeQueryExtension=yes | |
| 6679 else | |
| 6680 echo "$as_me: failed program was:" >&5 | |
| 6681 cat conftest.$ac_ext >&5 | |
| 6682 ac_cv_lib_Xext_XShapeQueryExtension=no | |
| 6683 fi | |
| 6684 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
| 6685 LIBS=$ac_check_lib_save_LIBS | |
| 6686 fi | |
| 40426 | 6687 echo "$as_me:6687: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5 |
| 40056 | 6688 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6 |
| 6689 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then | |
| 6690 cat >>confdefs.h <<EOF | |
| 6691 #define HAVE_LIBXEXT 1 | |
| 35206 | 6692 EOF |
| 6693 | |
| 6694 LIBS="-lXext $LIBS" | |
| 6695 | |
| 6696 fi | |
| 6697 | |
| 6698 fi | |
| 25897 | 6699 fi |
| 6700 | |
| 6701 if test "${USE_X_TOOLKIT}" = "MOTIF"; then | |
| 40426 | 6702 echo "$as_me:6702: checking for Motif version 2.1" >&5 |
| 40056 | 6703 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6 |
| 6704 if test "${emacs_cv_motif_version_2_1+set}" = set; then | |
| 6705 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
| 6706 else | |
| 6707 cat >conftest.$ac_ext <<_ACEOF | |
| 40426 | 6708 #line 6708 "configure" |
| 25897 | 6709 #include "confdefs.h" |
| 6710 #include <Xm/Xm.h> | |
| 40056 | 6711 int |
| 6712 main () | |
| 6713 { | |
| 25897 | 6714 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1) |
| 6715 int x = 5; | |
| 6716 #else | |
| 6717 Motif version prior to 2.1. | |
| 6718 #endif | |
| 40056 | 6719 ; |
| 6720 return 0; | |
| 6721 } | |
| 6722 _ACEOF | |
| 6723 rm -f conftest.$ac_objext | |
| 40426 | 6724 if { (eval echo "$as_me:6724: \"$ac_compile\"") >&5 |
| 40056 | 6725 (eval $ac_compile) 2>&5 |
| 6726 ac_status=$? | |
| 40426 | 6727 echo "$as_me:6727: \$? = $ac_status" >&5 |
| 40056 | 6728 (exit $ac_status); } && |
| 6729 { ac_try='test -s conftest.$ac_objext' | |
| 40426 | 6730 { (eval echo "$as_me:6730: \"$ac_try\"") >&5 |
| 6731 (eval $ac_try) 2>&5 | |
| 6732 ac_status=$? | |
| 6733 echo "$as_me:6733: \$? = $ac_status" >&5 | |
| 40056 | 6734 (exit $ac_status); }; }; then |
| 25897 | 6735 emacs_cv_motif_version_2_1=yes |
| 6736 else | |
| 40056 | 6737 echo "$as_me: failed program was:" >&5 |
| 6738 cat conftest.$ac_ext >&5 | |
| 6739 emacs_cv_motif_version_2_1=no | |
| 6740 fi | |
| 6741 rm -f conftest.$ac_objext conftest.$ac_ext | |
| 6742 fi | |
| 40426 | 6743 echo "$as_me:6743: result: $emacs_cv_motif_version_2_1" >&5 |
| 40056 | 6744 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6 |
| 25897 | 6745 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1 |
| 6746 if test $emacs_cv_motif_version_2_1 = yes; then | |
| 34431 | 6747 HAVE_LIBXP=no |
| 40056 | 6748 cat >>confdefs.h <<\EOF |
| 25897 | 6749 #define HAVE_MOTIF_2_1 1 |
| 6750 EOF | |
| 6751 | |
| 40426 | 6752 echo "$as_me:6752: checking for XpCreateContext in -lXp" >&5 |
| 40056 | 6753 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6 |
| 6754 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then | |
| 6755 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
| 6756 else | |
| 6757 ac_check_lib_save_LIBS=$LIBS | |
| 35206 | 6758 LIBS="-lXp $LIBS" |
| 40056 | 6759 cat >conftest.$ac_ext <<_ACEOF |
| 40426 | 6760 #line 6760 "configure" |
| 40056 | 6761 #include "confdefs.h" |
| 6762 | |
| 25897 | 6763 /* Override any gcc2 internal prototype to avoid an error. */ |
| 40056 | 6764 #ifdef __cplusplus |
| 6765 extern "C" | |
| 6766 #endif | |
| 25897 | 6767 /* We use char because int might match the return type of a gcc2 |
| 40056 | 6768 builtin and then its argument prototype would still apply. */ |
| 6769 char XpCreateContext (); | |
| 6770 int | |
| 6771 main () | |
| 6772 { | |
| 6773 XpCreateContext (); | |
| 6774 ; | |
| 6775 return 0; | |
| 6776 } | |
| 6777 _ACEOF | |
| 6778 rm -f conftest.$ac_objext conftest$ac_exeext | |
| 40426 | 6779 if { (eval echo "$as_me:6779: \"$ac_link\"") >&5 |
| 6780 (eval $ac_link) 2>&5 | |
| 6781 ac_status=$? | |
| 6782 echo "$as_me:6782: \$? = $ac_status" >&5 | |
| 40056 | 6783 (exit $ac_status); } && |
| 6784 { ac_try='test -s conftest$ac_exeext' | |
| 40426 | 6785 { (eval echo "$as_me:6785: \"$ac_try\"") >&5 |
| 6786 (eval $ac_try) 2>&5 | |
| 6787 ac_status=$? | |
| 6788 echo "$as_me:6788: \$? = $ac_status" >&5 | |
| 40056 | 6789 (exit $ac_status); }; }; then |
| 6790 ac_cv_lib_Xp_XpCreateContext=yes | |
| 6791 else | |
| 6792 echo "$as_me: failed program was:" >&5 | |
| 6793 cat conftest.$ac_ext >&5 | |
| 6794 ac_cv_lib_Xp_XpCreateContext=no | |
| 6795 fi | |
| 6796 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
| 6797 LIBS=$ac_check_lib_save_LIBS | |
| 6798 fi | |
| 40426 | 6799 echo "$as_me:6799: result: $ac_cv_lib_Xp_XpCreateContext" >&5 |
| 40056 | 6800 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6 |
| 6801 if test $ac_cv_lib_Xp_XpCreateContext = yes; then | |
| 29906 | 6802 HAVE_LIBXP=yes |
| 25897 | 6803 fi |
| 6804 | |
| 29906 | 6805 if test ${HAVE_LIBXP} = yes; then |
| 40056 | 6806 cat >>confdefs.h <<\EOF |
| 29906 | 6807 #define HAVE_LIBXP 1 |
| 6808 EOF | |
| 6809 | |
| 40056 | 6810 fi |
| 25897 | 6811 fi |
| 6812 fi | |
| 6813 | |
| 6814 ### Is -lXaw3d available? | |
| 6815 HAVE_XAW3D=no | |
| 6816 if test "${HAVE_X11}" = "yes"; then | |
| 6817 if test "${USE_X_TOOLKIT}" != "none"; then | |
| 40426 | 6818 echo "$as_me:6818: checking for X11/Xaw3d/Scrollbar.h" >&5 |
| 40056 | 6819 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6 |
| 6820 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then | |
| 6821 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
| 6822 else | |
| 6823 cat >conftest.$ac_ext <<_ACEOF | |
| 40426 | 6824 #line 6824 "configure" |
| 25897 | 6825 #include "confdefs.h" |
| 6826 #include <X11/Xaw3d/Scrollbar.h> | |
| 40056 | 6827 _ACEOF |
| 40426 | 6828 if { (eval echo "$as_me:6828: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 40056 | 6829 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 6830 ac_status=$? | |
| 6831 egrep -v '^ *\+' conftest.er1 >conftest.err | |
| 6832 rm -f conftest.er1 | |
| 6833 cat conftest.err >&5 | |
| 40426 | 6834 echo "$as_me:6834: \$? = $ac_status" >&5 |
| 40056 | 6835 (exit $ac_status); } >/dev/null; then |
| 6836 if test -s conftest.err; then | |
| 6837 ac_cpp_err=$ac_c_preproc_warn_flag | |
| 6838 else | |
| 6839 ac_cpp_err= | |
| 6840 fi | |
| 6841 else | |
| 6842 ac_cpp_err=yes | |
| 6843 fi | |
| 6844 if test -z "$ac_cpp_err"; then | |
| 6845 ac_cv_header_X11_Xaw3d_Scrollbar_h=yes | |
| 6846 else | |
| 6847 echo "$as_me: failed program was:" >&5 | |
| 25897 | 6848 cat conftest.$ac_ext >&5 |
| 40056 | 6849 ac_cv_header_X11_Xaw3d_Scrollbar_h=no |
| 6850 fi | |
| 6851 rm -f conftest.err conftest.$ac_ext | |
| 6852 fi | |
| 40426 | 6853 echo "$as_me:6853: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5 |
| 40056 | 6854 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6 |
| 6855 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then | |
| 40426 | 6856 echo "$as_me:6856: checking for XawScrollbarSetThumb in -lXaw3d" >&5 |
| 40056 | 6857 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6 |
| 6858 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then | |
| 6859 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
| 6860 else | |
| 6861 ac_check_lib_save_LIBS=$LIBS | |
| 35206 | 6862 LIBS="-lXaw3d $LIBS" |
| 40056 | 6863 cat >conftest.$ac_ext <<_ACEOF |
| 40426 | 6864 #line 6864 "configure" |
| 40056 | 6865 #include "confdefs.h" |
| 6866 | |
| 25897 | 6867 /* Override any gcc2 internal prototype to avoid an error. */ |
| 40056 | 6868 #ifdef __cplusplus |
| 6869 extern "C" | |
| 6870 #endif | |
| 25897 | 6871 /* We use char because int might match the return type of a gcc2 |
| 40056 | 6872 builtin and then its argument prototype would still apply. */ |
| 6873 char XawScrollbarSetThumb (); | |
| 6874 int | |
| 6875 main () | |
| 6876 { | |
| 6877 XawScrollbarSetThumb (); | |
| 6878 ; | |
| 6879 return 0; | |
| 6880 } | |
| 6881 _ACEOF | |
| 6882 rm -f conftest.$ac_objext conftest$ac_exeext | |
| 40426 | 6883 if { (eval echo "$as_me:6883: \"$ac_link\"") >&5 |
| 6884 (eval $ac_link) 2>&5 | |
| 6885 ac_status=$? | |
| 6886 echo "$as_me:6886: \$? = $ac_status" >&5 | |
| 40056 | 6887 (exit $ac_status); } && |
| 6888 { ac_try='test -s conftest$ac_exeext' | |
| 40426 | 6889 { (eval echo "$as_me:6889: \"$ac_try\"") >&5 |
| 6890 (eval $ac_try) 2>&5 | |
| 6891 ac_status=$? | |
| 6892 echo "$as_me:6892: \$? = $ac_status" >&5 | |
| 40056 | 6893 (exit $ac_status); }; }; then |
| 6894 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes | |
| 6895 else | |
| 6896 echo "$as_me: failed program was:" >&5 | |
| 6897 cat conftest.$ac_ext >&5 | |
| 6898 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no | |
| 6899 fi | |
| 6900 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
| 6901 LIBS=$ac_check_lib_save_LIBS | |
| 6902 fi | |
| 40426 | 6903 echo "$as_me:6903: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5 |
| 40056 | 6904 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6 |
| 6905 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then | |
| 25897 | 6906 HAVE_XAW3D=yes |
| 40056 | 6907 fi |
| 6908 | |
| 25897 | 6909 fi |
| 6910 | |
| 6911 if test "${HAVE_XAW3D}" = "yes"; then | |
| 40056 | 6912 cat >>confdefs.h <<\EOF |
| 25897 | 6913 #define HAVE_XAW3D 1 |
| 6914 EOF | |
| 6915 | |
| 6916 fi | |
| 6917 fi | |
| 6918 fi | |
| 6919 | |
| 6920 USE_TOOLKIT_SCROLL_BARS=no | |
| 6921 if test "${with_toolkit_scroll_bars}" != "no"; then | |
| 6922 if test "${USE_X_TOOLKIT}" != "none"; then | |
| 6923 if test "${USE_X_TOOLKIT}" = "MOTIF"; then | |
| 40056 | 6924 cat >>confdefs.h <<\EOF |
| 25897 | 6925 #define USE_TOOLKIT_SCROLL_BARS 1 |
| 6926 EOF | |
| 6927 | |
| 6928 HAVE_XAW3D=no | |
| 6929 USE_TOOLKIT_SCROLL_BARS=yes | |
| 6930 elif test "${HAVE_XAW3D}" = "yes"; then | |
| 40056 | 6931 cat >>confdefs.h <<\EOF |
| 25897 | 6932 #define USE_TOOLKIT_SCROLL_BARS 1 |
| 6933 EOF | |
| 6934 | |
| 6935 USE_TOOLKIT_SCROLL_BARS=yes | |
| 6936 fi | |
| 6937 fi | |
| 6938 fi | |
| 6939 | |
| 29949 | 6940 if test "${with_xim}" != "no"; then |
| 40056 | 6941 cat >>confdefs.h <<\EOF |
| 29949 | 6942 #define USE_XIM 1 |
| 6943 EOF | |
| 6944 | |
| 6945 fi | |
| 6946 | |
| 25897 | 6947 ### Use -lXpm if available, unless `--with-xpm=no'. |
| 6948 HAVE_XPM=no | |
| 6949 if test "${HAVE_X11}" = "yes"; then | |
| 6950 if test "${with_xpm}" != "no"; then | |
| 40426 | 6951 echo "$as_me:6951: checking for X11/xpm.h" >&5 |
| 40056 | 6952 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6 |
| 6953 if test "${ac_cv_header_X11_xpm_h+set}" = set; then | |
| 6954 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
| 6955 else | |
| 6956 cat >conftest.$ac_ext <<_ACEOF | |
| 40426 | 6957 #line 6957 "configure" |
| 25897 | 6958 #include "confdefs.h" |
| 6959 #include <X11/xpm.h> | |
| 40056 | 6960 _ACEOF |
| 40426 | 6961 if { (eval echo "$as_me:6961: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 40056 | 6962 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 6963 ac_status=$? | |
| 6964 egrep -v '^ *\+' conftest.er1 >conftest.err | |
| 6965 rm -f conftest.er1 | |
| 6966 cat conftest.err >&5 | |
| 40426 | 6967 echo "$as_me:6967: \$? = $ac_status" >&5 |
| 40056 | 6968 (exit $ac_status); } >/dev/null; then |
| 6969 if test -s conftest.err; then | |
| 6970 ac_cpp_err=$ac_c_preproc_warn_flag | |
| 6971 else | |
| 6972 ac_cpp_err= | |
| 6973 fi | |
| 6974 else | |
| 6975 ac_cpp_err=yes | |
| 6976 fi | |
| 6977 if test -z "$ac_cpp_err"; then | |
| 6978 ac_cv_header_X11_xpm_h=yes | |
| 6979 else | |
| 6980 echo "$as_me: failed program was:" >&5 | |
| 25897 | 6981 cat conftest.$ac_ext >&5 |
| 40056 | 6982 ac_cv_header_X11_xpm_h=no |
| 6983 fi | |
| 6984 rm -f conftest.err conftest.$ac_ext | |
| 6985 fi | |
| 40426 | 6986 echo "$as_me:6986: result: $ac_cv_header_X11_xpm_h" >&5 |
| 40056 | 6987 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6 |
| 6988 if test $ac_cv_header_X11_xpm_h = yes; then | |
| 40426 | 6989 echo "$as_me:6989: checking for XpmReadFileToPixmap in -lXpm" >&5 |
| 40056 | 6990 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6 |
| 6991 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then | |
| 6992 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
| 6993 else | |
| 6994 ac_check_lib_save_LIBS=$LIBS | |
| 25897 | 6995 LIBS="-lXpm -lX11 $LIBS" |
| 40056 | 6996 cat >conftest.$ac_ext <<_ACEOF |
| 40426 | 6997 #line 6997 "configure" |
| 40056 | 6998 #include "confdefs.h" |
| 6999 | |
| 25897 | 7000 /* Override any gcc2 internal prototype to avoid an error. */ |
| 40056 | 7001 #ifdef __cplusplus |
| 7002 extern "C" | |
| 7003 #endif | |
| 25897 | 7004 /* We use char because int might match the return type of a gcc2 |
| 40056 | 7005 builtin and then its argument prototype would still apply. */ |
| 7006 char XpmReadFileToPixmap (); | |
| 7007 int | |
| 7008 main () | |
| 7009 { | |
| 7010 XpmReadFileToPixmap (); | |
| 7011 ; | |
| 7012 return 0; | |
| 7013 } | |
| 7014 _ACEOF | |
| 7015 rm -f conftest.$ac_objext conftest$ac_exeext | |
| 40426 | 7016 if { (eval echo "$as_me:7016: \"$ac_link\"") >&5 |
| 7017 (eval $ac_link) 2>&5 | |
| 7018 ac_status=$? | |
| 7019 echo "$as_me:7019: \$? = $ac_status" >&5 | |
| 40056 | 7020 (exit $ac_status); } && |
| 7021 { ac_try='test -s conftest$ac_exeext' | |
| 40426 | 7022 { (eval echo "$as_me:7022: \"$ac_try\"") >&5 |
| 7023 (eval $ac_try) 2>&5 | |
| 7024 ac_status=$? | |
| 7025 echo "$as_me:7025: \$? = $ac_status" >&5 | |
| 40056 | 7026 (exit $ac_status); }; }; then |
| 7027 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes | |
| 7028 else | |
| 7029 echo "$as_me: failed program was:" >&5 | |
| 7030 cat conftest.$ac_ext >&5 | |
| 7031 ac_cv_lib_Xpm_XpmReadFileToPixmap=no | |
| 7032 fi | |
| 7033 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
| 7034 LIBS=$ac_check_lib_save_LIBS | |
| 7035 fi | |
| 40426 | 7036 echo "$as_me:7036: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5 |
| 40056 | 7037 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6 |
| 7038 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then | |
| 25897 | 7039 HAVE_XPM=yes |
| 40056 | 7040 fi |
| 7041 | |
| 25897 | 7042 fi |
| 7043 | |
| 30140 | 7044 if test "${HAVE_XPM}" = "yes"; then |
| 40426 | 7045 echo "$as_me:7045: checking for XpmReturnAllocPixels preprocessor define" >&5 |
| 40056 | 7046 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6 |
| 7047 cat >conftest.$ac_ext <<_ACEOF | |
| 40426 | 7048 #line 7048 "configure" |
| 30140 | 7049 #include "confdefs.h" |
| 7050 #include "X11/xpm.h" | |
| 7051 #ifndef XpmReturnAllocPixels | |
| 7052 no_return_alloc_pixels | |
| 7053 #endif | |
| 40056 | 7054 |
| 7055 _ACEOF | |
| 30140 | 7056 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 7057 egrep "no_return_alloc_pixels" >/dev/null 2>&1; then | |
| 7058 HAVE_XPM=no | |
| 7059 else | |
| 7060 HAVE_XPM=yes | |
| 7061 fi | |
| 7062 rm -f conftest* | |
| 7063 | |
| 36903 | 7064 if test "${HAVE_XPM}" = "yes"; then |
| 40426 | 7065 echo "$as_me:7065: result: yes" >&5 |
| 40056 | 7066 echo "${ECHO_T}yes" >&6 |
| 36903 | 7067 else |
| 40426 | 7068 echo "$as_me:7068: result: no" >&5 |
| 40056 | 7069 echo "${ECHO_T}no" >&6 |
| 36903 | 7070 fi |
| 31320 | 7071 fi |
| 25897 | 7072 fi |
| 7073 | |
| 7074 if test "${HAVE_XPM}" = "yes"; then | |
| 40056 | 7075 cat >>confdefs.h <<\EOF |
| 25897 | 7076 #define HAVE_XPM 1 |
| 7077 EOF | |
| 7078 | |
| 7079 fi | |
| 7080 fi | |
| 40056 | 7081 |
| 25897 | 7082 ### Use -ljpeg if available, unless `--with-jpeg=no'. |
| 7083 HAVE_JPEG=no | |
| 7084 if test "${HAVE_X11}" = "yes"; then | |
| 7085 if test "${with_jpeg}" != "no"; then | |
| 40426 | 7086 echo "$as_me:7086: checking for jerror.h" >&5 |
| 40056 | 7087 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6 |
| 7088 if test "${ac_cv_header_jerror_h+set}" = set; then | |
| 7089 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
| 7090 else | |
| 7091 cat >conftest.$ac_ext <<_ACEOF | |
| 40426 | 7092 #line 7092 "configure" |
| 27356 | 7093 #include "confdefs.h" |
| 7094 #include <jerror.h> | |
| 40056 | 7095 _ACEOF |
| 40426 | 7096 if { (eval echo "$as_me:7096: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 40056 | 7097 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 7098 ac_status=$? | |
| 7099 egrep -v '^ *\+' conftest.er1 >conftest.err | |
| 7100 rm -f conftest.er1 | |
| 7101 cat conftest.err >&5 | |
| 40426 | 7102 echo "$as_me:7102: \$? = $ac_status" >&5 |
| 40056 | 7103 (exit $ac_status); } >/dev/null; then |
| 7104 if test -s conftest.err; then | |
| 7105 ac_cpp_err=$ac_c_preproc_warn_flag | |
| 7106 else | |
| 7107 ac_cpp_err= | |
| 7108 fi | |
| 7109 else | |
| 7110 ac_cpp_err=yes | |
| 7111 fi | |
| 7112 if test -z "$ac_cpp_err"; then | |
| 7113 ac_cv_header_jerror_h=yes | |
| 7114 else | |
| 7115 echo "$as_me: failed program was:" >&5 | |
| 27356 | 7116 cat conftest.$ac_ext >&5 |
| 40056 | 7117 ac_cv_header_jerror_h=no |
| 7118 fi | |
| 7119 rm -f conftest.err conftest.$ac_ext | |
| 7120 fi | |
| 40426 | 7121 echo "$as_me:7121: result: $ac_cv_header_jerror_h" >&5 |
| 40056 | 7122 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6 |
| 7123 if test $ac_cv_header_jerror_h = yes; then | |
| 40426 | 7124 echo "$as_me:7124: checking for jpeg_destroy_compress in -ljpeg" >&5 |
| 40056 | 7125 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6 |
| 7126 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then | |
| 7127 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
| 7128 else | |
| 7129 ac_check_lib_save_LIBS=$LIBS | |
| 35206 | 7130 LIBS="-ljpeg $LIBS" |
| 40056 | 7131 cat >conftest.$ac_ext <<_ACEOF |
| 40426 | 7132 #line 7132 "configure" |
| 40056 | 7133 #include "confdefs.h" |
| 7134 | |
| 25897 | 7135 /* Override any gcc2 internal prototype to avoid an error. */ |
| 40056 | 7136 #ifdef __cplusplus |
| 7137 extern "C" | |
| 7138 #endif | |
| 25897 | 7139 /* We use char because int might match the return type of a gcc2 |
| 40056 | 7140 builtin and then its argument prototype would still apply. */ |
| 7141 char jpeg_destroy_compress (); | |
| 7142 int | |
| 7143 main () | |
| 7144 { | |
| 7145 jpeg_destroy_compress (); | |
| 7146 ; | |
| 7147 return 0; | |
| 7148 } | |
| 7149 _ACEOF | |
| 7150 rm -f conftest.$ac_objext conftest$ac_exeext | |
| 40426 | 7151 if { (eval echo "$as_me:7151: \"$ac_link\"") >&5 |
| 7152 (eval $ac_link) 2>&5 | |
| 7153 ac_status=$? | |
| 7154 echo "$as_me:7154: \$? = $ac_status" >&5 | |
| 40056 | 7155 (exit $ac_status); } && |
| 7156 { ac_try='test -s conftest$ac_exeext' | |
| 40426 | 7157 { (eval echo "$as_me:7157: \"$ac_try\"") >&5 |
| 7158 (eval $ac_try) 2>&5 | |
| 7159 ac_status=$? | |
| 7160 echo "$as_me:7160: \$? = $ac_status" >&5 | |
| 40056 | 7161 (exit $ac_status); }; }; then |
| 7162 ac_cv_lib_jpeg_jpeg_destroy_compress=yes | |
| 7163 else | |
| 7164 echo "$as_me: failed program was:" >&5 | |
| 7165 cat conftest.$ac_ext >&5 | |
| 7166 ac_cv_lib_jpeg_jpeg_destroy_compress=no | |
| 7167 fi | |
| 7168 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
| 7169 LIBS=$ac_check_lib_save_LIBS | |
| 7170 fi | |
| 40426 | 7171 echo "$as_me:7171: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5 |
| 40056 | 7172 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6 |
| 7173 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then | |
| 25897 | 7174 HAVE_JPEG=yes |
| 40056 | 7175 fi |
| 7176 | |
| 27356 | 7177 fi |
| 7178 | |
| 25897 | 7179 fi |
| 7180 | |
| 7181 if test "${HAVE_JPEG}" = "yes"; then | |
| 40056 | 7182 cat >>confdefs.h <<\EOF |
| 25897 | 7183 #define HAVE_JPEG 1 |
| 7184 EOF | |
| 7185 | |
| 7186 fi | |
| 7187 fi | |
| 40056 | 7188 |
| 25897 | 7189 ### Use -lpng if available, unless `--with-png=no'. |
| 7190 HAVE_PNG=no | |
| 7191 if test "${HAVE_X11}" = "yes"; then | |
| 7192 if test "${with_png}" != "no"; then | |
| 40426 | 7193 echo "$as_me:7193: checking for png.h" >&5 |
| 40056 | 7194 echo $ECHO_N "checking for png.h... $ECHO_C" >&6 |
| 7195 if test "${ac_cv_header_png_h+set}" = set; then | |
| 7196 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
| 7197 else | |
| 7198 cat >conftest.$ac_ext <<_ACEOF | |
| 40426 | 7199 #line 7199 "configure" |
| 25897 | 7200 #include "confdefs.h" |
| 7201 #include <png.h> | |
| 40056 | 7202 _ACEOF |
| 40426 | 7203 if { (eval echo "$as_me:7203: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 40056 | 7204 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 7205 ac_status=$? | |
| 7206 egrep -v '^ *\+' conftest.er1 >conftest.err | |
| 7207 rm -f conftest.er1 | |
| 7208 cat conftest.err >&5 | |
| 40426 | 7209 echo "$as_me:7209: \$? = $ac_status" >&5 |
| 40056 | 7210 (exit $ac_status); } >/dev/null; then |
| 7211 if test -s conftest.err; then | |
| 7212 ac_cpp_err=$ac_c_preproc_warn_flag | |
| 7213 else | |
| 7214 ac_cpp_err= | |
| 7215 fi | |
| 7216 else | |
| 7217 ac_cpp_err=yes | |
| 7218 fi | |
| 7219 if test -z "$ac_cpp_err"; then | |
| 7220 ac_cv_header_png_h=yes | |
| 7221 else | |
| 7222 echo "$as_me: failed program was:" >&5 | |
| 25897 | 7223 cat conftest.$ac_ext >&5 |
| 40056 | 7224 ac_cv_header_png_h=no |
| 7225 fi | |
| 7226 rm -f conftest.err conftest.$ac_ext | |
| 7227 fi | |
| 40426 | 7228 echo "$as_me:7228: result: $ac_cv_header_png_h" >&5 |
| 40056 | 7229 echo "${ECHO_T}$ac_cv_header_png_h" >&6 |
| 7230 if test $ac_cv_header_png_h = yes; then | |
| 40426 | 7231 echo "$as_me:7231: checking for png_get_channels in -lpng" >&5 |
| 40056 | 7232 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6 |
| 7233 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then | |
| 7234 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
| 7235 else | |
| 7236 ac_check_lib_save_LIBS=$LIBS | |
| 35206 | 7237 LIBS="-lpng -lz -lm $LIBS" |
| 40056 | 7238 cat >conftest.$ac_ext <<_ACEOF |
| 40426 | 7239 #line 7239 "configure" |
| 40056 | 7240 #include "confdefs.h" |
| 7241 | |
| 25897 | 7242 /* Override any gcc2 internal prototype to avoid an error. */ |
| 40056 | 7243 #ifdef __cplusplus |
| 7244 extern "C" | |
| 7245 #endif | |
| 25897 | 7246 /* We use char because int might match the return type of a gcc2 |
| 40056 | 7247 builtin and then its argument prototype would still apply. */ |
| 7248 char png_get_channels (); | |
| 7249 int | |
| 7250 main () | |
| 7251 { | |
| 7252 png_get_channels (); | |
| 7253 ; | |
| 7254 return 0; | |
| 7255 } | |
| 7256 _ACEOF | |
| 7257 rm -f conftest.$ac_objext conftest$ac_exeext | |
| 40426 | 7258 if { (eval echo "$as_me:7258: \"$ac_link\"") >&5 |
| 7259 (eval $ac_link) 2>&5 | |
| 7260 ac_status=$? | |
| 7261 echo "$as_me:7261: \$? = $ac_status" >&5 | |
| 40056 | 7262 (exit $ac_status); } && |
| 7263 { ac_try='test -s conftest$ac_exeext' | |
| 40426 | 7264 { (eval echo "$as_me:7264: \"$ac_try\"") >&5 |
| 7265 (eval $ac_try) 2>&5 | |
| 7266 ac_status=$? | |
| 7267 echo "$as_me:7267: \$? = $ac_status" >&5 | |
| 40056 | 7268 (exit $ac_status); }; }; then |
| 7269 ac_cv_lib_png_png_get_channels=yes | |
| 7270 else | |
| 7271 echo "$as_me: failed program was:" >&5 | |
| 7272 cat conftest.$ac_ext >&5 | |
| 7273 ac_cv_lib_png_png_get_channels=no | |
| 7274 fi | |
| 7275 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
| 7276 LIBS=$ac_check_lib_save_LIBS | |
| 7277 fi | |
| 40426 | 7278 echo "$as_me:7278: result: $ac_cv_lib_png_png_get_channels" >&5 |
| 40056 | 7279 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6 |
| 7280 if test $ac_cv_lib_png_png_get_channels = yes; then | |
| 25897 | 7281 HAVE_PNG=yes |
| 40056 | 7282 fi |
| 7283 | |
| 25897 | 7284 fi |
| 7285 | |
| 7286 fi | |
| 7287 | |
| 7288 if test "${HAVE_PNG}" = "yes"; then | |
| 40056 | 7289 cat >>confdefs.h <<\EOF |
| 25897 | 7290 #define HAVE_PNG 1 |
| 7291 EOF | |
| 7292 | |
| 7293 fi | |
| 7294 fi | |
| 40056 | 7295 |
| 25897 | 7296 ### Use -ltiff if available, unless `--with-tiff=no'. |
| 7297 HAVE_TIFF=no | |
| 7298 if test "${HAVE_X11}" = "yes"; then | |
| 7299 if test "${with_tiff}" != "no"; then | |
| 40426 | 7300 echo "$as_me:7300: checking for tiffio.h" >&5 |
| 40056 | 7301 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6 |
| 7302 if test "${ac_cv_header_tiffio_h+set}" = set; then | |
| 7303 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
| 7304 else | |
| 7305 cat >conftest.$ac_ext <<_ACEOF | |
| 40426 | 7306 #line 7306 "configure" |
| 25897 | 7307 #include "confdefs.h" |
| 7308 #include <tiffio.h> | |
| 40056 | 7309 _ACEOF |
| 40426 | 7310 if { (eval echo "$as_me:7310: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 40056 | 7311 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 7312 ac_status=$? | |
| 7313 egrep -v '^ *\+' conftest.er1 >conftest.err | |
| 7314 rm -f conftest.er1 | |
| 7315 cat conftest.err >&5 | |
| 40426 | 7316 echo "$as_me:7316: \$? = $ac_status" >&5 |
| 40056 | 7317 (exit $ac_status); } >/dev/null; then |
| 7318 if test -s conftest.err; then | |
| 7319 ac_cpp_err=$ac_c_preproc_warn_flag | |
| 7320 else | |
| 7321 ac_cpp_err= | |
| 7322 fi | |
| 7323 else | |
| 7324 ac_cpp_err=yes | |
| 7325 fi | |
| 7326 if test -z "$ac_cpp_err"; then | |
| 7327 ac_cv_header_tiffio_h=yes | |
| 7328 else | |
| 7329 echo "$as_me: failed program was:" >&5 | |
| 25897 | 7330 cat conftest.$ac_ext >&5 |
| 40056 | 7331 ac_cv_header_tiffio_h=no |
| 7332 fi | |
| 7333 rm -f conftest.err conftest.$ac_ext | |
| 7334 fi | |
| 40426 | 7335 echo "$as_me:7335: result: $ac_cv_header_tiffio_h" >&5 |
| 40056 | 7336 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6 |
| 7337 if test $ac_cv_header_tiffio_h = yes; then | |
| 35206 | 7338 tifflibs="-lz -lm" |
|
27752
7ee8155d48c5
include -lz and -ljpeg when testing for -ltiff
Ken Raeburn <raeburn@raeburn.org>
parents:
27729
diff
changeset
|
7339 # At least one tiff package requires the jpeg library. |
|
7ee8155d48c5
include -lz and -ljpeg when testing for -ltiff
Ken Raeburn <raeburn@raeburn.org>
parents:
27729
diff
changeset
|
7340 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi |
| 40426 | 7341 echo "$as_me:7341: checking for TIFFGetVersion in -ltiff" >&5 |
| 40056 | 7342 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6 |
| 7343 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then | |
| 7344 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
| 7345 else | |
| 7346 ac_check_lib_save_LIBS=$LIBS | |
|
27752
7ee8155d48c5
include -lz and -ljpeg when testing for -ltiff
Ken Raeburn <raeburn@raeburn.org>
parents:
27729
diff
changeset
|
7347 LIBS="-ltiff $tifflibs $LIBS" |
| 40056 | 7348 cat >conftest.$ac_ext <<_ACEOF |
| 40426 | 7349 #line 7349 "configure" |
| 40056 | 7350 #include "confdefs.h" |
| 7351 | |
| 25897 | 7352 /* Override any gcc2 internal prototype to avoid an error. */ |
| 40056 | 7353 #ifdef __cplusplus |
| 7354 extern "C" | |
| 7355 #endif | |
| 25897 | 7356 /* We use char because int might match the return type of a gcc2 |
| 40056 | 7357 builtin and then its argument prototype would still apply. */ |
| 7358 char TIFFGetVersion (); | |
| 7359 int | |
| 7360 main () | |
| 7361 { | |
| 7362 TIFFGetVersion (); | |
| 7363 ; | |
| 7364 return 0; | |
| 7365 } | |
| 7366 _ACEOF | |
| 7367 rm -f conftest.$ac_objext conftest$ac_exeext | |
| 40426 | 7368 if { (eval echo "$as_me:7368: \"$ac_link\"") >&5 |
| 7369 (eval $ac_link) 2>&5 | |
| 7370 ac_status=$? | |
| 7371 echo "$as_me:7371: \$? = $ac_status" >&5 | |
| 40056 | 7372 (exit $ac_status); } && |
| 7373 { ac_try='test -s conftest$ac_exeext' | |
| 40426 | 7374 { (eval echo "$as_me:7374: \"$ac_try\"") >&5 |
| 7375 (eval $ac_try) 2>&5 | |
| 7376 ac_status=$? | |
| 7377 echo "$as_me:7377: \$? = $ac_status" >&5 | |
| 40056 | 7378 (exit $ac_status); }; }; then |
| 7379 ac_cv_lib_tiff_TIFFGetVersion=yes | |
| 7380 else | |
| 7381 echo "$as_me: failed program was:" >&5 | |
| 7382 cat conftest.$ac_ext >&5 | |
| 7383 ac_cv_lib_tiff_TIFFGetVersion=no | |
| 7384 fi | |
| 7385 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
| 7386 LIBS=$ac_check_lib_save_LIBS | |
| 7387 fi | |
| 40426 | 7388 echo "$as_me:7388: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5 |
| 40056 | 7389 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6 |
| 7390 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then | |
| 25897 | 7391 HAVE_TIFF=yes |
| 40056 | 7392 fi |
| 7393 | |
| 25897 | 7394 fi |
| 7395 | |
| 7396 fi | |
| 7397 | |
| 7398 if test "${HAVE_TIFF}" = "yes"; then | |
| 40056 | 7399 cat >>confdefs.h <<\EOF |
| 25897 | 7400 #define HAVE_TIFF 1 |
| 7401 EOF | |
| 7402 | |
| 7403 fi | |
| 7404 fi | |
| 40056 | 7405 |
| 25897 | 7406 ### Use -lgif if available, unless `--with-gif=no'. |
| 7407 HAVE_GIF=no | |
| 7408 if test "${HAVE_X11}" = "yes"; then | |
| 7409 if test "${with_gif}" != "no"; then | |
| 40426 | 7410 echo "$as_me:7410: checking for gif_lib.h" >&5 |
| 40056 | 7411 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6 |
| 7412 if test "${ac_cv_header_gif_lib_h+set}" = set; then | |
| 7413 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
| 7414 else | |
| 7415 cat >conftest.$ac_ext <<_ACEOF | |
| 40426 | 7416 #line 7416 "configure" |
| 25897 | 7417 #include "confdefs.h" |
| 7418 #include <gif_lib.h> | |
| 40056 | 7419 _ACEOF |
| 40426 | 7420 if { (eval echo "$as_me:7420: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 40056 | 7421 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 7422 ac_status=$? | |
| 7423 egrep -v '^ *\+' conftest.er1 >conftest.err | |
| 7424 rm -f conftest.er1 | |
| 7425 cat conftest.err >&5 | |
| 40426 | 7426 echo "$as_me:7426: \$? = $ac_status" >&5 |
| 40056 | 7427 (exit $ac_status); } >/dev/null; then |
| 7428 if test -s conftest.err; then | |
| 7429 ac_cpp_err=$ac_c_preproc_warn_flag | |
| 7430 else | |
| 7431 ac_cpp_err= | |
| 7432 fi | |
| 7433 else | |
| 7434 ac_cpp_err=yes | |
| 7435 fi | |
| 7436 if test -z "$ac_cpp_err"; then | |
| 7437 ac_cv_header_gif_lib_h=yes | |
| 7438 else | |
| 7439 echo "$as_me: failed program was:" >&5 | |
| 25897 | 7440 cat conftest.$ac_ext >&5 |
| 40056 | 7441 ac_cv_header_gif_lib_h=no |
| 7442 fi | |
| 7443 rm -f conftest.err conftest.$ac_ext | |
| 7444 fi | |
| 40426 | 7445 echo "$as_me:7445: result: $ac_cv_header_gif_lib_h" >&5 |
| 40056 | 7446 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6 |
| 7447 if test $ac_cv_header_gif_lib_h = yes; then | |
| 40426 | 7448 echo "$as_me:7448: checking for DGifOpen in -lungif" >&5 |
| 40056 | 7449 echo $ECHO_N "checking for DGifOpen in -lungif... $ECHO_C" >&6 |
| 7450 if test "${ac_cv_lib_ungif_DGifOpen+set}" = set; then | |
| 7451 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
| 7452 else | |
| 7453 ac_check_lib_save_LIBS=$LIBS | |
| 35206 | 7454 LIBS="-lungif $LIBS" |
| 40056 | 7455 cat >conftest.$ac_ext <<_ACEOF |
| 40426 | 7456 #line 7456 "configure" |
| 40056 | 7457 #include "confdefs.h" |
| 7458 | |
| 25897 | 7459 /* Override any gcc2 internal prototype to avoid an error. */ |
| 40056 | 7460 #ifdef __cplusplus |
| 7461 extern "C" | |
| 7462 #endif | |
| 25897 | 7463 /* We use char because int might match the return type of a gcc2 |
| 40056 | 7464 builtin and then its argument prototype would still apply. */ |
| 7465 char DGifOpen (); | |
| 7466 int | |
| 7467 main () | |
| 7468 { | |
| 7469 DGifOpen (); | |
| 7470 ; | |
| 7471 return 0; | |
| 7472 } | |
| 7473 _ACEOF | |
| 7474 rm -f conftest.$ac_objext conftest$ac_exeext | |
| 40426 | 7475 if { (eval echo "$as_me:7475: \"$ac_link\"") >&5 |
| 7476 (eval $ac_link) 2>&5 | |
| 7477 ac_status=$? | |
| 7478 echo "$as_me:7478: \$? = $ac_status" >&5 | |
| 40056 | 7479 (exit $ac_status); } && |
| 7480 { ac_try='test -s conftest$ac_exeext' | |
| 40426 | 7481 { (eval echo "$as_me:7481: \"$ac_try\"") >&5 |
| 7482 (eval $ac_try) 2>&5 | |
| 7483 ac_status=$? | |
| 7484 echo "$as_me:7484: \$? = $ac_status" >&5 | |
| 40056 | 7485 (exit $ac_status); }; }; then |
| 7486 ac_cv_lib_ungif_DGifOpen=yes | |
| 7487 else | |
| 7488 echo "$as_me: failed program was:" >&5 | |
| 7489 cat conftest.$ac_ext >&5 | |
| 7490 ac_cv_lib_ungif_DGifOpen=no | |
| 7491 fi | |
| 7492 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
| 7493 LIBS=$ac_check_lib_save_LIBS | |
| 7494 fi | |
| 40426 | 7495 echo "$as_me:7495: result: $ac_cv_lib_ungif_DGifOpen" >&5 |
| 40056 | 7496 echo "${ECHO_T}$ac_cv_lib_ungif_DGifOpen" >&6 |
| 7497 if test $ac_cv_lib_ungif_DGifOpen = yes; then | |
| 25897 | 7498 HAVE_GIF=yes |
| 40056 | 7499 fi |
| 7500 | |
| 25897 | 7501 fi |
| 7502 | |
| 7503 fi | |
| 7504 | |
| 7505 if test "${HAVE_GIF}" = "yes"; then | |
| 40056 | 7506 cat >>confdefs.h <<\EOF |
| 25897 | 7507 #define HAVE_GIF 1 |
| 7508 EOF | |
| 7509 | |
| 7510 fi | |
| 7511 fi | |
| 7512 | |
| 7513 # If netdb.h doesn't declare h_errno, we must declare it by hand. | |
| 40426 | 7514 echo "$as_me:7514: checking whether netdb declares h_errno" >&5 |
| 40056 | 7515 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6 |
| 7516 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then | |
| 7517 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
| 7518 else | |
| 7519 cat >conftest.$ac_ext <<_ACEOF | |
| 40426 | 7520 #line 7520 "configure" |
| 25897 | 7521 #include "confdefs.h" |
| 7522 #include <netdb.h> | |
| 40056 | 7523 int |
| 7524 main () | |
| 7525 { | |
| 25897 | 7526 return h_errno; |
| 40056 | 7527 ; |
| 7528 return 0; | |
| 7529 } | |
| 7530 _ACEOF | |
| 7531 rm -f conftest.$ac_objext conftest$ac_exeext | |
| 40426 | 7532 if { (eval echo "$as_me:7532: \"$ac_link\"") >&5 |
| 7533 (eval $ac_link) 2>&5 | |
| 7534 ac_status=$? | |
| 7535 echo "$as_me:7535: \$? = $ac_status" >&5 | |
| 40056 | 7536 (exit $ac_status); } && |
| 7537 { ac_try='test -s conftest$ac_exeext' | |
| 40426 | 7538 { (eval echo "$as_me:7538: \"$ac_try\"") >&5 |
| 7539 (eval $ac_try) 2>&5 | |
| 7540 ac_status=$? | |
| 7541 echo "$as_me:7541: \$? = $ac_status" >&5 | |
| 40056 | 7542 (exit $ac_status); }; }; then |
| 25897 | 7543 emacs_cv_netdb_declares_h_errno=yes |
| 7544 else | |
| 40056 | 7545 echo "$as_me: failed program was:" >&5 |
| 7546 cat conftest.$ac_ext >&5 | |
| 7547 emacs_cv_netdb_declares_h_errno=no | |
| 7548 fi | |
| 7549 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
| 7550 fi | |
| 40426 | 7551 echo "$as_me:7551: result: $emacs_cv_netdb_declares_h_errno" >&5 |
| 40056 | 7552 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6 |
| 25897 | 7553 if test $emacs_cv_netdb_declares_h_errno = yes; then |
| 40056 | 7554 cat >>confdefs.h <<\EOF |
| 25897 | 7555 #define HAVE_H_ERRNO 1 |
| 7556 EOF | |
| 7557 | |
| 7558 fi | |
| 7559 | |
| 7560 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works | |
| 7561 # for constant arguments. Useless! | |
| 40426 | 7562 echo "$as_me:7562: checking for working alloca.h" >&5 |
| 40056 | 7563 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6 |
| 7564 if test "${ac_cv_working_alloca_h+set}" = set; then | |
| 7565 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
| 7566 else | |
| 7567 cat >conftest.$ac_ext <<_ACEOF | |
| 40426 | 7568 #line 7568 "configure" |
| 25897 | 7569 #include "confdefs.h" |
| 7570 #include <alloca.h> | |
| 40056 | 7571 int |
| 7572 main () | |
| 7573 { | |
| 7574 char *p = (char *) alloca (2 * sizeof (int)); | |
| 7575 ; | |
| 7576 return 0; | |
| 7577 } | |
| 7578 _ACEOF | |
| 7579 rm -f conftest.$ac_objext conftest$ac_exeext | |
| 40426 | 7580 if { (eval echo "$as_me:7580: \"$ac_link\"") >&5 |
| 7581 (eval $ac_link) 2>&5 | |
| 7582 ac_status=$? | |
| 7583 echo "$as_me:7583: \$? = $ac_status" >&5 | |
| 40056 | 7584 (exit $ac_status); } && |
| 7585 { ac_try='test -s conftest$ac_exeext' | |
| 40426 | 7586 { (eval echo "$as_me:7586: \"$ac_try\"") >&5 |
| 7587 (eval $ac_try) 2>&5 | |
| 7588 ac_status=$? | |
| 7589 echo "$as_me:7589: \$? = $ac_status" >&5 | |
| 40056 | 7590 (exit $ac_status); }; }; then |
| 7591 ac_cv_working_alloca_h=yes | |
| 7592 else | |
| 7593 echo "$as_me: failed program was:" >&5 | |
| 7594 cat conftest.$ac_ext >&5 | |
| 7595 ac_cv_working_alloca_h=no | |
| 7596 fi | |
| 7597 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
| 7598 fi | |
| 40426 | 7599 echo "$as_me:7599: result: $ac_cv_working_alloca_h" >&5 |
| 40056 | 7600 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6 |
| 7601 if test $ac_cv_working_alloca_h = yes; then | |
| 7602 | |
| 7603 cat >>confdefs.h <<\EOF | |
| 25897 | 7604 #define HAVE_ALLOCA_H 1 |
| 7605 EOF | |
| 7606 | |
| 7607 fi | |
| 7608 | |
| 40426 | 7609 echo "$as_me:7609: checking for alloca" >&5 |
| 40056 | 7610 echo $ECHO_N "checking for alloca... $ECHO_C" >&6 |
| 7611 if test "${ac_cv_func_alloca_works+set}" = set; then | |
| 7612 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
| 7613 else | |
| 7614 cat >conftest.$ac_ext <<_ACEOF | |
| 40426 | 7615 #line 7615 "configure" |
| 40056 | 7616 #include "confdefs.h" |
| 25897 | 7617 #ifdef __GNUC__ |
| 7618 # define alloca __builtin_alloca | |
| 7619 #else | |
| 27205 | 7620 # ifdef _MSC_VER |
| 7621 # include <malloc.h> | |
| 7622 # define alloca _alloca | |
| 25897 | 7623 # else |
| 27205 | 7624 # if HAVE_ALLOCA_H |
| 7625 # include <alloca.h> | |
| 25897 | 7626 # else |
| 27205 | 7627 # ifdef _AIX |
| 7628 #pragma alloca | |
| 7629 # else | |
| 7630 # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
| 25897 | 7631 char *alloca (); |
| 27205 | 7632 # endif |
| 25897 | 7633 # endif |
| 7634 # endif | |
| 7635 # endif | |
| 7636 #endif | |
| 7637 | |
| 40056 | 7638 int |
| 7639 main () | |
| 7640 { | |
| 7641 char *p = (char *) alloca (1); | |
| 7642 ; | |
| 7643 return 0; | |
| 7644 } | |
| 7645 _ACEOF | |
| 7646 rm -f conftest.$ac_objext conftest$ac_exeext | |
| 40426 | 7647 if { (eval echo "$as_me:7647: \"$ac_link\"") >&5 |
| 7648 (eval $ac_link) 2>&5 | |
| 7649 ac_status=$? | |
| 7650 echo "$as_me:7650: \$? = $ac_status" >&5 | |
| 40056 | 7651 (exit $ac_status); } && |
| 7652 { ac_try='test -s conftest$ac_exeext' | |
| 40426 | 7653 { (eval echo "$as_me:7653: \"$ac_try\"") >&5 |
| 7654 (eval $ac_try) 2>&5 | |
| 7655 ac_status=$? | |
| 7656 echo "$as_me:7656: \$? = $ac_status" >&5 | |
| 40056 | 7657 (exit $ac_status); }; }; then |
| 25897 | 7658 ac_cv_func_alloca_works=yes |
| 7659 else | |
| 40056 | 7660 echo "$as_me: failed program was:" >&5 |
| 7661 cat conftest.$ac_ext >&5 | |
| 7662 ac_cv_func_alloca_works=no | |
| 7663 fi | |
| 7664 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
| 7665 fi | |
| 40426 | 7666 echo "$as_me:7666: result: $ac_cv_func_alloca_works" >&5 |
| 40056 | 7667 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6 |
| 7668 | |
| 25897 | 7669 if test $ac_cv_func_alloca_works = yes; then |
| 40056 | 7670 |
| 7671 cat >>confdefs.h <<\EOF | |
| 25897 | 7672 #define HAVE_ALLOCA 1 |
| 7673 EOF | |
| 7674 | |
| 40056 | 7675 else |
| 25897 | 7676 # The SVR3 libPW and SVR4 libucb both contain incompatible functions |
| 40056 | 7677 # that cause trouble. Some versions do not even contain alloca or |
| 7678 # contain a buggy version. If you still want to use their alloca, | |
| 7679 # use ar to extract alloca.o from them instead of compiling alloca.c. | |
| 7680 | |
| 7681 ALLOCA=alloca.$ac_objext | |
| 7682 | |
| 7683 cat >>confdefs.h <<\EOF | |
| 25897 | 7684 #define C_ALLOCA 1 |
| 7685 EOF | |
| 7686 | |
| 40426 | 7687 echo "$as_me:7687: checking whether \`alloca.c' needs Cray hooks" >&5 |
| 40056 | 7688 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6 |
| 7689 if test "${ac_cv_os_cray+set}" = set; then | |
| 7690 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
| 7691 else | |
| 7692 cat >conftest.$ac_ext <<_ACEOF | |
| 40426 | 7693 #line 7693 "configure" |
| 25897 | 7694 #include "confdefs.h" |
| 7695 #if defined(CRAY) && ! defined(CRAY2) | |
| 7696 webecray | |
| 7697 #else | |
| 7698 wenotbecray | |
| 7699 #endif | |
| 7700 | |
| 40056 | 7701 _ACEOF |
| 25897 | 7702 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 7703 egrep "webecray" >/dev/null 2>&1; then | |
| 7704 ac_cv_os_cray=yes | |
| 7705 else | |
| 7706 ac_cv_os_cray=no | |
| 7707 fi | |
| 7708 rm -f conftest* | |
| 7709 | |
| 7710 fi | |
| 40426 | 7711 echo "$as_me:7711: result: $ac_cv_os_cray" >&5 |
| 40056 | 7712 echo "${ECHO_T}$ac_cv_os_cray" >&6 |
| 25897 | 7713 if test $ac_cv_os_cray = yes; then |
| 40056 | 7714 for ac_func in _getb67 GETB67 getb67; do |
| 7715 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
| 40426 | 7716 echo "$as_me:7716: checking for $ac_func" >&5 |
| 40056 | 7717 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 7718 if eval "test \"\${$as_ac_var+set}\" = set"; then | |
| 7719 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
| 7720 else | |
| 7721 cat >conftest.$ac_ext <<_ACEOF | |
| 40426 | 7722 #line 7722 "configure" |
| 25897 | 7723 #include "confdefs.h" |
| 7724 /* System header to define __stub macros and hopefully few prototypes, | |
| 40056 | 7725 which can conflict with char $ac_func (); below. */ |
| 25897 | 7726 #include <assert.h> |
| 7727 /* Override any gcc2 internal prototype to avoid an error. */ | |
| 40056 | 7728 #ifdef __cplusplus |
| 7729 extern "C" | |
| 7730 #endif | |
| 25897 | 7731 /* We use char because int might match the return type of a gcc2 |
| 40056 | 7732 builtin and then its argument prototype would still apply. */ |
| 7733 char $ac_func (); | |
| 7734 char (*f) (); | |
| 7735 | |
| 7736 int | |
| 7737 main () | |
| 7738 { | |
| 25897 | 7739 /* The GNU C library defines this for functions which it implements |
| 7740 to always fail with ENOSYS. Some functions are actually named | |
| 7741 something starting with __ and the normal name is an alias. */ | |
| 7742 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
| 7743 choke me | |
| 7744 #else | |
| 40056 | 7745 f = $ac_func; |
| 7746 #endif | |
| 7747 | |
| 7748 ; | |
| 7749 return 0; | |
| 7750 } | |
| 7751 _ACEOF | |
| 7752 rm -f conftest.$ac_objext conftest$ac_exeext | |
| 40426 | 7753 if { (eval echo "$as_me:7753: \"$ac_link\"") >&5 |
| 7754 (eval $ac_link) 2>&5 | |
| 7755 ac_status=$? | |
| 7756 echo "$as_me:7756: \$? = $ac_status" >&5 | |
| 40056 | 7757 (exit $ac_status); } && |
| 7758 { ac_try='test -s conftest$ac_exeext' | |
| 40426 | 7759 { (eval echo "$as_me:7759: \"$ac_try\"") >&5 |
| 7760 (eval $ac_try) 2>&5 | |
| 7761 ac_status=$? | |
| 7762 echo "$as_me:7762: \$? = $ac_status" >&5 | |
| 40056 | 7763 (exit $ac_status); }; }; then |
| 7764 eval "$as_ac_var=yes" | |
| 7765 else | |
| 7766 echo "$as_me: failed program was:" >&5 | |
| 7767 cat conftest.$ac_ext >&5 | |
| 7768 eval "$as_ac_var=no" | |
| 7769 fi | |
| 7770 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
| 7771 fi | |
| 40426 | 7772 echo "$as_me:7772: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 40056 | 7773 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 7774 if test `eval echo '${'$as_ac_var'}'` = yes; then | |
| 7775 | |
| 7776 cat >>confdefs.h <<EOF | |
| 25897 | 7777 #define CRAY_STACKSEG_END $ac_func |
| 7778 EOF | |
| 7779 | |
| 40056 | 7780 break |
| 7781 fi | |
| 7782 | |
| 7783 done | |
| 7784 fi | |
| 7785 | |
| 40426 | 7786 echo "$as_me:7786: checking stack direction for C alloca" >&5 |
| 40056 | 7787 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6 |
| 7788 if test "${ac_cv_c_stack_direction+set}" = set; then | |
| 7789 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
| 25897 | 7790 else |
| 7791 if test "$cross_compiling" = yes; then | |
| 7792 ac_cv_c_stack_direction=0 | |
| 7793 else | |
| 40056 | 7794 cat >conftest.$ac_ext <<_ACEOF |
| 40426 | 7795 #line 7795 "configure" |
| 40056 | 7796 #include "confdefs.h" |
| 7797 int | |
| 25897 | 7798 find_stack_direction () |
| 7799 { | |
| 7800 static char *addr = 0; | |
| 7801 auto char dummy; | |
| 7802 if (addr == 0) | |
| 7803 { | |
| 7804 addr = &dummy; | |
| 7805 return find_stack_direction (); | |
| 7806 } | |
| 7807 else | |
| 7808 return (&dummy > addr) ? 1 : -1; | |
| 7809 } | |
| 40056 | 7810 |
| 7811 int | |
| 7812 main () | |
| 7813 { | |
| 7814 exit (find_stack_direction () < 0); | |
| 7815 } | |
| 7816 _ACEOF | |
| 7817 rm -f conftest$ac_exeext | |
| 40426 | 7818 if { (eval echo "$as_me:7818: \"$ac_link\"") >&5 |
| 7819 (eval $ac_link) 2>&5 | |
| 7820 ac_status=$? | |
| 7821 echo "$as_me:7821: \$? = $ac_status" >&5 | |
| 40056 | 7822 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 40426 | 7823 { (eval echo "$as_me:7823: \"$ac_try\"") >&5 |
| 7824 (eval $ac_try) 2>&5 | |
| 7825 ac_status=$? | |
| 7826 echo "$as_me:7826: \$? = $ac_status" >&5 | |
| 40056 | 7827 (exit $ac_status); }; }; then |
| 25897 | 7828 ac_cv_c_stack_direction=1 |
| 7829 else | |
| 40056 | 7830 echo "$as_me: program exited with status $ac_status" >&5 |
| 7831 echo "$as_me: failed program was:" >&5 | |
| 7832 cat conftest.$ac_ext >&5 | |
| 7833 ac_cv_c_stack_direction=-1 | |
| 7834 fi | |
| 7835 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
| 7836 fi | |
| 7837 fi | |
| 40426 | 7838 echo "$as_me:7838: result: $ac_cv_c_stack_direction" >&5 |
| 40056 | 7839 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6 |
| 7840 | |
| 7841 cat >>confdefs.h <<EOF | |
| 25897 | 7842 #define STACK_DIRECTION $ac_cv_c_stack_direction |
| 7843 EOF | |
| 7844 | |
| 7845 fi | |
| 7846 | |
| 7847 # fmod, logb, and frexp are found in -lm on most systems. | |
| 7848 # On HPUX 9.01, -lm does not contain logb, so check for sqrt. | |
| 40056 | 7849 |
| 40426 | 7850 echo "$as_me:7850: checking for sqrt in -lm" >&5 |
| 40056 | 7851 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6 |
| 7852 if test "${ac_cv_lib_m_sqrt+set}" = set; then | |
| 7853 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
| 7854 else | |
| 7855 ac_check_lib_save_LIBS=$LIBS | |
| 25897 | 7856 LIBS="-lm $LIBS" |
| 40056 | 7857 cat >conftest.$ac_ext <<_ACEOF |
| 40426 | 7858 #line 7858 "configure" |
| 40056 | 7859 #include "confdefs.h" |
| 7860 | |
| 25897 | 7861 /* Override any gcc2 internal prototype to avoid an error. */ |
| 40056 | 7862 #ifdef __cplusplus |
| 7863 extern "C" | |
| 7864 #endif | |
| 25897 | 7865 /* We use char because int might match the return type of a gcc2 |
| 40056 | 7866 builtin and then its argument prototype would still apply. */ |
| 7867 char sqrt (); | |
| 7868 int | |
| 7869 main () | |
| 7870 { | |
| 7871 sqrt (); | |
| 7872 ; | |
| 7873 return 0; | |
| 7874 } | |
| 7875 _ACEOF | |
| 7876 rm -f conftest.$ac_objext conftest$ac_exeext | |
| 40426 | 7877 if { (eval echo "$as_me:7877: \"$ac_link\"") >&5 |
| 7878 (eval $ac_link) 2>&5 | |
| 7879 ac_status=$? | |
| 7880 echo "$as_me:7880: \$? = $ac_status" >&5 | |
| 40056 | 7881 (exit $ac_status); } && |
| 7882 { ac_try='test -s conftest$ac_exeext' | |
| 40426 | 7883 { (eval echo "$as_me:7883: \"$ac_try\"") >&5 |
| 7884 (eval $ac_try) 2>&5 | |
| 7885 ac_status=$? | |
| 7886 echo "$as_me:7886: \$? = $ac_status" >&5 | |
| 40056 | 7887 (exit $ac_status); }; }; then |
| 7888 ac_cv_lib_m_sqrt=yes | |
| 7889 else | |
| 7890 echo "$as_me: failed program was:" >&5 | |
| 7891 cat conftest.$ac_ext >&5 | |
| 7892 ac_cv_lib_m_sqrt=no | |
| 7893 fi | |
| 7894 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
| 7895 LIBS=$ac_check_lib_save_LIBS | |
| 7896 fi | |
| 40426 | 7897 echo "$as_me:7897: result: $ac_cv_lib_m_sqrt" >&5 |
| 40056 | 7898 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6 |
| 7899 if test $ac_cv_lib_m_sqrt = yes; then | |
| 7900 cat >>confdefs.h <<EOF | |
| 7901 #define HAVE_LIBM 1 | |
| 25897 | 7902 EOF |
| 7903 | |
| 7904 LIBS="-lm $LIBS" | |
| 7905 | |
| 40056 | 7906 fi |
| 25897 | 7907 |
| 7908 # Check for mail-locking functions in a "mail" library | |
| 40056 | 7909 |
| 40426 | 7910 echo "$as_me:7910: checking for maillock in -lmail" >&5 |
| 40056 | 7911 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6 |
| 7912 if test "${ac_cv_lib_mail_maillock+set}" = set; then | |
| 7913 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
| 7914 else | |
| 7915 ac_check_lib_save_LIBS=$LIBS | |
| 25897 | 7916 LIBS="-lmail $LIBS" |
| 40056 | 7917 cat >conftest.$ac_ext <<_ACEOF |
| 40426 | 7918 #line 7918 "configure" |
| 40056 | 7919 #include "confdefs.h" |
| 7920 | |
| 25897 | 7921 /* Override any gcc2 internal prototype to avoid an error. */ |
| 40056 | 7922 #ifdef __cplusplus |
| 7923 extern "C" | |
| 7924 #endif | |
| 25897 | 7925 /* We use char because int might match the return type of a gcc2 |
| 40056 | 7926 builtin and then its argument prototype would still apply. */ |
| 7927 char maillock (); | |
| 7928 int | |
| 7929 main () | |
| 7930 { | |
| 7931 maillock (); | |
| 7932 ; | |
| 7933 return 0; | |
| 7934 } | |
| 7935 _ACEOF | |
| 7936 rm -f conftest.$ac_objext conftest$ac_exeext | |
| 40426 | 7937 if { (eval echo "$as_me:7937: \"$ac_link\"") >&5 |
| 7938 (eval $ac_link) 2>&5 | |
| 7939 ac_status=$? | |
| 7940 echo "$as_me:7940: \$? = $ac_status" >&5 | |
| 40056 | 7941 (exit $ac_status); } && |
| 7942 { ac_try='test -s conftest$ac_exeext' | |
| 40426 | 7943 { (eval echo "$as_me:7943: \"$ac_try\"") >&5 |
| 7944 (eval $ac_try) 2>&5 | |
| 7945 ac_status=$? | |
| 7946 echo "$as_me:7946: \$? = $ac_status" >&5 | |
| 40056 | 7947 (exit $ac_status); }; }; then |
| 7948 ac_cv_lib_mail_maillock=yes | |
| 7949 else | |
| 7950 echo "$as_me: failed program was:" >&5 | |
| 7951 cat conftest.$ac_ext >&5 | |
| 7952 ac_cv_lib_mail_maillock=no | |
| 7953 fi | |
| 7954 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
| 7955 LIBS=$ac_check_lib_save_LIBS | |
| 7956 fi | |
| 40426 | 7957 echo "$as_me:7957: result: $ac_cv_lib_mail_maillock" >&5 |
| 40056 | 7958 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6 |
| 7959 if test $ac_cv_lib_mail_maillock = yes; then | |
| 7960 cat >>confdefs.h <<EOF | |
| 7961 #define HAVE_LIBMAIL 1 | |
| 25897 | 7962 EOF |
| 7963 | |
| 7964 LIBS="-lmail $LIBS" | |
| 7965 | |
| 40056 | 7966 fi |
| 7967 | |
| 40426 | 7968 echo "$as_me:7968: checking for maillock in -llockfile" >&5 |
| 40056 | 7969 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6 |
| 7970 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then | |
| 7971 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
| 7972 else | |
| 7973 ac_check_lib_save_LIBS=$LIBS | |
| 25897 | 7974 LIBS="-llockfile $LIBS" |
| 40056 | 7975 cat >conftest.$ac_ext <<_ACEOF |
| 40426 | 7976 #line 7976 "configure" |
| 40056 | 7977 #include "confdefs.h" |
| 7978 | |
| 25897 | 7979 /* Override any gcc2 internal prototype to avoid an error. */ |
| 40056 | 7980 #ifdef __cplusplus |
| 7981 extern "C" | |
| 7982 #endif | |
| 25897 | 7983 /* We use char because int might match the return type of a gcc2 |
| 40056 | 7984 builtin and then its argument prototype would still apply. */ |
| 7985 char maillock (); | |
| 7986 int | |
| 7987 main () | |
| 7988 { | |
| 7989 maillock (); | |
| 7990 ; | |
| 7991 return 0; | |
| 7992 } | |
| 7993 _ACEOF | |
| 7994 rm -f conftest.$ac_objext conftest$ac_exeext | |
| 40426 | 7995 if { (eval echo "$as_me:7995: \"$ac_link\"") >&5 |
| 7996 (eval $ac_link) 2>&5 | |
| 7997 ac_status=$? | |
| 7998 echo "$as_me:7998: \$? = $ac_status" >&5 | |
| 40056 | 7999 (exit $ac_status); } && |
| 8000 { ac_try='test -s conftest$ac_exeext' | |
| 40426 | 8001 { (eval echo "$as_me:8001: \"$ac_try\"") >&5 |
| 8002 (eval $ac_try) 2>&5 | |
| 8003 ac_status=$? | |
| 8004 echo "$as_me:8004: \$? = $ac_status" >&5 | |
| 40056 | 8005 (exit $ac_status); }; }; then |
| 8006 ac_cv_lib_lockfile_maillock=yes | |
| 8007 else | |
| 8008 echo "$as_me: failed program was:" >&5 | |
| 8009 cat conftest.$ac_ext >&5 | |
| 8010 ac_cv_lib_lockfile_maillock=no | |
| 8011 fi | |
| 8012 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
| 8013 LIBS=$ac_check_lib_save_LIBS | |
| 8014 fi | |
| 40426 | 8015 echo "$as_me:8015: result: $ac_cv_lib_lockfile_maillock" >&5 |
| 40056 | 8016 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6 |
| 8017 if test $ac_cv_lib_lockfile_maillock = yes; then | |
| 8018 cat >>confdefs.h <<EOF | |
| 8019 #define HAVE_LIBLOCKFILE 1 | |
| 25897 | 8020 EOF |
| 8021 | |
| 8022 LIBS="-llockfile $LIBS" | |
| 8023 | |
| 8024 fi | |
| 8025 | |
| 8026 # If we have the shared liblockfile, assume we must use it for mail | |
| 8027 # locking (e.g. Debian). If we couldn't link against liblockfile | |
| 8028 # (no liblockfile.a installed), ensure that we don't need to. | |
| 8029 if test "$ac_cv_lib_lockfile_maillock" = no; then | |
| 8030 # Extract the first word of "liblockfile.so", so it can be a program name with args. | |
| 8031 set dummy liblockfile.so; ac_word=$2 | |
| 40426 | 8032 echo "$as_me:8032: checking for $ac_word" >&5 |
| 40056 | 8033 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 8034 if test "${ac_cv_prog_liblockfile+set}" = set; then | |
| 8035 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
| 25897 | 8036 else |
| 8037 if test -n "$liblockfile"; then | |
| 8038 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test. | |
| 8039 else | |
| 40056 | 8040 ac_save_IFS=$IFS; IFS=$ac_path_separator |
| 8041 ac_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH" | |
| 8042 for ac_dir in $ac_dummy; do | |
| 8043 IFS=$ac_save_IFS | |
| 8044 test -z "$ac_dir" && ac_dir=. | |
| 8045 $as_executable_p "$ac_dir/$ac_word" || continue | |
| 8046 ac_cv_prog_liblockfile="yes" | |
| 40426 | 8047 echo "$as_me:8047: found $ac_dir/$ac_word" >&5 |
| 40056 | 8048 break |
| 8049 done | |
| 8050 | |
| 25897 | 8051 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no" |
| 8052 fi | |
| 8053 fi | |
| 40056 | 8054 liblockfile=$ac_cv_prog_liblockfile |
| 25897 | 8055 if test -n "$liblockfile"; then |
| 40426 | 8056 echo "$as_me:8056: result: $liblockfile" >&5 |
| 40056 | 8057 echo "${ECHO_T}$liblockfile" >&6 |
| 8058 else | |
| 40426 | 8059 echo "$as_me:8059: result: no" >&5 |
| 40056 | 8060 echo "${ECHO_T}no" >&6 |
| 25897 | 8061 fi |
| 8062 | |
| 8063 if test $ac_cv_prog_liblockfile = yes; then | |
| 40426 | 8064 { { echo "$as_me:8064: error: Shared liblockfile found but can't link against it. |
| 25897 | 8065 This probably means that movemail could lose mail. |
| 40056 | 8066 There may be a \`development' package to install containing liblockfile." >&5 |
| 8067 echo "$as_me: error: Shared liblockfile found but can't link against it. | |
| 8068 This probably means that movemail could lose mail. | |
| 8069 There may be a \`development' package to install containing liblockfile." >&2;} | |
| 8070 { (exit 1); exit 1; }; } | |
| 8071 else cat >>confdefs.h <<\EOF | |
| 25897 | 8072 #define LIBMAIL -llockfile |
| 8073 EOF | |
| 8074 | |
| 8075 fi | |
| 8076 else : | |
| 8077 fi | |
| 40056 | 8078 |
| 25897 | 8079 for ac_func in touchlock |
| 8080 do | |
| 40056 | 8081 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 40426 | 8082 echo "$as_me:8082: checking for $ac_func" >&5 |
| 40056 | 8083 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 8084 if eval "test \"\${$as_ac_var+set}\" = set"; then | |
| 8085 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
| 8086 else | |
| 8087 cat >conftest.$ac_ext <<_ACEOF | |
| 40426 | 8088 #line 8088 "configure" |
| 25897 | 8089 #include "confdefs.h" |
| 8090 /* System header to define __stub macros and hopefully few prototypes, | |
| 40056 | 8091 which can conflict with char $ac_func (); below. */ |
| 25897 | 8092 #include <assert.h> |
| 8093 /* Override any gcc2 internal prototype to avoid an error. */ | |
| 40056 | 8094 #ifdef __cplusplus |
| 8095 extern "C" | |
| 8096 #endif | |
| 25897 | 8097 /* We use char because int might match the return type of a gcc2 |
| 40056 | 8098 builtin and then its argument prototype would still apply. */ |
| 8099 char $ac_func (); | |
| 8100 char (*f) (); | |
| 8101 | |
| 8102 int | |
| 8103 main () | |
| 8104 { | |
| 25897 | 8105 /* The GNU C library defines this for functions which it implements |
| 8106 to always fail with ENOSYS. Some functions are actually named | |
| 8107 something starting with __ and the normal name is an alias. */ | |
| 8108 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
| 8109 choke me | |
| 8110 #else | |
| 40056 | 8111 f = $ac_func; |
| 8112 #endif | |
| 8113 | |
| 8114 ; | |
| 8115 return 0; | |
| 8116 } | |
| 8117 _ACEOF | |
| 8118 rm -f conftest.$ac_objext conftest$ac_exeext | |
| 40426 | 8119 if { (eval echo "$as_me:8119: \"$ac_link\"") >&5 |
| 8120 (eval $ac_link) 2>&5 | |
| 8121 ac_status=$? | |
| 8122 echo "$as_me:8122: \$? = $ac_status" >&5 | |
| 40056 | 8123 (exit $ac_status); } && |
| 8124 { ac_try='test -s conftest$ac_exeext' | |
| 40426 | 8125 { (eval echo "$as_me:8125: \"$ac_try\"") >&5 |
| 8126 (eval $ac_try) 2>&5 | |
| 8127 ac_status=$? | |
| 8128 echo "$as_me:8128: \$? = $ac_status" >&5 | |
| 40056 | 8129 (exit $ac_status); }; }; then |
| 8130 eval "$as_ac_var=yes" | |
| 8131 else | |
| 8132 echo "$as_me: failed program was:" >&5 | |
| 8133 cat conftest.$ac_ext >&5 | |
| 8134 eval "$as_ac_var=no" | |
| 8135 fi | |
| 8136 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
| 8137 fi | |
| 40426 | 8138 echo "$as_me:8138: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 40056 | 8139 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 8140 if test `eval echo '${'$as_ac_var'}'` = yes; then | |
| 8141 cat >>confdefs.h <<EOF | |
| 8142 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
| 8143 EOF | |
| 8144 | |
| 25897 | 8145 fi |
| 8146 done | |
| 8147 | |
| 40056 | 8148 for ac_header in maillock.h |
| 25897 | 8149 do |
| 40056 | 8150 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 40426 | 8151 echo "$as_me:8151: checking for $ac_header" >&5 |
| 40056 | 8152 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 8153 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
| 8154 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
| 8155 else | |
| 8156 cat >conftest.$ac_ext <<_ACEOF | |
| 40426 | 8157 #line 8157 "configure" |
| 40056 | 8158 #include "confdefs.h" |
| 8159 #include <$ac_header> | |
| 8160 _ACEOF | |
| 40426 | 8161 if { (eval echo "$as_me:8161: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 40056 | 8162 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 8163 ac_status=$? | |
| 8164 egrep -v '^ *\+' conftest.er1 >conftest.err | |
| 8165 rm -f conftest.er1 | |
| 8166 cat conftest.err >&5 | |
| 40426 | 8167 echo "$as_me:8167: \$? = $ac_status" >&5 |
| 40056 | 8168 (exit $ac_status); } >/dev/null; then |
| 8169 if test -s conftest.err; then | |
| 8170 ac_cpp_err=$ac_c_preproc_warn_flag | |
| 8171 else | |
| 8172 ac_cpp_err= | |
| 8173 fi | |
| 8174 else | |
| 8175 ac_cpp_err=yes | |
| 8176 fi | |
| 8177 if test -z "$ac_cpp_err"; then | |
| 8178 eval "$as_ac_Header=yes" | |
| 8179 else | |
| 8180 echo "$as_me: failed program was:" >&5 | |
| 25897 | 8181 cat conftest.$ac_ext >&5 |
| 40056 | 8182 eval "$as_ac_Header=no" |
| 8183 fi | |
| 8184 rm -f conftest.err conftest.$ac_ext | |
| 8185 fi | |
| 40426 | 8186 echo "$as_me:8186: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 40056 | 8187 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 8188 if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
| 8189 cat >>confdefs.h <<EOF | |
| 8190 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
| 8191 EOF | |
| 8192 | |
| 25897 | 8193 fi |
| 8194 done | |
| 8195 | |
| 29906 | 8196 for ac_func in gethostname getdomainname dup2 \ |
| 25897 | 8197 rename closedir mkdir rmdir sysinfo \ |
| 8198 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \ | |
| 8199 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \ | |
| 29733 | 8200 utimes setrlimit setpgid getcwd getwd shutdown strftime getaddrinfo \ |
| 33286 | 8201 __fpending mblen mbrlen strsignal setitimer ualarm index rindex \ |
| 8202 gai_strerror mkstemp | |
| 25897 | 8203 do |
| 40056 | 8204 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 40426 | 8205 echo "$as_me:8205: checking for $ac_func" >&5 |
| 40056 | 8206 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 8207 if eval "test \"\${$as_ac_var+set}\" = set"; then | |
| 8208 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
| 8209 else | |
| 8210 cat >conftest.$ac_ext <<_ACEOF | |
| 40426 | 8211 #line 8211 "configure" |
| 25897 | 8212 #include "confdefs.h" |
| 8213 /* System header to define __stub macros and hopefully few prototypes, | |
| 40056 | 8214 which can conflict with char $ac_func (); below. */ |
| 25897 | 8215 #include <assert.h> |
| 8216 /* Override any gcc2 internal prototype to avoid an error. */ | |
| 40056 | 8217 #ifdef __cplusplus |
| 8218 extern "C" | |
| 8219 #endif | |
| 25897 | 8220 /* We use char because int might match the return type of a gcc2 |
| 40056 | 8221 builtin and then its argument prototype would still apply. */ |
| 8222 char $ac_func (); | |
| 8223 char (*f) (); | |
| 8224 | |
| 8225 int | |
| 8226 main () | |
| 8227 { | |
| 25897 | 8228 /* The GNU C library defines this for functions which it implements |
| 8229 to always fail with ENOSYS. Some functions are actually named | |
| 8230 something starting with __ and the normal name is an alias. */ | |
| 8231 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
| 8232 choke me | |
| 8233 #else | |
| 40056 | 8234 f = $ac_func; |
| 8235 #endif | |
| 8236 | |
| 8237 ; | |
| 8238 return 0; | |
| 8239 } | |
| 8240 _ACEOF | |
| 8241 rm -f conftest.$ac_objext conftest$ac_exeext | |
| 40426 | 8242 if { (eval echo "$as_me:8242: \"$ac_link\"") >&5 |
| 8243 (eval $ac_link) 2>&5 | |
| 8244 ac_status=$? | |
| 8245 echo "$as_me:8245: \$? = $ac_status" >&5 | |
| 40056 | 8246 (exit $ac_status); } && |
| 8247 { ac_try='test -s conftest$ac_exeext' | |
| 40426 | 8248 { (eval echo "$as_me:8248: \"$ac_try\"") >&5 |
| 8249 (eval $ac_try) 2>&5 | |
| 8250 ac_status=$? | |
| 8251 echo "$as_me:8251: \$? = $ac_status" >&5 | |
| 40056 | 8252 (exit $ac_status); }; }; then |
| 8253 eval "$as_ac_var=yes" | |
| 8254 else | |
| 8255 echo "$as_me: failed program was:" >&5 | |
| 8256 cat conftest.$ac_ext >&5 | |
| 8257 eval "$as_ac_var=no" | |
| 8258 fi | |
| 8259 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
| 8260 fi | |
| 40426 | 8261 echo "$as_me:8261: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 40056 | 8262 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 8263 if test `eval echo '${'$as_ac_var'}'` = yes; then | |
| 8264 cat >>confdefs.h <<EOF | |
| 8265 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
| 8266 EOF | |
| 8267 | |
| 25897 | 8268 fi |
| 8269 done | |
| 8270 | |
| 40056 | 8271 for ac_header in sys/time.h unistd.h |
| 28607 | 8272 do |
| 40056 | 8273 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 40426 | 8274 echo "$as_me:8274: checking for $ac_header" >&5 |
| 40056 | 8275 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 8276 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
| 8277 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
| 8278 else | |
| 8279 cat >conftest.$ac_ext <<_ACEOF | |
| 40426 | 8280 #line 8280 "configure" |
| 40056 | 8281 #include "confdefs.h" |
| 8282 #include <$ac_header> | |
| 8283 _ACEOF | |
| 40426 | 8284 if { (eval echo "$as_me:8284: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 40056 | 8285 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 8286 ac_status=$? | |
| 8287 egrep -v '^ *\+' conftest.er1 >conftest.err | |
| 8288 rm -f conftest.er1 | |
| 8289 cat conftest.err >&5 | |
| 40426 | 8290 echo "$as_me:8290: \$? = $ac_status" >&5 |
| 40056 | 8291 (exit $ac_status); } >/dev/null; then |
| 8292 if test -s conftest.err; then | |
| 8293 ac_cpp_err=$ac_c_preproc_warn_flag | |
| 8294 else | |
| 8295 ac_cpp_err= | |
| 8296 fi | |
| 8297 else | |
| 8298 ac_cpp_err=yes | |
| 8299 fi | |
| 8300 if test -z "$ac_cpp_err"; then | |
| 8301 eval "$as_ac_Header=yes" | |
| 8302 else | |
| 8303 echo "$as_me: failed program was:" >&5 | |
| 28607 | 8304 cat conftest.$ac_ext >&5 |
| 40056 | 8305 eval "$as_ac_Header=no" |
| 8306 fi | |
| 8307 rm -f conftest.err conftest.$ac_ext | |
| 8308 fi | |
| 40426 | 8309 echo "$as_me:8309: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 40056 | 8310 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 8311 if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
| 8312 cat >>confdefs.h <<EOF | |
| 8313 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
| 8314 EOF | |
| 8315 | |
| 28607 | 8316 fi |
| 8317 done | |
| 8318 | |
| 8319 for ac_func in alarm | |
| 8320 do | |
| 40056 | 8321 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 40426 | 8322 echo "$as_me:8322: checking for $ac_func" >&5 |
| 40056 | 8323 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 8324 if eval "test \"\${$as_ac_var+set}\" = set"; then | |
| 8325 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
| 8326 else | |
| 8327 cat >conftest.$ac_ext <<_ACEOF | |
| 40426 | 8328 #line 8328 "configure" |
| 28607 | 8329 #include "confdefs.h" |
| 8330 /* System header to define __stub macros and hopefully few prototypes, | |
| 40056 | 8331 which can conflict with char $ac_func (); below. */ |
| 28607 | 8332 #include <assert.h> |
| 8333 /* Override any gcc2 internal prototype to avoid an error. */ | |
| 40056 | 8334 #ifdef __cplusplus |
| 8335 extern "C" | |
| 8336 #endif | |
| 28607 | 8337 /* We use char because int might match the return type of a gcc2 |
| 40056 | 8338 builtin and then its argument prototype would still apply. */ |
| 8339 char $ac_func (); | |
| 8340 char (*f) (); | |
| 8341 | |
| 8342 int | |
| 8343 main () | |
| 8344 { | |
| 28607 | 8345 /* The GNU C library defines this for functions which it implements |
| 8346 to always fail with ENOSYS. Some functions are actually named | |
| 8347 something starting with __ and the normal name is an alias. */ | |
| 8348 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
| 8349 choke me | |
| 8350 #else | |
| 40056 | 8351 f = $ac_func; |
| 8352 #endif | |
| 8353 | |
| 8354 ; | |
| 8355 return 0; | |
| 8356 } | |
| 8357 _ACEOF | |
| 8358 rm -f conftest.$ac_objext conftest$ac_exeext | |
| 40426 | 8359 if { (eval echo "$as_me:8359: \"$ac_link\"") >&5 |
| 8360 (eval $ac_link) 2>&5 | |
| 8361 ac_status=$? | |
| 8362 echo "$as_me:8362: \$? = $ac_status" >&5 | |
| 40056 | 8363 (exit $ac_status); } && |
| 8364 { ac_try='test -s conftest$ac_exeext' | |
| 40426 | 8365 { (eval echo "$as_me:8365: \"$ac_try\"") >&5 |
| 8366 (eval $ac_try) 2>&5 | |
| 8367 ac_status=$? | |
| 8368 echo "$as_me:8368: \$? = $ac_status" >&5 | |
| 40056 | 8369 (exit $ac_status); }; }; then |
| 8370 eval "$as_ac_var=yes" | |
| 8371 else | |
| 8372 echo "$as_me: failed program was:" >&5 | |
| 8373 cat conftest.$ac_ext >&5 | |
| 8374 eval "$as_ac_var=no" | |
| 8375 fi | |
| 8376 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
| 8377 fi | |
| 40426 | 8378 echo "$as_me:8378: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 40056 | 8379 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 8380 if test `eval echo '${'$as_ac_var'}'` = yes; then | |
| 8381 cat >>confdefs.h <<EOF | |
| 8382 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
| 8383 EOF | |
| 8384 | |
| 28607 | 8385 fi |
| 8386 done | |
| 8387 | |
| 40426 | 8388 echo "$as_me:8388: checking for working mktime" >&5 |
| 40056 | 8389 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6 |
| 8390 if test "${ac_cv_func_working_mktime+set}" = set; then | |
| 8391 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
| 28607 | 8392 else |
| 8393 if test "$cross_compiling" = yes; then | |
| 8394 ac_cv_func_working_mktime=no | |
| 8395 else | |
| 40056 | 8396 cat >conftest.$ac_ext <<_ACEOF |
| 40426 | 8397 #line 8397 "configure" |
| 40056 | 8398 #include "confdefs.h" |
| 8399 /* Test program from Paul Eggert and Tony Leneis. */ | |
| 28607 | 8400 #if TIME_WITH_SYS_TIME |
| 8401 # include <sys/time.h> | |
| 8402 # include <time.h> | |
| 8403 #else | |
| 8404 # if HAVE_SYS_TIME_H | |
| 8405 # include <sys/time.h> | |
| 8406 # else | |
| 8407 # include <time.h> | |
| 8408 # endif | |
| 8409 #endif | |
| 8410 | |
| 8411 #if HAVE_UNISTD_H | |
| 8412 # include <unistd.h> | |
| 8413 #endif | |
| 8414 | |
| 8415 #if !HAVE_ALARM | |
| 8416 # define alarm(X) /* empty */ | |
| 8417 #endif | |
| 8418 | |
| 8419 /* Work around redefinition to rpl_putenv by other config tests. */ | |
| 8420 #undef putenv | |
| 8421 | |
| 8422 static time_t time_t_max; | |
| 8423 | |
| 8424 /* Values we'll use to set the TZ environment variable. */ | |
| 8425 static const char *const tz_strings[] = { | |
| 8426 (const char *) 0, "TZ=GMT0", "TZ=JST-9", | |
| 8427 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00" | |
| 8428 }; | |
| 8429 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0])) | |
| 8430 | |
| 8431 /* Fail if mktime fails to convert a date in the spring-forward gap. | |
| 8432 Based on a problem report from Andreas Jaeger. */ | |
| 8433 static void | |
| 8434 spring_forward_gap () | |
| 8435 { | |
| 40056 | 8436 /* glibc (up to about 1998-10-07) failed this test. */ |
| 28607 | 8437 struct tm tm; |
| 8438 | |
| 8439 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0" | |
| 8440 instead of "TZ=America/Vancouver" in order to detect the bug even | |
| 8441 on systems that don't support the Olson extension, or don't have the | |
| 8442 full zoneinfo tables installed. */ | |
| 8443 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0"); | |
| 8444 | |
| 8445 tm.tm_year = 98; | |
| 8446 tm.tm_mon = 3; | |
| 8447 tm.tm_mday = 5; | |
| 8448 tm.tm_hour = 2; | |
| 8449 tm.tm_min = 0; | |
| 8450 tm.tm_sec = 0; | |
| 8451 tm.tm_isdst = -1; | |
| 8452 if (mktime (&tm) == (time_t)-1) | |
| 8453 exit (1); | |
| 8454 } | |
| 8455 | |
| 8456 static void | |
| 8457 mktime_test (now) | |
| 8458 time_t now; | |
| 8459 { | |
| 8460 struct tm *lt; | |
| 8461 if ((lt = localtime (&now)) && mktime (lt) != now) | |
| 8462 exit (1); | |
| 8463 now = time_t_max - now; | |
| 8464 if ((lt = localtime (&now)) && mktime (lt) != now) | |
| 8465 exit (1); | |
| 8466 } | |
| 8467 | |
| 8468 static void | |
| 8469 irix_6_4_bug () | |
| 8470 { | |
| 8471 /* Based on code from Ariel Faigon. */ | |
| 8472 struct tm tm; | |
| 8473 tm.tm_year = 96; | |
| 8474 tm.tm_mon = 3; | |
| 8475 tm.tm_mday = 0; | |
| 8476 tm.tm_hour = 0; | |
| 8477 tm.tm_min = 0; | |
| 8478 tm.tm_sec = 0; | |
| 8479 tm.tm_isdst = -1; | |
| 8480 mktime (&tm); | |
| 8481 if (tm.tm_mon != 2 || tm.tm_mday != 31) | |
| 8482 exit (1); | |
| 8483 } | |
| 8484 | |
| 8485 static void | |
| 8486 bigtime_test (j) | |
| 8487 int j; | |
| 8488 { | |
| 8489 struct tm tm; | |
| 8490 time_t now; | |
| 8491 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j; | |
| 8492 now = mktime (&tm); | |
| 8493 if (now != (time_t) -1) | |
| 8494 { | |
| 8495 struct tm *lt = localtime (&now); | |
| 8496 if (! (lt | |
| 8497 && lt->tm_year == tm.tm_year | |
| 8498 && lt->tm_mon == tm.tm_mon | |
| 8499 && lt->tm_mday == tm.tm_mday | |
| 8500 && lt->tm_hour == tm.tm_hour | |
| 8501 && lt->tm_min == tm.tm_min | |
| 8502 && lt->tm_sec == tm.tm_sec | |
| 8503 && lt->tm_yday == tm.tm_yday | |
| 8504 && lt->tm_wday == tm.tm_wday | |
| 8505 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst) | |
| 8506 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst)))) | |
| 8507 exit (1); | |
| 8508 } | |
| 8509 } | |
| 8510 | |
| 8511 int | |
| 8512 main () | |
| 8513 { | |
| 8514 time_t t, delta; | |
| 8515 int i, j; | |
| 8516 | |
| 8517 /* This test makes some buggy mktime implementations loop. | |
| 8518 Give up after 60 seconds; a mktime slower than that | |
| 8519 isn't worth using anyway. */ | |
| 8520 alarm (60); | |
| 8521 | |
| 8522 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2) | |
| 8523 continue; | |
| 8524 time_t_max--; | |
| 8525 delta = time_t_max / 997; /* a suitable prime number */ | |
| 8526 for (i = 0; i < N_STRINGS; i++) | |
| 8527 { | |
| 8528 if (tz_strings[i]) | |
| 8529 putenv (tz_strings[i]); | |
| 8530 | |
| 8531 for (t = 0; t <= time_t_max - delta; t += delta) | |
| 8532 mktime_test (t); | |
| 8533 mktime_test ((time_t) 60 * 60); | |
| 8534 mktime_test ((time_t) 60 * 60 * 24); | |
| 8535 | |
| 8536 for (j = 1; 0 < j; j *= 2) | |
| 8537 bigtime_test (j); | |
| 8538 bigtime_test (j - 1); | |
| 8539 } | |
| 8540 irix_6_4_bug (); | |
| 8541 spring_forward_gap (); | |
| 8542 exit (0); | |
| 8543 } | |
| 40056 | 8544 _ACEOF |
| 8545 rm -f conftest$ac_exeext | |
| 40426 | 8546 if { (eval echo "$as_me:8546: \"$ac_link\"") >&5 |
| 8547 (eval $ac_link) 2>&5 | |
| 8548 ac_status=$? | |
| 8549 echo "$as_me:8549: \$? = $ac_status" >&5 | |
| 40056 | 8550 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 40426 | 8551 { (eval echo "$as_me:8551: \"$ac_try\"") >&5 |
| 8552 (eval $ac_try) 2>&5 | |
| 8553 ac_status=$? | |
| 8554 echo "$as_me:8554: \$? = $ac_status" >&5 | |
| 40056 | 8555 (exit $ac_status); }; }; then |
| 28607 | 8556 ac_cv_func_working_mktime=yes |
| 8557 else | |
| 40056 | 8558 echo "$as_me: program exited with status $ac_status" >&5 |
| 8559 echo "$as_me: failed program was:" >&5 | |
| 8560 cat conftest.$ac_ext >&5 | |
| 8561 ac_cv_func_working_mktime=no | |
| 8562 fi | |
| 8563 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
| 8564 fi | |
| 8565 fi | |
| 40426 | 8566 echo "$as_me:8566: result: $ac_cv_func_working_mktime" >&5 |
| 40056 | 8567 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6 |
| 28607 | 8568 if test $ac_cv_func_working_mktime = no; then |
| 40056 | 8569 LIBOBJS="$LIBOBJS mktime.$ac_objext" |
| 28607 | 8570 fi |
| 8571 | |
| 8572 if test "$ac_cv_func_working_mktime" = no; then | |
| 40056 | 8573 cat >>confdefs.h <<\EOF |
| 28607 | 8574 #define BROKEN_MKTIME 1 |
| 8575 EOF | |
| 8576 | |
| 8577 fi | |
| 8578 | |
| 29834 | 8579 ac_have_func=no # yes means we've found a way to get the load average. |
| 8580 | |
| 40056 | 8581 ac_save_LIBS=$LIBS |
| 8582 | |
| 8583 # Check for getloadavg, but be sure not to touch the cache variable. | |
| 40426 | 8584 (echo "$as_me:8584: checking for getloadavg" >&5 |
| 40056 | 8585 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6 |
| 8586 if test "${ac_cv_func_getloadavg+set}" = set; then | |
| 8587 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
| 8588 else | |
| 8589 cat >conftest.$ac_ext <<_ACEOF | |
| 40426 | 8590 #line 8590 "configure" |
| 40056 | 8591 #include "confdefs.h" |
| 8592 /* System header to define __stub macros and hopefully few prototypes, | |
| 8593 which can conflict with char getloadavg (); below. */ | |
| 8594 #include <assert.h> | |
| 8595 /* Override any gcc2 internal prototype to avoid an error. */ | |
| 8596 #ifdef __cplusplus | |
| 8597 extern "C" | |
| 8598 #endif | |
| 8599 /* We use char because int might match the return type of a gcc2 | |
| 8600 builtin and then its argument prototype would still apply. */ | |
| 8601 char getloadavg (); | |
| 8602 char (*f) (); | |
| 8603 | |
| 8604 int | |
| 8605 main () | |
| 8606 { | |
| 8607 /* The GNU C library defines this for functions which it implements | |
| 8608 to always fail with ENOSYS. Some functions are actually named | |
| 8609 something starting with __ and the normal name is an alias. */ | |
| 8610 #if defined (__stub_getloadavg) || defined (__stub___getloadavg) | |
| 8611 choke me | |
| 8612 #else | |
| 8613 f = getloadavg; | |
| 8614 #endif | |
| 8615 | |
| 8616 ; | |
| 8617 return 0; | |
| 8618 } | |
| 8619 _ACEOF | |
| 8620 rm -f conftest.$ac_objext conftest$ac_exeext | |
| 40426 | 8621 if { (eval echo "$as_me:8621: \"$ac_link\"") >&5 |
| 8622 (eval $ac_link) 2>&5 | |
| 8623 ac_status=$? | |
| 8624 echo "$as_me:8624: \$? = $ac_status" >&5 | |
| 40056 | 8625 (exit $ac_status); } && |
| 8626 { ac_try='test -s conftest$ac_exeext' | |
| 40426 | 8627 { (eval echo "$as_me:8627: \"$ac_try\"") >&5 |
| 8628 (eval $ac_try) 2>&5 | |
| 8629 ac_status=$? | |
| 8630 echo "$as_me:8630: \$? = $ac_status" >&5 | |
| 40056 | 8631 (exit $ac_status); }; }; then |
| 8632 ac_cv_func_getloadavg=yes | |
| 8633 else | |
| 8634 echo "$as_me: failed program was:" >&5 | |
| 8635 cat conftest.$ac_ext >&5 | |
| 8636 ac_cv_func_getloadavg=no | |
| 8637 fi | |
| 8638 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
| 8639 fi | |
| 40426 | 8640 echo "$as_me:8640: result: $ac_cv_func_getloadavg" >&5 |
| 40056 | 8641 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6 |
| 8642 if test $ac_cv_func_getloadavg = yes; then | |
| 8643 exit 0 | |
| 8644 else | |
| 8645 exit 1 | |
| 8646 fi | |
| 8647 ) && ac_have_func=yes | |
| 8648 | |
| 8649 # On HPUX9, an unprivileged user can get load averages through this function. | |
| 8650 | |
| 8651 for ac_func in pstat_getdynamic | |
| 8652 do | |
| 8653 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
| 40426 | 8654 echo "$as_me:8654: checking for $ac_func" >&5 |
| 40056 | 8655 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 8656 if eval "test \"\${$as_ac_var+set}\" = set"; then | |
| 8657 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
| 8658 else | |
| 8659 cat >conftest.$ac_ext <<_ACEOF | |
| 40426 | 8660 #line 8660 "configure" |
| 40056 | 8661 #include "confdefs.h" |
| 8662 /* System header to define __stub macros and hopefully few prototypes, | |
| 8663 which can conflict with char $ac_func (); below. */ | |
| 8664 #include <assert.h> | |
| 8665 /* Override any gcc2 internal prototype to avoid an error. */ | |
| 8666 #ifdef __cplusplus | |
| 8667 extern "C" | |
| 8668 #endif | |
| 8669 /* We use char because int might match the return type of a gcc2 | |
| 8670 builtin and then its argument prototype would still apply. */ | |
| 8671 char $ac_func (); | |
| 8672 char (*f) (); | |
| 8673 | |
| 8674 int | |
| 8675 main () | |
| 8676 { | |
| 8677 /* The GNU C library defines this for functions which it implements | |
| 8678 to always fail with ENOSYS. Some functions are actually named | |
| 8679 something starting with __ and the normal name is an alias. */ | |
| 8680 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
| 8681 choke me | |
| 8682 #else | |
| 8683 f = $ac_func; | |
| 8684 #endif | |
| 8685 | |
| 8686 ; | |
| 8687 return 0; | |
| 8688 } | |
| 8689 _ACEOF | |
| 8690 rm -f conftest.$ac_objext conftest$ac_exeext | |
| 40426 | 8691 if { (eval echo "$as_me:8691: \"$ac_link\"") >&5 |
| 8692 (eval $ac_link) 2>&5 | |
| 8693 ac_status=$? | |
| 8694 echo "$as_me:8694: \$? = $ac_status" >&5 | |
| 40056 | 8695 (exit $ac_status); } && |
| 8696 { ac_try='test -s conftest$ac_exeext' | |
| 40426 | 8697 { (eval echo "$as_me:8697: \"$ac_try\"") >&5 |
| 8698 (eval $ac_try) 2>&5 | |
| 8699 ac_status=$? | |
| 8700 echo "$as_me:8700: \$? = $ac_status" >&5 | |
| 40056 | 8701 (exit $ac_status); }; }; then |
| 8702 eval "$as_ac_var=yes" | |
| 8703 else | |
| 8704 echo "$as_me: failed program was:" >&5 | |
| 8705 cat conftest.$ac_ext >&5 | |
| 8706 eval "$as_ac_var=no" | |
| 8707 fi | |
| 8708 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
| 8709 fi | |
| 40426 | 8710 echo "$as_me:8710: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 40056 | 8711 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 8712 if test `eval echo '${'$as_ac_var'}'` = yes; then | |
| 8713 cat >>confdefs.h <<EOF | |
| 8714 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
| 8715 EOF | |
| 8716 | |
| 8717 fi | |
| 8718 done | |
| 8719 | |
| 8720 # Solaris has libkstat which does not require root. | |
| 8721 | |
| 40426 | 8722 echo "$as_me:8722: checking for kstat_open in -lkstat" >&5 |
| 40056 | 8723 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6 |
| 8724 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then | |
| 8725 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
| 8726 else | |
| 8727 ac_check_lib_save_LIBS=$LIBS | |
| 8728 LIBS="-lkstat $LIBS" | |
| 8729 cat >conftest.$ac_ext <<_ACEOF | |
| 40426 | 8730 #line 8730 "configure" |
| 40056 | 8731 #include "confdefs.h" |
| 8732 | |
| 8733 /* Override any gcc2 internal prototype to avoid an error. */ | |
| 8734 #ifdef __cplusplus | |
| 8735 extern "C" | |
| 8736 #endif | |
| 8737 /* We use char because int might match the return type of a gcc2 | |
| 8738 builtin and then its argument prototype would still apply. */ | |
| 8739 char kstat_open (); | |
| 8740 int | |
| 8741 main () | |
| 8742 { | |
| 8743 kstat_open (); | |
| 8744 ; | |
| 8745 return 0; | |
| 8746 } | |
| 8747 _ACEOF | |
| 8748 rm -f conftest.$ac_objext conftest$ac_exeext | |
| 40426 | 8749 if { (eval echo "$as_me:8749: \"$ac_link\"") >&5 |
| 8750 (eval $ac_link) 2>&5 | |
| 8751 ac_status=$? | |
| 8752 echo "$as_me:8752: \$? = $ac_status" >&5 | |
| 40056 | 8753 (exit $ac_status); } && |
| 8754 { ac_try='test -s conftest$ac_exeext' | |
| 40426 | 8755 { (eval echo "$as_me:8755: \"$ac_try\"") >&5 |
| 8756 (eval $ac_try) 2>&5 | |
| 8757 ac_status=$? | |
| 8758 echo "$as_me:8758: \$? = $ac_status" >&5 | |
| 40056 | 8759 (exit $ac_status); }; }; then |
| 8760 ac_cv_lib_kstat_kstat_open=yes | |
| 8761 else | |
| 8762 echo "$as_me: failed program was:" >&5 | |
| 8763 cat conftest.$ac_ext >&5 | |
| 8764 ac_cv_lib_kstat_kstat_open=no | |
| 8765 fi | |
| 8766 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
| 8767 LIBS=$ac_check_lib_save_LIBS | |
| 8768 fi | |
| 40426 | 8769 echo "$as_me:8769: result: $ac_cv_lib_kstat_kstat_open" >&5 |
| 40056 | 8770 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6 |
| 8771 if test $ac_cv_lib_kstat_kstat_open = yes; then | |
| 8772 cat >>confdefs.h <<EOF | |
| 8773 #define HAVE_LIBKSTAT 1 | |
| 8774 EOF | |
| 8775 | |
| 8776 LIBS="-lkstat $LIBS" | |
| 8777 | |
| 8778 fi | |
| 8779 | |
| 8780 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes | |
| 8781 | |
| 29834 | 8782 # Some systems with -lutil have (and need) -lkvm as well, some do not. |
| 8783 # On Solaris, -lkvm requires nlist from -lelf, so check that first | |
| 8784 # to get the right answer into the cache. | |
| 40056 | 8785 # For kstat on solaris, we need libelf to force the definition of SVR4 below. |
| 8786 if test $ac_have_func = no; then | |
| 40426 | 8787 echo "$as_me:8787: checking for elf_begin in -lelf" >&5 |
| 40056 | 8788 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6 |
| 8789 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then | |
| 8790 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
| 8791 else | |
| 8792 ac_check_lib_save_LIBS=$LIBS | |
| 29834 | 8793 LIBS="-lelf $LIBS" |
| 40056 | 8794 cat >conftest.$ac_ext <<_ACEOF |
| 40426 | 8795 #line 8795 "configure" |
| 40056 | 8796 #include "confdefs.h" |
| 8797 | |
| 29834 | 8798 /* Override any gcc2 internal prototype to avoid an error. */ |
| 40056 | 8799 #ifdef __cplusplus |
| 8800 extern "C" | |
| 8801 #endif | |
| 29834 | 8802 /* We use char because int might match the return type of a gcc2 |
| 40056 | 8803 builtin and then its argument prototype would still apply. */ |
| 8804 char elf_begin (); | |
| 8805 int | |
| 8806 main () | |
| 8807 { | |
| 8808 elf_begin (); | |
| 8809 ; | |
| 8810 return 0; | |
| 8811 } | |
| 8812 _ACEOF | |
| 8813 rm -f conftest.$ac_objext conftest$ac_exeext | |
| 40426 | 8814 if { (eval echo "$as_me:8814: \"$ac_link\"") >&5 |
| 8815 (eval $ac_link) 2>&5 | |
| 8816 ac_status=$? | |
| 8817 echo "$as_me:8817: \$? = $ac_status" >&5 | |
| 40056 | 8818 (exit $ac_status); } && |
| 8819 { ac_try='test -s conftest$ac_exeext' | |
| 40426 | 8820 { (eval echo "$as_me:8820: \"$ac_try\"") >&5 |
| 8821 (eval $ac_try) 2>&5 | |
| 8822 ac_status=$? | |
| 8823 echo "$as_me:8823: \$? = $ac_status" >&5 | |
| 40056 | 8824 (exit $ac_status); }; }; then |
| 8825 ac_cv_lib_elf_elf_begin=yes | |
| 8826 else | |
| 8827 echo "$as_me: failed program was:" >&5 | |
| 8828 cat conftest.$ac_ext >&5 | |
| 8829 ac_cv_lib_elf_elf_begin=no | |
| 8830 fi | |
| 8831 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
| 8832 LIBS=$ac_check_lib_save_LIBS | |
| 8833 fi | |
| 40426 | 8834 echo "$as_me:8834: result: $ac_cv_lib_elf_elf_begin" >&5 |
| 40056 | 8835 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6 |
| 8836 if test $ac_cv_lib_elf_elf_begin = yes; then | |
| 29834 | 8837 LIBS="-lelf $LIBS" |
| 40056 | 8838 fi |
| 8839 | |
| 8840 fi | |
| 8841 if test $ac_have_func = no; then | |
| 40426 | 8842 echo "$as_me:8842: checking for kvm_open in -lkvm" >&5 |
| 40056 | 8843 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6 |
| 8844 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then | |
| 8845 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
| 8846 else | |
| 8847 ac_check_lib_save_LIBS=$LIBS | |
| 29834 | 8848 LIBS="-lkvm $LIBS" |
| 40056 | 8849 cat >conftest.$ac_ext <<_ACEOF |
| 40426 | 8850 #line 8850 "configure" |
| 40056 | 8851 #include "confdefs.h" |
| 8852 | |
| 29834 | 8853 /* Override any gcc2 internal prototype to avoid an error. */ |
| 40056 | 8854 #ifdef __cplusplus |
| 8855 extern "C" | |
| 8856 #endif | |
| 29834 | 8857 /* We use char because int might match the return type of a gcc2 |
| 40056 | 8858 builtin and then its argument prototype would still apply. */ |
| 8859 char kvm_open (); | |
| 8860 int | |
| 8861 main () | |
| 8862 { | |
| 8863 kvm_open (); | |
| 8864 ; | |
| 8865 return 0; | |
| 8866 } | |
| 8867 _ACEOF | |
| 8868 rm -f conftest.$ac_objext conftest$ac_exeext | |
| 40426 | 8869 if { (eval echo "$as_me:8869: \"$ac_link\"") >&5 |
| 8870 (eval $ac_link) 2>&5 | |
| 8871 ac_status=$? | |
| 8872 echo "$as_me:8872: \$? = $ac_status" >&5 | |
| 40056 | 8873 (exit $ac_status); } && |
| 8874 { ac_try='test -s conftest$ac_exeext' | |
| 40426 | 8875 { (eval echo "$as_me:8875: \"$ac_try\"") >&5 |
| 8876 (eval $ac_try) 2>&5 | |
| 8877 ac_status=$? | |
| 8878 echo "$as_me:8878: \$? = $ac_status" >&5 | |
| 40056 | 8879 (exit $ac_status); }; }; then |
| 8880 ac_cv_lib_kvm_kvm_open=yes | |
| 8881 else | |
| 8882 echo "$as_me: failed program was:" >&5 | |
| 8883 cat conftest.$ac_ext >&5 | |
| 8884 ac_cv_lib_kvm_kvm_open=no | |
| 8885 fi | |
| 8886 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
| 8887 LIBS=$ac_check_lib_save_LIBS | |
| 8888 fi | |
| 40426 | 8889 echo "$as_me:8889: result: $ac_cv_lib_kvm_kvm_open" >&5 |
| 40056 | 8890 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6 |
| 8891 if test $ac_cv_lib_kvm_kvm_open = yes; then | |
| 29834 | 8892 LIBS="-lkvm $LIBS" |
| 40056 | 8893 fi |
| 8894 | |
| 8895 # Check for the 4.4BSD definition of getloadavg. | |
| 40426 | 8896 echo "$as_me:8896: checking for getloadavg in -lutil" >&5 |
| 40056 | 8897 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6 |
| 8898 if test "${ac_cv_lib_util_getloadavg+set}" = set; then | |
| 8899 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
| 8900 else | |
| 8901 ac_check_lib_save_LIBS=$LIBS | |
| 29834 | 8902 LIBS="-lutil $LIBS" |
| 40056 | 8903 cat >conftest.$ac_ext <<_ACEOF |
| 40426 | 8904 #line 8904 "configure" |
| 40056 | 8905 #include "confdefs.h" |
| 8906 | |
| 29834 | 8907 /* Override any gcc2 internal prototype to avoid an error. */ |
| 40056 | 8908 #ifdef __cplusplus |
| 8909 extern "C" | |
| 8910 #endif | |
| 29834 | 8911 /* We use char because int might match the return type of a gcc2 |
| 40056 | 8912 builtin and then its argument prototype would still apply. */ |
| 8913 char getloadavg (); | |
| 8914 int | |
| 8915 main () | |
| 8916 { | |
| 8917 getloadavg (); | |
| 8918 ; | |
| 8919 return 0; | |
| 8920 } | |
| 8921 _ACEOF | |
| 8922 rm -f conftest.$ac_objext conftest$ac_exeext | |
| 40426 | 8923 if { (eval echo "$as_me:8923: \"$ac_link\"") >&5 |
| 8924 (eval $ac_link) 2>&5 | |
| 8925 ac_status=$? | |
| 8926 echo "$as_me:8926: \$? = $ac_status" >&5 | |
| 40056 | 8927 (exit $ac_status); } && |
| 8928 { ac_try='test -s conftest$ac_exeext' | |
| 40426 | 8929 { (eval echo "$as_me:8929: \"$ac_try\"") >&5 |
| 8930 (eval $ac_try) 2>&5 | |
| 8931 ac_status=$? | |
| 8932 echo "$as_me:8932: \$? = $ac_status" >&5 | |
| 40056 | 8933 (exit $ac_status); }; }; then |
| 8934 ac_cv_lib_util_getloadavg=yes | |
| 8935 else | |
| 8936 echo "$as_me: failed program was:" >&5 | |
| 8937 cat conftest.$ac_ext >&5 | |
| 8938 ac_cv_lib_util_getloadavg=no | |
| 8939 fi | |
| 8940 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
| 8941 LIBS=$ac_check_lib_save_LIBS | |
| 8942 fi | |
| 40426 | 8943 echo "$as_me:8943: result: $ac_cv_lib_util_getloadavg" >&5 |
| 40056 | 8944 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6 |
| 8945 if test $ac_cv_lib_util_getloadavg = yes; then | |
| 29834 | 8946 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes |
| 40056 | 8947 fi |
| 8948 | |
| 8949 fi | |
| 29834 | 8950 |
| 8951 if test $ac_have_func = no; then | |
| 8952 # There is a commonly available library for RS/6000 AIX. | |
| 8953 # Since it is not a standard part of AIX, it might be installed locally. | |
| 40056 | 8954 ac_getloadavg_LIBS=$LIBS |
| 8955 LIBS="-L/usr/local/lib $LIBS" | |
| 40426 | 8956 echo "$as_me:8956: checking for getloadavg in -lgetloadavg" >&5 |
| 40056 | 8957 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6 |
| 8958 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then | |
| 8959 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
| 8960 else | |
| 8961 ac_check_lib_save_LIBS=$LIBS | |
| 29834 | 8962 LIBS="-lgetloadavg $LIBS" |
| 40056 | 8963 cat >conftest.$ac_ext <<_ACEOF |
| 40426 | 8964 #line 8964 "configure" |
| 40056 | 8965 #include "confdefs.h" |
| 8966 | |
| 29834 | 8967 /* Override any gcc2 internal prototype to avoid an error. */ |
| 40056 | 8968 #ifdef __cplusplus |
| 8969 extern "C" | |
| 8970 #endif | |
| 29834 | 8971 /* We use char because int might match the return type of a gcc2 |
| 40056 | 8972 builtin and then its argument prototype would still apply. */ |
| 8973 char getloadavg (); | |
| 8974 int | |
| 8975 main () | |
| 8976 { | |
| 8977 getloadavg (); | |
| 8978 ; | |
| 8979 return 0; | |
| 8980 } | |
| 8981 _ACEOF | |
| 8982 rm -f conftest.$ac_objext conftest$ac_exeext | |
| 40426 | 8983 if { (eval echo "$as_me:8983: \"$ac_link\"") >&5 |
| 8984 (eval $ac_link) 2>&5 | |
| 8985 ac_status=$? | |
| 8986 echo "$as_me:8986: \$? = $ac_status" >&5 | |
| 40056 | 8987 (exit $ac_status); } && |
| 8988 { ac_try='test -s conftest$ac_exeext' | |
| 40426 | 8989 { (eval echo "$as_me:8989: \"$ac_try\"") >&5 |
| 8990 (eval $ac_try) 2>&5 | |
| 8991 ac_status=$? | |
| 8992 echo "$as_me:8992: \$? = $ac_status" >&5 | |
| 40056 | 8993 (exit $ac_status); }; }; then |
| 8994 ac_cv_lib_getloadavg_getloadavg=yes | |
| 8995 else | |
| 8996 echo "$as_me: failed program was:" >&5 | |
| 8997 cat conftest.$ac_ext >&5 | |
| 8998 ac_cv_lib_getloadavg_getloadavg=no | |
| 8999 fi | |
| 9000 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
| 9001 LIBS=$ac_check_lib_save_LIBS | |
| 9002 fi | |
| 40426 | 9003 echo "$as_me:9003: result: $ac_cv_lib_getloadavg_getloadavg" >&5 |
| 40056 | 9004 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6 |
| 9005 if test $ac_cv_lib_getloadavg_getloadavg = yes; then | |
| 29834 | 9006 LIBS="-lgetloadavg $LIBS" |
| 9007 else | |
| 40056 | 9008 LIBS=$ac_getloadavg_LIBS |
| 9009 fi | |
| 9010 | |
| 9011 fi | |
| 9012 | |
| 9013 # Make sure it is really in the library, if we think we found it, | |
| 9014 # otherwise set up the replacement function. | |
| 9015 | |
| 29834 | 9016 for ac_func in getloadavg |
| 9017 do | |
| 40056 | 9018 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 40426 | 9019 echo "$as_me:9019: checking for $ac_func" >&5 |
| 40056 | 9020 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 9021 if eval "test \"\${$as_ac_var+set}\" = set"; then | |
| 9022 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
| 9023 else | |
| 9024 cat >conftest.$ac_ext <<_ACEOF | |
| 40426 | 9025 #line 9025 "configure" |
| 29834 | 9026 #include "confdefs.h" |
| 9027 /* System header to define __stub macros and hopefully few prototypes, | |
| 40056 | 9028 which can conflict with char $ac_func (); below. */ |
| 29834 | 9029 #include <assert.h> |
| 9030 /* Override any gcc2 internal prototype to avoid an error. */ | |
| 40056 | 9031 #ifdef __cplusplus |
| 9032 extern "C" | |
| 9033 #endif | |
| 29834 | 9034 /* We use char because int might match the return type of a gcc2 |
| 40056 | 9035 builtin and then its argument prototype would still apply. */ |
| 9036 char $ac_func (); | |
| 9037 char (*f) (); | |
| 9038 | |
| 9039 int | |
| 9040 main () | |
| 9041 { | |
| 29834 | 9042 /* The GNU C library defines this for functions which it implements |
| 9043 to always fail with ENOSYS. Some functions are actually named | |
| 9044 something starting with __ and the normal name is an alias. */ | |
| 9045 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
| 9046 choke me | |
| 9047 #else | |
| 40056 | 9048 f = $ac_func; |
| 9049 #endif | |
| 9050 | |
| 9051 ; | |
| 9052 return 0; | |
| 9053 } | |
| 9054 _ACEOF | |
| 9055 rm -f conftest.$ac_objext conftest$ac_exeext | |
| 40426 | 9056 if { (eval echo "$as_me:9056: \"$ac_link\"") >&5 |
| 9057 (eval $ac_link) 2>&5 | |
| 9058 ac_status=$? | |
| 9059 echo "$as_me:9059: \$? = $ac_status" >&5 | |
| 40056 | 9060 (exit $ac_status); } && |
| 9061 { ac_try='test -s conftest$ac_exeext' | |
| 40426 | 9062 { (eval echo "$as_me:9062: \"$ac_try\"") >&5 |
| 9063 (eval $ac_try) 2>&5 | |
| 9064 ac_status=$? | |
| 9065 echo "$as_me:9065: \$? = $ac_status" >&5 | |
| 40056 | 9066 (exit $ac_status); }; }; then |
| 9067 eval "$as_ac_var=yes" | |
| 9068 else | |
| 9069 echo "$as_me: failed program was:" >&5 | |
| 9070 cat conftest.$ac_ext >&5 | |
| 9071 eval "$as_ac_var=no" | |
| 9072 fi | |
| 9073 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
| 9074 fi | |
| 40426 | 9075 echo "$as_me:9075: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 40056 | 9076 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 9077 if test `eval echo '${'$as_ac_var'}'` = yes; then | |
| 9078 cat >>confdefs.h <<EOF | |
| 9079 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
| 9080 EOF | |
| 9081 | |
| 9082 else | |
| 9083 LIBOBJS="$LIBOBJS getloadavg.$ac_objext" | |
| 9084 | |
| 9085 cat >>confdefs.h <<\EOF | |
| 9086 #define C_GETLOADAVG 1 | |
| 9087 EOF | |
| 9088 | |
| 9089 # Figure out what our getloadavg.c needs. | |
| 9090 ac_have_func=no | |
| 40426 | 9091 echo "$as_me:9091: checking for sys/dg_sys_info.h" >&5 |
| 40056 | 9092 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6 |
| 9093 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then | |
| 9094 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
| 9095 else | |
| 9096 cat >conftest.$ac_ext <<_ACEOF | |
| 40426 | 9097 #line 9097 "configure" |
| 29834 | 9098 #include "confdefs.h" |
| 9099 #include <sys/dg_sys_info.h> | |
| 40056 | 9100 _ACEOF |
| 40426 | 9101 if { (eval echo "$as_me:9101: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 40056 | 9102 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 9103 ac_status=$? | |
| 9104 egrep -v '^ *\+' conftest.er1 >conftest.err | |
| 9105 rm -f conftest.er1 | |
| 9106 cat conftest.err >&5 | |
| 40426 | 9107 echo "$as_me:9107: \$? = $ac_status" >&5 |
| 40056 | 9108 (exit $ac_status); } >/dev/null; then |
| 9109 if test -s conftest.err; then | |
| 9110 ac_cpp_err=$ac_c_preproc_warn_flag | |
| 9111 else | |
| 9112 ac_cpp_err= | |
| 9113 fi | |
| 9114 else | |
| 9115 ac_cpp_err=yes | |
| 9116 fi | |
| 9117 if test -z "$ac_cpp_err"; then | |
| 9118 ac_cv_header_sys_dg_sys_info_h=yes | |
| 9119 else | |
| 9120 echo "$as_me: failed program was:" >&5 | |
| 29834 | 9121 cat conftest.$ac_ext >&5 |
| 40056 | 9122 ac_cv_header_sys_dg_sys_info_h=no |
| 9123 fi | |
| 9124 rm -f conftest.err conftest.$ac_ext | |
| 9125 fi | |
| 40426 | 9126 echo "$as_me:9126: result: $ac_cv_header_sys_dg_sys_info_h" >&5 |
| 40056 | 9127 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6 |
| 9128 if test $ac_cv_header_sys_dg_sys_info_h = yes; then | |
| 9129 ac_have_func=yes | |
| 9130 | |
| 9131 cat >>confdefs.h <<\EOF | |
| 29834 | 9132 #define DGUX 1 |
| 9133 EOF | |
| 9134 | |
| 40426 | 9135 echo "$as_me:9135: checking for dg_sys_info in -ldgc" >&5 |
| 40056 | 9136 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6 |
| 9137 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then | |
| 9138 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
| 9139 else | |
| 9140 ac_check_lib_save_LIBS=$LIBS | |
| 29834 | 9141 LIBS="-ldgc $LIBS" |
| 40056 | 9142 cat >conftest.$ac_ext <<_ACEOF |
| 40426 | 9143 #line 9143 "configure" |
| 40056 | 9144 #include "confdefs.h" |
| 9145 | |
| 29834 | 9146 /* Override any gcc2 internal prototype to avoid an error. */ |
| 40056 | 9147 #ifdef __cplusplus |
| 9148 extern "C" | |
| 9149 #endif | |
| 29834 | 9150 /* We use char because int might match the return type of a gcc2 |
| 40056 | 9151 builtin and then its argument prototype would still apply. */ |
| 9152 char dg_sys_info (); | |
| 9153 int | |
| 9154 main () | |
| 9155 { | |
| 9156 dg_sys_info (); | |
| 9157 ; | |
| 9158 return 0; | |
| 9159 } | |
| 9160 _ACEOF | |
| 9161 rm -f conftest.$ac_objext conftest$ac_exeext | |
| 40426 | 9162 if { (eval echo "$as_me:9162: \"$ac_link\"") >&5 |
| 9163 (eval $ac_link) 2>&5 | |
| 9164 ac_status=$? | |
| 9165 echo "$as_me:9165: \$? = $ac_status" >&5 | |
| 40056 | 9166 (exit $ac_status); } && |
| 9167 { ac_try='test -s conftest$ac_exeext' | |
| 40426 | 9168 { (eval echo "$as_me:9168: \"$ac_try\"") >&5 |
| 9169 (eval $ac_try) 2>&5 | |
| 9170 ac_status=$? | |
| 9171 echo "$as_me:9171: \$? = $ac_status" >&5 | |
| 40056 | 9172 (exit $ac_status); }; }; then |
| 9173 ac_cv_lib_dgc_dg_sys_info=yes | |
| 9174 else | |
| 9175 echo "$as_me: failed program was:" >&5 | |
| 9176 cat conftest.$ac_ext >&5 | |
| 9177 ac_cv_lib_dgc_dg_sys_info=no | |
| 9178 fi | |
| 9179 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
| 9180 LIBS=$ac_check_lib_save_LIBS | |
| 9181 fi | |
| 40426 | 9182 echo "$as_me:9182: result: $ac_cv_lib_dgc_dg_sys_info" >&5 |
| 40056 | 9183 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6 |
| 9184 if test $ac_cv_lib_dgc_dg_sys_info = yes; then | |
| 9185 cat >>confdefs.h <<EOF | |
| 9186 #define HAVE_LIBDGC 1 | |
| 29834 | 9187 EOF |
| 9188 | |
| 9189 LIBS="-ldgc $LIBS" | |
| 9190 | |
| 40056 | 9191 fi |
| 9192 | |
| 9193 fi | |
| 9194 | |
| 40426 | 9195 echo "$as_me:9195: checking for locale.h" >&5 |
| 40056 | 9196 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6 |
| 9197 if test "${ac_cv_header_locale_h+set}" = set; then | |
| 9198 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
| 9199 else | |
| 9200 cat >conftest.$ac_ext <<_ACEOF | |
| 40426 | 9201 #line 9201 "configure" |
| 40056 | 9202 #include "confdefs.h" |
| 9203 #include <locale.h> | |
| 9204 _ACEOF | |
| 40426 | 9205 if { (eval echo "$as_me:9205: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 40056 | 9206 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 9207 ac_status=$? | |
| 9208 egrep -v '^ *\+' conftest.er1 >conftest.err | |
| 9209 rm -f conftest.er1 | |
| 9210 cat conftest.err >&5 | |
| 40426 | 9211 echo "$as_me:9211: \$? = $ac_status" >&5 |
| 40056 | 9212 (exit $ac_status); } >/dev/null; then |
| 9213 if test -s conftest.err; then | |
| 9214 ac_cpp_err=$ac_c_preproc_warn_flag | |
| 9215 else | |
| 9216 ac_cpp_err= | |
| 9217 fi | |
| 9218 else | |
| 9219 ac_cpp_err=yes | |
| 9220 fi | |
| 9221 if test -z "$ac_cpp_err"; then | |
| 9222 ac_cv_header_locale_h=yes | |
| 9223 else | |
| 9224 echo "$as_me: failed program was:" >&5 | |
| 9225 cat conftest.$ac_ext >&5 | |
| 9226 ac_cv_header_locale_h=no | |
| 9227 fi | |
| 9228 rm -f conftest.err conftest.$ac_ext | |
| 9229 fi | |
| 40426 | 9230 echo "$as_me:9230: result: $ac_cv_header_locale_h" >&5 |
| 40056 | 9231 echo "${ECHO_T}$ac_cv_header_locale_h" >&6 |
| 9232 | |
| 9233 for ac_func in setlocale | |
| 9234 do | |
| 9235 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
| 40426 | 9236 echo "$as_me:9236: checking for $ac_func" >&5 |
| 40056 | 9237 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 9238 if eval "test \"\${$as_ac_var+set}\" = set"; then | |
| 9239 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
| 9240 else | |
| 9241 cat >conftest.$ac_ext <<_ACEOF | |
| 40426 | 9242 #line 9242 "configure" |
| 40056 | 9243 #include "confdefs.h" |
| 9244 /* System header to define __stub macros and hopefully few prototypes, | |
| 9245 which can conflict with char $ac_func (); below. */ | |
| 9246 #include <assert.h> | |
| 9247 /* Override any gcc2 internal prototype to avoid an error. */ | |
| 9248 #ifdef __cplusplus | |
| 9249 extern "C" | |
| 9250 #endif | |
| 9251 /* We use char because int might match the return type of a gcc2 | |
| 9252 builtin and then its argument prototype would still apply. */ | |
| 9253 char $ac_func (); | |
| 9254 char (*f) (); | |
| 9255 | |
| 9256 int | |
| 9257 main () | |
| 9258 { | |
| 9259 /* The GNU C library defines this for functions which it implements | |
| 9260 to always fail with ENOSYS. Some functions are actually named | |
| 9261 something starting with __ and the normal name is an alias. */ | |
| 9262 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
| 9263 choke me | |
| 9264 #else | |
| 9265 f = $ac_func; | |
| 9266 #endif | |
| 9267 | |
| 9268 ; | |
| 9269 return 0; | |
| 9270 } | |
| 9271 _ACEOF | |
| 9272 rm -f conftest.$ac_objext conftest$ac_exeext | |
| 40426 | 9273 if { (eval echo "$as_me:9273: \"$ac_link\"") >&5 |
| 9274 (eval $ac_link) 2>&5 | |
| 9275 ac_status=$? | |
| 9276 echo "$as_me:9276: \$? = $ac_status" >&5 | |
| 40056 | 9277 (exit $ac_status); } && |
| 9278 { ac_try='test -s conftest$ac_exeext' | |
| 40426 | 9279 { (eval echo "$as_me:9279: \"$ac_try\"") >&5 |
| 9280 (eval $ac_try) 2>&5 | |
| 9281 ac_status=$? | |
| 9282 echo "$as_me:9282: \$? = $ac_status" >&5 | |
| 40056 | 9283 (exit $ac_status); }; }; then |
| 9284 eval "$as_ac_var=yes" | |
| 9285 else | |
| 9286 echo "$as_me: failed program was:" >&5 | |
| 9287 cat conftest.$ac_ext >&5 | |
| 9288 eval "$as_ac_var=no" | |
| 9289 fi | |
| 9290 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
| 9291 fi | |
| 40426 | 9292 echo "$as_me:9292: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 40056 | 9293 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 9294 if test `eval echo '${'$as_ac_var'}'` = yes; then | |
| 9295 cat >>confdefs.h <<EOF | |
| 9296 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
| 9297 EOF | |
| 9298 | |
| 9299 fi | |
| 9300 done | |
| 9301 | |
| 9302 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it | |
| 9303 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because | |
| 9304 # Irix 4.0.5F has the header but not the library. | |
| 9305 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then | |
| 9306 ac_have_func=yes | |
| 9307 | |
| 9308 cat >>confdefs.h <<\EOF | |
| 29834 | 9309 #define SVR4 1 |
| 9310 EOF | |
| 9311 | |
| 40056 | 9312 fi |
| 9313 | |
| 9314 if test $ac_have_func = no; then | |
| 40426 | 9315 echo "$as_me:9315: checking for inq_stats/cpustats.h" >&5 |
| 40056 | 9316 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6 |
| 9317 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then | |
| 9318 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
| 9319 else | |
| 9320 cat >conftest.$ac_ext <<_ACEOF | |
| 40426 | 9321 #line 9321 "configure" |
| 29834 | 9322 #include "confdefs.h" |
| 9323 #include <inq_stats/cpustats.h> | |
| 40056 | 9324 _ACEOF |
| 40426 | 9325 if { (eval echo "$as_me:9325: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 40056 | 9326 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 9327 ac_status=$? | |
| 9328 egrep -v '^ *\+' conftest.er1 >conftest.err | |
| 9329 rm -f conftest.er1 | |
| 9330 cat conftest.err >&5 | |
| 40426 | 9331 echo "$as_me:9331: \$? = $ac_status" >&5 |
| 40056 | 9332 (exit $ac_status); } >/dev/null; then |
| 9333 if test -s conftest.err; then | |
| 9334 ac_cpp_err=$ac_c_preproc_warn_flag | |
| 9335 else | |
| 9336 ac_cpp_err= | |
| 9337 fi | |
| 9338 else | |
| 9339 ac_cpp_err=yes | |
| 9340 fi | |
| 9341 if test -z "$ac_cpp_err"; then | |
| 9342 ac_cv_header_inq_stats_cpustats_h=yes | |
| 9343 else | |
| 9344 echo "$as_me: failed program was:" >&5 | |
| 29834 | 9345 cat conftest.$ac_ext >&5 |
| 40056 | 9346 ac_cv_header_inq_stats_cpustats_h=no |
| 9347 fi | |
| 9348 rm -f conftest.err conftest.$ac_ext | |
| 9349 fi | |
| 40426 | 9350 echo "$as_me:9350: result: $ac_cv_header_inq_stats_cpustats_h" >&5 |
| 40056 | 9351 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6 |
| 9352 if test $ac_cv_header_inq_stats_cpustats_h = yes; then | |
| 9353 ac_have_func=yes | |
| 9354 | |
| 9355 cat >>confdefs.h <<\EOF | |
| 29834 | 9356 #define UMAX 1 |
| 9357 EOF | |
| 9358 | |
| 40056 | 9359 cat >>confdefs.h <<\EOF |
| 29834 | 9360 #define UMAX4_3 1 |
| 9361 EOF | |
| 9362 | |
| 40056 | 9363 fi |
| 9364 | |
| 9365 fi | |
| 9366 | |
| 9367 if test $ac_have_func = no; then | |
| 40426 | 9368 echo "$as_me:9368: checking for sys/cpustats.h" >&5 |
| 40056 | 9369 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6 |
| 9370 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then | |
| 9371 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
| 9372 else | |
| 9373 cat >conftest.$ac_ext <<_ACEOF | |
| 40426 | 9374 #line 9374 "configure" |
| 29834 | 9375 #include "confdefs.h" |
| 9376 #include <sys/cpustats.h> | |
| 40056 | 9377 _ACEOF |
| 40426 | 9378 if { (eval echo "$as_me:9378: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 40056 | 9379 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 9380 ac_status=$? | |
| 9381 egrep -v '^ *\+' conftest.er1 >conftest.err | |
| 9382 rm -f conftest.er1 | |
| 9383 cat conftest.err >&5 | |
| 40426 | 9384 echo "$as_me:9384: \$? = $ac_status" >&5 |
| 40056 | 9385 (exit $ac_status); } >/dev/null; then |
| 9386 if test -s conftest.err; then | |
| 9387 ac_cpp_err=$ac_c_preproc_warn_flag | |
| 9388 else | |
| 9389 ac_cpp_err= | |
| 9390 fi | |
| 9391 else | |
| 9392 ac_cpp_err=yes | |
| 9393 fi | |
| 9394 if test -z "$ac_cpp_err"; then | |
| 9395 ac_cv_header_sys_cpustats_h=yes | |
| 9396 else | |
| 9397 echo "$as_me: failed program was:" >&5 | |
| 29834 | 9398 cat conftest.$ac_ext >&5 |
| 40056 | 9399 ac_cv_header_sys_cpustats_h=no |
| 9400 fi | |
| 9401 rm -f conftest.err conftest.$ac_ext | |
| 9402 fi | |
| 40426 | 9403 echo "$as_me:9403: result: $ac_cv_header_sys_cpustats_h" >&5 |
| 40056 | 9404 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6 |
| 9405 if test $ac_cv_header_sys_cpustats_h = yes; then | |
| 9406 ac_have_func=yes; cat >>confdefs.h <<\EOF | |
| 29834 | 9407 #define UMAX 1 |
| 9408 EOF | |
| 9409 | |
| 40056 | 9410 fi |
| 9411 | |
| 9412 fi | |
| 9413 | |
| 9414 if test $ac_have_func = no; then | |
| 9415 | |
| 9416 for ac_header in mach/mach.h | |
| 29834 | 9417 do |
| 40056 | 9418 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 40426 | 9419 echo "$as_me:9419: checking for $ac_header" >&5 |
| 40056 | 9420 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 9421 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
| 9422 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
| 9423 else | |
| 9424 cat >conftest.$ac_ext <<_ACEOF | |
| 40426 | 9425 #line 9425 "configure" |
| 40056 | 9426 #include "confdefs.h" |
| 9427 #include <$ac_header> | |
| 9428 _ACEOF | |
| 40426 | 9429 if { (eval echo "$as_me:9429: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 40056 | 9430 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 9431 ac_status=$? | |
| 9432 egrep -v '^ *\+' conftest.er1 >conftest.err | |
| 9433 rm -f conftest.er1 | |
| 9434 cat conftest.err >&5 | |
| 40426 | 9435 echo "$as_me:9435: \$? = $ac_status" >&5 |
| 40056 | 9436 (exit $ac_status); } >/dev/null; then |
| 9437 if test -s conftest.err; then | |
| 9438 ac_cpp_err=$ac_c_preproc_warn_flag | |
| 9439 else | |
| 9440 ac_cpp_err= | |
| 9441 fi | |
| 9442 else | |
| 9443 ac_cpp_err=yes | |
| 9444 fi | |
| 9445 if test -z "$ac_cpp_err"; then | |
| 9446 eval "$as_ac_Header=yes" | |
| 9447 else | |
| 9448 echo "$as_me: failed program was:" >&5 | |
| 29834 | 9449 cat conftest.$ac_ext >&5 |
| 40056 | 9450 eval "$as_ac_Header=no" |
| 9451 fi | |
| 9452 rm -f conftest.err conftest.$ac_ext | |
| 9453 fi | |
| 40426 | 9454 echo "$as_me:9454: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 40056 | 9455 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 9456 if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
| 9457 cat >>confdefs.h <<EOF | |
| 9458 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
| 9459 EOF | |
| 9460 | |
| 29834 | 9461 fi |
| 9462 done | |
| 9463 | |
| 40056 | 9464 fi |
| 9465 | |
| 9466 for ac_header in nlist.h | |
| 9467 do | |
| 9468 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
| 40426 | 9469 echo "$as_me:9469: checking for $ac_header" >&5 |
| 40056 | 9470 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 9471 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
| 9472 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
| 9473 else | |
| 9474 cat >conftest.$ac_ext <<_ACEOF | |
| 40426 | 9475 #line 9475 "configure" |
| 40056 | 9476 #include "confdefs.h" |
| 9477 #include <$ac_header> | |
| 9478 _ACEOF | |
| 40426 | 9479 if { (eval echo "$as_me:9479: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 40056 | 9480 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 9481 ac_status=$? | |
| 9482 egrep -v '^ *\+' conftest.er1 >conftest.err | |
| 9483 rm -f conftest.er1 | |
| 9484 cat conftest.err >&5 | |
| 40426 | 9485 echo "$as_me:9485: \$? = $ac_status" >&5 |
| 40056 | 9486 (exit $ac_status); } >/dev/null; then |
| 9487 if test -s conftest.err; then | |
| 9488 ac_cpp_err=$ac_c_preproc_warn_flag | |
| 9489 else | |
| 9490 ac_cpp_err= | |
| 9491 fi | |
| 9492 else | |
| 9493 ac_cpp_err=yes | |
| 9494 fi | |
| 9495 if test -z "$ac_cpp_err"; then | |
| 9496 eval "$as_ac_Header=yes" | |
| 9497 else | |
| 9498 echo "$as_me: failed program was:" >&5 | |
| 9499 cat conftest.$ac_ext >&5 | |
| 9500 eval "$as_ac_Header=no" | |
| 9501 fi | |
| 9502 rm -f conftest.err conftest.$ac_ext | |
| 9503 fi | |
| 40426 | 9504 echo "$as_me:9504: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 40056 | 9505 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 9506 if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
| 9507 cat >>confdefs.h <<EOF | |
| 9508 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
| 9509 EOF | |
| 40426 | 9510 echo "$as_me:9510: checking for struct nlist.n_un.n_name" >&5 |
| 40056 | 9511 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6 |
| 9512 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then | |
| 9513 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
| 9514 else | |
| 9515 cat >conftest.$ac_ext <<_ACEOF | |
| 40426 | 9516 #line 9516 "configure" |
| 29834 | 9517 #include "confdefs.h" |
| 9518 #include <nlist.h> | |
| 40056 | 9519 |
| 9520 int | |
| 9521 main () | |
| 9522 { | |
| 9523 static struct nlist ac_aggr; | |
| 9524 if (ac_aggr.n_un.n_name) | |
| 9525 return 0; | |
| 9526 ; | |
| 9527 return 0; | |
| 9528 } | |
| 9529 _ACEOF | |
| 9530 rm -f conftest.$ac_objext | |
| 40426 | 9531 if { (eval echo "$as_me:9531: \"$ac_compile\"") >&5 |
| 40056 | 9532 (eval $ac_compile) 2>&5 |
| 9533 ac_status=$? | |
| 40426 | 9534 echo "$as_me:9534: \$? = $ac_status" >&5 |
| 40056 | 9535 (exit $ac_status); } && |
| 9536 { ac_try='test -s conftest.$ac_objext' | |
| 40426 | 9537 { (eval echo "$as_me:9537: \"$ac_try\"") >&5 |
| 9538 (eval $ac_try) 2>&5 | |
| 9539 ac_status=$? | |
| 9540 echo "$as_me:9540: \$? = $ac_status" >&5 | |
| 40056 | 9541 (exit $ac_status); }; }; then |
| 9542 ac_cv_member_struct_nlist_n_un_n_name=yes | |
| 9543 else | |
| 9544 echo "$as_me: failed program was:" >&5 | |
| 9545 cat conftest.$ac_ext >&5 | |
| 9546 ac_cv_member_struct_nlist_n_un_n_name=no | |
| 9547 fi | |
| 9548 rm -f conftest.$ac_objext conftest.$ac_ext | |
| 9549 fi | |
| 40426 | 9550 echo "$as_me:9550: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5 |
| 40056 | 9551 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6 |
| 9552 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then | |
| 9553 | |
| 9554 cat >>confdefs.h <<EOF | |
| 9555 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1 | |
| 9556 EOF | |
| 9557 | |
| 9558 cat >>confdefs.h <<\EOF | |
| 29834 | 9559 #define NLIST_NAME_UNION 1 |
| 9560 EOF | |
| 9561 | |
| 40056 | 9562 fi |
| 9563 | |
| 9564 fi | |
| 9565 done | |
| 9566 | |
| 9567 fi | |
| 9568 done | |
| 29834 | 9569 |
| 9570 # Some definitions of getloadavg require that the program be installed setgid. | |
| 40426 | 9571 echo "$as_me:9571: checking whether getloadavg requires setgid" >&5 |
| 40056 | 9572 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6 |
| 9573 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then | |
| 9574 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
| 9575 else | |
| 9576 cat >conftest.$ac_ext <<_ACEOF | |
| 40426 | 9577 #line 9577 "configure" |
| 29834 | 9578 #include "confdefs.h" |
| 9579 #include "$srcdir/getloadavg.c" | |
| 9580 #ifdef LDAV_PRIVILEGED | |
| 9581 Yowza Am I SETGID yet | |
| 9582 #endif | |
| 40056 | 9583 _ACEOF |
| 29834 | 9584 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 9585 egrep "Yowza Am I SETGID yet" >/dev/null 2>&1; then | |
| 9586 ac_cv_func_getloadavg_setgid=yes | |
| 9587 else | |
| 9588 ac_cv_func_getloadavg_setgid=no | |
| 9589 fi | |
| 9590 rm -f conftest* | |
| 9591 | |
| 9592 fi | |
| 40426 | 9593 echo "$as_me:9593: result: $ac_cv_func_getloadavg_setgid" >&5 |
| 40056 | 9594 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6 |
| 29834 | 9595 if test $ac_cv_func_getloadavg_setgid = yes; then |
| 40056 | 9596 NEED_SETGID=true |
| 9597 | |
| 9598 cat >>confdefs.h <<\EOF | |
| 29834 | 9599 #define GETLOADAVG_PRIVILEGED 1 |
| 9600 EOF | |
| 9601 | |
| 9602 else | |
| 9603 NEED_SETGID=false | |
| 9604 fi | |
| 9605 | |
| 9606 if test $ac_cv_func_getloadavg_setgid = yes; then | |
| 40426 | 9607 echo "$as_me:9607: checking group of /dev/kmem" >&5 |
| 40056 | 9608 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6 |
| 9609 if test "${ac_cv_group_kmem+set}" = set; then | |
| 9610 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
| 9611 else | |
| 9612 # On Solaris, /dev/kmem is a symlink. Get info on the real file. | |
| 29834 | 9613 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null` |
| 9614 # If we got an error (system does not support symlinks), try without -L. | |
| 9615 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem` | |
| 9616 ac_cv_group_kmem=`echo $ac_ls_output \ | |
| 9617 | sed -ne 's/[ ][ ]*/ /g; | |
| 9618 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/; | |
| 9619 / /s/.* //;p;'` | |
| 9620 | |
| 9621 fi | |
| 40426 | 9622 echo "$as_me:9622: result: $ac_cv_group_kmem" >&5 |
| 40056 | 9623 echo "${ECHO_T}$ac_cv_group_kmem" >&6 |
| 29834 | 9624 KMEM_GROUP=$ac_cv_group_kmem |
| 9625 fi | |
| 40056 | 9626 if test "x$ac_save_LIBS" = x; then |
| 9627 GETLOADAVG_LIBS=$LIBS | |
| 9628 else | |
| 9629 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"` | |
| 9630 fi | |
| 9631 LIBS=$ac_save_LIBS | |
| 9632 | |
| 40426 | 9633 echo "$as_me:9633: checking for _LARGEFILE_SOURCE value needed for large files" >&5 |
| 40056 | 9634 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6 |
| 9635 if test "${ac_cv_sys_largefile_source+set}" = set; then | |
| 9636 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
| 9637 else | |
| 9638 while :; do | |
| 34431 | 9639 ac_cv_sys_largefile_source=no |
| 40056 | 9640 cat >conftest.$ac_ext <<_ACEOF |
| 40426 | 9641 #line 9641 "configure" |
| 34431 | 9642 #include "confdefs.h" |
| 9643 #include <stdio.h> | |
| 40056 | 9644 int |
| 9645 main () | |
| 9646 { | |
| 34431 | 9647 return !fseeko; |
| 40056 | 9648 ; |
| 9649 return 0; | |
| 9650 } | |
| 9651 _ACEOF | |
| 9652 rm -f conftest.$ac_objext | |
| 40426 | 9653 if { (eval echo "$as_me:9653: \"$ac_compile\"") >&5 |
| 40056 | 9654 (eval $ac_compile) 2>&5 |
| 9655 ac_status=$? | |
| 40426 | 9656 echo "$as_me:9656: \$? = $ac_status" >&5 |
| 40056 | 9657 (exit $ac_status); } && |
| 9658 { ac_try='test -s conftest.$ac_objext' | |
| 40426 | 9659 { (eval echo "$as_me:9659: \"$ac_try\"") >&5 |
| 9660 (eval $ac_try) 2>&5 | |
| 9661 ac_status=$? | |
| 9662 echo "$as_me:9662: \$? = $ac_status" >&5 | |
| 40056 | 9663 (exit $ac_status); }; }; then |
| 9664 break | |
| 9665 else | |
| 9666 echo "$as_me: failed program was:" >&5 | |
| 9667 cat conftest.$ac_ext >&5 | |
| 9668 fi | |
| 9669 rm -f conftest.$ac_objext conftest.$ac_ext | |
| 9670 cat >conftest.$ac_ext <<_ACEOF | |
| 40426 | 9671 #line 9671 "configure" |
| 34431 | 9672 #include "confdefs.h" |
| 9673 #define _LARGEFILE_SOURCE 1 | |
| 9674 #include <stdio.h> | |
| 40056 | 9675 int |
| 9676 main () | |
| 9677 { | |
| 34431 | 9678 return !fseeko; |
| 40056 | 9679 ; |
| 9680 return 0; | |
| 9681 } | |
| 9682 _ACEOF | |
| 9683 rm -f conftest.$ac_objext | |
| 40426 | 9684 if { (eval echo "$as_me:9684: \"$ac_compile\"") >&5 |
| 40056 | 9685 (eval $ac_compile) 2>&5 |
| 9686 ac_status=$? | |
| 40426 | 9687 echo "$as_me:9687: \$? = $ac_status" >&5 |
| 40056 | 9688 (exit $ac_status); } && |
| 9689 { ac_try='test -s conftest.$ac_objext' | |
| 40426 | 9690 { (eval echo "$as_me:9690: \"$ac_try\"") >&5 |
| 9691 (eval $ac_try) 2>&5 | |
| 9692 ac_status=$? | |
| 9693 echo "$as_me:9693: \$? = $ac_status" >&5 | |
| 40056 | 9694 (exit $ac_status); }; }; then |
| 9695 ac_cv_sys_largefile_source=1; break | |
| 9696 else | |
| 9697 echo "$as_me: failed program was:" >&5 | |
| 9698 cat conftest.$ac_ext >&5 | |
| 9699 fi | |
| 9700 rm -f conftest.$ac_objext conftest.$ac_ext | |
| 9701 break | |
| 9702 done | |
| 9703 fi | |
| 40426 | 9704 echo "$as_me:9704: result: $ac_cv_sys_largefile_source" >&5 |
| 40056 | 9705 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6 |
| 9706 if test "$ac_cv_sys_largefile_source" != no; then | |
| 9707 | |
| 9708 cat >>confdefs.h <<EOF | |
| 9709 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source | |
| 9710 EOF | |
| 9711 | |
| 34431 | 9712 fi |
| 9713 rm -f conftest* | |
| 40056 | 9714 |
| 9715 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug | |
| 9716 # in glibc 2.1.3, but that breaks too many other things. | |
| 9717 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc. | |
| 40426 | 9718 echo "$as_me:9718: checking for fseeko" >&5 |
| 40056 | 9719 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6 |
| 9720 if test "${ac_cv_func_fseeko+set}" = set; then | |
| 9721 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
| 9722 else | |
| 9723 cat >conftest.$ac_ext <<_ACEOF | |
| 40426 | 9724 #line 9724 "configure" |
| 34431 | 9725 #include "confdefs.h" |
| 9726 #include <stdio.h> | |
| 40056 | 9727 int |
| 9728 main () | |
| 9729 { | |
| 34431 | 9730 return fseeko && fseeko (stdin, 0, 0); |
| 40056 | 9731 ; |
| 9732 return 0; | |
| 9733 } | |
| 9734 _ACEOF | |
| 9735 rm -f conftest.$ac_objext conftest$ac_exeext | |
| 40426 | 9736 if { (eval echo "$as_me:9736: \"$ac_link\"") >&5 |
| 9737 (eval $ac_link) 2>&5 | |
| 9738 ac_status=$? | |
| 9739 echo "$as_me:9739: \$? = $ac_status" >&5 | |
| 40056 | 9740 (exit $ac_status); } && |
| 9741 { ac_try='test -s conftest$ac_exeext' | |
| 40426 | 9742 { (eval echo "$as_me:9742: \"$ac_try\"") >&5 |
| 9743 (eval $ac_try) 2>&5 | |
| 9744 ac_status=$? | |
| 9745 echo "$as_me:9745: \$? = $ac_status" >&5 | |
| 40056 | 9746 (exit $ac_status); }; }; then |
| 34431 | 9747 ac_cv_func_fseeko=yes |
| 9748 else | |
| 40056 | 9749 echo "$as_me: failed program was:" >&5 |
| 9750 cat conftest.$ac_ext >&5 | |
| 9751 ac_cv_func_fseeko=no | |
| 9752 fi | |
| 9753 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
| 9754 fi | |
| 40426 | 9755 echo "$as_me:9755: result: $ac_cv_func_fseeko" >&5 |
| 40056 | 9756 echo "${ECHO_T}$ac_cv_func_fseeko" >&6 |
| 9757 if test $ac_cv_func_fseeko = yes; then | |
| 9758 | |
| 9759 cat >>confdefs.h <<\EOF | |
| 34431 | 9760 #define HAVE_FSEEKO 1 |
| 9761 EOF | |
| 9762 | |
| 40056 | 9763 fi |
| 34431 | 9764 |
| 9765 # UNIX98 PTYs. | |
| 40056 | 9766 |
| 34431 | 9767 for ac_func in grantpt |
| 29036 | 9768 do |
| 40056 | 9769 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 40426 | 9770 echo "$as_me:9770: checking for $ac_func" >&5 |
| 40056 | 9771 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 9772 if eval "test \"\${$as_ac_var+set}\" = set"; then | |
| 9773 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
| 9774 else | |
| 9775 cat >conftest.$ac_ext <<_ACEOF | |
| 40426 | 9776 #line 9776 "configure" |
| 29036 | 9777 #include "confdefs.h" |
| 9778 /* System header to define __stub macros and hopefully few prototypes, | |
| 40056 | 9779 which can conflict with char $ac_func (); below. */ |
| 29036 | 9780 #include <assert.h> |
| 9781 /* Override any gcc2 internal prototype to avoid an error. */ | |
| 40056 | 9782 #ifdef __cplusplus |
| 9783 extern "C" | |
| 9784 #endif | |
| 29036 | 9785 /* We use char because int might match the return type of a gcc2 |
| 40056 | 9786 builtin and then its argument prototype would still apply. */ |
| 9787 char $ac_func (); | |
| 9788 char (*f) (); | |
| 9789 | |
| 9790 int | |
| 9791 main () | |
| 9792 { | |
| 29036 | 9793 /* The GNU C library defines this for functions which it implements |
| 9794 to always fail with ENOSYS. Some functions are actually named | |
| 9795 something starting with __ and the normal name is an alias. */ | |
| 9796 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
| 9797 choke me | |
| 9798 #else | |
| 40056 | 9799 f = $ac_func; |
| 9800 #endif | |
| 9801 | |
| 9802 ; | |
| 9803 return 0; | |
| 9804 } | |
| 9805 _ACEOF | |
| 9806 rm -f conftest.$ac_objext conftest$ac_exeext | |
| 40426 | 9807 if { (eval echo "$as_me:9807: \"$ac_link\"") >&5 |
| 9808 (eval $ac_link) 2>&5 | |
| 9809 ac_status=$? | |
| 9810 echo "$as_me:9810: \$? = $ac_status" >&5 | |
| 40056 | 9811 (exit $ac_status); } && |
| 9812 { ac_try='test -s conftest$ac_exeext' | |
| 40426 | 9813 { (eval echo "$as_me:9813: \"$ac_try\"") >&5 |
| 9814 (eval $ac_try) 2>&5 | |
| 9815 ac_status=$? | |
| 9816 echo "$as_me:9816: \$? = $ac_status" >&5 | |
| 40056 | 9817 (exit $ac_status); }; }; then |
| 9818 eval "$as_ac_var=yes" | |
| 9819 else | |
| 9820 echo "$as_me: failed program was:" >&5 | |
| 9821 cat conftest.$ac_ext >&5 | |
| 9822 eval "$as_ac_var=no" | |
| 9823 fi | |
| 9824 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
| 9825 fi | |
| 40426 | 9826 echo "$as_me:9826: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 40056 | 9827 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 9828 if test `eval echo '${'$as_ac_var'}'` = yes; then | |
| 9829 cat >>confdefs.h <<EOF | |
| 9830 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
| 9831 EOF | |
| 9832 | |
| 29036 | 9833 fi |
| 9834 done | |
| 9835 | |
| 9836 # PTY-related GNU extensions. | |
| 40056 | 9837 |
| 29036 | 9838 for ac_func in getpt |
| 9839 do | |
| 40056 | 9840 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 40426 | 9841 echo "$as_me:9841: checking for $ac_func" >&5 |
| 40056 | 9842 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 9843 if eval "test \"\${$as_ac_var+set}\" = set"; then | |
| 9844 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
| 9845 else | |
| 9846 cat >conftest.$ac_ext <<_ACEOF | |
| 40426 | 9847 #line 9847 "configure" |
| 29036 | 9848 #include "confdefs.h" |
| 9849 /* System header to define __stub macros and hopefully few prototypes, | |
| 40056 | 9850 which can conflict with char $ac_func (); below. */ |
| 29036 | 9851 #include <assert.h> |
| 9852 /* Override any gcc2 internal prototype to avoid an error. */ | |
| 40056 | 9853 #ifdef __cplusplus |
| 9854 extern "C" | |
| 9855 #endif | |
| 29036 | 9856 /* We use char because int might match the return type of a gcc2 |
| 40056 | 9857 builtin and then its argument prototype would still apply. */ |
| 9858 char $ac_func (); | |
| 9859 char (*f) (); | |
| 9860 | |
| 9861 int | |
| 9862 main () | |
| 9863 { | |
| 29036 | 9864 /* The GNU C library defines this for functions which it implements |
| 9865 to always fail with ENOSYS. Some functions are actually named | |
| 9866 something starting with __ and the normal name is an alias. */ | |
| 9867 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
| 9868 choke me | |
| 9869 #else | |
| 40056 | 9870 f = $ac_func; |
| 9871 #endif | |
| 9872 | |
| 9873 ; | |
| 9874 return 0; | |
| 9875 } | |
| 9876 _ACEOF | |
| 9877 rm -f conftest.$ac_objext conftest$ac_exeext | |
| 40426 | 9878 if { (eval echo "$as_me:9878: \"$ac_link\"") >&5 |
| 9879 (eval $ac_link) 2>&5 | |
| 9880 ac_status=$? | |
| 9881 echo "$as_me:9881: \$? = $ac_status" >&5 | |
| 40056 | 9882 (exit $ac_status); } && |
| 9883 { ac_try='test -s conftest$ac_exeext' | |
| 40426 | 9884 { (eval echo "$as_me:9884: \"$ac_try\"") >&5 |
| 9885 (eval $ac_try) 2>&5 | |
| 9886 ac_status=$? | |
| 9887 echo "$as_me:9887: \$? = $ac_status" >&5 | |
| 40056 | 9888 (exit $ac_status); }; }; then |
| 9889 eval "$as_ac_var=yes" | |
| 9890 else | |
| 9891 echo "$as_me: failed program was:" >&5 | |
| 9892 cat conftest.$ac_ext >&5 | |
| 9893 eval "$as_ac_var=no" | |
| 9894 fi | |
| 9895 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
| 9896 fi | |
| 40426 | 9897 echo "$as_me:9897: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 40056 | 9898 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 9899 if test `eval echo '${'$as_ac_var'}'` = yes; then | |
| 9900 cat >>confdefs.h <<EOF | |
| 9901 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
| 9902 EOF | |
| 9903 | |
| 29036 | 9904 fi |
| 9905 done | |
| 9906 | |
| 25897 | 9907 # Check this now, so that we will NOT find the above functions in ncurses. |
| 9908 # That is because we have not set up to link ncurses in lib-src. | |
| 9909 # It's better to believe a function is not available | |
| 9910 # than to expect to find it in ncurses. | |
| 40056 | 9911 |
| 40426 | 9912 echo "$as_me:9912: checking for tparm in -lncurses" >&5 |
| 40056 | 9913 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6 |
| 9914 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then | |
| 9915 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
| 9916 else | |
| 9917 ac_check_lib_save_LIBS=$LIBS | |
| 25897 | 9918 LIBS="-lncurses $LIBS" |
| 40056 | 9919 cat >conftest.$ac_ext <<_ACEOF |
| 40426 | 9920 #line 9920 "configure" |
| 40056 | 9921 #include "confdefs.h" |
| 9922 | |
| 25897 | 9923 /* Override any gcc2 internal prototype to avoid an error. */ |
| 40056 | 9924 #ifdef __cplusplus |
| 9925 extern "C" | |
| 9926 #endif | |
| 25897 | 9927 /* We use char because int might match the return type of a gcc2 |
| 40056 | 9928 builtin and then its argument prototype would still apply. */ |
| 9929 char tparm (); | |
| 9930 int | |
| 9931 main () | |
| 9932 { | |
| 9933 tparm (); | |
| 9934 ; | |
| 9935 return 0; | |
| 9936 } | |
| 9937 _ACEOF | |
| 9938 rm -f conftest.$ac_objext conftest$ac_exeext | |
| 40426 | 9939 if { (eval echo "$as_me:9939: \"$ac_link\"") >&5 |
| 9940 (eval $ac_link) 2>&5 | |
| 9941 ac_status=$? | |
| 9942 echo "$as_me:9942: \$? = $ac_status" >&5 | |
| 40056 | 9943 (exit $ac_status); } && |
| 9944 { ac_try='test -s conftest$ac_exeext' | |
| 40426 | 9945 { (eval echo "$as_me:9945: \"$ac_try\"") >&5 |
| 9946 (eval $ac_try) 2>&5 | |
| 9947 ac_status=$? | |
| 9948 echo "$as_me:9948: \$? = $ac_status" >&5 | |
| 40056 | 9949 (exit $ac_status); }; }; then |
| 9950 ac_cv_lib_ncurses_tparm=yes | |
| 9951 else | |
| 9952 echo "$as_me: failed program was:" >&5 | |
| 9953 cat conftest.$ac_ext >&5 | |
| 9954 ac_cv_lib_ncurses_tparm=no | |
| 9955 fi | |
| 9956 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
| 9957 LIBS=$ac_check_lib_save_LIBS | |
| 9958 fi | |
| 40426 | 9959 echo "$as_me:9959: result: $ac_cv_lib_ncurses_tparm" >&5 |
| 40056 | 9960 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6 |
| 9961 if test $ac_cv_lib_ncurses_tparm = yes; then | |
| 9962 cat >>confdefs.h <<EOF | |
| 9963 #define HAVE_LIBNCURSES 1 | |
| 25897 | 9964 EOF |
| 9965 | |
| 9966 LIBS="-lncurses $LIBS" | |
| 9967 | |
| 40056 | 9968 fi |
| 25897 | 9969 |
|
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
9970 # Do we need the Hesiod library to provide the support routines? |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
9971 if test "$with_hesiod" = yes ; then |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
9972 # Don't set $LIBS here -- see comments above. |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
9973 resolv=no |
| 40426 | 9974 echo "$as_me:9974: checking for res_send" >&5 |
|
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
9975 echo $ECHO_N "checking for res_send... $ECHO_C" >&6 |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
9976 if test "${ac_cv_func_res_send+set}" = set; then |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
9977 echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
9978 else |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
9979 cat >conftest.$ac_ext <<_ACEOF |
| 40426 | 9980 #line 9980 "configure" |
|
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
9981 #include "confdefs.h" |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
9982 /* System header to define __stub macros and hopefully few prototypes, |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
9983 which can conflict with char res_send (); below. */ |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
9984 #include <assert.h> |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
9985 /* Override any gcc2 internal prototype to avoid an error. */ |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
9986 #ifdef __cplusplus |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
9987 extern "C" |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
9988 #endif |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
9989 /* We use char because int might match the return type of a gcc2 |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
9990 builtin and then its argument prototype would still apply. */ |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
9991 char res_send (); |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
9992 char (*f) (); |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
9993 |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
9994 int |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
9995 main () |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
9996 { |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
9997 /* The GNU C library defines this for functions which it implements |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
9998 to always fail with ENOSYS. Some functions are actually named |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
9999 something starting with __ and the normal name is an alias. */ |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10000 #if defined (__stub_res_send) || defined (__stub___res_send) |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10001 choke me |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10002 #else |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10003 f = res_send; |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10004 #endif |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10005 |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10006 ; |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10007 return 0; |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10008 } |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10009 _ACEOF |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10010 rm -f conftest.$ac_objext conftest$ac_exeext |
| 40426 | 10011 if { (eval echo "$as_me:10011: \"$ac_link\"") >&5 |
| 10012 (eval $ac_link) 2>&5 | |
| 10013 ac_status=$? | |
| 10014 echo "$as_me:10014: \$? = $ac_status" >&5 | |
|
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10015 (exit $ac_status); } && |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10016 { ac_try='test -s conftest$ac_exeext' |
| 40426 | 10017 { (eval echo "$as_me:10017: \"$ac_try\"") >&5 |
| 10018 (eval $ac_try) 2>&5 | |
| 10019 ac_status=$? | |
| 10020 echo "$as_me:10020: \$? = $ac_status" >&5 | |
|
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10021 (exit $ac_status); }; }; then |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10022 ac_cv_func_res_send=yes |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10023 else |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10024 echo "$as_me: failed program was:" >&5 |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10025 cat conftest.$ac_ext >&5 |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10026 ac_cv_func_res_send=no |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10027 fi |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10028 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10029 fi |
| 40426 | 10030 echo "$as_me:10030: result: $ac_cv_func_res_send" >&5 |
|
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10031 echo "${ECHO_T}$ac_cv_func_res_send" >&6 |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10032 if test $ac_cv_func_res_send = yes; then |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10033 : |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10034 else |
| 40426 | 10035 echo "$as_me:10035: checking for __res_send" >&5 |
|
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10036 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6 |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10037 if test "${ac_cv_func___res_send+set}" = set; then |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10038 echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10039 else |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10040 cat >conftest.$ac_ext <<_ACEOF |
| 40426 | 10041 #line 10041 "configure" |
|
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10042 #include "confdefs.h" |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10043 /* System header to define __stub macros and hopefully few prototypes, |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10044 which can conflict with char __res_send (); below. */ |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10045 #include <assert.h> |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10046 /* Override any gcc2 internal prototype to avoid an error. */ |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10047 #ifdef __cplusplus |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10048 extern "C" |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10049 #endif |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10050 /* We use char because int might match the return type of a gcc2 |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10051 builtin and then its argument prototype would still apply. */ |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10052 char __res_send (); |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10053 char (*f) (); |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10054 |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10055 int |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10056 main () |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10057 { |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10058 /* The GNU C library defines this for functions which it implements |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10059 to always fail with ENOSYS. Some functions are actually named |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10060 something starting with __ and the normal name is an alias. */ |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10061 #if defined (__stub___res_send) || defined (__stub_____res_send) |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10062 choke me |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10063 #else |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10064 f = __res_send; |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10065 #endif |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10066 |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10067 ; |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10068 return 0; |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10069 } |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10070 _ACEOF |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10071 rm -f conftest.$ac_objext conftest$ac_exeext |
| 40426 | 10072 if { (eval echo "$as_me:10072: \"$ac_link\"") >&5 |
| 10073 (eval $ac_link) 2>&5 | |
| 10074 ac_status=$? | |
| 10075 echo "$as_me:10075: \$? = $ac_status" >&5 | |
|
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10076 (exit $ac_status); } && |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10077 { ac_try='test -s conftest$ac_exeext' |
| 40426 | 10078 { (eval echo "$as_me:10078: \"$ac_try\"") >&5 |
| 10079 (eval $ac_try) 2>&5 | |
| 10080 ac_status=$? | |
| 10081 echo "$as_me:10081: \$? = $ac_status" >&5 | |
|
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10082 (exit $ac_status); }; }; then |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10083 ac_cv_func___res_send=yes |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10084 else |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10085 echo "$as_me: failed program was:" >&5 |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10086 cat conftest.$ac_ext >&5 |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10087 ac_cv_func___res_send=no |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10088 fi |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10089 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10090 fi |
| 40426 | 10091 echo "$as_me:10091: result: $ac_cv_func___res_send" >&5 |
|
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10092 echo "${ECHO_T}$ac_cv_func___res_send" >&6 |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10093 if test $ac_cv_func___res_send = yes; then |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10094 : |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10095 else |
| 40426 | 10096 echo "$as_me:10096: checking for res_send in -lresolv" >&5 |
|
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10097 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6 |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10098 if test "${ac_cv_lib_resolv_res_send+set}" = set; then |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10099 echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10100 else |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10101 ac_check_lib_save_LIBS=$LIBS |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10102 LIBS="-lresolv $LIBS" |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10103 cat >conftest.$ac_ext <<_ACEOF |
| 40426 | 10104 #line 10104 "configure" |
|
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10105 #include "confdefs.h" |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10106 |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10107 /* Override any gcc2 internal prototype to avoid an error. */ |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10108 #ifdef __cplusplus |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10109 extern "C" |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10110 #endif |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10111 /* We use char because int might match the return type of a gcc2 |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10112 builtin and then its argument prototype would still apply. */ |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10113 char res_send (); |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10114 int |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10115 main () |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10116 { |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10117 res_send (); |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10118 ; |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10119 return 0; |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10120 } |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10121 _ACEOF |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10122 rm -f conftest.$ac_objext conftest$ac_exeext |
| 40426 | 10123 if { (eval echo "$as_me:10123: \"$ac_link\"") >&5 |
| 10124 (eval $ac_link) 2>&5 | |
| 10125 ac_status=$? | |
| 10126 echo "$as_me:10126: \$? = $ac_status" >&5 | |
|
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10127 (exit $ac_status); } && |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10128 { ac_try='test -s conftest$ac_exeext' |
| 40426 | 10129 { (eval echo "$as_me:10129: \"$ac_try\"") >&5 |
| 10130 (eval $ac_try) 2>&5 | |
| 10131 ac_status=$? | |
| 10132 echo "$as_me:10132: \$? = $ac_status" >&5 | |
|
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10133 (exit $ac_status); }; }; then |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10134 ac_cv_lib_resolv_res_send=yes |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10135 else |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10136 echo "$as_me: failed program was:" >&5 |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10137 cat conftest.$ac_ext >&5 |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10138 ac_cv_lib_resolv_res_send=no |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10139 fi |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10140 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10141 LIBS=$ac_check_lib_save_LIBS |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10142 fi |
| 40426 | 10143 echo "$as_me:10143: result: $ac_cv_lib_resolv_res_send" >&5 |
|
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10144 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6 |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10145 if test $ac_cv_lib_resolv_res_send = yes; then |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10146 resolv=yes |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10147 else |
| 40426 | 10148 echo "$as_me:10148: checking for __res_send in -lresolv" >&5 |
|
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10149 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6 |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10150 if test "${ac_cv_lib_resolv___res_send+set}" = set; then |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10151 echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10152 else |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10153 ac_check_lib_save_LIBS=$LIBS |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10154 LIBS="-lresolv $LIBS" |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10155 cat >conftest.$ac_ext <<_ACEOF |
| 40426 | 10156 #line 10156 "configure" |
|
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10157 #include "confdefs.h" |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10158 |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10159 /* Override any gcc2 internal prototype to avoid an error. */ |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10160 #ifdef __cplusplus |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10161 extern "C" |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10162 #endif |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10163 /* We use char because int might match the return type of a gcc2 |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10164 builtin and then its argument prototype would still apply. */ |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10165 char __res_send (); |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10166 int |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10167 main () |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10168 { |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10169 __res_send (); |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10170 ; |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10171 return 0; |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10172 } |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10173 _ACEOF |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10174 rm -f conftest.$ac_objext conftest$ac_exeext |
| 40426 | 10175 if { (eval echo "$as_me:10175: \"$ac_link\"") >&5 |
| 10176 (eval $ac_link) 2>&5 | |
| 10177 ac_status=$? | |
| 10178 echo "$as_me:10178: \$? = $ac_status" >&5 | |
|
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10179 (exit $ac_status); } && |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10180 { ac_try='test -s conftest$ac_exeext' |
| 40426 | 10181 { (eval echo "$as_me:10181: \"$ac_try\"") >&5 |
| 10182 (eval $ac_try) 2>&5 | |
| 10183 ac_status=$? | |
| 10184 echo "$as_me:10184: \$? = $ac_status" >&5 | |
|
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10185 (exit $ac_status); }; }; then |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10186 ac_cv_lib_resolv___res_send=yes |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10187 else |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10188 echo "$as_me: failed program was:" >&5 |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10189 cat conftest.$ac_ext >&5 |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10190 ac_cv_lib_resolv___res_send=no |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10191 fi |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10192 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10193 LIBS=$ac_check_lib_save_LIBS |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10194 fi |
| 40426 | 10195 echo "$as_me:10195: result: $ac_cv_lib_resolv___res_send" >&5 |
|
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10196 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6 |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10197 if test $ac_cv_lib_resolv___res_send = yes; then |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10198 resolv=yes |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10199 fi |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10200 |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10201 fi |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10202 |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10203 fi |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10204 |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10205 fi |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10206 |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10207 if test "$resolv" = yes ; then |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10208 RESOLVLIB=-lresolv |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10209 cat >>confdefs.h <<\EOF |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10210 #define HAVE_LIBRESOLV 1 |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10211 EOF |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10212 |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10213 else |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10214 RESOLVLIB= |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10215 fi |
| 40426 | 10216 echo "$as_me:10216: checking for hes_getmailhost" >&5 |
|
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10217 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6 |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10218 if test "${ac_cv_func_hes_getmailhost+set}" = set; then |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10219 echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10220 else |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10221 cat >conftest.$ac_ext <<_ACEOF |
| 40426 | 10222 #line 10222 "configure" |
|
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10223 #include "confdefs.h" |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10224 /* System header to define __stub macros and hopefully few prototypes, |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10225 which can conflict with char hes_getmailhost (); below. */ |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10226 #include <assert.h> |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10227 /* Override any gcc2 internal prototype to avoid an error. */ |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10228 #ifdef __cplusplus |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10229 extern "C" |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10230 #endif |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10231 /* We use char because int might match the return type of a gcc2 |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10232 builtin and then its argument prototype would still apply. */ |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10233 char hes_getmailhost (); |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10234 char (*f) (); |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10235 |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10236 int |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10237 main () |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10238 { |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10239 /* The GNU C library defines this for functions which it implements |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10240 to always fail with ENOSYS. Some functions are actually named |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10241 something starting with __ and the normal name is an alias. */ |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10242 #if defined (__stub_hes_getmailhost) || defined (__stub___hes_getmailhost) |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10243 choke me |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10244 #else |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10245 f = hes_getmailhost; |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10246 #endif |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10247 |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10248 ; |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10249 return 0; |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10250 } |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10251 _ACEOF |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10252 rm -f conftest.$ac_objext conftest$ac_exeext |
| 40426 | 10253 if { (eval echo "$as_me:10253: \"$ac_link\"") >&5 |
| 10254 (eval $ac_link) 2>&5 | |
| 10255 ac_status=$? | |
| 10256 echo "$as_me:10256: \$? = $ac_status" >&5 | |
|
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10257 (exit $ac_status); } && |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10258 { ac_try='test -s conftest$ac_exeext' |
| 40426 | 10259 { (eval echo "$as_me:10259: \"$ac_try\"") >&5 |
| 10260 (eval $ac_try) 2>&5 | |
| 10261 ac_status=$? | |
| 10262 echo "$as_me:10262: \$? = $ac_status" >&5 | |
|
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10263 (exit $ac_status); }; }; then |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10264 ac_cv_func_hes_getmailhost=yes |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10265 else |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10266 echo "$as_me: failed program was:" >&5 |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10267 cat conftest.$ac_ext >&5 |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10268 ac_cv_func_hes_getmailhost=no |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10269 fi |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10270 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10271 fi |
| 40426 | 10272 echo "$as_me:10272: result: $ac_cv_func_hes_getmailhost" >&5 |
|
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10273 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6 |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10274 if test $ac_cv_func_hes_getmailhost = yes; then |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10275 : |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10276 else |
| 40426 | 10277 echo "$as_me:10277: checking for hes_getmailhost in -lhesiod" >&5 |
|
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10278 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6 |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10279 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10280 echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10281 else |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10282 ac_check_lib_save_LIBS=$LIBS |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10283 LIBS="-lhesiod $RESOLVLIB $LIBS" |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10284 cat >conftest.$ac_ext <<_ACEOF |
| 40426 | 10285 #line 10285 "configure" |
|
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10286 #include "confdefs.h" |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10287 |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10288 /* Override any gcc2 internal prototype to avoid an error. */ |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10289 #ifdef __cplusplus |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10290 extern "C" |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10291 #endif |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10292 /* We use char because int might match the return type of a gcc2 |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10293 builtin and then its argument prototype would still apply. */ |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10294 char hes_getmailhost (); |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10295 int |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10296 main () |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10297 { |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10298 hes_getmailhost (); |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10299 ; |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10300 return 0; |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10301 } |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10302 _ACEOF |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10303 rm -f conftest.$ac_objext conftest$ac_exeext |
| 40426 | 10304 if { (eval echo "$as_me:10304: \"$ac_link\"") >&5 |
| 10305 (eval $ac_link) 2>&5 | |
| 10306 ac_status=$? | |
| 10307 echo "$as_me:10307: \$? = $ac_status" >&5 | |
|
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10308 (exit $ac_status); } && |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10309 { ac_try='test -s conftest$ac_exeext' |
| 40426 | 10310 { (eval echo "$as_me:10310: \"$ac_try\"") >&5 |
| 10311 (eval $ac_try) 2>&5 | |
| 10312 ac_status=$? | |
| 10313 echo "$as_me:10313: \$? = $ac_status" >&5 | |
|
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10314 (exit $ac_status); }; }; then |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10315 ac_cv_lib_hesiod_hes_getmailhost=yes |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10316 else |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10317 echo "$as_me: failed program was:" >&5 |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10318 cat conftest.$ac_ext >&5 |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10319 ac_cv_lib_hesiod_hes_getmailhost=no |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10320 fi |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10321 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10322 LIBS=$ac_check_lib_save_LIBS |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10323 fi |
| 40426 | 10324 echo "$as_me:10324: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5 |
|
40276
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10325 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6 |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10326 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10327 cat >>confdefs.h <<\EOF |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10328 #define HAVE_LIBHESIOD 1 |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10329 EOF |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10330 |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10331 else |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10332 : |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10333 fi |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10334 |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10335 fi |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10336 |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10337 fi |
|
f53d3da02996
fix build problems with krb5 and hesiod support
Ken Raeburn <raeburn@raeburn.org>
parents:
40256
diff
changeset
|
10338 |
|
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
10339 # These tell us which Kerberos-related libraries to use. |
|
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
10340 if test "${with_kerberos+set}" = set; then |
| 40056 | 10341 |
| 40426 | 10342 echo "$as_me:10342: checking for com_err in -lcom_err" >&5 |
| 40056 | 10343 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6 |
| 10344 if test "${ac_cv_lib_com_err_com_err+set}" = set; then | |
| 10345 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
| 10346 else | |
| 10347 ac_check_lib_save_LIBS=$LIBS | |
|
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
10348 LIBS="-lcom_err $LIBS" |
| 40056 | 10349 cat >conftest.$ac_ext <<_ACEOF |
| 40426 | 10350 #line 10350 "configure" |
| 40056 | 10351 #include "confdefs.h" |
| 10352 | |
|
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
10353 /* Override any gcc2 internal prototype to avoid an error. */ |
| 40056 | 10354 #ifdef __cplusplus |
| 10355 extern "C" | |
| 10356 #endif | |
|
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
10357 /* We use char because int might match the return type of a gcc2 |
| 40056 | 10358 builtin and then its argument prototype would still apply. */ |
| 10359 char com_err (); | |
| 10360 int | |
| 10361 main () | |
| 10362 { | |
| 10363 com_err (); | |
| 10364 ; | |
| 10365 return 0; | |
| 10366 } | |
| 10367 _ACEOF | |
| 10368 rm -f conftest.$ac_objext conftest$ac_exeext | |
| 40426 | 10369 if { (eval echo "$as_me:10369: \"$ac_link\"") >&5 |
| 10370 (eval $ac_link) 2>&5 | |
| 10371 ac_status=$? | |
| 10372 echo "$as_me:10372: \$? = $ac_status" >&5 | |
| 40056 | 10373 (exit $ac_status); } && |
| 10374 { ac_try='test -s conftest$ac_exeext' | |
| 40426 | 10375 { (eval echo "$as_me:10375: \"$ac_try\"") >&5 |
| 10376 (eval $ac_try) 2>&5 | |
| 10377 ac_status=$? | |
| 10378 echo "$as_me:10378: \$? = $ac_status" >&5 | |
| 40056 | 10379 (exit $ac_status); }; }; then |
| 10380 ac_cv_lib_com_err_com_err=yes | |
| 10381 else | |
| 10382 echo "$as_me: failed program was:" >&5 | |
| 10383 cat conftest.$ac_ext >&5 | |
| 10384 ac_cv_lib_com_err_com_err=no | |
| 10385 fi | |
| 10386 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
| 10387 LIBS=$ac_check_lib_save_LIBS | |
| 10388 fi | |
| 40426 | 10389 echo "$as_me:10389: result: $ac_cv_lib_com_err_com_err" >&5 |
| 40056 | 10390 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6 |
| 10391 if test $ac_cv_lib_com_err_com_err = yes; then | |
| 10392 cat >>confdefs.h <<EOF | |
| 10393 #define HAVE_LIBCOM_ERR 1 | |
|
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
10394 EOF |
|
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
10395 |
|
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
10396 LIBS="-lcom_err $LIBS" |
|
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
10397 |
| 40056 | 10398 fi |
| 10399 | |
| 40426 | 10400 echo "$as_me:10400: checking for mit_des_cbc_encrypt in -lk5crypto" >&5 |
| 40056 | 10401 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6 |
| 10402 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then | |
| 10403 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
| 10404 else | |
| 10405 ac_check_lib_save_LIBS=$LIBS | |
|
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
10406 LIBS="-lk5crypto $LIBS" |
| 40056 | 10407 cat >conftest.$ac_ext <<_ACEOF |
| 40426 | 10408 #line 10408 "configure" |
| 40056 | 10409 #include "confdefs.h" |
| 10410 | |
|
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
10411 /* Override any gcc2 internal prototype to avoid an error. */ |
| 40056 | 10412 #ifdef __cplusplus |
| 10413 extern "C" | |
| 10414 #endif | |
|
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
10415 /* We use char because int might match the return type of a gcc2 |
| 40056 | 10416 builtin and then its argument prototype would still apply. */ |
| 10417 char mit_des_cbc_encrypt (); | |
| 10418 int | |
| 10419 main () | |
| 10420 { | |
| 10421 mit_des_cbc_encrypt (); | |
| 10422 ; | |
| 10423 return 0; | |
| 10424 } | |
| 10425 _ACEOF | |
| 10426 rm -f conftest.$ac_objext conftest$ac_exeext | |
| 40426 | 10427 if { (eval echo "$as_me:10427: \"$ac_link\"") >&5 |
| 10428 (eval $ac_link) 2>&5 | |
| 10429 ac_status=$? | |
| 10430 echo "$as_me:10430: \$? = $ac_status" >&5 | |
| 40056 | 10431 (exit $ac_status); } && |
| 10432 { ac_try='test -s conftest$ac_exeext' | |
| 40426 | 10433 { (eval echo "$as_me:10433: \"$ac_try\"") >&5 |
| 10434 (eval $ac_try) 2>&5 | |
| 10435 ac_status=$? | |
| 10436 echo "$as_me:10436: \$? = $ac_status" >&5 | |
| 40056 | 10437 (exit $ac_status); }; }; then |
| 10438 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes | |
| 10439 else | |
| 10440 echo "$as_me: failed program was:" >&5 | |
| 10441 cat conftest.$ac_ext >&5 | |
| 10442 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no | |
| 10443 fi | |
| 10444 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
| 10445 LIBS=$ac_check_lib_save_LIBS | |
| 10446 fi | |
| 40426 | 10447 echo "$as_me:10447: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5 |
| 40056 | 10448 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6 |
| 10449 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then | |
| 10450 cat >>confdefs.h <<EOF | |
| 10451 #define HAVE_LIBK5CRYPTO 1 | |
|
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
10452 EOF |
|
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
10453 |
|
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
10454 LIBS="-lk5crypto $LIBS" |
|
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
10455 |
| 40056 | 10456 fi |
| 10457 | |
| 40426 | 10458 echo "$as_me:10458: checking for mit_des_cbc_encrypt in -lcrypto" >&5 |
| 40056 | 10459 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6 |
| 10460 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then | |
| 10461 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
| 10462 else | |
| 10463 ac_check_lib_save_LIBS=$LIBS | |
|
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
10464 LIBS="-lcrypto $LIBS" |
| 40056 | 10465 cat >conftest.$ac_ext <<_ACEOF |
| 40426 | 10466 #line 10466 "configure" |
| 40056 | 10467 #include "confdefs.h" |
| 10468 | |
|
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
10469 /* Override any gcc2 internal prototype to avoid an error. */ |
| 40056 | 10470 #ifdef __cplusplus |
| 10471 extern "C" | |
| 10472 #endif | |
|
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
10473 /* We use char because int might match the return type of a gcc2 |
| 40056 | 10474 builtin and then its argument prototype would still apply. */ |
| 10475 char mit_des_cbc_encrypt (); | |
| 10476 int | |
| 10477 main () | |
| 10478 { | |
| 10479 mit_des_cbc_encrypt (); | |
| 10480 ; | |
| 10481 return 0; | |
| 10482 } | |
| 10483 _ACEOF | |
| 10484 rm -f conftest.$ac_objext conftest$ac_exeext | |
| 40426 | 10485 if { (eval echo "$as_me:10485: \"$ac_link\"") >&5 |
| 10486 (eval $ac_link) 2>&5 | |
| 10487 ac_status=$? | |
| 10488 echo "$as_me:10488: \$? = $ac_status" >&5 | |
| 40056 | 10489 (exit $ac_status); } && |
| 10490 { ac_try='test -s conftest$ac_exeext' | |
| 40426 | 10491 { (eval echo "$as_me:10491: \"$ac_try\"") >&5 |
| 10492 (eval $ac_try) 2>&5 | |
| 10493 ac_status=$? | |
| 10494 echo "$as_me:10494: \$? = $ac_status" >&5 | |
| 40056 | 10495 (exit $ac_status); }; }; then |
| 10496 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes | |
| 10497 else | |
| 10498 echo "$as_me: failed program was:" >&5 | |
| 10499 cat conftest.$ac_ext >&5 | |
| 10500 ac_cv_lib_crypto_mit_des_cbc_encrypt=no | |
| 10501 fi | |
| 10502 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
| 10503 LIBS=$ac_check_lib_save_LIBS | |
| 10504 fi | |
| 40426 | 10505 echo "$as_me:10505: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5 |
| 40056 | 10506 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6 |
| 10507 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then | |
| 10508 cat >>confdefs.h <<EOF | |
| 10509 #define HAVE_LIBCRYPTO 1 | |
|
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
10510 EOF |
|
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
10511 |
|
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
10512 LIBS="-lcrypto $LIBS" |
|
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
10513 |
| 40056 | 10514 fi |
| 10515 | |
| 40426 | 10516 echo "$as_me:10516: checking for krb5_init_context in -lkrb5" >&5 |
| 40056 | 10517 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6 |
| 10518 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then | |
| 10519 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
| 10520 else | |
| 10521 ac_check_lib_save_LIBS=$LIBS | |
|
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
10522 LIBS="-lkrb5 $LIBS" |
| 40056 | 10523 cat >conftest.$ac_ext <<_ACEOF |
| 40426 | 10524 #line 10524 "configure" |
| 40056 | 10525 #include "confdefs.h" |
| 10526 | |
|
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
10527 /* Override any gcc2 internal prototype to avoid an error. */ |
| 40056 | 10528 #ifdef __cplusplus |
| 10529 extern "C" | |
| 10530 #endif | |
|
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
10531 /* We use char because int might match the return type of a gcc2 |
| 40056 | 10532 builtin and then its argument prototype would still apply. */ |
| 10533 char krb5_init_context (); | |
| 10534 int | |
| 10535 main () | |
| 10536 { | |
| 10537 krb5_init_context (); | |
| 10538 ; | |
| 10539 return 0; | |
| 10540 } | |
| 10541 _ACEOF | |
| 10542 rm -f conftest.$ac_objext conftest$ac_exeext | |
| 40426 | 10543 if { (eval echo "$as_me:10543: \"$ac_link\"") >&5 |
| 10544 (eval $ac_link) 2>&5 | |
| 10545 ac_status=$? | |
| 10546 echo "$as_me:10546: \$? = $ac_status" >&5 | |
| 40056 | 10547 (exit $ac_status); } && |
| 10548 { ac_try='test -s conftest$ac_exeext' | |
| 40426 | 10549 { (eval echo "$as_me:10549: \"$ac_try\"") >&5 |
| 10550 (eval $ac_try) 2>&5 | |
| 10551 ac_status=$? | |
| 10552 echo "$as_me:10552: \$? = $ac_status" >&5 | |
| 40056 | 10553 (exit $ac_status); }; }; then |
| 10554 ac_cv_lib_krb5_krb5_init_context=yes | |
| 10555 else | |
| 10556 echo "$as_me: failed program was:" >&5 | |
| 10557 cat conftest.$ac_ext >&5 | |
| 10558 ac_cv_lib_krb5_krb5_init_context=no | |
| 10559 fi | |
| 10560 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
| 10561 LIBS=$ac_check_lib_save_LIBS | |
| 10562 fi | |
| 40426 | 10563 echo "$as_me:10563: result: $ac_cv_lib_krb5_krb5_init_context" >&5 |
| 40056 | 10564 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6 |
| 10565 if test $ac_cv_lib_krb5_krb5_init_context = yes; then | |
| 10566 cat >>confdefs.h <<EOF | |
| 10567 #define HAVE_LIBKRB5 1 | |
|
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
10568 EOF |
|
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
10569 |
|
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
10570 LIBS="-lkrb5 $LIBS" |
|
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
10571 |
|
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
10572 fi |
|
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
10573 |
|
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
10574 if test "${with_kerberos5+set}" != set; then |
| 40056 | 10575 |
| 40426 | 10576 echo "$as_me:10576: checking for des_cbc_encrypt in -ldes425" >&5 |
| 40056 | 10577 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6 |
| 10578 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then | |
| 10579 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
| 10580 else | |
| 10581 ac_check_lib_save_LIBS=$LIBS | |
|
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
10582 LIBS="-ldes425 $LIBS" |
| 40056 | 10583 cat >conftest.$ac_ext <<_ACEOF |
| 40426 | 10584 #line 10584 "configure" |
| 40056 | 10585 #include "confdefs.h" |
| 10586 | |
|
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
10587 /* Override any gcc2 internal prototype to avoid an error. */ |
| 40056 | 10588 #ifdef __cplusplus |
| 10589 extern "C" | |
| 10590 #endif | |
|
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
10591 /* We use char because int might match the return type of a gcc2 |
| 40056 | 10592 builtin and then its argument prototype would still apply. */ |
| 10593 char des_cbc_encrypt (); | |
| 10594 int | |
| 10595 main () | |
| 10596 { | |
| 10597 des_cbc_encrypt (); | |
| 10598 ; | |
| 10599 return 0; | |
| 10600 } | |
| 10601 _ACEOF | |
| 10602 rm -f conftest.$ac_objext conftest$ac_exeext | |
| 40426 | 10603 if { (eval echo "$as_me:10603: \"$ac_link\"") >&5 |
| 10604 (eval $ac_link) 2>&5 | |
| 10605 ac_status=$? | |
| 10606 echo "$as_me:10606: \$? = $ac_status" >&5 | |
| 40056 | 10607 (exit $ac_status); } && |
| 10608 { ac_try='test -s conftest$ac_exeext' | |
| 40426 | 10609 { (eval echo "$as_me:10609: \"$ac_try\"") >&5 |
| 10610 (eval $ac_try) 2>&5 | |
| 10611 ac_status=$? | |
| 10612 echo "$as_me:10612: \$? = $ac_status" >&5 | |
| 40056 | 10613 (exit $ac_status); }; }; then |
| 10614 ac_cv_lib_des425_des_cbc_encrypt=yes | |
| 10615 else | |
| 10616 echo "$as_me: failed program was:" >&5 | |
| 10617 cat conftest.$ac_ext >&5 | |
| 10618 ac_cv_lib_des425_des_cbc_encrypt=no | |
| 10619 fi | |
| 10620 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
| 10621 LIBS=$ac_check_lib_save_LIBS | |
| 10622 fi | |
| 40426 | 10623 echo "$as_me:10623: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5 |
| 40056 | 10624 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6 |
| 10625 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then | |
| 10626 cat >>confdefs.h <<EOF | |
| 10627 #define HAVE_LIBDES425 1 | |
|
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
10628 EOF |
|
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
10629 |
|
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
10630 LIBS="-ldes425 $LIBS" |
|
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
10631 |
|
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
10632 else |
| 40056 | 10633 |
| 40426 | 10634 echo "$as_me:10634: checking for des_cbc_encrypt in -ldes" >&5 |
| 40056 | 10635 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6 |
| 10636 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then | |
| 10637 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
| 10638 else | |
| 10639 ac_check_lib_save_LIBS=$LIBS | |
|
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
10640 LIBS="-ldes $LIBS" |
| 40056 | 10641 cat >conftest.$ac_ext <<_ACEOF |
| 40426 | 10642 #line 10642 "configure" |
| 40056 | 10643 #include "confdefs.h" |
| 10644 | |
|
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
10645 /* Override any gcc2 internal prototype to avoid an error. */ |
| 40056 | 10646 #ifdef __cplusplus |
| 10647 extern "C" | |
| 10648 #endif | |
|
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
10649 /* We use char because int might match the return type of a gcc2 |
| 40056 | 10650 builtin and then its argument prototype would still apply. */ |
| 10651 char des_cbc_encrypt (); | |
| 10652 int | |
| 10653 main () | |
| 10654 { | |
| 10655 des_cbc_encrypt (); | |
| 10656 ; | |
| 10657 return 0; | |
| 10658 } | |
| 10659 _ACEOF | |
| 10660 rm -f conftest.$ac_objext conftest$ac_exeext | |
| 40426 | 10661 if { (eval echo "$as_me:10661: \"$ac_link\"") >&5 |
| 10662 (eval $ac_link) 2>&5 | |
| 10663 ac_status=$? | |
| 10664 echo "$as_me:10664: \$? = $ac_status" >&5 | |
| 40056 | 10665 (exit $ac_status); } && |
| 10666 { ac_try='test -s conftest$ac_exeext' | |
| 40426 | 10667 { (eval echo "$as_me:10667: \"$ac_try\"") >&5 |
| 10668 (eval $ac_try) 2>&5 | |
| 10669 ac_status=$? | |
| 10670 echo "$as_me:10670: \$? = $ac_status" >&5 | |
| 40056 | 10671 (exit $ac_status); }; }; then |
| 10672 ac_cv_lib_des_des_cbc_encrypt=yes | |
| 10673 else | |
| 10674 echo "$as_me: failed program was:" >&5 | |
| 10675 cat conftest.$ac_ext >&5 | |
| 10676 ac_cv_lib_des_des_cbc_encrypt=no | |
| 10677 fi | |
| 10678 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
| 10679 LIBS=$ac_check_lib_save_LIBS | |
| 10680 fi | |
| 40426 | 10681 echo "$as_me:10681: result: $ac_cv_lib_des_des_cbc_encrypt" >&5 |
| 40056 | 10682 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6 |
| 10683 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then | |
| 10684 cat >>confdefs.h <<EOF | |
| 10685 #define HAVE_LIBDES 1 | |
|
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
10686 EOF |
|
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
10687 |
|
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
10688 LIBS="-ldes $LIBS" |
|
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
10689 |
| 40056 | 10690 fi |
| 10691 | |
| 10692 fi | |
| 10693 | |
| 40426 | 10694 echo "$as_me:10694: checking for krb_get_cred in -lkrb4" >&5 |
| 40056 | 10695 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6 |
| 10696 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then | |
| 10697 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
| 10698 else | |
| 10699 ac_check_lib_save_LIBS=$LIBS | |
|
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
10700 LIBS="-lkrb4 $LIBS" |
| 40056 | 10701 cat >conftest.$ac_ext <<_ACEOF |
| 40426 | 10702 #line 10702 "configure" |
| 40056 | 10703 #include "confdefs.h" |
| 10704 | |
|
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
10705 /* Override any gcc2 internal prototype to avoid an error. */ |
| 40056 | 10706 #ifdef __cplusplus |
| 10707 extern "C" | |
| 10708 #endif | |
|
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
10709 /* We use char because int might match the return type of a gcc2 |
| 40056 | 10710 builtin and then its argument prototype would still apply. */ |
| 10711 char krb_get_cred (); | |
| 10712 int | |
| 10713 main () | |
| 10714 { | |
| 10715 krb_get_cred (); | |
| 10716 ; | |
| 10717 return 0; | |
| 10718 } | |
| 10719 _ACEOF | |
| 10720 rm -f conftest.$ac_objext conftest$ac_exeext | |
| 40426 | 10721 if { (eval echo "$as_me:10721: \"$ac_link\"") >&5 |
| 10722 (eval $ac_link) 2>&5 | |
| 10723 ac_status=$? | |
| 10724 echo "$as_me:10724: \$? = $ac_status" >&5 | |
| 40056 | 10725 (exit $ac_status); } && |
| 10726 { ac_try='test -s conftest$ac_exeext' | |
| 40426 | 10727 { (eval echo "$as_me:10727: \"$ac_try\"") >&5 |
| 10728 (eval $ac_try) 2>&5 | |
| 10729 ac_status=$? | |
| 10730 echo "$as_me:10730: \$? = $ac_status" >&5 | |
| 40056 | 10731 (exit $ac_status); }; }; then |
| 10732 ac_cv_lib_krb4_krb_get_cred=yes | |
| 10733 else | |
| 10734 echo "$as_me: failed program was:" >&5 | |
| 10735 cat conftest.$ac_ext >&5 | |
| 10736 ac_cv_lib_krb4_krb_get_cred=no | |
| 10737 fi | |
| 10738 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
| 10739 LIBS=$ac_check_lib_save_LIBS | |
| 10740 fi | |
| 40426 | 10741 echo "$as_me:10741: result: $ac_cv_lib_krb4_krb_get_cred" >&5 |
| 40056 | 10742 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6 |
| 10743 if test $ac_cv_lib_krb4_krb_get_cred = yes; then | |
| 10744 cat >>confdefs.h <<EOF | |
| 10745 #define HAVE_LIBKRB4 1 | |
|
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
10746 EOF |
|
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
10747 |
|
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
10748 LIBS="-lkrb4 $LIBS" |
|
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
10749 |
|
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
10750 else |
| 40056 | 10751 |
| 40426 | 10752 echo "$as_me:10752: checking for krb_get_cred in -lkrb" >&5 |
| 40056 | 10753 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6 |
| 10754 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then | |
| 10755 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
| 10756 else | |
| 10757 ac_check_lib_save_LIBS=$LIBS | |
|
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
10758 LIBS="-lkrb $LIBS" |
| 40056 | 10759 cat >conftest.$ac_ext <<_ACEOF |
| 40426 | 10760 #line 10760 "configure" |
| 40056 | 10761 #include "confdefs.h" |
| 10762 | |
|
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
10763 /* Override any gcc2 internal prototype to avoid an error. */ |
| 40056 | 10764 #ifdef __cplusplus |
| 10765 extern "C" | |
| 10766 #endif | |
|
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
10767 /* We use char because int might match the return type of a gcc2 |
| 40056 | 10768 builtin and then its argument prototype would still apply. */ |
| 10769 char krb_get_cred (); | |
| 10770 int | |
| 10771 main () | |
| 10772 { | |
| 10773 krb_get_cred (); | |
| 10774 ; | |
| 10775 return 0; | |
| 10776 } | |
| 10777 _ACEOF | |
| 10778 rm -f conftest.$ac_objext conftest$ac_exeext | |
| 40426 | 10779 if { (eval echo "$as_me:10779: \"$ac_link\"") >&5 |
| 10780 (eval $ac_link) 2>&5 | |
| 10781 ac_status=$? | |
| 10782 echo "$as_me:10782: \$? = $ac_status" >&5 | |
| 40056 | 10783 (exit $ac_status); } && |
| 10784 { ac_try='test -s conftest$ac_exeext' | |
| 40426 | 10785 { (eval echo "$as_me:10785: \"$ac_try\"") >&5 |
| 10786 (eval $ac_try) 2>&5 | |
| 10787 ac_status=$? | |
| 10788 echo "$as_me:10788: \$? = $ac_status" >&5 | |
| 40056 | 10789 (exit $ac_status); }; }; then |
| 10790 ac_cv_lib_krb_krb_get_cred=yes | |
| 10791 else | |
| 10792 echo "$as_me: failed program was:" >&5 | |
| 10793 cat conftest.$ac_ext >&5 | |
| 10794 ac_cv_lib_krb_krb_get_cred=no | |
| 10795 fi | |
| 10796 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
| 10797 LIBS=$ac_check_lib_save_LIBS | |
| 10798 fi | |
| 40426 | 10799 echo "$as_me:10799: result: $ac_cv_lib_krb_krb_get_cred" >&5 |
| 40056 | 10800 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6 |
| 10801 if test $ac_cv_lib_krb_krb_get_cred = yes; then | |
| 10802 cat >>confdefs.h <<EOF | |
| 10803 #define HAVE_LIBKRB 1 | |
|
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
10804 EOF |
|
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
10805 |
|
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
10806 LIBS="-lkrb $LIBS" |
|
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
10807 |
|
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
10808 fi |
|
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
10809 |
|
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
10810 fi |
|
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
10811 |
|
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
10812 fi |
|
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
10813 |
|
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
10814 if test "${with_kerberos5+set}" = set; then |
| 40056 | 10815 |
| 10816 for ac_header in krb5.h | |
|
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
10817 do |
| 40056 | 10818 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 40426 | 10819 echo "$as_me:10819: checking for $ac_header" >&5 |
| 40056 | 10820 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 10821 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
| 10822 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
| 10823 else | |
| 10824 cat >conftest.$ac_ext <<_ACEOF | |
| 40426 | 10825 #line 10825 "configure" |
| 40056 | 10826 #include "confdefs.h" |
| 10827 #include <$ac_header> | |
| 10828 _ACEOF | |
| 40426 | 10829 if { (eval echo "$as_me:10829: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 40056 | 10830 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 10831 ac_status=$? | |
| 10832 egrep -v '^ *\+' conftest.er1 >conftest.err | |
| 10833 rm -f conftest.er1 | |
| 10834 cat conftest.err >&5 | |
| 40426 | 10835 echo "$as_me:10835: \$? = $ac_status" >&5 |
| 40056 | 10836 (exit $ac_status); } >/dev/null; then |
| 10837 if test -s conftest.err; then | |
| 10838 ac_cpp_err=$ac_c_preproc_warn_flag | |
| 10839 else | |
| 10840 ac_cpp_err= | |
| 10841 fi | |
| 10842 else | |
| 10843 ac_cpp_err=yes | |
| 10844 fi | |
| 10845 if test -z "$ac_cpp_err"; then | |
| 10846 eval "$as_ac_Header=yes" | |
| 10847 else | |
| 10848 echo "$as_me: failed program was:" >&5 | |
|
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
10849 cat conftest.$ac_ext >&5 |
| 40056 | 10850 eval "$as_ac_Header=no" |
| 10851 fi | |
| 10852 rm -f conftest.err conftest.$ac_ext | |
| 10853 fi | |
| 40426 | 10854 echo "$as_me:10854: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 40056 | 10855 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 10856 if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
| 10857 cat >>confdefs.h <<EOF | |
| 10858 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
| 10859 EOF | |
| 10860 | |
|
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
10861 fi |
|
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
10862 done |
|
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
10863 |
|
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
10864 else |
| 40056 | 10865 |
| 10866 for ac_header in des.h | |
|
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
10867 do |
| 40056 | 10868 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 40426 | 10869 echo "$as_me:10869: checking for $ac_header" >&5 |
| 40056 | 10870 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 10871 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
| 10872 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
| 10873 else | |
| 10874 cat >conftest.$ac_ext <<_ACEOF | |
| 40426 | 10875 #line 10875 "configure" |
| 40056 | 10876 #include "confdefs.h" |
| 10877 #include <$ac_header> | |
| 10878 _ACEOF | |
| 40426 | 10879 if { (eval echo "$as_me:10879: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 40056 | 10880 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 10881 ac_status=$? | |
| 10882 egrep -v '^ *\+' conftest.er1 >conftest.err | |
| 10883 rm -f conftest.er1 | |
| 10884 cat conftest.err >&5 | |
| 40426 | 10885 echo "$as_me:10885: \$? = $ac_status" >&5 |
| 40056 | 10886 (exit $ac_status); } >/dev/null; then |
| 10887 if test -s conftest.err; then | |
| 10888 ac_cpp_err=$ac_c_preproc_warn_flag | |
| 10889 else | |
| 10890 ac_cpp_err= | |
| 10891 fi | |
| 10892 else | |
| 10893 ac_cpp_err=yes | |
| 10894 fi | |
| 10895 if test -z "$ac_cpp_err"; then | |
| 10896 eval "$as_ac_Header=yes" | |
| 10897 else | |
| 10898 echo "$as_me: failed program was:" >&5 | |
|
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
10899 cat conftest.$ac_ext >&5 |
| 40056 | 10900 eval "$as_ac_Header=no" |
| 10901 fi | |
| 10902 rm -f conftest.err conftest.$ac_ext | |
| 10903 fi | |
| 40426 | 10904 echo "$as_me:10904: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 40056 | 10905 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 10906 if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
| 10907 cat >>confdefs.h <<EOF | |
| 10908 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
| 10909 EOF | |
| 10910 | |
| 10911 else | |
| 10912 | |
| 10913 for ac_header in kerberosIV/des.h | |
|
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
10914 do |
| 40056 | 10915 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 40426 | 10916 echo "$as_me:10916: checking for $ac_header" >&5 |
| 40056 | 10917 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 10918 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
| 10919 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
| 10920 else | |
| 10921 cat >conftest.$ac_ext <<_ACEOF | |
| 40426 | 10922 #line 10922 "configure" |
| 40056 | 10923 #include "confdefs.h" |
| 10924 #include <$ac_header> | |
| 10925 _ACEOF | |
| 40426 | 10926 if { (eval echo "$as_me:10926: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 40056 | 10927 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 10928 ac_status=$? | |
| 10929 egrep -v '^ *\+' conftest.er1 >conftest.err | |
| 10930 rm -f conftest.er1 | |
| 10931 cat conftest.err >&5 | |
| 40426 | 10932 echo "$as_me:10932: \$? = $ac_status" >&5 |
| 40056 | 10933 (exit $ac_status); } >/dev/null; then |
| 10934 if test -s conftest.err; then | |
| 10935 ac_cpp_err=$ac_c_preproc_warn_flag | |
| 10936 else | |
| 10937 ac_cpp_err= | |
| 10938 fi | |
| 10939 else | |
| 10940 ac_cpp_err=yes | |
| 10941 fi | |
| 10942 if test -z "$ac_cpp_err"; then | |
| 10943 eval "$as_ac_Header=yes" | |
| 10944 else | |
| 10945 echo "$as_me: failed program was:" >&5 | |
|
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
10946 cat conftest.$ac_ext >&5 |
| 40056 | 10947 eval "$as_ac_Header=no" |
| 10948 fi | |
| 10949 rm -f conftest.err conftest.$ac_ext | |
| 10950 fi | |
| 40426 | 10951 echo "$as_me:10951: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 40056 | 10952 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 10953 if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
| 10954 cat >>confdefs.h <<EOF | |
| 10955 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
| 10956 EOF | |
| 10957 | |
| 10958 else | |
| 10959 | |
| 10960 for ac_header in kerberos/des.h | |
|
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
10961 do |
| 40056 | 10962 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 40426 | 10963 echo "$as_me:10963: checking for $ac_header" >&5 |
| 40056 | 10964 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 10965 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
| 10966 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
| 10967 else | |
| 10968 cat >conftest.$ac_ext <<_ACEOF | |
| 40426 | 10969 #line 10969 "configure" |
| 40056 | 10970 #include "confdefs.h" |
| 10971 #include <$ac_header> | |
| 10972 _ACEOF | |
| 40426 | 10973 if { (eval echo "$as_me:10973: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 40056 | 10974 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 10975 ac_status=$? | |
| 10976 egrep -v '^ *\+' conftest.er1 >conftest.err | |
| 10977 rm -f conftest.er1 | |
| 10978 cat conftest.err >&5 | |
| 40426 | 10979 echo "$as_me:10979: \$? = $ac_status" >&5 |
| 40056 | 10980 (exit $ac_status); } >/dev/null; then |
| 10981 if test -s conftest.err; then | |
| 10982 ac_cpp_err=$ac_c_preproc_warn_flag | |
| 10983 else | |
| 10984 ac_cpp_err= | |
| 10985 fi | |
| 10986 else | |
| 10987 ac_cpp_err=yes | |
| 10988 fi | |
| 10989 if test -z "$ac_cpp_err"; then | |
| 10990 eval "$as_ac_Header=yes" | |
| 10991 else | |
| 10992 echo "$as_me: failed program was:" >&5 | |
|
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
10993 cat conftest.$ac_ext >&5 |
| 40056 | 10994 eval "$as_ac_Header=no" |
| 10995 fi | |
| 10996 rm -f conftest.err conftest.$ac_ext | |
| 10997 fi | |
| 40426 | 10998 echo "$as_me:10998: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 40056 | 10999 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 11000 if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
| 11001 cat >>confdefs.h <<EOF | |
| 11002 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
| 11003 EOF | |
| 11004 | |
|
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
11005 fi |
|
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
11006 done |
|
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
11007 |
|
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
11008 fi |
|
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
11009 done |
|
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
11010 |
|
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
11011 fi |
|
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
11012 done |
|
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
11013 |
| 40056 | 11014 for ac_header in krb.h |
|
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
11015 do |
| 40056 | 11016 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 40426 | 11017 echo "$as_me:11017: checking for $ac_header" >&5 |
| 40056 | 11018 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 11019 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
| 11020 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
| 11021 else | |
| 11022 cat >conftest.$ac_ext <<_ACEOF | |
| 40426 | 11023 #line 11023 "configure" |
| 40056 | 11024 #include "confdefs.h" |
| 11025 #include <$ac_header> | |
| 11026 _ACEOF | |
| 40426 | 11027 if { (eval echo "$as_me:11027: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 40056 | 11028 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 11029 ac_status=$? | |
| 11030 egrep -v '^ *\+' conftest.er1 >conftest.err | |
| 11031 rm -f conftest.er1 | |
| 11032 cat conftest.err >&5 | |
| 40426 | 11033 echo "$as_me:11033: \$? = $ac_status" >&5 |
| 40056 | 11034 (exit $ac_status); } >/dev/null; then |
| 11035 if test -s conftest.err; then | |
| 11036 ac_cpp_err=$ac_c_preproc_warn_flag | |
| 11037 else | |
| 11038 ac_cpp_err= | |
| 11039 fi | |
| 11040 else | |
| 11041 ac_cpp_err=yes | |
| 11042 fi | |
| 11043 if test -z "$ac_cpp_err"; then | |
| 11044 eval "$as_ac_Header=yes" | |
| 11045 else | |
| 11046 echo "$as_me: failed program was:" >&5 | |
|
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
11047 cat conftest.$ac_ext >&5 |
| 40056 | 11048 eval "$as_ac_Header=no" |
| 11049 fi | |
| 11050 rm -f conftest.err conftest.$ac_ext | |
| 11051 fi | |
| 40426 | 11052 echo "$as_me:11052: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 40056 | 11053 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 11054 if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
| 11055 cat >>confdefs.h <<EOF | |
| 11056 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
| 11057 EOF | |
| 11058 | |
| 11059 else | |
| 11060 | |
| 11061 for ac_header in kerberosIV/krb.h | |
|
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
11062 do |
| 40056 | 11063 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 40426 | 11064 echo "$as_me:11064: checking for $ac_header" >&5 |
| 40056 | 11065 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 11066 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
| 11067 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
| 11068 else | |
| 11069 cat >conftest.$ac_ext <<_ACEOF | |
| 40426 | 11070 #line 11070 "configure" |
| 40056 | 11071 #include "confdefs.h" |
| 11072 #include <$ac_header> | |
| 11073 _ACEOF | |
| 40426 | 11074 if { (eval echo "$as_me:11074: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 40056 | 11075 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 11076 ac_status=$? | |
| 11077 egrep -v '^ *\+' conftest.er1 >conftest.err | |
| 11078 rm -f conftest.er1 | |
| 11079 cat conftest.err >&5 | |
| 40426 | 11080 echo "$as_me:11080: \$? = $ac_status" >&5 |
| 40056 | 11081 (exit $ac_status); } >/dev/null; then |
| 11082 if test -s conftest.err; then | |
| 11083 ac_cpp_err=$ac_c_preproc_warn_flag | |
| 11084 else | |
| 11085 ac_cpp_err= | |
| 11086 fi | |
| 11087 else | |
| 11088 ac_cpp_err=yes | |
| 11089 fi | |
| 11090 if test -z "$ac_cpp_err"; then | |
| 11091 eval "$as_ac_Header=yes" | |
| 11092 else | |
| 11093 echo "$as_me: failed program was:" >&5 | |
|
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
11094 cat conftest.$ac_ext >&5 |
| 40056 | 11095 eval "$as_ac_Header=no" |
| 11096 fi | |
| 11097 rm -f conftest.err conftest.$ac_ext | |
| 11098 fi | |
| 40426 | 11099 echo "$as_me:11099: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 40056 | 11100 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 11101 if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
| 11102 cat >>confdefs.h <<EOF | |
| 11103 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
| 11104 EOF | |
| 11105 | |
| 11106 else | |
| 11107 | |
| 11108 for ac_header in kerberos/krb.h | |
|
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
11109 do |
| 40056 | 11110 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 40426 | 11111 echo "$as_me:11111: checking for $ac_header" >&5 |
| 40056 | 11112 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 11113 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
| 11114 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
| 11115 else | |
| 11116 cat >conftest.$ac_ext <<_ACEOF | |
| 40426 | 11117 #line 11117 "configure" |
| 40056 | 11118 #include "confdefs.h" |
| 11119 #include <$ac_header> | |
| 11120 _ACEOF | |
| 40426 | 11121 if { (eval echo "$as_me:11121: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 40056 | 11122 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 11123 ac_status=$? | |
| 11124 egrep -v '^ *\+' conftest.er1 >conftest.err | |
| 11125 rm -f conftest.er1 | |
| 11126 cat conftest.err >&5 | |
| 40426 | 11127 echo "$as_me:11127: \$? = $ac_status" >&5 |
| 40056 | 11128 (exit $ac_status); } >/dev/null; then |
| 11129 if test -s conftest.err; then | |
| 11130 ac_cpp_err=$ac_c_preproc_warn_flag | |
| 11131 else | |
| 11132 ac_cpp_err= | |
| 11133 fi | |
| 11134 else | |
| 11135 ac_cpp_err=yes | |
| 11136 fi | |
| 11137 if test -z "$ac_cpp_err"; then | |
| 11138 eval "$as_ac_Header=yes" | |
| 11139 else | |
| 11140 echo "$as_me: failed program was:" >&5 | |
|
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
11141 cat conftest.$ac_ext >&5 |
| 40056 | 11142 eval "$as_ac_Header=no" |
| 11143 fi | |
| 11144 rm -f conftest.err conftest.$ac_ext | |
| 11145 fi | |
| 40426 | 11146 echo "$as_me:11146: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 40056 | 11147 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 11148 if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
| 11149 cat >>confdefs.h <<EOF | |
| 11150 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
| 11151 EOF | |
| 11152 | |
|
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
11153 fi |
|
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
11154 done |
|
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
11155 |
|
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
11156 fi |
|
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
11157 done |
|
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
11158 |
|
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
11159 fi |
|
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
11160 done |
|
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
11161 |
|
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
11162 fi |
| 40056 | 11163 |
| 11164 for ac_header in com_err.h | |
|
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
11165 do |
| 40056 | 11166 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 40426 | 11167 echo "$as_me:11167: checking for $ac_header" >&5 |
| 40056 | 11168 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 11169 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
| 11170 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
| 11171 else | |
| 11172 cat >conftest.$ac_ext <<_ACEOF | |
| 40426 | 11173 #line 11173 "configure" |
| 40056 | 11174 #include "confdefs.h" |
| 11175 #include <$ac_header> | |
| 11176 _ACEOF | |
| 40426 | 11177 if { (eval echo "$as_me:11177: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 40056 | 11178 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 11179 ac_status=$? | |
| 11180 egrep -v '^ *\+' conftest.er1 >conftest.err | |
| 11181 rm -f conftest.er1 | |
| 11182 cat conftest.err >&5 | |
| 40426 | 11183 echo "$as_me:11183: \$? = $ac_status" >&5 |
| 40056 | 11184 (exit $ac_status); } >/dev/null; then |
| 11185 if test -s conftest.err; then | |
| 11186 ac_cpp_err=$ac_c_preproc_warn_flag | |
| 11187 else | |
| 11188 ac_cpp_err= | |
| 11189 fi | |
| 11190 else | |
| 11191 ac_cpp_err=yes | |
| 11192 fi | |
| 11193 if test -z "$ac_cpp_err"; then | |
| 11194 eval "$as_ac_Header=yes" | |
| 11195 else | |
| 11196 echo "$as_me: failed program was:" >&5 | |
|
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
11197 cat conftest.$ac_ext >&5 |
| 40056 | 11198 eval "$as_ac_Header=no" |
| 11199 fi | |
| 11200 rm -f conftest.err conftest.$ac_ext | |
| 11201 fi | |
| 40426 | 11202 echo "$as_me:11202: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 40056 | 11203 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 11204 if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
| 11205 cat >>confdefs.h <<EOF | |
| 11206 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
| 11207 EOF | |
| 11208 | |
|
26562
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
11209 fi |
|
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
11210 done |
|
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
11211 |
|
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
11212 fi |
|
b32d82817493
* configure.in: Restore Kerberos code deleted on 1999-05-29 that didn't need to
Ken Raeburn <raeburn@raeburn.org>
parents:
26502
diff
changeset
|
11213 |
| 25897 | 11214 # Solaris requires -lintl if you want strerror (which calls dgettext) |
| 11215 # to return localized messages. | |
| 40056 | 11216 |
| 40426 | 11217 echo "$as_me:11217: checking for dgettext in -lintl" >&5 |
| 40056 | 11218 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6 |
| 11219 if test "${ac_cv_lib_intl_dgettext+set}" = set; then | |
| 11220 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
| 11221 else | |
| 11222 ac_check_lib_save_LIBS=$LIBS | |
| 25897 | 11223 LIBS="-lintl $LIBS" |
| 40056 | 11224 cat >conftest.$ac_ext <<_ACEOF |
| 40426 | 11225 #line 11225 "configure" |
| 40056 | 11226 #include "confdefs.h" |
| 11227 | |
| 25897 | 11228 /* Override any gcc2 internal prototype to avoid an error. */ |
| 40056 | 11229 #ifdef __cplusplus |
| 11230 extern "C" | |
| 11231 #endif | |
| 25897 | 11232 /* We use char because int might match the return type of a gcc2 |
| 40056 | 11233 builtin and then its argument prototype would still apply. */ |
| 11234 char dgettext (); | |
| 11235 int | |
| 11236 main () | |
| 11237 { | |
| 11238 dgettext (); | |
| 11239 ; | |
| 11240 return 0; | |
| 11241 } | |
| 11242 _ACEOF | |
| 11243 rm -f conftest.$ac_objext conftest$ac_exeext | |
| 40426 | 11244 if { (eval echo "$as_me:11244: \"$ac_link\"") >&5 |
| 11245 (eval $ac_link) 2>&5 | |
| 11246 ac_status=$? | |
| 11247 echo "$as_me:11247: \$? = $ac_status" >&5 | |
| 40056 | 11248 (exit $ac_status); } && |
| 11249 { ac_try='test -s conftest$ac_exeext' | |
| 40426 | 11250 { (eval echo "$as_me:11250: \"$ac_try\"") >&5 |
| 11251 (eval $ac_try) 2>&5 | |
| 11252 ac_status=$? | |
| 11253 echo "$as_me:11253: \$? = $ac_status" >&5 | |
| 40056 | 11254 (exit $ac_status); }; }; then |
| 11255 ac_cv_lib_intl_dgettext=yes | |
| 11256 else | |
| 11257 echo "$as_me: failed program was:" >&5 | |
| 11258 cat conftest.$ac_ext >&5 | |
| 11259 ac_cv_lib_intl_dgettext=no | |
| 11260 fi | |
| 11261 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
| 11262 LIBS=$ac_check_lib_save_LIBS | |
| 11263 fi | |
| 40426 | 11264 echo "$as_me:11264: result: $ac_cv_lib_intl_dgettext" >&5 |
| 40056 | 11265 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6 |
| 11266 if test $ac_cv_lib_intl_dgettext = yes; then | |
| 11267 cat >>confdefs.h <<EOF | |
| 11268 #define HAVE_LIBINTL 1 | |
| 25897 | 11269 EOF |
| 11270 | |
| 11271 LIBS="-lintl $LIBS" | |
| 11272 | |
| 40056 | 11273 fi |
| 11274 | |
| 40426 | 11275 echo "$as_me:11275: checking whether localtime caches TZ" >&5 |
| 40056 | 11276 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6 |
| 11277 if test "${emacs_cv_localtime_cache+set}" = set; then | |
| 11278 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
| 25897 | 11279 else |
| 11280 if test x$ac_cv_func_tzset = xyes; then | |
| 11281 if test "$cross_compiling" = yes; then | |
| 11282 # If we have tzset, assume the worst when cross-compiling. | |
| 11283 emacs_cv_localtime_cache=yes | |
| 11284 else | |
| 40056 | 11285 cat >conftest.$ac_ext <<_ACEOF |
| 40426 | 11286 #line 11286 "configure" |
| 25897 | 11287 #include "confdefs.h" |
| 11288 #include <time.h> | |
| 11289 extern char **environ; | |
| 11290 unset_TZ () | |
| 11291 { | |
| 11292 char **from, **to; | |
| 11293 for (to = from = environ; (*to = *from); from++) | |
| 11294 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '=')) | |
| 11295 to++; | |
| 11296 } | |
| 11297 char TZ_GMT0[] = "TZ=GMT0"; | |
| 11298 char TZ_PST8[] = "TZ=PST8"; | |
| 11299 main() | |
| 11300 { | |
| 11301 time_t now = time ((time_t *) 0); | |
| 11302 int hour_GMT0, hour_unset; | |
| 11303 if (putenv (TZ_GMT0) != 0) | |
| 11304 exit (1); | |
| 11305 hour_GMT0 = localtime (&now)->tm_hour; | |
| 11306 unset_TZ (); | |
| 11307 hour_unset = localtime (&now)->tm_hour; | |
| 11308 if (putenv (TZ_PST8) != 0) | |
| 11309 exit (1); | |
| 11310 if (localtime (&now)->tm_hour == hour_GMT0) | |
| 11311 exit (1); | |
| 11312 unset_TZ (); | |
| 11313 if (localtime (&now)->tm_hour != hour_unset) | |
| 11314 exit (1); | |
| 11315 exit (0); | |
| 11316 } | |
| 40056 | 11317 _ACEOF |
| 11318 rm -f conftest$ac_exeext | |
| 40426 | 11319 if { (eval echo "$as_me:11319: \"$ac_link\"") >&5 |
| 11320 (eval $ac_link) 2>&5 | |
| 11321 ac_status=$? | |
| 11322 echo "$as_me:11322: \$? = $ac_status" >&5 | |
| 40056 | 11323 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 40426 | 11324 { (eval echo "$as_me:11324: \"$ac_try\"") >&5 |
| 11325 (eval $ac_try) 2>&5 | |
| 11326 ac_status=$? | |
| 11327 echo "$as_me:11327: \$? = $ac_status" >&5 | |
| 40056 | 11328 (exit $ac_status); }; }; then |
| 25897 | 11329 emacs_cv_localtime_cache=no |
| 11330 else | |
| 40056 | 11331 echo "$as_me: program exited with status $ac_status" >&5 |
| 11332 echo "$as_me: failed program was:" >&5 | |
| 11333 cat conftest.$ac_ext >&5 | |
| 11334 emacs_cv_localtime_cache=yes | |
| 11335 fi | |
| 11336 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
| 11337 fi | |
| 25897 | 11338 else |
| 11339 # If we lack tzset, report that localtime does not cache TZ, | |
| 11340 # since we can't invalidate the cache if we don't have tzset. | |
| 11341 emacs_cv_localtime_cache=no | |
| 11342 fi | |
| 11343 fi | |
| 40426 | 11344 echo "$as_me:11344: result: $emacs_cv_localtime_cache" >&5 |
| 40056 | 11345 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6 |
| 25897 | 11346 if test $emacs_cv_localtime_cache = yes; then |
| 40056 | 11347 cat >>confdefs.h <<\EOF |
| 25897 | 11348 #define LOCALTIME_CACHE 1 |
| 11349 EOF | |
| 11350 | |
| 11351 fi | |
| 11352 | |
| 11353 if test "x$HAVE_TIMEVAL" = xyes; then | |
| 40056 | 11354 |
| 11355 for ac_func in gettimeofday | |
| 29906 | 11356 do |
| 40056 | 11357 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 40426 | 11358 echo "$as_me:11358: checking for $ac_func" >&5 |
| 40056 | 11359 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 11360 if eval "test \"\${$as_ac_var+set}\" = set"; then | |
| 11361 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
| 11362 else | |
| 11363 cat >conftest.$ac_ext <<_ACEOF | |
| 40426 | 11364 #line 11364 "configure" |
| 29906 | 11365 #include "confdefs.h" |
| 11366 /* System header to define __stub macros and hopefully few prototypes, | |
| 40056 | 11367 which can conflict with char $ac_func (); below. */ |
| 29906 | 11368 #include <assert.h> |
| 11369 /* Override any gcc2 internal prototype to avoid an error. */ | |
| 40056 | 11370 #ifdef __cplusplus |
| 11371 extern "C" | |
| 11372 #endif | |
| 29906 | 11373 /* We use char because int might match the return type of a gcc2 |
| 40056 | 11374 builtin and then its argument prototype would still apply. */ |
| 11375 char $ac_func (); | |
| 11376 char (*f) (); | |
| 11377 | |
| 11378 int | |
| 11379 main () | |
| 11380 { | |
| 29906 | 11381 /* The GNU C library defines this for functions which it implements |
| 11382 to always fail with ENOSYS. Some functions are actually named | |
| 11383 something starting with __ and the normal name is an alias. */ | |
| 11384 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
| 11385 choke me | |
| 11386 #else | |
| 40056 | 11387 f = $ac_func; |
| 11388 #endif | |
| 11389 | |
| 11390 ; | |
| 11391 return 0; | |
| 11392 } | |
| 11393 _ACEOF | |
| 11394 rm -f conftest.$ac_objext conftest$ac_exeext | |
| 40426 | 11395 if { (eval echo "$as_me:11395: \"$ac_link\"") >&5 |
| 11396 (eval $ac_link) 2>&5 | |
| 11397 ac_status=$? | |
| 11398 echo "$as_me:11398: \$? = $ac_status" >&5 | |
| 40056 | 11399 (exit $ac_status); } && |
| 11400 { ac_try='test -s conftest$ac_exeext' | |
| 40426 | 11401 { (eval echo "$as_me:11401: \"$ac_try\"") >&5 |
| 11402 (eval $ac_try) 2>&5 | |
| 11403 ac_status=$? | |
| 11404 echo "$as_me:11404: \$? = $ac_status" >&5 | |
| 40056 | 11405 (exit $ac_status); }; }; then |
| 11406 eval "$as_ac_var=yes" | |
| 11407 else | |
| 11408 echo "$as_me: failed program was:" >&5 | |
| 11409 cat conftest.$ac_ext >&5 | |
| 11410 eval "$as_ac_var=no" | |
| 11411 fi | |
| 11412 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
| 11413 fi | |
| 40426 | 11414 echo "$as_me:11414: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 40056 | 11415 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 11416 if test `eval echo '${'$as_ac_var'}'` = yes; then | |
| 11417 cat >>confdefs.h <<EOF | |
| 11418 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
| 11419 EOF | |
| 11420 | |
| 29906 | 11421 fi |
| 11422 done | |
| 11423 | |
| 40426 | 11424 echo "$as_me:11424: checking whether gettimeofday can accept two arguments" >&5 |
| 40056 | 11425 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6 |
| 11426 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then | |
| 11427 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
| 11428 else | |
| 11429 cat >conftest.$ac_ext <<_ACEOF | |
| 40426 | 11430 #line 11430 "configure" |
| 25897 | 11431 #include "confdefs.h" |
| 11432 | |
| 11433 #ifdef TIME_WITH_SYS_TIME | |
| 11434 #include <sys/time.h> | |
| 11435 #include <time.h> | |
| 11436 #else | |
| 11437 #ifdef HAVE_SYS_TIME_H | |
| 11438 #include <sys/time.h> | |
| 11439 #else | |
| 11440 #include <time.h> | |
| 11441 #endif | |
| 11442 #endif | |
| 40056 | 11443 int |
| 11444 main () | |
| 11445 { | |
| 29733 | 11446 struct timeval time; |
| 29906 | 11447 gettimeofday (&time, 0); |
| 40056 | 11448 ; |
| 11449 return 0; | |
| 11450 } | |
| 11451 _ACEOF | |
| 11452 rm -f conftest.$ac_objext | |
| 40426 | 11453 if { (eval echo "$as_me:11453: \"$ac_compile\"") >&5 |
| 40056 | 11454 (eval $ac_compile) 2>&5 |
| 11455 ac_status=$? | |
| 40426 | 11456 echo "$as_me:11456: \$? = $ac_status" >&5 |
| 40056 | 11457 (exit $ac_status); } && |
| 11458 { ac_try='test -s conftest.$ac_objext' | |
| 40426 | 11459 { (eval echo "$as_me:11459: \"$ac_try\"") >&5 |
| 11460 (eval $ac_try) 2>&5 | |
| 11461 ac_status=$? | |
| 11462 echo "$as_me:11462: \$? = $ac_status" >&5 | |
| 40056 | 11463 (exit $ac_status); }; }; then |
| 25897 | 11464 emacs_cv_gettimeofday_two_arguments=yes |
| 11465 else | |
| 40056 | 11466 echo "$as_me: failed program was:" >&5 |
| 11467 cat conftest.$ac_ext >&5 | |
| 11468 emacs_cv_gettimeofday_two_arguments=no | |
| 11469 fi | |
| 11470 rm -f conftest.$ac_objext conftest.$ac_ext | |
| 11471 fi | |
| 40426 | 11472 echo "$as_me:11472: result: $emacs_cv_gettimeofday_two_arguments" >&5 |
| 40056 | 11473 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6 |
| 25897 | 11474 if test $emacs_cv_gettimeofday_two_arguments = no; then |
| 40056 | 11475 cat >>confdefs.h <<\EOF |
| 25897 | 11476 #define GETTIMEOFDAY_ONE_ARGUMENT 1 |
| 11477 EOF | |
| 11478 | |
| 11479 fi | |
| 11480 fi | |
| 11481 | |
| 29906 | 11482 if test "$ac_cv_func_gettimeofday" = yes; then |
| 40426 | 11483 echo "$as_me:11483: checking for struct timezone" >&5 |
| 40056 | 11484 echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6 |
| 11485 if test "${emacs_cv_struct_timezone+set}" = set; then | |
| 11486 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
| 11487 else | |
| 11488 cat >conftest.$ac_ext <<_ACEOF | |
| 40426 | 11489 #line 11489 "configure" |
| 29906 | 11490 #include "confdefs.h" |
| 11491 #include <sys/time.h> | |
| 40056 | 11492 int |
| 11493 main () | |
| 11494 { | |
| 29906 | 11495 struct timezone tz; |
| 40056 | 11496 ; |
| 11497 return 0; | |
| 11498 } | |
| 11499 _ACEOF | |
| 11500 rm -f conftest.$ac_objext | |
| 40426 | 11501 if { (eval echo "$as_me:11501: \"$ac_compile\"") >&5 |
| 40056 | 11502 (eval $ac_compile) 2>&5 |
| 11503 ac_status=$? | |
| 40426 | 11504 echo "$as_me:11504: \$? = $ac_status" >&5 |
| 40056 | 11505 (exit $ac_status); } && |
| 11506 { ac_try='test -s conftest.$ac_objext' | |
| 40426 | 11507 { (eval echo "$as_me:11507: \"$ac_try\"") >&5 |
| 11508 (eval $ac_try) 2>&5 | |
| 11509 ac_status=$? | |
| 11510 echo "$as_me:11510: \$? = $ac_status" >&5 | |
| 40056 | 11511 (exit $ac_status); }; }; then |
| 29906 | 11512 if test "$cross_compiling" = yes; then |
| 11513 emacs_cv_struct_timezone=yes | |
| 11514 else | |
| 40056 | 11515 cat >conftest.$ac_ext <<_ACEOF |
| 40426 | 11516 #line 11516 "configure" |
| 29906 | 11517 #include "confdefs.h" |
| 11518 | |
| 11519 #ifdef TIME_WITH_SYS_TIME | |
| 11520 #include <sys/time.h> | |
| 11521 #include <time.h> | |
| 11522 #else | |
| 11523 #ifdef HAVE_SYS_TIME_H | |
| 11524 #include <sys/time.h> | |
| 11525 #else | |
| 11526 #include <time.h> | |
| 11527 #endif | |
| 11528 #endif | |
| 11529 main () { | |
| 11530 struct timeval time; | |
| 11531 struct timezone dummy; | |
| 11532 exit (gettimeofday (&time, &dummy)); | |
| 11533 } | |
| 40056 | 11534 _ACEOF |
| 11535 rm -f conftest$ac_exeext | |
| 40426 | 11536 if { (eval echo "$as_me:11536: \"$ac_link\"") >&5 |
| 11537 (eval $ac_link) 2>&5 | |
| 11538 ac_status=$? | |
| 11539 echo "$as_me:11539: \$? = $ac_status" >&5 | |
| 40056 | 11540 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 40426 | 11541 { (eval echo "$as_me:11541: \"$ac_try\"") >&5 |
| 11542 (eval $ac_try) 2>&5 | |
| 11543 ac_status=$? | |
| 11544 echo "$as_me:11544: \$? = $ac_status" >&5 | |
| 40056 | 11545 (exit $ac_status); }; }; then |
| 29906 | 11546 emacs_cv_struct_timezone=yes |
| 11547 else | |
| 40056 | 11548 echo "$as_me: program exited with status $ac_status" >&5 |
| 11549 echo "$as_me: failed program was:" >&5 | |
| 11550 cat conftest.$ac_ext >&5 | |
| 11551 emacs_cv_struct_timezone=no | |
| 11552 fi | |
| 11553 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
| 11554 fi | |
| 11555 else | |
| 11556 echo "$as_me: failed program was:" >&5 | |
| 11557 cat conftest.$ac_ext >&5 | |
| 11558 emacs_cv_struct_timezone=no | |
| 11559 fi | |
| 11560 rm -f conftest.$ac_objext conftest.$ac_ext | |
| 11561 fi | |
| 40426 | 11562 echo "$as_me:11562: result: $emacs_cv_struct_timezone" >&5 |
| 40056 | 11563 echo "${ECHO_T}$emacs_cv_struct_timezone" >&6 |
| 29906 | 11564 fi |
| 11565 | |
| 25897 | 11566 ok_so_far=yes |
| 40426 | 11567 echo "$as_me:11567: checking for socket" >&5 |
| 40056 | 11568 echo $ECHO_N "checking for socket... $ECHO_C" >&6 |
| 11569 if test "${ac_cv_func_socket+set}" = set; then | |
| 11570 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
| 11571 else | |
| 11572 cat >conftest.$ac_ext <<_ACEOF | |
| 40426 | 11573 #line 11573 "configure" |
| 25897 | 11574 #include "confdefs.h" |
| 11575 /* System header to define __stub macros and hopefully few prototypes, | |
| 40056 | 11576 which can conflict with char socket (); below. */ |
| 25897 | 11577 #include <assert.h> |
| 11578 /* Override any gcc2 internal prototype to avoid an error. */ | |
| 40056 | 11579 #ifdef __cplusplus |
| 11580 extern "C" | |
| 11581 #endif | |
| 25897 | 11582 /* We use char because int might match the return type of a gcc2 |
| 40056 | 11583 builtin and then its argument prototype would still apply. */ |
| 11584 char socket (); | |
| 11585 char (*f) (); | |
| 11586 | |
| 11587 int | |
| 11588 main () | |
| 11589 { | |
| 25897 | 11590 /* The GNU C library defines this for functions which it implements |
| 11591 to always fail with ENOSYS. Some functions are actually named | |
| 11592 something starting with __ and the normal name is an alias. */ | |
| 11593 #if defined (__stub_socket) || defined (__stub___socket) | |
| 11594 choke me | |
| 11595 #else | |
| 40056 | 11596 f = socket; |
| 11597 #endif | |
| 11598 | |
| 11599 ; | |
| 11600 return 0; | |
| 11601 } | |
| 11602 _ACEOF | |
| 11603 rm -f conftest.$ac_objext conftest$ac_exeext | |
| 40426 | 11604 if { (eval echo "$as_me:11604: \"$ac_link\"") >&5 |
| 11605 (eval $ac_link) 2>&5 | |
| 11606 ac_status=$? | |
| 11607 echo "$as_me:11607: \$? = $ac_status" >&5 | |
| 40056 | 11608 (exit $ac_status); } && |
| 11609 { ac_try='test -s conftest$ac_exeext' | |
| 40426 | 11610 { (eval echo "$as_me:11610: \"$ac_try\"") >&5 |
| 11611 (eval $ac_try) 2>&5 | |
| 11612 ac_status=$? | |
| 11613 echo "$as_me:11613: \$? = $ac_status" >&5 | |
| 40056 | 11614 (exit $ac_status); }; }; then |
| 11615 ac_cv_func_socket=yes | |
| 11616 else | |
| 11617 echo "$as_me: failed program was:" >&5 | |
| 11618 cat conftest.$ac_ext >&5 | |
| 11619 ac_cv_func_socket=no | |
| 11620 fi | |
| 11621 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
| 11622 fi | |
| 40426 | 11623 echo "$as_me:11623: result: $ac_cv_func_socket" >&5 |
| 40056 | 11624 echo "${ECHO_T}$ac_cv_func_socket" >&6 |
| 11625 if test $ac_cv_func_socket = yes; then | |
| 25897 | 11626 : |
| 11627 else | |
| 40056 | 11628 ok_so_far=no |
| 25897 | 11629 fi |
| 11630 | |
| 11631 if test $ok_so_far = yes; then | |
| 40426 | 11632 echo "$as_me:11632: checking for netinet/in.h" >&5 |
| 40056 | 11633 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6 |
| 11634 if test "${ac_cv_header_netinet_in_h+set}" = set; then | |
| 11635 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
| 11636 else | |
| 11637 cat >conftest.$ac_ext <<_ACEOF | |
| 40426 | 11638 #line 11638 "configure" |
| 25897 | 11639 #include "confdefs.h" |
| 11640 #include <netinet/in.h> | |
| 40056 | 11641 _ACEOF |
| 40426 | 11642 if { (eval echo "$as_me:11642: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 40056 | 11643 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 11644 ac_status=$? | |
| 11645 egrep -v '^ *\+' conftest.er1 >conftest.err | |
| 11646 rm -f conftest.er1 | |
| 11647 cat conftest.err >&5 | |
| 40426 | 11648 echo "$as_me:11648: \$? = $ac_status" >&5 |
| 40056 | 11649 (exit $ac_status); } >/dev/null; then |
| 11650 if test -s conftest.err; then | |
| 11651 ac_cpp_err=$ac_c_preproc_warn_flag | |
| 11652 else | |
| 11653 ac_cpp_err= | |
| 11654 fi | |
| 11655 else | |
| 11656 ac_cpp_err=yes | |
| 11657 fi | |
| 11658 if test -z "$ac_cpp_err"; then | |
| 11659 ac_cv_header_netinet_in_h=yes | |
| 11660 else | |
| 11661 echo "$as_me: failed program was:" >&5 | |
| 25897 | 11662 cat conftest.$ac_ext >&5 |
| 40056 | 11663 ac_cv_header_netinet_in_h=no |
| 11664 fi | |
| 11665 rm -f conftest.err conftest.$ac_ext | |
| 11666 fi | |
| 40426 | 11667 echo "$as_me:11667: result: $ac_cv_header_netinet_in_h" >&5 |
| 40056 | 11668 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6 |
| 11669 if test $ac_cv_header_netinet_in_h = yes; then | |
| 25897 | 11670 : |
| 11671 else | |
| 40056 | 11672 ok_so_far=no |
| 25897 | 11673 fi |
| 11674 | |
| 11675 fi | |
| 11676 if test $ok_so_far = yes; then | |
| 40426 | 11677 echo "$as_me:11677: checking for arpa/inet.h" >&5 |
| 40056 | 11678 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6 |
| 11679 if test "${ac_cv_header_arpa_inet_h+set}" = set; then | |
| 11680 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
| 11681 else | |
| 11682 cat >conftest.$ac_ext <<_ACEOF | |
| 40426 | 11683 #line 11683 "configure" |
| 25897 | 11684 #include "confdefs.h" |
| 11685 #include <arpa/inet.h> | |
| 40056 | 11686 _ACEOF |
| 40426 | 11687 if { (eval echo "$as_me:11687: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 40056 | 11688 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 11689 ac_status=$? | |
| 11690 egrep -v '^ *\+' conftest.er1 >conftest.err | |
| 11691 rm -f conftest.er1 | |
| 11692 cat conftest.err >&5 | |
| 40426 | 11693 echo "$as_me:11693: \$? = $ac_status" >&5 |
| 40056 | 11694 (exit $ac_status); } >/dev/null; then |
| 11695 if test -s conftest.err; then | |
| 11696 ac_cpp_err=$ac_c_preproc_warn_flag | |
| 11697 else | |
| 11698 ac_cpp_err= | |
| 11699 fi | |
| 11700 else | |
| 11701 ac_cpp_err=yes | |
| 11702 fi | |
| 11703 if test -z "$ac_cpp_err"; then | |
| 11704 ac_cv_header_arpa_inet_h=yes | |
| 11705 else | |
| 11706 echo "$as_me: failed program was:" >&5 | |
| 25897 | 11707 cat conftest.$ac_ext >&5 |
| 40056 | 11708 ac_cv_header_arpa_inet_h=no |
| 11709 fi | |
| 11710 rm -f conftest.err conftest.$ac_ext | |
| 11711 fi | |
| 40426 | 11712 echo "$as_me:11712: result: $ac_cv_header_arpa_inet_h" >&5 |
| 40056 | 11713 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6 |
| 11714 if test $ac_cv_header_arpa_inet_h = yes; then | |
| 25897 | 11715 : |
| 11716 else | |
| 40056 | 11717 ok_so_far=no |
| 25897 | 11718 fi |
| 11719 | |
| 11720 fi | |
| 11721 if test $ok_so_far = yes; then | |
| 40056 | 11722 cat >>confdefs.h <<\EOF |
| 25897 | 11723 #define HAVE_INET_SOCKETS 1 |
| 11724 EOF | |
| 11725 | |
| 11726 fi | |
| 11727 | |
| 11728 if test -f /usr/lpp/X11/bin/smt.exp; then | |
| 40056 | 11729 cat >>confdefs.h <<\EOF |
| 25897 | 11730 #define HAVE_AIX_SMT_EXP 1 |
| 11731 EOF | |
| 11732 | |
| 11733 fi | |
| 11734 | |
| 40426 | 11735 echo "$as_me:11735: checking whether system supports dynamic ptys" >&5 |
| 40056 | 11736 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6 |
|
26382
78660eeae4b2
Fix change for --with-pop default.
Dave Love <fx@gnu.org>
parents:
26081
diff
changeset
|
11737 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then |
| 40426 | 11738 echo "$as_me:11738: result: yes" >&5 |
| 40056 | 11739 echo "${ECHO_T}yes" >&6 |
| 11740 cat >>confdefs.h <<\EOF | |
|
26382
78660eeae4b2
Fix change for --with-pop default.
Dave Love <fx@gnu.org>
parents:
26081
diff
changeset
|
11741 #define HAVE_DEV_PTMX 1 |
|
78660eeae4b2
Fix change for --with-pop default.
Dave Love <fx@gnu.org>
parents:
26081
diff
changeset
|
11742 EOF |
|
78660eeae4b2
Fix change for --with-pop default.
Dave Love <fx@gnu.org>
parents:
26081
diff
changeset
|
11743 |
|
78660eeae4b2
Fix change for --with-pop default.
Dave Love <fx@gnu.org>
parents:
26081
diff
changeset
|
11744 else |
| 40426 | 11745 echo "$as_me:11745: result: no" >&5 |
| 40056 | 11746 echo "${ECHO_T}no" >&6 |
| 11747 fi | |
| 11748 | |
| 40426 | 11749 echo "$as_me:11749: checking for pid_t" >&5 |
| 40056 | 11750 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 |
| 11751 if test "${ac_cv_type_pid_t+set}" = set; then | |
| 11752 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
| 11753 else | |
| 11754 cat >conftest.$ac_ext <<_ACEOF | |
| 40426 | 11755 #line 11755 "configure" |
| 40056 | 11756 #include "confdefs.h" |
| 11757 $ac_includes_default | |
| 11758 int | |
| 11759 main () | |
| 11760 { | |
| 11761 if ((pid_t *) 0) | |
| 11762 return 0; | |
| 11763 if (sizeof (pid_t)) | |
| 11764 return 0; | |
| 11765 ; | |
| 11766 return 0; | |
| 11767 } | |
| 11768 _ACEOF | |
| 11769 rm -f conftest.$ac_objext | |
| 40426 | 11770 if { (eval echo "$as_me:11770: \"$ac_compile\"") >&5 |
| 40056 | 11771 (eval $ac_compile) 2>&5 |
| 11772 ac_status=$? | |
| 40426 | 11773 echo "$as_me:11773: \$? = $ac_status" >&5 |
| 40056 | 11774 (exit $ac_status); } && |
| 11775 { ac_try='test -s conftest.$ac_objext' | |
| 40426 | 11776 { (eval echo "$as_me:11776: \"$ac_try\"") >&5 |
| 11777 (eval $ac_try) 2>&5 | |
| 11778 ac_status=$? | |
| 11779 echo "$as_me:11779: \$? = $ac_status" >&5 | |
| 40056 | 11780 (exit $ac_status); }; }; then |
| 27675 | 11781 ac_cv_type_pid_t=yes |
| 11782 else | |
| 40056 | 11783 echo "$as_me: failed program was:" >&5 |
| 11784 cat conftest.$ac_ext >&5 | |
| 11785 ac_cv_type_pid_t=no | |
| 11786 fi | |
| 11787 rm -f conftest.$ac_objext conftest.$ac_ext | |
| 11788 fi | |
| 40426 | 11789 echo "$as_me:11789: result: $ac_cv_type_pid_t" >&5 |
| 40056 | 11790 echo "${ECHO_T}$ac_cv_type_pid_t" >&6 |
| 11791 if test $ac_cv_type_pid_t = yes; then | |
| 11792 : | |
| 11793 else | |
| 11794 | |
| 11795 cat >>confdefs.h <<EOF | |
| 27675 | 11796 #define pid_t int |
| 11797 EOF | |
| 11798 | |
| 11799 fi | |
| 11800 | |
| 40056 | 11801 for ac_header in unistd.h vfork.h |
| 11802 do | |
| 11803 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
| 40426 | 11804 echo "$as_me:11804: checking for $ac_header" >&5 |
| 40056 | 11805 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 11806 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
| 11807 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
| 11808 else | |
| 11809 cat >conftest.$ac_ext <<_ACEOF | |
| 40426 | 11810 #line 11810 "configure" |
| 40056 | 11811 #include "confdefs.h" |
| 11812 #include <$ac_header> | |
| 11813 _ACEOF | |
| 40426 | 11814 if { (eval echo "$as_me:11814: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 40056 | 11815 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 11816 ac_status=$? | |
| 11817 egrep -v '^ *\+' conftest.er1 >conftest.err | |
| 11818 rm -f conftest.er1 | |
| 11819 cat conftest.err >&5 | |
| 40426 | 11820 echo "$as_me:11820: \$? = $ac_status" >&5 |
| 40056 | 11821 (exit $ac_status); } >/dev/null; then |
| 11822 if test -s conftest.err; then | |
| 11823 ac_cpp_err=$ac_c_preproc_warn_flag | |
| 11824 else | |
| 11825 ac_cpp_err= | |
| 11826 fi | |
| 11827 else | |
| 11828 ac_cpp_err=yes | |
| 11829 fi | |
| 11830 if test -z "$ac_cpp_err"; then | |
| 11831 eval "$as_ac_Header=yes" | |
| 11832 else | |
| 11833 echo "$as_me: failed program was:" >&5 | |
| 27675 | 11834 cat conftest.$ac_ext >&5 |
| 40056 | 11835 eval "$as_ac_Header=no" |
| 11836 fi | |
| 11837 rm -f conftest.err conftest.$ac_ext | |
| 11838 fi | |
| 40426 | 11839 echo "$as_me:11839: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 40056 | 11840 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 11841 if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
| 11842 cat >>confdefs.h <<EOF | |
| 11843 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
| 11844 EOF | |
| 11845 | |
| 11846 fi | |
| 11847 done | |
| 11848 | |
| 11849 for ac_func in fork vfork | |
| 11850 do | |
| 11851 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
| 40426 | 11852 echo "$as_me:11852: checking for $ac_func" >&5 |
| 40056 | 11853 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 11854 if eval "test \"\${$as_ac_var+set}\" = set"; then | |
| 11855 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
| 11856 else | |
| 11857 cat >conftest.$ac_ext <<_ACEOF | |
| 40426 | 11858 #line 11858 "configure" |
| 27675 | 11859 #include "confdefs.h" |
| 11860 /* System header to define __stub macros and hopefully few prototypes, | |
| 40056 | 11861 which can conflict with char $ac_func (); below. */ |
| 27675 | 11862 #include <assert.h> |
| 11863 /* Override any gcc2 internal prototype to avoid an error. */ | |
| 40056 | 11864 #ifdef __cplusplus |
| 11865 extern "C" | |
| 11866 #endif | |
| 27675 | 11867 /* We use char because int might match the return type of a gcc2 |
| 40056 | 11868 builtin and then its argument prototype would still apply. */ |
| 11869 char $ac_func (); | |
| 11870 char (*f) (); | |
| 11871 | |
| 11872 int | |
| 11873 main () | |
| 11874 { | |
| 27675 | 11875 /* The GNU C library defines this for functions which it implements |
| 11876 to always fail with ENOSYS. Some functions are actually named | |
| 11877 something starting with __ and the normal name is an alias. */ | |
| 40056 | 11878 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 27675 | 11879 choke me |
| 11880 #else | |
| 40056 | 11881 f = $ac_func; |
| 11882 #endif | |
| 11883 | |
| 11884 ; | |
| 11885 return 0; | |
| 11886 } | |
| 11887 _ACEOF | |
| 11888 rm -f conftest.$ac_objext conftest$ac_exeext | |
| 40426 | 11889 if { (eval echo "$as_me:11889: \"$ac_link\"") >&5 |
| 11890 (eval $ac_link) 2>&5 | |
| 11891 ac_status=$? | |
| 11892 echo "$as_me:11892: \$? = $ac_status" >&5 | |
| 40056 | 11893 (exit $ac_status); } && |
| 11894 { ac_try='test -s conftest$ac_exeext' | |
| 40426 | 11895 { (eval echo "$as_me:11895: \"$ac_try\"") >&5 |
| 11896 (eval $ac_try) 2>&5 | |
| 11897 ac_status=$? | |
| 11898 echo "$as_me:11898: \$? = $ac_status" >&5 | |
| 40056 | 11899 (exit $ac_status); }; }; then |
| 11900 eval "$as_ac_var=yes" | |
| 11901 else | |
| 11902 echo "$as_me: failed program was:" >&5 | |
| 11903 cat conftest.$ac_ext >&5 | |
| 11904 eval "$as_ac_var=no" | |
| 11905 fi | |
| 11906 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
| 11907 fi | |
| 40426 | 11908 echo "$as_me:11908: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 40056 | 11909 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 11910 if test `eval echo '${'$as_ac_var'}'` = yes; then | |
| 11911 cat >>confdefs.h <<EOF | |
| 11912 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
| 11913 EOF | |
| 11914 | |
| 11915 fi | |
| 11916 done | |
| 11917 | |
| 11918 ac_cv_func_fork_works=$ac_cv_func_fork | |
| 11919 if test "x$ac_cv_func_fork" = xyes; then | |
| 40426 | 11920 echo "$as_me:11920: checking for working fork" >&5 |
| 40056 | 11921 echo $ECHO_N "checking for working fork... $ECHO_C" >&6 |
| 11922 if test "${ac_cv_func_fork_works+set}" = set; then | |
| 11923 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
| 11924 else | |
| 11925 if test "$cross_compiling" = yes; then | |
| 11926 ac_cv_func_fork_works=cross | |
| 11927 else | |
| 11928 cat >conftest.$ac_ext <<_ACEOF | |
| 11929 /* By Rüdiger Kuhlmann. */ | |
| 11930 #include <sys/types.h> | |
| 11931 #if HAVE_UNISTD_H | |
| 11932 # include <unistd.h> | |
| 11933 #endif | |
| 11934 /* Some systems only have a dummy stub for fork() */ | |
| 11935 int main () | |
| 11936 { | |
| 11937 if (fork() < 0) | |
| 11938 exit (1); | |
| 11939 exit (0); | |
| 11940 } | |
| 11941 _ACEOF | |
| 11942 rm -f conftest$ac_exeext | |
| 40426 | 11943 if { (eval echo "$as_me:11943: \"$ac_link\"") >&5 |
| 11944 (eval $ac_link) 2>&5 | |
| 11945 ac_status=$? | |
| 11946 echo "$as_me:11946: \$? = $ac_status" >&5 | |
| 40056 | 11947 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 40426 | 11948 { (eval echo "$as_me:11948: \"$ac_try\"") >&5 |
| 11949 (eval $ac_try) 2>&5 | |
| 11950 ac_status=$? | |
| 11951 echo "$as_me:11951: \$? = $ac_status" >&5 | |
| 40056 | 11952 (exit $ac_status); }; }; then |
| 11953 ac_cv_func_fork_works=yes | |
| 11954 else | |
| 11955 echo "$as_me: program exited with status $ac_status" >&5 | |
| 11956 echo "$as_me: failed program was:" >&5 | |
| 11957 cat conftest.$ac_ext >&5 | |
| 11958 ac_cv_func_fork_works=no | |
| 11959 fi | |
| 11960 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
| 11961 fi | |
| 11962 fi | |
| 40426 | 11963 echo "$as_me:11963: result: $ac_cv_func_fork_works" >&5 |
| 40056 | 11964 echo "${ECHO_T}$ac_cv_func_fork_works" >&6 |
| 11965 | |
| 11966 fi | |
| 11967 if test "x$ac_cv_func_fork_works" = xcross; then | |
| 11968 case $host in | |
| 11969 *-*-amigaos* | *-*-msdosdjgpp*) | |
| 11970 # Override, as these systems have only a dummy fork() stub | |
| 11971 ac_cv_func_fork_works=no | |
| 11972 ;; | |
| 11973 *) | |
| 11974 ac_cv_func_fork_works=yes | |
| 11975 ;; | |
| 11976 esac | |
| 40426 | 11977 { echo "$as_me:11977: WARNING: CROSS: Result $ac_cv_func_fork_works guessed due to cross-compiling." >&5 |
| 40056 | 11978 echo "$as_me: WARNING: CROSS: Result $ac_cv_func_fork_works guessed due to cross-compiling." >&2;} |
| 11979 fi | |
| 27675 | 11980 ac_cv_func_vfork_works=$ac_cv_func_vfork |
| 40056 | 11981 if test "x$ac_cv_func_vfork" = xyes; then |
| 40426 | 11982 echo "$as_me:11982: checking for working vfork" >&5 |
| 40056 | 11983 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6 |
| 11984 if test "${ac_cv_func_vfork_works+set}" = set; then | |
| 11985 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
| 11986 else | |
| 11987 if test "$cross_compiling" = yes; then | |
| 11988 ac_cv_func_vfork_works=cross | |
| 11989 else | |
| 11990 cat >conftest.$ac_ext <<_ACEOF | |
| 40426 | 11991 #line 11991 "configure" |
| 27675 | 11992 #include "confdefs.h" |
| 11993 /* Thanks to Paul Eggert for this test. */ | |
| 11994 #include <stdio.h> | |
| 11995 #include <sys/types.h> | |
| 11996 #include <sys/stat.h> | |
| 40056 | 11997 #if HAVE_UNISTD_H |
| 11998 # include <unistd.h> | |
| 11999 #endif | |
| 12000 #if HAVE_VFORK_H | |
| 12001 # include <vfork.h> | |
| 27675 | 12002 #endif |
| 12003 /* On some sparc systems, changes by the child to local and incoming | |
| 40056 | 12004 argument registers are propagated back to the parent. The compiler |
| 12005 is told about this with #include <vfork.h>, but some compilers | |
| 12006 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a | |
| 12007 static variable whose address is put into a register that is | |
| 12008 clobbered by the vfork. */ | |
| 27675 | 12009 static |
| 12010 #ifdef __cplusplus | |
| 12011 sparc_address_test (int arg) | |
| 40056 | 12012 # else |
| 27675 | 12013 sparc_address_test (arg) int arg; |
| 12014 #endif | |
| 12015 { | |
| 12016 static pid_t child; | |
| 12017 if (!child) { | |
| 12018 child = vfork (); | |
| 12019 if (child < 0) { | |
| 12020 perror ("vfork"); | |
| 12021 _exit(2); | |
| 12022 } | |
| 12023 if (!child) { | |
| 12024 arg = getpid(); | |
| 12025 write(-1, "", 0); | |
| 12026 _exit (arg); | |
| 12027 } | |
| 12028 } | |
| 12029 } | |
| 40056 | 12030 |
| 12031 int | |
| 12032 main () | |
| 12033 { | |
| 27675 | 12034 pid_t parent = getpid (); |
| 12035 pid_t child; | |
| 12036 | |
| 12037 sparc_address_test (); | |
| 12038 | |
| 12039 child = vfork (); | |
| 12040 | |
| 12041 if (child == 0) { | |
| 40056 | 12042 /* Here is another test for sparc vfork register problems. This |
| 12043 test uses lots of local variables, at least as many local | |
| 12044 variables as main has allocated so far including compiler | |
| 12045 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris | |
| 12046 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should | |
| 12047 reuse the register of parent for one of the local variables, | |
| 12048 since it will think that parent can't possibly be used any more | |
| 12049 in this routine. Assigning to the local variable will thus | |
| 12050 munge parent in the parent process. */ | |
| 27675 | 12051 pid_t |
| 12052 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), | |
| 12053 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); | |
| 12054 /* Convince the compiler that p..p7 are live; otherwise, it might | |
| 12055 use the same hardware register for all 8 local variables. */ | |
| 12056 if (p != p1 || p != p2 || p != p3 || p != p4 | |
| 12057 || p != p5 || p != p6 || p != p7) | |
| 12058 _exit(1); | |
| 12059 | |
| 40056 | 12060 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent |
| 12061 from child file descriptors. If the child closes a descriptor | |
| 12062 before it execs or exits, this munges the parent's descriptor | |
| 12063 as well. Test for this by closing stdout in the child. */ | |
| 27675 | 12064 _exit(close(fileno(stdout)) != 0); |
| 12065 } else { | |
| 12066 int status; | |
| 12067 struct stat st; | |
| 12068 | |
| 12069 while (wait(&status) != child) | |
| 12070 ; | |
| 12071 exit( | |
| 12072 /* Was there some problem with vforking? */ | |
| 12073 child < 0 | |
| 12074 | |
| 12075 /* Did the child fail? (This shouldn't happen.) */ | |
| 12076 || status | |
| 12077 | |
| 12078 /* Did the vfork/compiler bug occur? */ | |
| 12079 || parent != getpid() | |
| 12080 | |
| 12081 /* Did the file descriptor bug occur? */ | |
| 12082 || fstat(fileno(stdout), &st) != 0 | |
| 12083 ); | |
| 12084 } | |
| 12085 } | |
| 40056 | 12086 _ACEOF |
| 12087 rm -f conftest$ac_exeext | |
| 40426 | 12088 if { (eval echo "$as_me:12088: \"$ac_link\"") >&5 |
| 12089 (eval $ac_link) 2>&5 | |
| 12090 ac_status=$? | |
| 12091 echo "$as_me:12091: \$? = $ac_status" >&5 | |
| 40056 | 12092 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 40426 | 12093 { (eval echo "$as_me:12093: \"$ac_try\"") >&5 |
| 12094 (eval $ac_try) 2>&5 | |
| 12095 ac_status=$? | |
| 12096 echo "$as_me:12096: \$? = $ac_status" >&5 | |
| 40056 | 12097 (exit $ac_status); }; }; then |
| 27675 | 12098 ac_cv_func_vfork_works=yes |
| 12099 else | |
| 40056 | 12100 echo "$as_me: program exited with status $ac_status" >&5 |
| 12101 echo "$as_me: failed program was:" >&5 | |
| 12102 cat conftest.$ac_ext >&5 | |
| 12103 ac_cv_func_vfork_works=no | |
| 12104 fi | |
| 12105 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
| 12106 fi | |
| 12107 fi | |
| 40426 | 12108 echo "$as_me:12108: result: $ac_cv_func_vfork_works" >&5 |
| 40056 | 12109 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6 |
| 12110 | |
| 12111 fi; | |
| 12112 if test "x$ac_cv_func_fork_works" = xcross; then | |
| 12113 ac_cv_func_vfork_works=ac_cv_func_vfork | |
| 40426 | 12114 { echo "$as_me:12114: WARNING: CROSS: Result $ac_cv_func_vfork_works guessed due to cross-compiling." >&5 |
| 40056 | 12115 echo "$as_me: WARNING: CROSS: Result $ac_cv_func_vfork_works guessed due to cross-compiling." >&2;} |
| 12116 fi | |
| 12117 | |
| 12118 if test "x$ac_cv_func_vfork_works" = xyes; then | |
| 12119 | |
| 12120 cat >>confdefs.h <<\EOF | |
| 12121 #define HAVE_WORKING_VFORK 1 | |
| 12122 EOF | |
| 12123 | |
| 12124 else | |
| 12125 | |
| 12126 cat >>confdefs.h <<\EOF | |
| 27675 | 12127 #define vfork fork |
| 12128 EOF | |
| 12129 | |
| 12130 fi | |
| 40056 | 12131 if test "x$ac_cv_func_fork_works" = xyes; then |
| 12132 | |
| 12133 cat >>confdefs.h <<\EOF | |
| 12134 #define HAVE_WORKING_FORK 1 | |
| 12135 EOF | |
| 12136 | |
| 12137 fi | |
| 27675 | 12138 |
| 30395 | 12139 # Fixme: This should be replaced when we have autoconf 2.14. |
| 40426 | 12140 echo "$as_me:12140: checking for size_t" >&5 |
| 40056 | 12141 echo $ECHO_N "checking for size_t... $ECHO_C" >&6 |
| 12142 if test "${ac_cv_type_size_t+set}" = set; then | |
| 12143 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
| 12144 else | |
| 12145 cat >conftest.$ac_ext <<_ACEOF | |
| 40426 | 12146 #line 12146 "configure" |
| 40056 | 12147 #include "confdefs.h" |
| 12148 $ac_includes_default | |
| 12149 int | |
| 12150 main () | |
| 12151 { | |
| 12152 if ((size_t *) 0) | |
| 12153 return 0; | |
| 12154 if (sizeof (size_t)) | |
| 12155 return 0; | |
| 12156 ; | |
| 12157 return 0; | |
| 12158 } | |
| 12159 _ACEOF | |
| 12160 rm -f conftest.$ac_objext | |
| 40426 | 12161 if { (eval echo "$as_me:12161: \"$ac_compile\"") >&5 |
| 40056 | 12162 (eval $ac_compile) 2>&5 |
| 12163 ac_status=$? | |
| 40426 | 12164 echo "$as_me:12164: \$? = $ac_status" >&5 |
| 40056 | 12165 (exit $ac_status); } && |
| 12166 { ac_try='test -s conftest.$ac_objext' | |
| 40426 | 12167 { (eval echo "$as_me:12167: \"$ac_try\"") >&5 |
| 12168 (eval $ac_try) 2>&5 | |
| 12169 ac_status=$? | |
| 12170 echo "$as_me:12170: \$? = $ac_status" >&5 | |
| 40056 | 12171 (exit $ac_status); }; }; then |
| 30395 | 12172 ac_cv_type_size_t=yes |
| 12173 else | |
| 40056 | 12174 echo "$as_me: failed program was:" >&5 |
| 12175 cat conftest.$ac_ext >&5 | |
| 12176 ac_cv_type_size_t=no | |
| 12177 fi | |
| 12178 rm -f conftest.$ac_objext conftest.$ac_ext | |
| 12179 fi | |
| 40426 | 12180 echo "$as_me:12180: result: $ac_cv_type_size_t" >&5 |
| 40056 | 12181 echo "${ECHO_T}$ac_cv_type_size_t" >&6 |
| 12182 if test $ac_cv_type_size_t = yes; then | |
| 12183 : | |
| 12184 else | |
| 12185 | |
| 12186 cat >>confdefs.h <<EOF | |
| 30395 | 12187 #define size_t unsigned |
| 12188 EOF | |
| 12189 | |
| 12190 fi | |
| 12191 | |
| 25897 | 12192 # Set up the CFLAGS for real compilation, so we can substitute it. |
| 12193 CFLAGS="$REAL_CFLAGS" | |
|
29990
98af0f021739
* configure.in: Add ${C_SWITCH_X_SITE} temporarily to CPPFLAGS, while
Ken Raeburn <raeburn@raeburn.org>
parents:
29949
diff
changeset
|
12194 CPPFLAGS="$REAL_CPPFLAGS" |
| 25897 | 12195 |
| 12196 #### Find out which version of Emacs this is. | |
| 12197 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \ | |
| 12198 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'` | |
| 12199 if test x"${version}" = x; then | |
| 40426 | 12200 { { echo "$as_me:12200: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5 |
| 40056 | 12201 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;} |
| 12202 { (exit 1); exit 1; }; } | |
| 25897 | 12203 fi |
| 12204 | |
| 12205 ### Specify what sort of things we'll be editing into Makefile and config.h. | |
| 12206 ### Use configuration here uncanonicalized to avoid exceeding size limits. | |
| 12207 | |
| 40056 | 12208 cat >>confdefs.h <<EOF |
| 25897 | 12209 #define EMACS_CONFIGURATION "${canonical}" |
| 12210 EOF | |
| 12211 | |
| 40056 | 12212 cat >>confdefs.h <<EOF |
| 25897 | 12213 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}" |
| 12214 EOF | |
| 12215 | |
| 40056 | 12216 cat >>confdefs.h <<EOF |
| 25897 | 12217 #define config_machfile "${machfile}" |
| 12218 EOF | |
| 12219 | |
| 40056 | 12220 cat >>confdefs.h <<EOF |
| 25897 | 12221 #define config_opsysfile "${opsysfile}" |
| 12222 EOF | |
| 12223 | |
| 40056 | 12224 cat >>confdefs.h <<EOF |
| 25897 | 12225 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE} |
| 12226 EOF | |
| 12227 | |
| 40056 | 12228 cat >>confdefs.h <<EOF |
| 25897 | 12229 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX} |
| 12230 EOF | |
| 12231 | |
| 40056 | 12232 cat >>confdefs.h <<EOF |
| 25897 | 12233 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE} |
| 12234 EOF | |
| 12235 | |
| 40056 | 12236 cat >>confdefs.h <<EOF |
| 25897 | 12237 #define UNEXEC_SRC ${UNEXEC_SRC} |
| 12238 EOF | |
| 12239 | |
| 12240 if test "${HAVE_X_WINDOWS}" = "yes" ; then | |
| 40056 | 12241 cat >>confdefs.h <<\EOF |
| 25897 | 12242 #define HAVE_X_WINDOWS 1 |
| 12243 EOF | |
| 12244 | |
| 12245 fi | |
| 12246 if test "${USE_X_TOOLKIT}" != "none" ; then | |
| 40056 | 12247 cat >>confdefs.h <<\EOF |
| 25897 | 12248 #define USE_X_TOOLKIT 1 |
| 12249 EOF | |
| 12250 | |
| 12251 fi | |
| 12252 if test "${HAVE_X11}" = "yes" ; then | |
| 40056 | 12253 cat >>confdefs.h <<\EOF |
| 25897 | 12254 #define HAVE_X11 1 |
| 12255 EOF | |
| 12256 | |
| 12257 fi | |
| 12258 if test "${HAVE_XFREE386}" = "yes" ; then | |
| 40056 | 12259 cat >>confdefs.h <<\EOF |
| 25897 | 12260 #define HAVE_XFREE386 1 |
| 12261 EOF | |
| 12262 | |
| 12263 fi | |
| 12264 if test "${HAVE_MENUS}" = "yes" ; then | |
| 40056 | 12265 cat >>confdefs.h <<\EOF |
| 25897 | 12266 #define HAVE_MENUS 1 |
| 12267 EOF | |
| 12268 | |
| 12269 fi | |
| 12270 if test "${GNU_MALLOC}" = "yes" ; then | |
| 40056 | 12271 cat >>confdefs.h <<\EOF |
| 25897 | 12272 #define GNU_MALLOC 1 |
| 12273 EOF | |
| 12274 | |
| 12275 fi | |
| 12276 if test "${REL_ALLOC}" = "yes" ; then | |
| 40056 | 12277 cat >>confdefs.h <<\EOF |
| 25897 | 12278 #define REL_ALLOC 1 |
| 12279 EOF | |
| 12280 | |
| 12281 fi | |
| 12282 | |
| 12283 #### Report on what we decided to do. | |
| 12284 echo " | |
| 12285 Configured for \`${canonical}'. | |
| 12286 | |
| 12287 Where should the build process find the source code? ${srcdir} | |
| 12288 What operating system and machine description files should Emacs use? | |
| 12289 \`${opsysfile}' and \`${machfile}' | |
| 12290 What compiler should emacs be built with? ${CC} ${CFLAGS} | |
| 12291 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason} | |
| 31417 | 12292 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC} |
| 31607 | 12293 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers |
| 25897 | 12294 What window system should Emacs use? ${window_system} |
| 12295 What toolkit should Emacs use? ${USE_X_TOOLKIT}" | |
| 12296 | |
| 12297 if test -n "${x_includes}"; then | |
| 12298 echo " Where do we find X Windows header files? ${x_includes}" | |
| 12299 else | |
| 12300 echo " Where do we find X Windows header files? Standard dirs" | |
| 12301 fi | |
| 12302 if test -n "${x_libraries}"; then | |
| 12303 echo " Where do we find X Windows libraries? ${x_libraries}" | |
| 12304 else | |
| 12305 echo " Where do we find X Windows libraries? Standard dirs" | |
| 12306 fi | |
| 12307 | |
| 12308 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}" | |
| 12309 echo " Does Emacs use -lXpm? ${HAVE_XPM}" | |
| 12310 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}" | |
| 12311 echo " Does Emacs use -ltiff? ${HAVE_TIFF}" | |
| 12312 echo " Does Emacs use -lungif? ${HAVE_GIF}" | |
| 12313 echo " Does Emacs use -lpng? ${HAVE_PNG}" | |
| 12314 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}" | |
| 12315 echo | |
| 12316 | |
| 12317 # Remove any trailing slashes in these variables. | |
| 12318 test "${prefix}" != NONE && | |
| 12319 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'` | |
| 12320 test "${exec_prefix}" != NONE && | |
| 12321 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'` | |
| 12322 | |
| 36354 | 12323 ## Check if the C preprocessor will convert `..' to `. .'. If so, set |
| 12324 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile | |
| 12325 ## from Makefile.c can correctly provide the arg `-traditional' to the | |
| 12326 ## C preprocessor. | |
| 12327 | |
| 40056 | 12328 cat >conftest.$ac_ext <<_ACEOF |
| 40426 | 12329 #line 12329 "configure" |
| 36354 | 12330 #include "confdefs.h" |
| 12331 yes..yes | |
| 40056 | 12332 _ACEOF |
| 36354 | 12333 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 12334 egrep "yes..yes" >/dev/null 2>&1; then | |
| 12335 CPP_NEED_TRADITIONAL=no | |
| 12336 else | |
| 12337 CPP_NEED_TRADITIONAL=yes | |
| 12338 fi | |
| 12339 rm -f conftest* | |
| 12340 | |
| 40056 | 12341 ac_config_files="$ac_config_files Makefile lib-src/Makefile.c:lib-src/Makefile.in oldXMenu/Makefile man/Makefile lwlib/Makefile src/Makefile.c:src/Makefile.in lisp/Makefile leim/Makefile" |
| 12342 ac_config_commands="$ac_config_commands default" | |
| 12343 cat >confcache <<\_ACEOF | |
| 25897 | 12344 # This file is a shell script that caches the results of configure |
| 12345 # tests run on this system so they can be shared between configure | |
| 40056 | 12346 # scripts and configure runs, see configure's option --config-cache. |
| 12347 # It is not useful on other systems. If it contains results you don't | |
| 12348 # want to keep, you may remove or edit it. | |
| 12349 # | |
| 12350 # config.status only pays attention to the cache file if you give it | |
| 12351 # the --recheck option to rerun configure. | |
| 25897 | 12352 # |
| 40056 | 12353 # `ac_cv_env_foo' variables (set or unset) will be overriden when |
| 12354 # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
| 12355 # following values. | |
| 12356 | |
| 12357 _ACEOF | |
| 12358 | |
| 25897 | 12359 # The following way of writing the cache mishandles newlines in values, |
| 12360 # but we know of no workaround that is simple, portable, and efficient. | |
| 12361 # So, don't put newlines in cache variables' values. | |
| 12362 # Ultrix sh set writes to stderr and can't be redirected directly, | |
| 12363 # and sets the high bit in the cache file unless we assign to the vars. | |
| 40056 | 12364 { |
| 12365 (set) 2>&1 | | |
| 12366 case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
| 12367 *ac_space=\ *) | |
| 12368 # `set' does not quote correctly, so add quotes (double-quote | |
| 12369 # substitution turns \\\\ into \\, and sed turns \\ into \). | |
| 12370 sed -n \ | |
| 12371 "s/'/'\\\\''/g; | |
| 12372 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
| 12373 ;; | |
| 12374 *) | |
| 12375 # `set' quotes correctly as required by POSIX, so do not add quotes. | |
| 12376 sed -n \ | |
| 12377 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
| 12378 ;; | |
| 12379 esac; | |
| 12380 } | | |
| 12381 sed ' | |
| 12382 t clear | |
| 12383 : clear | |
| 12384 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
| 12385 t end | |
| 12386 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
| 12387 : end' >>confcache | |
| 12388 if cmp -s $cache_file confcache; then :; else | |
| 25897 | 12389 if test -w $cache_file; then |
| 40056 | 12390 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
| 12391 cat confcache >$cache_file | |
| 25897 | 12392 else |
| 12393 echo "not updating unwritable cache $cache_file" | |
| 12394 fi | |
| 12395 fi | |
| 12396 rm -f confcache | |
| 12397 | |
| 12398 test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
| 12399 # Let make expand exec_prefix. | |
| 12400 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
| 12401 | |
| 40056 | 12402 # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 12403 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
| 12404 # trailing colons and then remove the whole line if VPATH becomes empty | |
| 12405 # (actually we leave an empty line to preserve line numbers). | |
| 25897 | 12406 if test "x$srcdir" = x.; then |
| 40056 | 12407 ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 12408 s/:*\$(srcdir):*/:/; | |
| 12409 s/:*\${srcdir}:*/:/; | |
| 12410 s/:*@srcdir@:*/:/; | |
| 12411 s/^\([^=]*=[ ]*\):*/\1/; | |
| 12412 s/:*$//; | |
| 12413 s/^[^=]*=[ ]*$//; | |
| 12414 }' | |
| 12415 fi | |
| 25897 | 12416 |
| 12417 DEFS=-DHAVE_CONFIG_H | |
| 12418 | |
| 12419 : ${CONFIG_STATUS=./config.status} | |
| 40056 | 12420 ac_clean_files_save=$ac_clean_files |
| 12421 ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
| 40426 | 12422 { echo "$as_me:12422: creating $CONFIG_STATUS" >&5 |
| 40056 | 12423 echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 12424 cat >$CONFIG_STATUS <<_ACEOF | |
| 12425 #! $SHELL | |
| 25897 | 12426 # Generated automatically by configure. |
| 12427 # Run this file to recreate the current configuration. | |
| 12428 # Compiler output produced by configure, useful for debugging | |
| 40056 | 12429 # configure, is in config.log if it exists. |
| 12430 | |
| 12431 debug=false | |
| 12432 SHELL=\${CONFIG_SHELL-$SHELL} | |
| 12433 ac_cs_invocation="\$0 \$@" | |
| 12434 | |
| 12435 _ACEOF | |
| 12436 | |
| 12437 cat >>$CONFIG_STATUS <<\_ACEOF | |
| 12438 # Be Bourne compatible | |
| 12439 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
| 12440 emulate sh | |
| 12441 NULLCMD=: | |
| 12442 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
| 12443 set -o posix | |
| 12444 fi | |
| 12445 | |
| 12446 # Name of the executable. | |
| 12447 as_me=`echo "$0" |sed 's,.*[\\/],,'` | |
| 12448 | |
| 12449 if expr a : '\(a\)' >/dev/null 2>&1; then | |
| 12450 as_expr=expr | |
| 12451 else | |
| 12452 as_expr=false | |
| 12453 fi | |
| 12454 | |
| 12455 rm -f conf$$ conf$$.exe conf$$.file | |
| 12456 echo >conf$$.file | |
| 12457 if ln -s conf$$.file conf$$ 2>/dev/null; then | |
| 12458 # We could just check for DJGPP; but this test a) works b) is more generic | |
| 12459 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
| 12460 if test -f conf$$.exe; then | |
| 12461 # Don't use ln at all; we don't have any links | |
| 12462 as_ln_s='cp -p' | |
| 12463 else | |
| 12464 as_ln_s='ln -s' | |
| 12465 fi | |
| 12466 elif ln conf$$.file conf$$ 2>/dev/null; then | |
| 12467 as_ln_s=ln | |
| 12468 else | |
| 12469 as_ln_s='cp -p' | |
| 12470 fi | |
| 12471 rm -f conf$$ conf$$.exe conf$$.file | |
| 12472 | |
| 12473 as_executable_p="test -f" | |
| 12474 | |
| 12475 # Support unset when possible. | |
| 12476 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then | |
| 12477 as_unset=unset | |
| 12478 else | |
| 12479 as_unset=false | |
| 12480 fi | |
| 12481 | |
| 12482 # NLS nuisances. | |
| 12483 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; } | |
| 12484 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; } | |
| 12485 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; } | |
| 12486 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; } | |
| 12487 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; } | |
| 12488 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; } | |
| 12489 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; } | |
| 12490 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; } | |
| 12491 | |
| 12492 # IFS | |
| 12493 # We need space, tab and new line, in precisely that order. | |
| 12494 as_nl=' | |
| 12495 ' | |
| 12496 IFS=" $as_nl" | |
| 12497 | |
| 12498 # CDPATH. | |
| 12499 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; } | |
| 12500 | |
| 12501 exec 6>&1 | |
| 12502 | |
| 12503 _ACEOF | |
| 12504 | |
| 12505 # Files that config.status was made for. | |
| 12506 if test -n "$ac_config_files"; then | |
| 12507 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | |
| 12508 fi | |
| 12509 | |
| 12510 if test -n "$ac_config_headers"; then | |
| 12511 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | |
| 12512 fi | |
| 12513 | |
| 12514 if test -n "$ac_config_links"; then | |
| 12515 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | |
| 12516 fi | |
| 12517 | |
| 12518 if test -n "$ac_config_commands"; then | |
| 12519 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | |
| 12520 fi | |
| 12521 | |
| 12522 cat >>$CONFIG_STATUS <<\EOF | |
| 12523 | |
| 12524 ac_cs_usage="\ | |
| 12525 \`$as_me' instantiates files from templates according to the | |
| 12526 current configuration. | |
| 12527 | |
| 12528 Usage: $0 [OPTIONS] [FILE]... | |
| 12529 | |
| 12530 -h, --help print this help, then exit | |
| 12531 -V, --version print version number, then exit | |
| 12532 -d, --debug don't remove temporary files | |
| 12533 --recheck update $as_me by reconfiguring in the same conditions | |
| 12534 --file=FILE[:TEMPLATE] | |
| 12535 instantiate the configuration file FILE | |
| 12536 --header=FILE[:TEMPLATE] | |
| 12537 instantiate the configuration header FILE | |
| 12538 | |
| 12539 Configuration files: | |
| 12540 $config_files | |
| 12541 | |
| 12542 Configuration headers: | |
| 12543 $config_headers | |
| 12544 | |
| 12545 Configuration commands: | |
| 12546 $config_commands | |
| 12547 | |
| 12548 Report bugs to <bug-autoconf@gnu.org>." | |
| 12549 EOF | |
| 12550 | |
| 12551 cat >>$CONFIG_STATUS <<EOF | |
| 12552 ac_cs_version="\\ | |
| 12553 config.status | |
| 12554 configured by $0, generated by GNU Autoconf 2.52, | |
| 12555 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" | |
| 12556 | |
| 12557 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 | |
| 12558 Free Software Foundation, Inc. | |
| 12559 This config.status script is free software; the Free Software Foundation | |
| 12560 gives unlimited permission to copy, distribute and modify it." | |
| 12561 srcdir=$srcdir | |
| 12562 INSTALL="$INSTALL" | |
| 12563 EOF | |
| 12564 | |
| 12565 cat >>$CONFIG_STATUS <<\EOF | |
| 12566 # If no file are specified by the user, then we need to provide default | |
| 12567 # value. By we need to know if files were specified by the user. | |
| 12568 ac_need_defaults=: | |
| 12569 while test $# != 0 | |
| 25897 | 12570 do |
| 40056 | 12571 case $1 in |
| 12572 --*=*) | |
| 12573 ac_option=`expr "x$1" : 'x\([^=]*\)='` | |
| 12574 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | |
| 12575 shift | |
| 12576 set dummy "$ac_option" "$ac_optarg" ${1+"$@"} | |
| 12577 shift | |
| 12578 ;; | |
| 12579 -*);; | |
| 12580 *) # This is not an option, so the user has probably given explicit | |
| 12581 # arguments. | |
| 12582 ac_need_defaults=false;; | |
| 12583 esac | |
| 12584 | |
| 12585 case $1 in | |
| 12586 # Handling of the options. | |
| 12587 EOF | |
| 12588 cat >>$CONFIG_STATUS <<EOF | |
| 25897 | 12589 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 40056 | 12590 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion" |
| 12591 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;; | |
| 12592 EOF | |
| 12593 cat >>$CONFIG_STATUS <<\EOF | |
| 12594 --version | --vers* | -V ) | |
| 12595 echo "$ac_cs_version"; exit 0 ;; | |
| 12596 --he | --h) | |
| 12597 # Conflict between --help and --header | |
| 40426 | 12598 { { echo "$as_me:12598: error: ambiguous option: $1 |
| 40056 | 12599 Try \`$0 --help' for more information." >&5 |
| 12600 echo "$as_me: error: ambiguous option: $1 | |
| 12601 Try \`$0 --help' for more information." >&2;} | |
| 12602 { (exit 1); exit 1; }; };; | |
| 12603 --help | --hel | -h ) | |
| 12604 echo "$ac_cs_usage"; exit 0 ;; | |
| 12605 --debug | --d* | -d ) | |
| 12606 debug=: ;; | |
| 12607 --file | --fil | --fi | --f ) | |
| 12608 shift | |
| 12609 CONFIG_FILES="$CONFIG_FILES $1" | |
| 12610 ac_need_defaults=false;; | |
| 12611 --header | --heade | --head | --hea ) | |
| 12612 shift | |
| 12613 CONFIG_HEADERS="$CONFIG_HEADERS $1" | |
| 12614 ac_need_defaults=false;; | |
| 12615 | |
| 12616 # This is an error. | |
| 40426 | 12617 -*) { { echo "$as_me:12617: error: unrecognized option: $1 |
| 40056 | 12618 Try \`$0 --help' for more information." >&5 |
| 12619 echo "$as_me: error: unrecognized option: $1 | |
| 12620 Try \`$0 --help' for more information." >&2;} | |
| 12621 { (exit 1); exit 1; }; } ;; | |
| 12622 | |
| 12623 *) ac_config_targets="$ac_config_targets $1" ;; | |
| 12624 | |
| 12625 esac | |
| 12626 shift | |
| 12627 done | |
| 12628 | |
| 12629 exec 5>>config.log | |
| 12630 cat >&5 << _ACEOF | |
| 12631 | |
| 12632 ## ----------------------- ## | |
| 12633 ## Running config.status. ## | |
| 12634 ## ----------------------- ## | |
| 12635 | |
| 12636 This file was extended by $as_me 2.52, executed with | |
| 12637 CONFIG_FILES = $CONFIG_FILES | |
| 12638 CONFIG_HEADERS = $CONFIG_HEADERS | |
| 12639 CONFIG_LINKS = $CONFIG_LINKS | |
| 12640 CONFIG_COMMANDS = $CONFIG_COMMANDS | |
| 12641 > $ac_cs_invocation | |
| 12642 on `(hostname || uname -n) 2>/dev/null | sed 1q` | |
| 12643 | |
| 12644 _ACEOF | |
| 12645 EOF | |
| 12646 | |
| 12647 cat >>$CONFIG_STATUS <<EOF | |
| 12648 # | |
| 12649 # INIT-COMMANDS section. | |
| 12650 # | |
| 12651 | |
| 12652 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS" | |
| 12653 | |
| 12654 EOF | |
| 12655 | |
| 12656 cat >>$CONFIG_STATUS <<\EOF | |
| 12657 for ac_config_target in $ac_config_targets | |
| 12658 do | |
| 12659 case "$ac_config_target" in | |
| 12660 # Handling of arguments. | |
| 12661 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
| 12662 "lib-src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;; | |
| 12663 "oldXMenu/Makefile" ) CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;; | |
| 12664 "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; | |
| 12665 "lwlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;; | |
| 12666 "src/Makefile.c" ) CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;; | |
| 12667 "lisp/Makefile" ) CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;; | |
| 12668 "leim/Makefile" ) CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;; | |
| 12669 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; | |
| 12670 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;; | |
| 40426 | 12671 *) { { echo "$as_me:12671: error: invalid argument: $ac_config_target" >&5 |
| 40056 | 12672 echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
| 12673 { (exit 1); exit 1; }; };; | |
| 25897 | 12674 esac |
| 12675 done | |
| 12676 | |
| 40056 | 12677 # If the user did not use the arguments to specify the items to instantiate, |
| 12678 # then the envvar interface is used. Set only those that are not. | |
| 12679 # We use the long form for the default assignment because of an extremely | |
| 12680 # bizarre bug on SunOS 4.1.3. | |
| 12681 if $ac_need_defaults; then | |
| 12682 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
| 12683 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
| 12684 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
| 12685 fi | |
| 12686 | |
| 12687 # Create a temporary directory, and hook for its removal unless debugging. | |
| 12688 $debug || | |
| 12689 { | |
| 12690 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 | |
| 12691 trap '{ (exit 1); exit 1; }' 1 2 13 15 | |
| 12692 } | |
| 12693 | |
| 12694 # Create a (secure) tmp directory for tmp files. | |
| 12695 : ${TMPDIR=/tmp} | |
| 12696 { | |
| 12697 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` && | |
| 12698 test -n "$tmp" && test -d "$tmp" | |
| 12699 } || | |
| 12700 { | |
| 12701 tmp=$TMPDIR/cs$$-$RANDOM | |
| 12702 (umask 077 && mkdir $tmp) | |
| 12703 } || | |
| 12704 { | |
| 12705 echo "$me: cannot create a temporary directory in $TMPDIR" >&2 | |
| 12706 { (exit 1); exit 1; } | |
| 12707 } | |
| 12708 | |
| 12709 EOF | |
| 12710 | |
| 12711 cat >>$CONFIG_STATUS <<EOF | |
| 12712 | |
| 12713 # | |
| 12714 # CONFIG_FILES section. | |
| 12715 # | |
| 12716 | |
| 12717 # No need to generate the scripts if there are no CONFIG_FILES. | |
| 12718 # This happens for instance when ./config.status config.h | |
| 12719 if test -n "\$CONFIG_FILES"; then | |
| 12720 # Protect against being on the right side of a sed subst in config.status. | |
| 12721 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | |
| 12722 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | |
| 12723 s,@SHELL@,$SHELL,;t t | |
| 12724 s,@exec_prefix@,$exec_prefix,;t t | |
| 12725 s,@prefix@,$prefix,;t t | |
| 12726 s,@program_transform_name@,$program_transform_name,;t t | |
| 12727 s,@bindir@,$bindir,;t t | |
| 12728 s,@sbindir@,$sbindir,;t t | |
| 12729 s,@libexecdir@,$libexecdir,;t t | |
| 12730 s,@datadir@,$datadir,;t t | |
| 12731 s,@sysconfdir@,$sysconfdir,;t t | |
| 12732 s,@sharedstatedir@,$sharedstatedir,;t t | |
| 12733 s,@localstatedir@,$localstatedir,;t t | |
| 12734 s,@libdir@,$libdir,;t t | |
| 12735 s,@includedir@,$includedir,;t t | |
| 12736 s,@oldincludedir@,$oldincludedir,;t t | |
| 12737 s,@infodir@,$infodir,;t t | |
| 12738 s,@mandir@,$mandir,;t t | |
| 12739 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | |
| 12740 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | |
| 12741 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | |
| 12742 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | |
| 12743 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | |
| 12744 s,@build_alias@,$build_alias,;t t | |
| 12745 s,@host_alias@,$host_alias,;t t | |
| 12746 s,@target_alias@,$target_alias,;t t | |
| 12747 s,@ECHO_C@,$ECHO_C,;t t | |
| 12748 s,@ECHO_N@,$ECHO_N,;t t | |
| 12749 s,@ECHO_T@,$ECHO_T,;t t | |
| 12750 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t | |
| 12751 s,@DEFS@,$DEFS,;t t | |
| 12752 s,@LIBS@,$LIBS,;t t | |
| 12753 s,@build@,$build,;t t | |
| 12754 s,@build_cpu@,$build_cpu,;t t | |
| 12755 s,@build_vendor@,$build_vendor,;t t | |
| 12756 s,@build_os@,$build_os,;t t | |
| 12757 s,@host@,$host,;t t | |
| 12758 s,@host_cpu@,$host_cpu,;t t | |
| 12759 s,@host_vendor@,$host_vendor,;t t | |
| 12760 s,@host_os@,$host_os,;t t | |
| 12761 s,@CC@,$CC,;t t | |
| 12762 s,@CFLAGS@,$CFLAGS,;t t | |
| 12763 s,@LDFLAGS@,$LDFLAGS,;t t | |
| 12764 s,@CPPFLAGS@,$CPPFLAGS,;t t | |
| 12765 s,@ac_ct_CC@,$ac_ct_CC,;t t | |
| 12766 s,@EXEEXT@,$EXEEXT,;t t | |
| 12767 s,@OBJEXT@,$OBJEXT,;t t | |
| 12768 s,@LN_S@,$LN_S,;t t | |
| 12769 s,@CPP@,$CPP,;t t | |
| 12770 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t | |
| 12771 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | |
| 12772 s,@INSTALL_DATA@,$INSTALL_DATA,;t t | |
| 12773 s,@YACC@,$YACC,;t t | |
| 12774 s,@RANLIB@,$RANLIB,;t t | |
| 12775 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t | |
| 12776 s,@LIBSOUND@,$LIBSOUND,;t t | |
| 12777 s,@SET_MAKE@,$SET_MAKE,;t t | |
| 12778 s,@ALLOCA@,$ALLOCA,;t t | |
| 12779 s,@liblockfile@,$liblockfile,;t t | |
| 12780 s,@LIBOBJS@,$LIBOBJS,;t t | |
| 12781 s,@NEED_SETGID@,$NEED_SETGID,;t t | |
| 12782 s,@KMEM_GROUP@,$KMEM_GROUP,;t t | |
| 12783 s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t | |
| 12784 s,@version@,$version,;t t | |
| 12785 s,@configuration@,$configuration,;t t | |
| 12786 s,@canonical@,$canonical,;t t | |
| 12787 s,@srcdir@,$srcdir,;t t | |
| 12788 s,@lispdir@,$lispdir,;t t | |
| 12789 s,@locallisppath@,$locallisppath,;t t | |
| 12790 s,@lisppath@,$lisppath,;t t | |
| 12791 s,@x_default_search_path@,$x_default_search_path,;t t | |
| 12792 s,@etcdir@,$etcdir,;t t | |
| 12793 s,@archlibdir@,$archlibdir,;t t | |
| 12794 s,@docdir@,$docdir,;t t | |
| 12795 s,@bitmapdir@,$bitmapdir,;t t | |
| 12796 s,@c_switch_system@,$c_switch_system,;t t | |
| 12797 s,@c_switch_machine@,$c_switch_machine,;t t | |
| 12798 s,@LD_SWITCH_X_SITE@,$LD_SWITCH_X_SITE,;t t | |
| 12799 s,@LD_SWITCH_X_SITE_AUX@,$LD_SWITCH_X_SITE_AUX,;t t | |
| 12800 s,@C_SWITCH_X_SITE@,$C_SWITCH_X_SITE,;t t | |
| 12801 s,@X_TOOLKIT_TYPE@,$X_TOOLKIT_TYPE,;t t | |
| 12802 s,@machfile@,$machfile,;t t | |
| 12803 s,@opsysfile@,$opsysfile,;t t | |
| 25897 | 12804 CEOF |
| 40056 | 12805 |
| 12806 EOF | |
| 12807 | |
| 12808 cat >>$CONFIG_STATUS <<\EOF | |
| 12809 # Split the substitutions into bite-sized pieces for seds with | |
| 12810 # small command number limits, like on Digital OSF/1 and HP-UX. | |
| 12811 ac_max_sed_lines=48 | |
| 12812 ac_sed_frag=1 # Number of current file. | |
| 12813 ac_beg=1 # First line for current file. | |
| 12814 ac_end=$ac_max_sed_lines # Line after last line for current file. | |
| 12815 ac_more_lines=: | |
| 12816 ac_sed_cmds= | |
| 12817 while $ac_more_lines; do | |
| 12818 if test $ac_beg -gt 1; then | |
| 12819 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
| 25897 | 12820 else |
| 40056 | 12821 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 12822 fi | |
| 12823 if test ! -s $tmp/subs.frag; then | |
| 12824 ac_more_lines=false | |
| 12825 else | |
| 12826 # The purpose of the label and of the branching condition is to | |
| 12827 # speed up the sed processing (if there are no `@' at all, there | |
| 12828 # is no need to browse any of the substitutions). | |
| 12829 # These are the two extra sed commands mentioned above. | |
| 12830 (echo ':t | |
| 12831 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | |
| 12832 if test -z "$ac_sed_cmds"; then | |
| 12833 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" | |
| 12834 else | |
| 12835 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" | |
| 12836 fi | |
| 12837 ac_sed_frag=`expr $ac_sed_frag + 1` | |
| 12838 ac_beg=$ac_end | |
| 12839 ac_end=`expr $ac_end + $ac_max_sed_lines` | |
| 25897 | 12840 fi |
| 40056 | 12841 done |
| 12842 if test -z "$ac_sed_cmds"; then | |
| 12843 ac_sed_cmds=cat | |
| 12844 fi | |
| 12845 fi # test -n "$CONFIG_FILES" | |
| 12846 | |
| 12847 EOF | |
| 12848 cat >>$CONFIG_STATUS <<\EOF | |
| 12849 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue | |
| 25897 | 12850 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
| 40056 | 12851 case $ac_file in |
| 12852 - | *:- | *:-:* ) # input from stdin | |
| 12853 cat >$tmp/stdin | |
| 12854 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
| 12855 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
| 12856 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
| 12857 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
| 12858 * ) ac_file_in=$ac_file.in ;; | |
| 25897 | 12859 esac |
| 12860 | |
| 40056 | 12861 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
| 12862 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
| 12863 X"$ac_file" : 'X\(//\)[^/]' \| \ | |
| 12864 X"$ac_file" : 'X\(//\)$' \| \ | |
| 12865 X"$ac_file" : 'X\(/\)' \| \ | |
| 12866 . : '\(.\)' 2>/dev/null || | |
| 12867 echo X"$ac_file" | | |
| 12868 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
| 12869 /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
| 12870 /^X\(\/\/\)$/{ s//\1/; q; } | |
| 12871 /^X\(\/\).*/{ s//\1/; q; } | |
| 12872 s/.*/./; q'` | |
| 25897 | 12873 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
| 40056 | 12874 { case "$ac_dir" in |
| 12875 [\\/]* | ?:[\\/]* ) as_incr_dir=;; | |
| 12876 *) as_incr_dir=.;; | |
| 12877 esac | |
| 12878 as_dummy="$ac_dir" | |
| 12879 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do | |
| 12880 case $as_mkdir_dir in | |
| 12881 # Skip DOS drivespec | |
| 12882 ?:) as_incr_dir=$as_mkdir_dir ;; | |
| 12883 *) | |
| 12884 as_incr_dir=$as_incr_dir/$as_mkdir_dir | |
| 12885 test -d "$as_incr_dir" || mkdir "$as_incr_dir" | |
| 12886 ;; | |
| 12887 esac | |
| 12888 done; } | |
| 12889 | |
| 12890 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`" | |
| 25897 | 12891 # A "../" for each directory in $ac_dir_suffix. |
| 40056 | 12892 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'` |
| 25897 | 12893 else |
| 12894 ac_dir_suffix= ac_dots= | |
| 12895 fi | |
| 12896 | |
| 40056 | 12897 case $srcdir in |
| 12898 .) ac_srcdir=. | |
| 12899 if test -z "$ac_dots"; then | |
| 12900 ac_top_srcdir=. | |
| 12901 else | |
| 12902 ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'` | |
| 12903 fi ;; | |
| 12904 [\\/]* | ?:[\\/]* ) | |
| 12905 ac_srcdir=$srcdir$ac_dir_suffix; | |
| 12906 ac_top_srcdir=$srcdir ;; | |
| 25897 | 12907 *) # Relative path. |
| 40056 | 12908 ac_srcdir=$ac_dots$srcdir$ac_dir_suffix |
| 12909 ac_top_srcdir=$ac_dots$srcdir ;; | |
| 25897 | 12910 esac |
| 12911 | |
| 40056 | 12912 case $INSTALL in |
| 12913 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
| 12914 *) ac_INSTALL=$ac_dots$INSTALL ;; | |
| 25897 | 12915 esac |
| 12916 | |
| 40056 | 12917 if test x"$ac_file" != x-; then |
| 40426 | 12918 { echo "$as_me:12918: creating $ac_file" >&5 |
| 40056 | 12919 echo "$as_me: creating $ac_file" >&6;} |
| 12920 rm -f "$ac_file" | |
| 12921 fi | |
| 12922 # Let's still pretend it is `configure' which instantiates (i.e., don't | |
| 12923 # use $as_me), people would be surprised to read: | |
| 12924 # /* config.h. Generated automatically by config.status. */ | |
| 12925 configure_input="Generated automatically from `echo $ac_file_in | | |
| 12926 sed 's,.*/,,'` by configure." | |
| 12927 | |
| 12928 # First look for the input files in the build tree, otherwise in the | |
| 12929 # src tree. | |
| 12930 ac_file_inputs=`IFS=: | |
| 12931 for f in $ac_file_in; do | |
| 12932 case $f in | |
| 12933 -) echo $tmp/stdin ;; | |
| 12934 [\\/$]*) | |
| 12935 # Absolute (can't be DOS-style, as IFS=:) | |
| 40426 | 12936 test -f "$f" || { { echo "$as_me:12936: error: cannot find input file: $f" >&5 |
| 40056 | 12937 echo "$as_me: error: cannot find input file: $f" >&2;} |
| 12938 { (exit 1); exit 1; }; } | |
| 12939 echo $f;; | |
| 12940 *) # Relative | |
| 12941 if test -f "$f"; then | |
| 12942 # Build tree | |
| 12943 echo $f | |
| 12944 elif test -f "$srcdir/$f"; then | |
| 12945 # Source tree | |
| 12946 echo $srcdir/$f | |
| 12947 else | |
| 12948 # /dev/null tree | |
| 40426 | 12949 { { echo "$as_me:12949: error: cannot find input file: $f" >&5 |
| 40056 | 12950 echo "$as_me: error: cannot find input file: $f" >&2;} |
| 12951 { (exit 1); exit 1; }; } | |
| 12952 fi;; | |
| 12953 esac | |
| 12954 done` || { (exit 1); exit 1; } | |
| 12955 EOF | |
| 12956 cat >>$CONFIG_STATUS <<EOF | |
| 12957 sed "$ac_vpsub | |
| 12958 $extrasub | |
| 12959 EOF | |
| 12960 cat >>$CONFIG_STATUS <<\EOF | |
| 12961 :t | |
| 12962 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
| 12963 s,@configure_input@,$configure_input,;t t | |
| 12964 s,@srcdir@,$ac_srcdir,;t t | |
| 12965 s,@top_srcdir@,$ac_top_srcdir,;t t | |
| 12966 s,@INSTALL@,$ac_INSTALL,;t t | |
| 12967 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | |
| 12968 rm -f $tmp/stdin | |
| 12969 if test x"$ac_file" != x-; then | |
| 12970 mv $tmp/out $ac_file | |
| 12971 else | |
| 12972 cat $tmp/out | |
| 12973 rm -f $tmp/out | |
| 12974 fi | |
| 12975 | |
| 12976 done | |
| 12977 EOF | |
| 12978 cat >>$CONFIG_STATUS <<\EOF | |
| 12979 | |
| 12980 # | |
| 12981 # CONFIG_HEADER section. | |
| 12982 # | |
| 25897 | 12983 |
| 12984 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
| 12985 # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
| 12986 # | |
| 12987 # ac_d sets the value in "#define NAME VALUE" lines. | |
| 40056 | 12988 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
| 12989 ac_dB='[ ].*$,\1#\2' | |
| 12990 ac_dC=' ' | |
| 12991 ac_dD=',;t' | |
| 12992 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
| 12993 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
| 12994 ac_uB='$,\1#\2define\3' | |
| 25897 | 12995 ac_uC=' ' |
| 40056 | 12996 ac_uD=',;t' |
| 12997 | |
| 12998 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue | |
| 25897 | 12999 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
| 40056 | 13000 case $ac_file in |
| 13001 - | *:- | *:-:* ) # input from stdin | |
| 13002 cat >$tmp/stdin | |
| 13003 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
| 13004 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
| 13005 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
| 13006 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
| 13007 * ) ac_file_in=$ac_file.in ;; | |
| 25897 | 13008 esac |
| 13009 | |
| 40426 | 13010 test x"$ac_file" != x- && { echo "$as_me:13010: creating $ac_file" >&5 |
| 40056 | 13011 echo "$as_me: creating $ac_file" >&6;} |
| 13012 | |
| 13013 # First look for the input files in the build tree, otherwise in the | |
| 13014 # src tree. | |
| 13015 ac_file_inputs=`IFS=: | |
| 13016 for f in $ac_file_in; do | |
| 13017 case $f in | |
| 13018 -) echo $tmp/stdin ;; | |
| 13019 [\\/$]*) | |
| 13020 # Absolute (can't be DOS-style, as IFS=:) | |
| 40426 | 13021 test -f "$f" || { { echo "$as_me:13021: error: cannot find input file: $f" >&5 |
| 40056 | 13022 echo "$as_me: error: cannot find input file: $f" >&2;} |
| 13023 { (exit 1); exit 1; }; } | |
| 13024 echo $f;; | |
| 13025 *) # Relative | |
| 13026 if test -f "$f"; then | |
| 13027 # Build tree | |
| 13028 echo $f | |
| 13029 elif test -f "$srcdir/$f"; then | |
| 13030 # Source tree | |
| 13031 echo $srcdir/$f | |
| 13032 else | |
| 13033 # /dev/null tree | |
| 40426 | 13034 { { echo "$as_me:13034: error: cannot find input file: $f" >&5 |
| 40056 | 13035 echo "$as_me: error: cannot find input file: $f" >&2;} |
| 13036 { (exit 1); exit 1; }; } | |
| 13037 fi;; | |
| 13038 esac | |
| 13039 done` || { (exit 1); exit 1; } | |
| 13040 # Remove the trailing spaces. | |
| 13041 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in | |
| 13042 | |
| 13043 EOF | |
| 13044 | |
| 13045 # Transform confdefs.h into two sed scripts, `conftest.defines' and | |
| 13046 # `conftest.undefs', that substitutes the proper values into | |
| 13047 # config.h.in to produce config.h. The first handles `#define' | |
| 13048 # templates, and the second `#undef' templates. | |
| 13049 # And first: Protect against being on the right side of a sed subst in | |
| 13050 # config.status. Protect against being in an unquoted here document | |
| 13051 # in config.status. | |
| 13052 rm -f conftest.defines conftest.undefs | |
| 13053 # Using a here document instead of a string reduces the quoting nightmare. | |
| 13054 # Putting comments in sed scripts is not portable. | |
| 13055 # | |
| 13056 # `end' is used to avoid that the second main sed command (meant for | |
| 13057 # 0-ary CPP macros) applies to n-ary macro definitions. | |
| 13058 # See the Autoconf documentation for `clear'. | |
| 13059 cat >confdef2sed.sed <<\EOF | |
| 13060 s/[\\&,]/\\&/g | |
| 13061 s,[\\$`],\\&,g | |
| 13062 t clear | |
| 13063 : clear | |
| 13064 s,^[ ]*#[ ]*define[ ][ ]*\(\([^ (][^ (]*\)([^)]*)\)[ ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp | |
| 13065 t end | |
| 13066 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp | |
| 13067 : end | |
| 13068 EOF | |
| 13069 # If some macros were called several times there might be several times | |
| 13070 # the same #defines, which is useless. Nevertheless, we may not want to | |
| 13071 # sort them, since we want the *last* AC-DEFINE to be honored. | |
| 13072 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines | |
| 13073 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs | |
| 13074 rm -f confdef2sed.sed | |
| 25897 | 13075 |
| 13076 # This sed command replaces #undef with comments. This is necessary, for | |
| 13077 # example, in the case of _POSIX_SOURCE, which is predefined and required | |
| 13078 # on some systems where configure will not decide to define it. | |
| 40056 | 13079 cat >>conftest.undefs <<\EOF |
| 13080 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, | |
| 13081 EOF | |
| 13082 | |
| 13083 # Break up conftest.defines because some shells have a limit on the size | |
| 13084 # of here documents, and old seds have small limits too (100 cmds). | |
| 13085 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS | |
| 13086 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS | |
| 13087 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS | |
| 13088 echo ' :' >>$CONFIG_STATUS | |
| 25897 | 13089 rm -f conftest.tail |
| 40056 | 13090 while grep . conftest.defines >/dev/null |
| 25897 | 13091 do |
| 40056 | 13092 # Write a limited-size here document to $tmp/defines.sed. |
| 13093 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS | |
| 13094 # Speed up: don't consider the non `#define' lines. | |
| 13095 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS | |
| 13096 # Work around the forget-to-reset-the-flag bug. | |
| 13097 echo 't clr' >>$CONFIG_STATUS | |
| 13098 echo ': clr' >>$CONFIG_STATUS | |
| 13099 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS | |
| 25897 | 13100 echo 'CEOF |
| 40056 | 13101 sed -f $tmp/defines.sed $tmp/in >$tmp/out |
| 13102 rm -f $tmp/in | |
| 13103 mv $tmp/out $tmp/in | |
| 13104 ' >>$CONFIG_STATUS | |
| 13105 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail | |
| 13106 rm -f conftest.defines | |
| 13107 mv conftest.tail conftest.defines | |
| 13108 done | |
| 13109 rm -f conftest.defines | |
| 13110 echo ' fi # egrep' >>$CONFIG_STATUS | |
| 13111 echo >>$CONFIG_STATUS | |
| 13112 | |
| 13113 # Break up conftest.undefs because some shells have a limit on the size | |
| 13114 # of here documents, and old seds have small limits too (100 cmds). | |
| 13115 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS | |
| 13116 rm -f conftest.tail | |
| 13117 while grep . conftest.undefs >/dev/null | |
| 13118 do | |
| 13119 # Write a limited-size here document to $tmp/undefs.sed. | |
| 13120 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS | |
| 13121 # Speed up: don't consider the non `#undef' | |
| 13122 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS | |
| 13123 # Work around the forget-to-reset-the-flag bug. | |
| 13124 echo 't clr' >>$CONFIG_STATUS | |
| 13125 echo ': clr' >>$CONFIG_STATUS | |
| 13126 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS | |
| 13127 echo 'CEOF | |
| 13128 sed -f $tmp/undefs.sed $tmp/in >$tmp/out | |
| 13129 rm -f $tmp/in | |
| 13130 mv $tmp/out $tmp/in | |
| 13131 ' >>$CONFIG_STATUS | |
| 13132 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail | |
| 13133 rm -f conftest.undefs | |
| 13134 mv conftest.tail conftest.undefs | |
| 25897 | 13135 done |
| 40056 | 13136 rm -f conftest.undefs |
| 13137 | |
| 13138 cat >>$CONFIG_STATUS <<\EOF | |
| 13139 # Let's still pretend it is `configure' which instantiates (i.e., don't | |
| 13140 # use $as_me), people would be surprised to read: | |
| 13141 # /* config.h. Generated automatically by config.status. */ | |
| 13142 if test x"$ac_file" = x-; then | |
| 13143 echo "/* Generated automatically by configure. */" >$tmp/config.h | |
| 25897 | 13144 else |
| 40056 | 13145 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h |
| 13146 fi | |
| 13147 cat $tmp/in >>$tmp/config.h | |
| 13148 rm -f $tmp/in | |
| 13149 if test x"$ac_file" != x-; then | |
| 13150 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then | |
| 40426 | 13151 { echo "$as_me:13151: $ac_file is unchanged" >&5 |
| 40056 | 13152 echo "$as_me: $ac_file is unchanged" >&6;} |
| 13153 else | |
| 13154 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
| 13155 X"$ac_file" : 'X\(//\)[^/]' \| \ | |
| 13156 X"$ac_file" : 'X\(//\)$' \| \ | |
| 13157 X"$ac_file" : 'X\(/\)' \| \ | |
| 13158 . : '\(.\)' 2>/dev/null || | |
| 13159 echo X"$ac_file" | | |
| 13160 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
| 13161 /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
| 13162 /^X\(\/\/\)$/{ s//\1/; q; } | |
| 13163 /^X\(\/\).*/{ s//\1/; q; } | |
| 13164 s/.*/./; q'` | |
| 25897 | 13165 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
| 40056 | 13166 { case "$ac_dir" in |
| 13167 [\\/]* | ?:[\\/]* ) as_incr_dir=;; | |
| 13168 *) as_incr_dir=.;; | |
| 13169 esac | |
| 13170 as_dummy="$ac_dir" | |
| 13171 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do | |
| 13172 case $as_mkdir_dir in | |
| 13173 # Skip DOS drivespec | |
| 13174 ?:) as_incr_dir=$as_mkdir_dir ;; | |
| 13175 *) | |
| 13176 as_incr_dir=$as_incr_dir/$as_mkdir_dir | |
| 13177 test -d "$as_incr_dir" || mkdir "$as_incr_dir" | |
| 13178 ;; | |
| 13179 esac | |
| 13180 done; } | |
| 13181 | |
| 13182 fi | |
| 13183 rm -f $ac_file | |
| 13184 mv $tmp/config.h $ac_file | |
| 25897 | 13185 fi |
| 40056 | 13186 else |
| 13187 cat $tmp/config.h | |
| 13188 rm -f $tmp/config.h | |
| 13189 fi | |
| 13190 done | |
| 13191 EOF | |
| 13192 cat >>$CONFIG_STATUS <<\EOF | |
| 13193 | |
| 13194 # | |
| 13195 # CONFIG_COMMANDS section. | |
| 13196 # | |
| 13197 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue | |
| 13198 ac_dest=`echo "$ac_file" | sed 's,:.*,,'` | |
| 13199 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
| 13200 | |
| 13201 case $ac_dest in | |
| 13202 default ) | |
| 25897 | 13203 |
| 13204 ### Make the necessary directories, if they don't exist. | |
| 13205 for dir in etc lisp ; do | |
| 13206 test -d ${dir} || mkdir ${dir} | |
| 13207 done | |
| 13208 | |
| 13209 # Build src/Makefile from ${srcdir}/src/Makefile.c | |
| 13210 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c | |
| 13211 # This must be done after src/config.h is built, since we rely on that file. | |
| 13212 | |
| 13213 # Now get this: Some word that is part of the ${srcdir} directory name | |
| 13214 # or the ${configuration} value might, just might, happen to be an | |
| 13215 # identifier like `sun4' or `i386' or something, and be predefined by | |
| 13216 # the C preprocessor to some helpful value like 1, or maybe the empty | |
| 13217 # string. Needless to say consequent macro substitutions are less | |
| 13218 # than conducive to the makefile finding the correct directory. | |
| 13219 undefs="`echo $top_srcdir $configuration $canonical | | |
| 13220 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \ | |
| 13221 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \ | |
| 13222 `" | |
| 13223 | |
| 13224 echo creating src/epaths.h | |
| 40256 | 13225 ${MAKE-make} epaths-force |
| 25897 | 13226 |
| 33652 | 13227 # As of 2000-11-19, newest development versions of GNU cpp preprocess |
| 13228 # `..' to `. .' unless invoked with -traditional | |
| 13229 | |
| 36354 | 13230 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then |
| 33652 | 13231 CPPFLAGS="$CPPFLAGS -traditional" |
| 13232 fi | |
| 13233 | |
| 25897 | 13234 echo creating lib-src/Makefile |
| 13235 ( cd lib-src | |
| 13236 rm -f junk.c junk1.c junk2.c | |
| 13237 sed -e '/start of cpp stuff/q' \ | |
| 13238 < Makefile.c > junk1.c | |
| 13239 sed -e '1,/start of cpp stuff/d'\ | |
| 39239 | 13240 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \ |
| 25897 | 13241 < Makefile.c > junk.c |
| 40056 | 13242 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \ |
| 25897 | 13243 sed -e 's/^ / /' -e '/^#/d' -e '/^[ ]*$/d' > junk2.c |
| 13244 cat junk1.c junk2.c > Makefile.new | |
| 13245 rm -f junk.c junk1.c junk2.c | |
| 13246 chmod 444 Makefile.new | |
| 13247 mv -f Makefile.new Makefile | |
| 13248 ) | |
| 13249 | |
| 13250 echo creating src/Makefile | |
| 13251 ( cd src | |
| 13252 rm -f junk.c junk1.c junk2.c | |
| 13253 sed -e '/start of cpp stuff/q' \ | |
| 13254 < Makefile.c > junk1.c | |
| 13255 sed -e '1,/start of cpp stuff/d'\ | |
| 39239 | 13256 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \ |
| 25897 | 13257 < Makefile.c > junk.c |
| 40056 | 13258 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \ |
| 25897 | 13259 sed -e 's/^ / /' -e '/^#/d' -e '/^[ ]*$/d' > junk2.c |
| 13260 cat junk1.c junk2.c > Makefile.new | |
| 13261 rm -f junk.c junk1.c junk2.c | |
| 13262 chmod 444 Makefile.new | |
| 13263 mv -f Makefile.new Makefile | |
| 13264 ) | |
| 13265 | |
| 40056 | 13266 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then |
| 25897 | 13267 echo creating src/.gdbinit |
| 40056 | 13268 echo source $srcdir/src/.gdbinit > src/.gdbinit |
| 25897 | 13269 fi |
| 13270 | |
| 13271 # This is how we know whether to re-run configure in certain cases. | |
| 13272 touch src/config.stamp | |
| 13273 | |
| 40056 | 13274 ;; |
| 13275 esac | |
| 13276 done | |
| 13277 EOF | |
| 13278 | |
| 13279 cat >>$CONFIG_STATUS <<\EOF | |
| 13280 | |
| 13281 { (exit 0); exit 0; } | |
| 25897 | 13282 EOF |
| 13283 chmod +x $CONFIG_STATUS | |
| 40056 | 13284 ac_clean_files=$ac_clean_files_save |
| 13285 | |
| 13286 # configure is writing to config.log, and then calls config.status. | |
| 13287 # config.status does its own redirection, appending to config.log. | |
| 13288 # Unfortunately, on DOS this fails, as config.log is still kept open | |
| 13289 # by configure, so config.status won't be able to write to it; its | |
| 13290 # output is simply discarded. So we exec the FD to /dev/null, | |
| 13291 # effectively closing config.log, so it can be properly (re)opened and | |
| 13292 # appended to by config.status. When coming back to configure, we | |
| 13293 # need to make the FD available again. | |
| 13294 if test "$no_create" != yes; then | |
| 13295 ac_cs_success=: | |
| 13296 exec 5>/dev/null | |
| 13297 $SHELL $CONFIG_STATUS || ac_cs_success=false | |
| 13298 exec 5>>config.log | |
| 13299 # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
| 13300 # would make configure fail if this is the last instruction. | |
| 13301 $ac_cs_success || { (exit 1); exit 1; } | |
| 13302 fi | |
| 13303 |
