| 1 | #! /bin/sh |
| 2 | |
| 3 | # Guess values for system-dependent variables and create Makefiles. |
| 4 | # Generated automatically using autoconf version 2.13 |
| 5 | # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. |
| 6 | # |
| 7 | # This configure script is free software; the Free Software Foundation |
| 8 | # gives unlimited permission to copy, distribute and modify it. |
| 9 | |
| 10 | # Defaults: |
| 11 | ac_help= |
| 12 | ac_default_prefix=/usr/local |
| 13 | # Any additions from configure.in: |
| 14 | ac_help="$ac_help |
| 15 | --with-blt=DIR Install BLT scripts in DIR" |
| 16 | ac_help="$ac_help |
| 17 | --with-tcl=DIR Find tclConfig.sh in DIR" |
| 18 | ac_help="$ac_help |
| 19 | --with-tk=DIR Find tkConfig.sh in DIR" |
| 20 | ac_help="$ac_help |
| 21 | --with-tclincls=DIR Find tcl.h in DIR" |
| 22 | ac_help="$ac_help |
| 23 | --with-tkincls=DIR Find tk.h in DIR" |
| 24 | ac_help="$ac_help |
| 25 | --with-tcllibs=DIR Find Tcl library in DIR" |
| 26 | ac_help="$ac_help |
| 27 | --with-tklibs=DIR Find Tk library in DIR" |
| 28 | ac_help="$ac_help |
| 29 | --enable-jpeg=DIR Find JPEG headers and libraries in DIR" |
| 30 | ac_help="$ac_help |
| 31 | --enable-cygwin Use cygwin Tcl/Tk libraries. Requires cygwin1.dll" |
| 32 | ac_help="$ac_help |
| 33 | --with-cc=CC Set C compiler to CC" |
| 34 | ac_help="$ac_help |
| 35 | --with-cflags=FLAGS Set compiler flags to FLAGS" |
| 36 | ac_help="$ac_help |
| 37 | --with-gnu-ld Use GNU linker" |
| 38 | ac_help="$ac_help |
| 39 | --with-x use the X Window System" |
| 40 | |
| 41 | # Initialize some variables set by options. |
| 42 | # The variables have the same names as the options, with |
| 43 | # dashes changed to underlines. |
| 44 | build=NONE |
| 45 | cache_file=./config.cache |
| 46 | exec_prefix=NONE |
| 47 | host=NONE |
| 48 | no_create= |
| 49 | nonopt=NONE |
| 50 | no_recursion= |
| 51 | prefix=NONE |
| 52 | program_prefix=NONE |
| 53 | program_suffix=NONE |
| 54 | program_transform_name=s,x,x, |
| 55 | silent= |
| 56 | site= |
| 57 | srcdir= |
| 58 | target=NONE |
| 59 | verbose= |
| 60 | x_includes=NONE |
| 61 | x_libraries=NONE |
| 62 | bindir='${exec_prefix}/bin' |
| 63 | sbindir='${exec_prefix}/sbin' |
| 64 | libexecdir='${exec_prefix}/libexec' |
| 65 | datadir='${prefix}/share' |
| 66 | sysconfdir='${prefix}/etc' |
| 67 | sharedstatedir='${prefix}/com' |
| 68 | localstatedir='${prefix}/var' |
| 69 | libdir='${exec_prefix}/lib' |
| 70 | includedir='${prefix}/include' |
| 71 | oldincludedir='/usr/include' |
| 72 | infodir='${prefix}/info' |
| 73 | mandir='${prefix}/man' |
| 74 | |
| 75 | # Initialize some other variables. |
| 76 | subdirs= |
| 77 | MFLAGS= MAKEFLAGS= |
| 78 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 79 | # Maximum number of lines to put in a shell here document. |
| 80 | ac_max_here_lines=12 |
| 81 | |
| 82 | ac_prev= |
| 83 | for ac_option |
| 84 | do |
| 85 | |
| 86 | # If the previous option needs an argument, assign it. |
| 87 | if test -n "$ac_prev"; then |
| 88 | eval "$ac_prev=\$ac_option" |
| 89 | ac_prev= |
| 90 | continue |
| 91 | fi |
| 92 | |
| 93 | case "$ac_option" in |
| 94 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; |
| 95 | *) ac_optarg= ;; |
| 96 | esac |
| 97 | |
| 98 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 99 | |
| 100 | case "$ac_option" in |
| 101 | |
| 102 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 103 | ac_prev=bindir ;; |
| 104 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 105 | bindir="$ac_optarg" ;; |
| 106 | |
| 107 | -build | --build | --buil | --bui | --bu) |
| 108 | ac_prev=build ;; |
| 109 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
| 110 | build="$ac_optarg" ;; |
| 111 | |
| 112 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 113 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 114 | ac_prev=cache_file ;; |
| 115 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 116 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 117 | cache_file="$ac_optarg" ;; |
| 118 | |
| 119 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
| 120 | ac_prev=datadir ;; |
| 121 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
| 122 | | --da=*) |
| 123 | datadir="$ac_optarg" ;; |
| 124 | |
| 125 | -disable-* | --disable-*) |
| 126 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` |
| 127 | # Reject names that are not valid shell variable names. |
| 128 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then |
| 129 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } |
| 130 | fi |
| 131 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` |
| 132 | eval "enable_${ac_feature}=no" ;; |
| 133 | |
| 134 | -enable-* | --enable-*) |
| 135 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` |
| 136 | # Reject names that are not valid shell variable names. |
| 137 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then |
| 138 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } |
| 139 | fi |
| 140 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` |
| 141 | case "$ac_option" in |
| 142 | *=*) ;; |
| 143 | *) ac_optarg=yes ;; |
| 144 | esac |
| 145 | eval "enable_${ac_feature}='$ac_optarg'" ;; |
| 146 | |
| 147 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 148 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 149 | | --exec | --exe | --ex) |
| 150 | ac_prev=exec_prefix ;; |
| 151 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 152 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 153 | | --exec=* | --exe=* | --ex=*) |
| 154 | exec_prefix="$ac_optarg" ;; |
| 155 | |
| 156 | -gas | --gas | --ga | --g) |
| 157 | # Obsolete; use --with-gas. |
| 158 | with_gas=yes ;; |
| 159 | |
| 160 | -help | --help | --hel | --he) |
| 161 | # Omit some internal or obsolete options to make the list less imposing. |
| 162 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 163 | cat << EOF |
| 164 | Usage: configure [options] [host] |
| 165 | Options: [defaults in brackets after descriptions] |
| 166 | Configuration: |
| 167 | --cache-file=FILE cache test results in FILE |
| 168 | --help print this message |
| 169 | --no-create do not create output files |
| 170 | --quiet, --silent do not print \`checking...' messages |
| 171 | --version print the version of autoconf that created configure |
| 172 | Directory and file names: |
| 173 | --prefix=PREFIX install architecture-independent files in PREFIX |
| 174 | [$ac_default_prefix] |
| 175 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
| 176 | [same as prefix] |
| 177 | --bindir=DIR user executables in DIR [EPREFIX/bin] |
| 178 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] |
| 179 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec] |
| 180 | --datadir=DIR read-only architecture-independent data in DIR |
| 181 | [PREFIX/share] |
| 182 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] |
| 183 | --sharedstatedir=DIR modifiable architecture-independent data in DIR |
| 184 | [PREFIX/com] |
| 185 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] |
| 186 | --libdir=DIR object code libraries in DIR [EPREFIX/lib] |
| 187 | --includedir=DIR C header files in DIR [PREFIX/include] |
| 188 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] |
| 189 | --infodir=DIR info documentation in DIR [PREFIX/info] |
| 190 | --mandir=DIR man documentation in DIR [PREFIX/man] |
| 191 | --srcdir=DIR find the sources in DIR [configure dir or ..] |
| 192 | --program-prefix=PREFIX prepend PREFIX to installed program names |
| 193 | --program-suffix=SUFFIX append SUFFIX to installed program names |
| 194 | --program-transform-name=PROGRAM |
| 195 | run sed PROGRAM on installed program names |
| 196 | EOF |
| 197 | cat << EOF |
| 198 | Host type: |
| 199 | --build=BUILD configure for building on BUILD [BUILD=HOST] |
| 200 | --host=HOST configure for HOST [guessed] |
| 201 | --target=TARGET configure for TARGET [TARGET=HOST] |
| 202 | Features and packages: |
| 203 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 204 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
| 205 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 206 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
| 207 | --x-includes=DIR X include files are in DIR |
| 208 | --x-libraries=DIR X library files are in DIR |
| 209 | EOF |
| 210 | if test -n "$ac_help"; then |
| 211 | echo "--enable and --with options recognized:$ac_help" |
| 212 | fi |
| 213 | exit 0 ;; |
| 214 | |
| 215 | -host | --host | --hos | --ho) |
| 216 | ac_prev=host ;; |
| 217 | -host=* | --host=* | --hos=* | --ho=*) |
| 218 | host="$ac_optarg" ;; |
| 219 | |
| 220 | -includedir | --includedir | --includedi | --included | --include \ |
| 221 | | --includ | --inclu | --incl | --inc) |
| 222 | ac_prev=includedir ;; |
| 223 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 224 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
| 225 | includedir="$ac_optarg" ;; |
| 226 | |
| 227 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 228 | ac_prev=infodir ;; |
| 229 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 230 | infodir="$ac_optarg" ;; |
| 231 | |
| 232 | -libdir | --libdir | --libdi | --libd) |
| 233 | ac_prev=libdir ;; |
| 234 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 235 | libdir="$ac_optarg" ;; |
| 236 | |
| 237 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 238 | | --libexe | --libex | --libe) |
| 239 | ac_prev=libexecdir ;; |
| 240 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 241 | | --libexe=* | --libex=* | --libe=*) |
| 242 | libexecdir="$ac_optarg" ;; |
| 243 | |
| 244 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
| 245 | | --localstate | --localstat | --localsta | --localst \ |
| 246 | | --locals | --local | --loca | --loc | --lo) |
| 247 | ac_prev=localstatedir ;; |
| 248 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
| 249 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
| 250 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
| 251 | localstatedir="$ac_optarg" ;; |
| 252 | |
| 253 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 254 | ac_prev=mandir ;; |
| 255 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 256 | mandir="$ac_optarg" ;; |
| 257 | |
| 258 | -nfp | --nfp | --nf) |
| 259 | # Obsolete; use --without-fp. |
| 260 | with_fp=no ;; |
| 261 | |
| 262 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 263 | | --no-cr | --no-c) |
| 264 | no_create=yes ;; |
| 265 | |
| 266 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 267 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 268 | no_recursion=yes ;; |
| 269 | |
| 270 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 271 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 272 | | --oldin | --oldi | --old | --ol | --o) |
| 273 | ac_prev=oldincludedir ;; |
| 274 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 275 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 276 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 277 | oldincludedir="$ac_optarg" ;; |
| 278 | |
| 279 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 280 | ac_prev=prefix ;; |
| 281 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 282 | prefix="$ac_optarg" ;; |
| 283 | |
| 284 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 285 | | --program-pre | --program-pr | --program-p) |
| 286 | ac_prev=program_prefix ;; |
| 287 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 288 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 289 | program_prefix="$ac_optarg" ;; |
| 290 | |
| 291 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 292 | | --program-suf | --program-su | --program-s) |
| 293 | ac_prev=program_suffix ;; |
| 294 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 295 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 296 | program_suffix="$ac_optarg" ;; |
| 297 | |
| 298 | -program-transform-name | --program-transform-name \ |
| 299 | | --program-transform-nam | --program-transform-na \ |
| 300 | | --program-transform-n | --program-transform- \ |
| 301 | | --program-transform | --program-transfor \ |
| 302 | | --program-transfo | --program-transf \ |
| 303 | | --program-trans | --program-tran \ |
| 304 | | --progr-tra | --program-tr | --program-t) |
| 305 | ac_prev=program_transform_name ;; |
| 306 | -program-transform-name=* | --program-transform-name=* \ |
| 307 | | --program-transform-nam=* | --program-transform-na=* \ |
| 308 | | --program-transform-n=* | --program-transform-=* \ |
| 309 | | --program-transform=* | --program-transfor=* \ |
| 310 | | --program-transfo=* | --program-transf=* \ |
| 311 | | --program-trans=* | --program-tran=* \ |
| 312 | | --progr-tra=* | --program-tr=* | --program-t=*) |
| 313 | program_transform_name="$ac_optarg" ;; |
| 314 | |
| 315 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 316 | | -silent | --silent | --silen | --sile | --sil) |
| 317 | silent=yes ;; |
| 318 | |
| 319 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 320 | ac_prev=sbindir ;; |
| 321 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 322 | | --sbi=* | --sb=*) |
| 323 | sbindir="$ac_optarg" ;; |
| 324 | |
| 325 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 326 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 327 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 328 | | --sha | --sh) |
| 329 | ac_prev=sharedstatedir ;; |
| 330 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 331 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 332 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 333 | | --sha=* | --sh=*) |
| 334 | sharedstatedir="$ac_optarg" ;; |
| 335 | |
| 336 | -site | --site | --sit) |
| 337 | ac_prev=site ;; |
| 338 | -site=* | --site=* | --sit=*) |
| 339 | site="$ac_optarg" ;; |
| 340 | |
| 341 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 342 | ac_prev=srcdir ;; |
| 343 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 344 | srcdir="$ac_optarg" ;; |
| 345 | |
| 346 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 347 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 348 | ac_prev=sysconfdir ;; |
| 349 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 350 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 351 | sysconfdir="$ac_optarg" ;; |
| 352 | |
| 353 | -target | --target | --targe | --targ | --tar | --ta | --t) |
| 354 | ac_prev=target ;; |
| 355 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 356 | target="$ac_optarg" ;; |
| 357 | |
| 358 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 359 | verbose=yes ;; |
| 360 | |
| 361 | -version | --version | --versio | --versi | --vers) |
| 362 | echo "configure generated by autoconf version 2.13" |
| 363 | exit 0 ;; |
| 364 | |
| 365 | -with-* | --with-*) |
| 366 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` |
| 367 | # Reject names that are not valid shell variable names. |
| 368 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then |
| 369 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } |
| 370 | fi |
| 371 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
| 372 | case "$ac_option" in |
| 373 | *=*) ;; |
| 374 | *) ac_optarg=yes ;; |
| 375 | esac |
| 376 | eval "with_${ac_package}='$ac_optarg'" ;; |
| 377 | |
| 378 | -without-* | --without-*) |
| 379 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` |
| 380 | # Reject names that are not valid shell variable names. |
| 381 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then |
| 382 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } |
| 383 | fi |
| 384 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
| 385 | eval "with_${ac_package}=no" ;; |
| 386 | |
| 387 | --x) |
| 388 | # Obsolete; use --with-x. |
| 389 | with_x=yes ;; |
| 390 | |
| 391 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 392 | | --x-incl | --x-inc | --x-in | --x-i) |
| 393 | ac_prev=x_includes ;; |
| 394 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 395 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 396 | x_includes="$ac_optarg" ;; |
| 397 | |
| 398 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 399 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 400 | ac_prev=x_libraries ;; |
| 401 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 402 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 403 | x_libraries="$ac_optarg" ;; |
| 404 | |
| 405 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } |
| 406 | ;; |
| 407 | |
| 408 | *) |
| 409 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then |
| 410 | echo "configure: warning: $ac_option: invalid host type" 1>&2 |
| 411 | fi |
| 412 | if test "x$nonopt" != xNONE; then |
| 413 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } |
| 414 | fi |
| 415 | nonopt="$ac_option" |
| 416 | ;; |
| 417 | |
| 418 | esac |
| 419 | done |
| 420 | |
| 421 | if test -n "$ac_prev"; then |
| 422 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } |
| 423 | fi |
| 424 | |
| 425 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
| 426 | |
| 427 | # File descriptor usage: |
| 428 | # 0 standard input |
| 429 | # 1 file creation |
| 430 | # 2 errors and warnings |
| 431 | # 3 some systems may open it to /dev/tty |
| 432 | # 4 used on the Kubota Titan |
| 433 | # 6 checking for... messages and results |
| 434 | # 5 compiler messages saved in config.log |
| 435 | if test "$silent" = yes; then |
| 436 | exec 6>/dev/null |
| 437 | else |
| 438 | exec 6>&1 |
| 439 | fi |
| 440 | exec 5>./config.log |
| 441 | |
| 442 | echo "\ |
| 443 | This file contains any messages produced by compilers while |
| 444 | running configure, to aid debugging if configure makes a mistake. |
| 445 | " 1>&5 |
| 446 | |
| 447 | # Strip out --no-create and --no-recursion so they do not pile up. |
| 448 | # Also quote any args containing shell metacharacters. |
| 449 | ac_configure_args= |
| 450 | for ac_arg |
| 451 | do |
| 452 | case "$ac_arg" in |
| 453 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 454 | | --no-cr | --no-c) ;; |
| 455 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 456 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; |
| 457 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) |
| 458 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
| 459 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; |
| 460 | esac |
| 461 | done |
| 462 | |
| 463 | # NLS nuisances. |
| 464 | # Only set these to C if already set. These must not be set unconditionally |
| 465 | # because not all systems understand e.g. LANG=C (notably SCO). |
| 466 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! |
| 467 | # Non-C LC_CTYPE values break the ctype check. |
| 468 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi |
| 469 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi |
| 470 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi |
| 471 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi |
| 472 | |
| 473 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
| 474 | rm -rf conftest* confdefs.h |
| 475 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
| 476 | echo > confdefs.h |
| 477 | |
| 478 | # A filename unique to this package, relative to the directory that |
| 479 | # configure is in, which we can look for to find out if srcdir is correct. |
| 480 | ac_unique_file=generic/bltInit.c |
| 481 | |
| 482 | # Find the source files, if location was not specified. |
| 483 | if test -z "$srcdir"; then |
| 484 | ac_srcdir_defaulted=yes |
| 485 | # Try the directory containing this script, then its parent. |
| 486 | ac_prog=$0 |
| 487 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` |
| 488 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. |
| 489 | srcdir=$ac_confdir |
| 490 | if test ! -r $srcdir/$ac_unique_file; then |
| 491 | srcdir=.. |
| 492 | fi |
| 493 | else |
| 494 | ac_srcdir_defaulted=no |
| 495 | fi |
| 496 | if test ! -r $srcdir/$ac_unique_file; then |
| 497 | if test "$ac_srcdir_defaulted" = yes; then |
| 498 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } |
| 499 | else |
| 500 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } |
| 501 | fi |
| 502 | fi |
| 503 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` |
| 504 | |
| 505 | # Prefer explicitly selected file to automatically selected ones. |
| 506 | if test -z "$CONFIG_SITE"; then |
| 507 | if test "x$prefix" != xNONE; then |
| 508 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
| 509 | else |
| 510 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
| 511 | fi |
| 512 | fi |
| 513 | for ac_site_file in $CONFIG_SITE; do |
| 514 | if test -r "$ac_site_file"; then |
| 515 | echo "loading site script $ac_site_file" |
| 516 | . "$ac_site_file" |
| 517 | fi |
| 518 | done |
| 519 | |
| 520 | |
| 521 | ac_ext=c |
| 522 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
| 523 | ac_cpp='$CPP $CPPFLAGS' |
| 524 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
| 525 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
| 526 | cross_compiling=$ac_cv_prog_cc_cross |
| 527 | |
| 528 | ac_exeext= |
| 529 | ac_objext=o |
| 530 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then |
| 531 | # Stardent Vistra SVR4 grep lacks -e, says [email protected]. |
| 532 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then |
| 533 | ac_n= ac_c=' |
| 534 | ' ac_t=' ' |
| 535 | else |
| 536 | ac_n=-n ac_c= ac_t= |
| 537 | fi |
| 538 | else |
| 539 | ac_n= ac_c='\c' ac_t= |
| 540 | fi |
| 541 | |
| 542 | |
| 543 | |
| 544 | ac_aux_dir= |
| 545 | for ac_dir in cf $srcdir/cf; do |
| 546 | if test -f $ac_dir/install-sh; then |
| 547 | ac_aux_dir=$ac_dir |
| 548 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 549 | break |
| 550 | elif test -f $ac_dir/install.sh; then |
| 551 | ac_aux_dir=$ac_dir |
| 552 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 553 | break |
| 554 | fi |
| 555 | done |
| 556 | if test -z "$ac_aux_dir"; then |
| 557 | { echo "configure: error: can not find install-sh or install.sh in cf $srcdir/cf" 1>&2; exit 1; } |
| 558 | fi |
| 559 | ac_config_guess=$ac_aux_dir/config.guess |
| 560 | ac_config_sub=$ac_aux_dir/config.sub |
| 561 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. |
| 562 | |
| 563 | |
| 564 | |
| 565 | # ----------------------------------------------------------------------- |
| 566 | # |
| 567 | # Handle command line options |
| 568 | # |
| 569 | # --with-tcl=DIR |
| 570 | # --with-tk=DIR |
| 571 | # --with-cc=CC |
| 572 | # --with-cflags=flags This is probably for me only |
| 573 | # --with-gnu-ld |
| 574 | # |
| 575 | # ----------------------------------------------------------------------- |
| 576 | |
| 577 | INC_SPECS="" |
| 578 | LIB_SPECS="" |
| 579 | TCL_ONLY_LIB_SPECS="" |
| 580 | loader_run_path="" |
| 581 | DEFINES="" |
| 582 | |
| 583 | blt_with_tcl="" |
| 584 | blt_with_tk="" |
| 585 | blt_enable_jpeg="no" |
| 586 | blt_enable_cygwin="yes" |
| 587 | blt_with_cc="" |
| 588 | blt_with_cflags="$CFLAGS" |
| 589 | blt_with_gnu_ld="no" |
| 590 | blt_with_tcl_includes="" |
| 591 | blt_with_tk_includes="" |
| 592 | blt_with_tcl_libraries="" |
| 593 | blt_with_tk_libraries="" |
| 594 | blt_with_scriptdir="" |
| 595 | |
| 596 | # Check whether --with-blt or --without-blt was given. |
| 597 | if test "${with_blt+set}" = set; then |
| 598 | withval="$with_blt" |
| 599 | blt_with_scriptdir=$withval |
| 600 | fi |
| 601 | |
| 602 | # Check whether --with-tcl or --without-tcl was given. |
| 603 | if test "${with_tcl+set}" = set; then |
| 604 | withval="$with_tcl" |
| 605 | blt_with_tcl=$withval |
| 606 | fi |
| 607 | |
| 608 | # Check whether --with-tk or --without-tk was given. |
| 609 | if test "${with_tk+set}" = set; then |
| 610 | withval="$with_tk" |
| 611 | blt_with_tk=$withval |
| 612 | fi |
| 613 | |
| 614 | # Check whether --with-tclincls or --without-tclincls was given. |
| 615 | if test "${with_tclincls+set}" = set; then |
| 616 | withval="$with_tclincls" |
| 617 | blt_with_tcl_includes=$withval |
| 618 | fi |
| 619 | |
| 620 | # Check whether --with-tkincls or --without-tkincls was given. |
| 621 | if test "${with_tkincls+set}" = set; then |
| 622 | withval="$with_tkincls" |
| 623 | blt_with_tk_includes=$withval |
| 624 | fi |
| 625 | |
| 626 | # Check whether --with-tcllibs or --without-tcllibs was given. |
| 627 | if test "${with_tcllibs+set}" = set; then |
| 628 | withval="$with_tcllibs" |
| 629 | blt_with_tcl_libraries=$withval |
| 630 | fi |
| 631 | |
| 632 | # Check whether --with-tklibs or --without-tklibs was given. |
| 633 | if test "${with_tklibs+set}" = set; then |
| 634 | withval="$with_tklibs" |
| 635 | blt_with_tk_libraries=$withval |
| 636 | fi |
| 637 | |
| 638 | # Check whether --enable-jpeg or --disable-jpeg was given. |
| 639 | if test "${enable_jpeg+set}" = set; then |
| 640 | enableval="$enable_jpeg" |
| 641 | |
| 642 | unset ac_cv_header_jpeglib_h |
| 643 | unset ac_cv_lib_jpeg ac_cv_lib_jpeg_jpeg_read_header |
| 644 | blt_enable_jpeg=$enableval |
| 645 | fi |
| 646 | |
| 647 | # Check whether --enable-cygwin or --disable-cygwin was given. |
| 648 | if test "${enable_cygwin+set}" = set; then |
| 649 | enableval="$enable_cygwin" |
| 650 | |
| 651 | blt_enable_cygwin=$enableval |
| 652 | fi |
| 653 | |
| 654 | # Check whether --with-cc or --without-cc was given. |
| 655 | if test "${with_cc+set}" = set; then |
| 656 | withval="$with_cc" |
| 657 | |
| 658 | blt_with_cc=$with_cc |
| 659 | unset ac_cv_prog_CC |
| 660 | unset ac_cv_prog_CPP |
| 661 | fi |
| 662 | |
| 663 | # Check whether --with-cflags or --without-cflags was given. |
| 664 | if test "${with_cflags+set}" = set; then |
| 665 | withval="$with_cflags" |
| 666 | blt_with_cflags="$with_cflags" |
| 667 | fi |
| 668 | |
| 669 | # Check whether --with-gnu_ld or --without-gnu_ld was given. |
| 670 | if test "${with_gnu_ld+set}" = set; then |
| 671 | withval="$with_gnu_ld" |
| 672 | blt_with_gnu_ld="yes" |
| 673 | fi |
| 674 | |
| 675 | |
| 676 | |
| 677 | # Do some error checking and defaulting for the host and target type. |
| 678 | # The inputs are: |
| 679 | # configure --host=HOST --target=TARGET --build=BUILD NONOPT |
| 680 | # |
| 681 | # The rules are: |
| 682 | # 1. You are not allowed to specify --host, --target, and nonopt at the |
| 683 | # same time. |
| 684 | # 2. Host defaults to nonopt. |
| 685 | # 3. If nonopt is not specified, then host defaults to the current host, |
| 686 | # as determined by config.guess. |
| 687 | # 4. Target and build default to nonopt. |
| 688 | # 5. If nonopt is not specified, then target and build default to host. |
| 689 | |
| 690 | # The aliases save the names the user supplied, while $host etc. |
| 691 | # will get canonicalized. |
| 692 | case $host---$target---$nonopt in |
| 693 | NONE---*---* | *---NONE---* | *---*---NONE) ;; |
| 694 | *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;; |
| 695 | esac |
| 696 | |
| 697 | |
| 698 | # Make sure we can run config.sub. |
| 699 | if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : |
| 700 | else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } |
| 701 | fi |
| 702 | |
| 703 | echo $ac_n "checking host system type""... $ac_c" 1>&6 |
| 704 | echo "configure:705: checking host system type" >&5 |
| 705 | |
| 706 | host_alias=$host |
| 707 | case "$host_alias" in |
| 708 | NONE) |
| 709 | case $nonopt in |
| 710 | NONE) |
| 711 | if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : |
| 712 | else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } |
| 713 | fi ;; |
| 714 | *) host_alias=$nonopt ;; |
| 715 | esac ;; |
| 716 | esac |
| 717 | |
| 718 | host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` |
| 719 | host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
| 720 | host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
| 721 | host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
| 722 | echo "$ac_t""$host" 1>&6 |
| 723 | |
| 724 | echo $ac_n "checking target system type""... $ac_c" 1>&6 |
| 725 | echo "configure:726: checking target system type" >&5 |
| 726 | |
| 727 | target_alias=$target |
| 728 | case "$target_alias" in |
| 729 | NONE) |
| 730 | case $nonopt in |
| 731 | NONE) target_alias=$host_alias ;; |
| 732 | *) target_alias=$nonopt ;; |
| 733 | esac ;; |
| 734 | esac |
| 735 | |
| 736 | target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias` |
| 737 | target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
| 738 | target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
| 739 | target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
| 740 | echo "$ac_t""$target" 1>&6 |
| 741 | |
| 742 | echo $ac_n "checking build system type""... $ac_c" 1>&6 |
| 743 | echo "configure:744: checking build system type" >&5 |
| 744 | |
| 745 | build_alias=$build |
| 746 | case "$build_alias" in |
| 747 | NONE) |
| 748 | case $nonopt in |
| 749 | NONE) build_alias=$host_alias ;; |
| 750 | *) build_alias=$nonopt ;; |
| 751 | esac ;; |
| 752 | esac |
| 753 | |
| 754 | build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` |
| 755 | build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
| 756 | build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
| 757 | build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
| 758 | echo "$ac_t""$build" 1>&6 |
| 759 | |
| 760 | test "$host_alias" != "$target_alias" && |
| 761 | test "$program_prefix$program_suffix$program_transform_name" = \ |
| 762 | NONENONEs,x,x, && |
| 763 | program_prefix=${target_alias}- |
| 764 | |
| 765 | if test "x$prefix" = xNONE; then |
| 766 | echo $ac_n "checking for prefix by $ac_c" 1>&6 |
| 767 | # Extract the first word of "wish", so it can be a program name with args. |
| 768 | set dummy wish; ac_word=$2 |
| 769 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| 770 | echo "configure:771: checking for $ac_word" >&5 |
| 771 | if eval "test \"`echo '$''{'ac_cv_path_WISH'+set}'`\" = set"; then |
| 772 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 773 | else |
| 774 | case "$WISH" in |
| 775 | /*) |
| 776 | ac_cv_path_WISH="$WISH" # Let the user override the test with a path. |
| 777 | ;; |
| 778 | ?:/*) |
| 779 | ac_cv_path_WISH="$WISH" # Let the user override the test with a dos path. |
| 780 | ;; |
| 781 | *) |
| 782 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 783 | ac_dummy="$PATH" |
| 784 | for ac_dir in $ac_dummy; do |
| 785 | test -z "$ac_dir" && ac_dir=. |
| 786 | if test -f $ac_dir/$ac_word; then |
| 787 | ac_cv_path_WISH="$ac_dir/$ac_word" |
| 788 | break |
| 789 | fi |
| 790 | done |
| 791 | IFS="$ac_save_ifs" |
| 792 | ;; |
| 793 | esac |
| 794 | fi |
| 795 | WISH="$ac_cv_path_WISH" |
| 796 | if test -n "$WISH"; then |
| 797 | echo "$ac_t""$WISH" 1>&6 |
| 798 | else |
| 799 | echo "$ac_t""no" 1>&6 |
| 800 | fi |
| 801 | |
| 802 | if test -n "$ac_cv_path_WISH"; then |
| 803 | prefix=`echo $ac_cv_path_WISH|sed 's%/[^/][^/]*//*[^/][^/]*$%%'` |
| 804 | fi |
| 805 | fi |
| 806 | |
| 807 | |
| 808 | # ----------------------------------------------------------------------- |
| 809 | # |
| 810 | # Set a variable containing current working directory if /bin/sh |
| 811 | # doesn't do it already. |
| 812 | # |
| 813 | # ----------------------------------------------------------------------- |
| 814 | |
| 815 | PWD=`pwd` |
| 816 | |
| 817 | # ----------------------------------------------------------------------- |
| 818 | # |
| 819 | # C compiler and debugging flags |
| 820 | # |
| 821 | # ----------------------------------------------------------------------- |
| 822 | |
| 823 | BLT_ENV_CC=$CC |
| 824 | |
| 825 | # |
| 826 | # CC search order |
| 827 | # |
| 828 | # 1. command line (--with-cc) |
| 829 | # 2. environment variable ($CC) |
| 830 | # 3. cached variable ($blt_cv_prog_cc) |
| 831 | # 4. check for program (AC_PROG_CC) |
| 832 | # 4. default to cc |
| 833 | # |
| 834 | |
| 835 | echo $ac_n "checking which C compiler""... $ac_c" 1>&6 |
| 836 | echo "configure:837: checking which C compiler" >&5 |
| 837 | if test "x${blt_with_cc}" != "x" ; then |
| 838 | CC=${blt_with_cc} |
| 839 | unset ac_cv_prog_CPP |
| 840 | unset ac_cv_prog_CC |
| 841 | elif test "x${BLT_ENV_CC}" != "x" ; then |
| 842 | unset ac_cv_prog_CPP |
| 843 | unset ac_cv_prog_CC |
| 844 | elif test "x${blt_cv_prog_cc}" != "x" ; then |
| 845 | CC=${blt_cv_prog_cc} |
| 846 | unset ac_cv_prog_CC |
| 847 | else |
| 848 | # Extract the first word of "gcc", so it can be a program name with args. |
| 849 | set dummy gcc; ac_word=$2 |
| 850 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| 851 | echo "configure:852: checking for $ac_word" >&5 |
| 852 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
| 853 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 854 | else |
| 855 | if test -n "$CC"; then |
| 856 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 857 | else |
| 858 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 859 | ac_dummy="$PATH" |
| 860 | for ac_dir in $ac_dummy; do |
| 861 | test -z "$ac_dir" && ac_dir=. |
| 862 | if test -f $ac_dir/$ac_word; then |
| 863 | ac_cv_prog_CC="gcc" |
| 864 | break |
| 865 | fi |
| 866 | done |
| 867 | IFS="$ac_save_ifs" |
| 868 | fi |
| 869 | fi |
| 870 | CC="$ac_cv_prog_CC" |
| 871 | if test -n "$CC"; then |
| 872 | echo "$ac_t""$CC" 1>&6 |
| 873 | else |
| 874 | echo "$ac_t""no" 1>&6 |
| 875 | fi |
| 876 | |
| 877 | if test -z "$CC"; then |
| 878 | # Extract the first word of "cc", so it can be a program name with args. |
| 879 | set dummy cc; ac_word=$2 |
| 880 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| 881 | echo "configure:882: checking for $ac_word" >&5 |
| 882 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
| 883 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 884 | else |
| 885 | if test -n "$CC"; then |
| 886 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 887 | else |
| 888 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 889 | ac_prog_rejected=no |
| 890 | ac_dummy="$PATH" |
| 891 | for ac_dir in $ac_dummy; do |
| 892 | test -z "$ac_dir" && ac_dir=. |
| 893 | if test -f $ac_dir/$ac_word; then |
| 894 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then |
| 895 | ac_prog_rejected=yes |
| 896 | continue |
| 897 | fi |
| 898 | ac_cv_prog_CC="cc" |
| 899 | break |
| 900 | fi |
| 901 | done |
| 902 | IFS="$ac_save_ifs" |
| 903 | if test $ac_prog_rejected = yes; then |
| 904 | # We found a bogon in the path, so make sure we never use it. |
| 905 | set dummy $ac_cv_prog_CC |
| 906 | shift |
| 907 | if test $# -gt 0; then |
| 908 | # We chose a different compiler from the bogus one. |
| 909 | # However, it has the same basename, so the bogon will be chosen |
| 910 | # first if we set CC to just the basename; use the full file name. |
| 911 | shift |
| 912 | set dummy "$ac_dir/$ac_word" "$@" |
| 913 | shift |
| 914 | ac_cv_prog_CC="$@" |
| 915 | fi |
| 916 | fi |
| 917 | fi |
| 918 | fi |
| 919 | CC="$ac_cv_prog_CC" |
| 920 | if test -n "$CC"; then |
| 921 | echo "$ac_t""$CC" 1>&6 |
| 922 | else |
| 923 | echo "$ac_t""no" 1>&6 |
| 924 | fi |
| 925 | |
| 926 | if test -z "$CC"; then |
| 927 | case "`uname -s`" in |
| 928 | *win32* | *WIN32*) |
| 929 | # Extract the first word of "cl", so it can be a program name with args. |
| 930 | set dummy cl; ac_word=$2 |
| 931 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| 932 | echo "configure:933: checking for $ac_word" >&5 |
| 933 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
| 934 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 935 | else |
| 936 | if test -n "$CC"; then |
| 937 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 938 | else |
| 939 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 940 | ac_dummy="$PATH" |
| 941 | for ac_dir in $ac_dummy; do |
| 942 | test -z "$ac_dir" && ac_dir=. |
| 943 | if test -f $ac_dir/$ac_word; then |
| 944 | ac_cv_prog_CC="cl" |
| 945 | break |
| 946 | fi |
| 947 | done |
| 948 | IFS="$ac_save_ifs" |
| 949 | fi |
| 950 | fi |
| 951 | CC="$ac_cv_prog_CC" |
| 952 | if test -n "$CC"; then |
| 953 | echo "$ac_t""$CC" 1>&6 |
| 954 | else |
| 955 | echo "$ac_t""no" 1>&6 |
| 956 | fi |
| 957 | ;; |
| 958 | esac |
| 959 | fi |
| 960 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } |
| 961 | fi |
| 962 | |
| 963 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
| 964 | echo "configure:965: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
| 965 | |
| 966 | ac_ext=c |
| 967 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
| 968 | ac_cpp='$CPP $CPPFLAGS' |
| 969 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
| 970 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
| 971 | cross_compiling=$ac_cv_prog_cc_cross |
| 972 | |
| 973 | cat > conftest.$ac_ext << EOF |
| 974 | |
| 975 | #line 976 "configure" |
| 976 | #include "confdefs.h" |
| 977 | |
| 978 | main(){return(0);} |
| 979 | EOF |
| 980 | if { (eval echo configure:981: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 981 | ac_cv_prog_cc_works=yes |
| 982 | # If we can't run a trivial program, we are probably using a cross compiler. |
| 983 | if (./conftest; exit) 2>/dev/null; then |
| 984 | ac_cv_prog_cc_cross=no |
| 985 | else |
| 986 | ac_cv_prog_cc_cross=yes |
| 987 | fi |
| 988 | else |
| 989 | echo "configure: failed program was:" >&5 |
| 990 | cat conftest.$ac_ext >&5 |
| 991 | ac_cv_prog_cc_works=no |
| 992 | fi |
| 993 | rm -fr conftest* |
| 994 | ac_ext=c |
| 995 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
| 996 | ac_cpp='$CPP $CPPFLAGS' |
| 997 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
| 998 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
| 999 | cross_compiling=$ac_cv_prog_cc_cross |
| 1000 | |
| 1001 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 |
| 1002 | if test $ac_cv_prog_cc_works = no; then |
| 1003 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } |
| 1004 | fi |
| 1005 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 |
| 1006 | echo "configure:1007: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
| 1007 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
| 1008 | cross_compiling=$ac_cv_prog_cc_cross |
| 1009 | |
| 1010 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 |
| 1011 | echo "configure:1012: checking whether we are using GNU C" >&5 |
| 1012 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
| 1013 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1014 | else |
| 1015 | cat > conftest.c <<EOF |
| 1016 | #ifdef __GNUC__ |
| 1017 | yes; |
| 1018 | #endif |
| 1019 | EOF |
| 1020 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1021: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
| 1021 | ac_cv_prog_gcc=yes |
| 1022 | else |
| 1023 | ac_cv_prog_gcc=no |
| 1024 | fi |
| 1025 | fi |
| 1026 | |
| 1027 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 |
| 1028 | |
| 1029 | if test $ac_cv_prog_gcc = yes; then |
| 1030 | GCC=yes |
| 1031 | else |
| 1032 | GCC= |
| 1033 | fi |
| 1034 | |
| 1035 | ac_test_CFLAGS="${CFLAGS+set}" |
| 1036 | ac_save_CFLAGS="$CFLAGS" |
| 1037 | CFLAGS= |
| 1038 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 |
| 1039 | echo "configure:1040: checking whether ${CC-cc} accepts -g" >&5 |
| 1040 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
| 1041 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1042 | else |
| 1043 | echo 'void f(){}' > conftest.c |
| 1044 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then |
| 1045 | ac_cv_prog_cc_g=yes |
| 1046 | else |
| 1047 | ac_cv_prog_cc_g=no |
| 1048 | fi |
| 1049 | rm -f conftest* |
| 1050 | |
| 1051 | fi |
| 1052 | |
| 1053 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 |
| 1054 | if test "$ac_test_CFLAGS" = set; then |
| 1055 | CFLAGS="$ac_save_CFLAGS" |
| 1056 | elif test $ac_cv_prog_cc_g = yes; then |
| 1057 | if test "$GCC" = yes; then |
| 1058 | CFLAGS="-g -O2" |
| 1059 | else |
| 1060 | CFLAGS="-g" |
| 1061 | fi |
| 1062 | else |
| 1063 | if test "$GCC" = yes; then |
| 1064 | CFLAGS="-O2" |
| 1065 | else |
| 1066 | CFLAGS= |
| 1067 | fi |
| 1068 | fi |
| 1069 | |
| 1070 | fi |
| 1071 | if test "x${CC}" = "x" ; then |
| 1072 | CC=cc |
| 1073 | fi |
| 1074 | |
| 1075 | case $target in |
| 1076 | *-*-cygwin*|*-*-mingw*) |
| 1077 | if test "${blt_enable_cygwin}" = "no" ; then |
| 1078 | CC="${CC} -mno-cygwin" |
| 1079 | fi |
| 1080 | ;; |
| 1081 | esac |
| 1082 | |
| 1083 | echo "$ac_t""$CC" 1>&6 |
| 1084 | |
| 1085 | unset blt_cv_prog_cc |
| 1086 | if eval "test \"`echo '$''{'blt_cv_prog_cc'+set}'`\" = set"; then |
| 1087 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1088 | else |
| 1089 | blt_cv_prog_cc=$CC |
| 1090 | fi |
| 1091 | |
| 1092 | |
| 1093 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 |
| 1094 | echo "configure:1095: checking how to run the C preprocessor" >&5 |
| 1095 | # On Suns, sometimes $CPP names a directory. |
| 1096 | if test -n "$CPP" && test -d "$CPP"; then |
| 1097 | CPP= |
| 1098 | fi |
| 1099 | if test -z "$CPP"; then |
| 1100 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then |
| 1101 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1102 | else |
| 1103 | # This must be in double quotes, not single quotes, because CPP may get |
| 1104 | # substituted into the Makefile and "${CC-cc}" will confuse make. |
| 1105 | CPP="${CC-cc} -E" |
| 1106 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 1107 | # not just through cpp. |
| 1108 | cat > conftest.$ac_ext <<EOF |
| 1109 | #line 1110 "configure" |
| 1110 | #include "confdefs.h" |
| 1111 | #include <assert.h> |
| 1112 | Syntax Error |
| 1113 | EOF |
| 1114 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 1115 | { (eval echo configure:1116: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 1116 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 1117 | if test -z "$ac_err"; then |
| 1118 | : |
| 1119 | else |
| 1120 | echo "$ac_err" >&5 |
| 1121 | echo "configure: failed program was:" >&5 |
| 1122 | cat conftest.$ac_ext >&5 |
| 1123 | rm -rf conftest* |
| 1124 | CPP="${CC-cc} -E -traditional-cpp" |
| 1125 | cat > conftest.$ac_ext <<EOF |
| 1126 | #line 1127 "configure" |
| 1127 | #include "confdefs.h" |
| 1128 | #include <assert.h> |
| 1129 | Syntax Error |
| 1130 | EOF |
| 1131 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 1132 | { (eval echo configure:1133: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 1133 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 1134 | if test -z "$ac_err"; then |
| 1135 | : |
| 1136 | else |
| 1137 | echo "$ac_err" >&5 |
| 1138 | echo "configure: failed program was:" >&5 |
| 1139 | cat conftest.$ac_ext >&5 |
| 1140 | rm -rf conftest* |
| 1141 | CPP="${CC-cc} -nologo -E" |
| 1142 | cat > conftest.$ac_ext <<EOF |
| 1143 | #line 1144 "configure" |
| 1144 | #include "confdefs.h" |
| 1145 | #include <assert.h> |
| 1146 | Syntax Error |
| 1147 | EOF |
| 1148 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 1149 | { (eval echo configure:1150: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 1150 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 1151 | if test -z "$ac_err"; then |
| 1152 | : |
| 1153 | else |
| 1154 | echo "$ac_err" >&5 |
| 1155 | echo "configure: failed program was:" >&5 |
| 1156 | cat conftest.$ac_ext >&5 |
| 1157 | rm -rf conftest* |
| 1158 | CPP=/lib/cpp |
| 1159 | fi |
| 1160 | rm -f conftest* |
| 1161 | fi |
| 1162 | rm -f conftest* |
| 1163 | fi |
| 1164 | rm -f conftest* |
| 1165 | ac_cv_prog_CPP="$CPP" |
| 1166 | fi |
| 1167 | CPP="$ac_cv_prog_CPP" |
| 1168 | else |
| 1169 | ac_cv_prog_CPP="$CPP" |
| 1170 | fi |
| 1171 | echo "$ac_t""$CPP" 1>&6 |
| 1172 | |
| 1173 | if test "x${GCC}" != "x" ; then |
| 1174 | blt_have_gcc="yes" |
| 1175 | else |
| 1176 | echo $ac_n "checking if C compiler is really gcc""... $ac_c" 1>&6 |
| 1177 | echo "configure:1178: checking if C compiler is really gcc" >&5 |
| 1178 | cat > conftest.$ac_ext <<EOF |
| 1179 | #line 1180 "configure" |
| 1180 | #include "confdefs.h" |
| 1181 | |
| 1182 | #ifdef __GNUC__ |
| 1183 | _cc_is_gcc_ |
| 1184 | #endif |
| 1185 | |
| 1186 | EOF |
| 1187 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 1188 | egrep "_cc_is_gcc_" >/dev/null 2>&1; then |
| 1189 | rm -rf conftest* |
| 1190 | blt_have_gcc=yes |
| 1191 | else |
| 1192 | rm -rf conftest* |
| 1193 | blt_have_gcc=no |
| 1194 | fi |
| 1195 | rm -f conftest* |
| 1196 | |
| 1197 | echo "$ac_t""$blt_have_gcc" 1>&6 |
| 1198 | fi |
| 1199 | |
| 1200 | # |
| 1201 | # CFLAGS search order |
| 1202 | # |
| 1203 | # 1. command line (--with-cflags) |
| 1204 | # 2. cached variable ($blt_cv_prog_cflags) |
| 1205 | # 3. set to "-O6" if using gcc ($blt_have_gcc) |
| 1206 | # 4. otherwise, default to "-O" |
| 1207 | # |
| 1208 | echo $ac_n "checking default compiler flags""... $ac_c" 1>&6 |
| 1209 | echo "configure:1210: checking default compiler flags" >&5 |
| 1210 | if test "x${blt_with_cflags}" != "x" ; then |
| 1211 | CFLAGS=${blt_with_cflags} |
| 1212 | elif test "x${blt_cv_prog_cflags}" != "x" ; then |
| 1213 | CFLAGS=${blt_cv_prog_cflags} |
| 1214 | elif test "${blt_have_gcc}" = "yes" ; then |
| 1215 | CFLAGS=-O6 |
| 1216 | else |
| 1217 | CFLAGS=-O |
| 1218 | fi |
| 1219 | echo "$ac_t""$CFLAGS" 1>&6 |
| 1220 | unset blt_cv_prog_cflags |
| 1221 | if eval "test \"`echo '$''{'blt_cv_prog_cflags'+set}'`\" = set"; then |
| 1222 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1223 | else |
| 1224 | blt_cv_prog_cflags=$CFLAGS |
| 1225 | fi |
| 1226 | |
| 1227 | |
| 1228 | |
| 1229 | GCCFLAGS="" |
| 1230 | if test "${blt_have_gcc}" = "yes" ; then |
| 1231 | GCCFLAGS="-Wall" |
| 1232 | if test "${CFLAGS}" = "-g" ; then |
| 1233 | GCCFLAGS="-Wshadow -Winline -Wpointer-arith ${GCCFLAGS}" |
| 1234 | fi |
| 1235 | fi |
| 1236 | |
| 1237 | |
| 1238 | echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6 |
| 1239 | echo "configure:1240: checking for Cygwin environment" >&5 |
| 1240 | if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then |
| 1241 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1242 | else |
| 1243 | cat > conftest.$ac_ext <<EOF |
| 1244 | #line 1245 "configure" |
| 1245 | #include "confdefs.h" |
| 1246 | |
| 1247 | int main() { |
| 1248 | |
| 1249 | #ifndef __CYGWIN__ |
| 1250 | #define __CYGWIN__ __CYGWIN32__ |
| 1251 | #endif |
| 1252 | return __CYGWIN__; |
| 1253 | ; return 0; } |
| 1254 | EOF |
| 1255 | if { (eval echo configure:1256: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| 1256 | rm -rf conftest* |
| 1257 | ac_cv_cygwin=yes |
| 1258 | else |
| 1259 | echo "configure: failed program was:" >&5 |
| 1260 | cat conftest.$ac_ext >&5 |
| 1261 | rm -rf conftest* |
| 1262 | ac_cv_cygwin=no |
| 1263 | fi |
| 1264 | rm -f conftest* |
| 1265 | rm -f conftest* |
| 1266 | fi |
| 1267 | |
| 1268 | echo "$ac_t""$ac_cv_cygwin" 1>&6 |
| 1269 | CYGWIN= |
| 1270 | test "$ac_cv_cygwin" = yes && CYGWIN=yes |
| 1271 | |
| 1272 | blt_lib_prefix="lib" |
| 1273 | case $target in |
| 1274 | *-*-cygwin*|*-*-mingw*) |
| 1275 | blt_platform="win" |
| 1276 | if test "$ac_cv_cygwin" = "yes" ; then |
| 1277 | blt_lib_prefix="cyg" |
| 1278 | else |
| 1279 | blt_lib_prefix="" |
| 1280 | fi |
| 1281 | ;; |
| 1282 | *-*-macosx) |
| 1283 | blt_platform="macosx" |
| 1284 | ;; |
| 1285 | *) |
| 1286 | blt_platform="unix" |
| 1287 | ;; |
| 1288 | esac |
| 1289 | |
| 1290 | |
| 1291 | # ----------------------------------------------------------------------- |
| 1292 | # |
| 1293 | # Programs: Check for existence of ranlib and install programs |
| 1294 | # |
| 1295 | # ----------------------------------------------------------------------- |
| 1296 | for ac_prog in mawk gawk nawk awk |
| 1297 | do |
| 1298 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 1299 | set dummy $ac_prog; ac_word=$2 |
| 1300 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| 1301 | echo "configure:1302: checking for $ac_word" >&5 |
| 1302 | if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then |
| 1303 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1304 | else |
| 1305 | if test -n "$AWK"; then |
| 1306 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
| 1307 | else |
| 1308 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 1309 | ac_dummy="$PATH" |
| 1310 | for ac_dir in $ac_dummy; do |
| 1311 | test -z "$ac_dir" && ac_dir=. |
| 1312 | if test -f $ac_dir/$ac_word; then |
| 1313 | ac_cv_prog_AWK="$ac_prog" |
| 1314 | break |
| 1315 | fi |
| 1316 | done |
| 1317 | IFS="$ac_save_ifs" |
| 1318 | fi |
| 1319 | fi |
| 1320 | AWK="$ac_cv_prog_AWK" |
| 1321 | if test -n "$AWK"; then |
| 1322 | echo "$ac_t""$AWK" 1>&6 |
| 1323 | else |
| 1324 | echo "$ac_t""no" 1>&6 |
| 1325 | fi |
| 1326 | |
| 1327 | test -n "$AWK" && break |
| 1328 | done |
| 1329 | |
| 1330 | # Find a good install program. We prefer a C program (faster), |
| 1331 | # so one script is as good as another. But avoid the broken or |
| 1332 | # incompatible versions: |
| 1333 | # SysV /etc/install, /usr/sbin/install |
| 1334 | # SunOS /usr/etc/install |
| 1335 | # IRIX /sbin/install |
| 1336 | # AIX /bin/install |
| 1337 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 1338 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 1339 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 1340 | # ./install, which can be erroneously created by make from ./install.sh. |
| 1341 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 |
| 1342 | echo "configure:1343: checking for a BSD compatible install" >&5 |
| 1343 | if test -z "$INSTALL"; then |
| 1344 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then |
| 1345 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1346 | else |
| 1347 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" |
| 1348 | for ac_dir in $PATH; do |
| 1349 | # Account for people who put trailing slashes in PATH elements. |
| 1350 | case "$ac_dir/" in |
| 1351 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; |
| 1352 | *) |
| 1353 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 1354 | # Don't use installbsd from OSF since it installs stuff as root |
| 1355 | # by default. |
| 1356 | for ac_prog in ginstall scoinst install; do |
| 1357 | if test -f $ac_dir/$ac_prog; then |
| 1358 | if test $ac_prog = install && |
| 1359 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then |
| 1360 | # AIX install. It has an incompatible calling convention. |
| 1361 | : |
| 1362 | else |
| 1363 | ac_cv_path_install="$ac_dir/$ac_prog -c" |
| 1364 | break 2 |
| 1365 | fi |
| 1366 | fi |
| 1367 | done |
| 1368 | ;; |
| 1369 | esac |
| 1370 | done |
| 1371 | IFS="$ac_save_IFS" |
| 1372 | |
| 1373 | fi |
| 1374 | if test "${ac_cv_path_install+set}" = set; then |
| 1375 | INSTALL="$ac_cv_path_install" |
| 1376 | else |
| 1377 | # As a last resort, use the slow shell script. We don't cache a |
| 1378 | # path for INSTALL within a source directory, because that will |
| 1379 | # break other packages using the cache if that directory is |
| 1380 | # removed, or if the path is relative. |
| 1381 | INSTALL="$ac_install_sh" |
| 1382 | fi |
| 1383 | fi |
| 1384 | echo "$ac_t""$INSTALL" 1>&6 |
| 1385 | |
| 1386 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 1387 | # It thinks the first close brace ends the variable substitution. |
| 1388 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 1389 | |
| 1390 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' |
| 1391 | |
| 1392 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 1393 | |
| 1394 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 1395 | set dummy ranlib; ac_word=$2 |
| 1396 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| 1397 | echo "configure:1398: checking for $ac_word" >&5 |
| 1398 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
| 1399 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1400 | else |
| 1401 | if test -n "$RANLIB"; then |
| 1402 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 1403 | else |
| 1404 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 1405 | ac_dummy="$PATH" |
| 1406 | for ac_dir in $ac_dummy; do |
| 1407 | test -z "$ac_dir" && ac_dir=. |
| 1408 | if test -f $ac_dir/$ac_word; then |
| 1409 | ac_cv_prog_RANLIB="ranlib" |
| 1410 | break |
| 1411 | fi |
| 1412 | done |
| 1413 | IFS="$ac_save_ifs" |
| 1414 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" |
| 1415 | fi |
| 1416 | fi |
| 1417 | RANLIB="$ac_cv_prog_RANLIB" |
| 1418 | if test -n "$RANLIB"; then |
| 1419 | echo "$ac_t""$RANLIB" 1>&6 |
| 1420 | else |
| 1421 | echo "$ac_t""no" 1>&6 |
| 1422 | fi |
| 1423 | |
| 1424 | echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 |
| 1425 | echo "configure:1426: checking whether ln -s works" >&5 |
| 1426 | if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then |
| 1427 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1428 | else |
| 1429 | rm -f conftestdata |
| 1430 | if ln -s X conftestdata 2>/dev/null |
| 1431 | then |
| 1432 | rm -f conftestdata |
| 1433 | ac_cv_prog_LN_S="ln -s" |
| 1434 | else |
| 1435 | ac_cv_prog_LN_S=ln |
| 1436 | fi |
| 1437 | fi |
| 1438 | LN_S="$ac_cv_prog_LN_S" |
| 1439 | if test "$ac_cv_prog_LN_S" = "ln -s"; then |
| 1440 | echo "$ac_t""yes" 1>&6 |
| 1441 | else |
| 1442 | echo "$ac_t""no" 1>&6 |
| 1443 | fi |
| 1444 | |
| 1445 | |
| 1446 | # ----------------------------------------------------------------------- |
| 1447 | # |
| 1448 | # Libraries: Check for libraries used |
| 1449 | # |
| 1450 | # ----------------------------------------------------------------------- |
| 1451 | echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6 |
| 1452 | echo "configure:1453: checking for main in -lsocket" >&5 |
| 1453 | ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'` |
| 1454 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 1455 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1456 | else |
| 1457 | ac_save_LIBS="$LIBS" |
| 1458 | LIBS="-lsocket $LIBS" |
| 1459 | cat > conftest.$ac_ext <<EOF |
| 1460 | #line 1461 "configure" |
| 1461 | #include "confdefs.h" |
| 1462 | |
| 1463 | int main() { |
| 1464 | main() |
| 1465 | ; return 0; } |
| 1466 | EOF |
| 1467 | if { (eval echo configure:1468: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 1468 | rm -rf conftest* |
| 1469 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 1470 | else |
| 1471 | echo "configure: failed program was:" >&5 |
| 1472 | cat conftest.$ac_ext >&5 |
| 1473 | rm -rf conftest* |
| 1474 | eval "ac_cv_lib_$ac_lib_var=no" |
| 1475 | fi |
| 1476 | rm -f conftest* |
| 1477 | LIBS="$ac_save_LIBS" |
| 1478 | |
| 1479 | fi |
| 1480 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 1481 | echo "$ac_t""yes" 1>&6 |
| 1482 | ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
| 1483 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
| 1484 | cat >> confdefs.h <<EOF |
| 1485 | #define $ac_tr_lib 1 |
| 1486 | EOF |
| 1487 | |
| 1488 | LIBS="-lsocket $LIBS" |
| 1489 | |
| 1490 | else |
| 1491 | echo "$ac_t""no" 1>&6 |
| 1492 | fi |
| 1493 | |
| 1494 | echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6 |
| 1495 | echo "configure:1496: checking for main in -lnsl" >&5 |
| 1496 | ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'` |
| 1497 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 1498 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1499 | else |
| 1500 | ac_save_LIBS="$LIBS" |
| 1501 | LIBS="-lnsl $LIBS" |
| 1502 | cat > conftest.$ac_ext <<EOF |
| 1503 | #line 1504 "configure" |
| 1504 | #include "confdefs.h" |
| 1505 | |
| 1506 | int main() { |
| 1507 | main() |
| 1508 | ; return 0; } |
| 1509 | EOF |
| 1510 | if { (eval echo configure:1511: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 1511 | rm -rf conftest* |
| 1512 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 1513 | else |
| 1514 | echo "configure: failed program was:" >&5 |
| 1515 | cat conftest.$ac_ext >&5 |
| 1516 | rm -rf conftest* |
| 1517 | eval "ac_cv_lib_$ac_lib_var=no" |
| 1518 | fi |
| 1519 | rm -f conftest* |
| 1520 | LIBS="$ac_save_LIBS" |
| 1521 | |
| 1522 | fi |
| 1523 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 1524 | echo "$ac_t""yes" 1>&6 |
| 1525 | ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
| 1526 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
| 1527 | cat >> confdefs.h <<EOF |
| 1528 | #define $ac_tr_lib 1 |
| 1529 | EOF |
| 1530 | |
| 1531 | LIBS="-lnsl $LIBS" |
| 1532 | |
| 1533 | else |
| 1534 | echo "$ac_t""no" 1>&6 |
| 1535 | fi |
| 1536 | |
| 1537 | echo $ac_n "checking for main in -lm""... $ac_c" 1>&6 |
| 1538 | echo "configure:1539: checking for main in -lm" >&5 |
| 1539 | ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'` |
| 1540 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 1541 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1542 | else |
| 1543 | ac_save_LIBS="$LIBS" |
| 1544 | LIBS="-lm $LIBS" |
| 1545 | cat > conftest.$ac_ext <<EOF |
| 1546 | #line 1547 "configure" |
| 1547 | #include "confdefs.h" |
| 1548 | |
| 1549 | int main() { |
| 1550 | main() |
| 1551 | ; return 0; } |
| 1552 | EOF |
| 1553 | if { (eval echo configure:1554: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 1554 | rm -rf conftest* |
| 1555 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 1556 | else |
| 1557 | echo "configure: failed program was:" >&5 |
| 1558 | cat conftest.$ac_ext >&5 |
| 1559 | rm -rf conftest* |
| 1560 | eval "ac_cv_lib_$ac_lib_var=no" |
| 1561 | fi |
| 1562 | rm -f conftest* |
| 1563 | LIBS="$ac_save_LIBS" |
| 1564 | |
| 1565 | fi |
| 1566 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 1567 | echo "$ac_t""yes" 1>&6 |
| 1568 | ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
| 1569 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
| 1570 | cat >> confdefs.h <<EOF |
| 1571 | #define $ac_tr_lib 1 |
| 1572 | EOF |
| 1573 | |
| 1574 | LIBS="-lm $LIBS" |
| 1575 | |
| 1576 | else |
| 1577 | echo "$ac_t""no" 1>&6 |
| 1578 | fi |
| 1579 | |
| 1580 | # ----------------------------------------------------------------------- |
| 1581 | # |
| 1582 | # Headers: Check for header files used |
| 1583 | # |
| 1584 | # ----------------------------------------------------------------------- |
| 1585 | |
| 1586 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 |
| 1587 | echo "configure:1588: checking for ANSI C header files" >&5 |
| 1588 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then |
| 1589 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1590 | else |
| 1591 | cat > conftest.$ac_ext <<EOF |
| 1592 | #line 1593 "configure" |
| 1593 | #include "confdefs.h" |
| 1594 | #include <stdlib.h> |
| 1595 | #include <stdarg.h> |
| 1596 | #include <string.h> |
| 1597 | #include <float.h> |
| 1598 | EOF |
| 1599 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 1600 | { (eval echo configure:1601: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 1601 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 1602 | if test -z "$ac_err"; then |
| 1603 | rm -rf conftest* |
| 1604 | ac_cv_header_stdc=yes |
| 1605 | else |
| 1606 | echo "$ac_err" >&5 |
| 1607 | echo "configure: failed program was:" >&5 |
| 1608 | cat conftest.$ac_ext >&5 |
| 1609 | rm -rf conftest* |
| 1610 | ac_cv_header_stdc=no |
| 1611 | fi |
| 1612 | rm -f conftest* |
| 1613 | |
| 1614 | if test $ac_cv_header_stdc = yes; then |
| 1615 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 1616 | cat > conftest.$ac_ext <<EOF |
| 1617 | #line 1618 "configure" |
| 1618 | #include "confdefs.h" |
| 1619 | #include <string.h> |
| 1620 | EOF |
| 1621 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 1622 | egrep "memchr" >/dev/null 2>&1; then |
| 1623 | : |
| 1624 | else |
| 1625 | rm -rf conftest* |
| 1626 | ac_cv_header_stdc=no |
| 1627 | fi |
| 1628 | rm -f conftest* |
| 1629 | |
| 1630 | fi |
| 1631 | |
| 1632 | if test $ac_cv_header_stdc = yes; then |
| 1633 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 1634 | cat > conftest.$ac_ext <<EOF |
| 1635 | #line 1636 "configure" |
| 1636 | #include "confdefs.h" |
| 1637 | #include <stdlib.h> |
| 1638 | EOF |
| 1639 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 1640 | egrep "free" >/dev/null 2>&1; then |
| 1641 | : |
| 1642 | else |
| 1643 | rm -rf conftest* |
| 1644 | ac_cv_header_stdc=no |
| 1645 | fi |
| 1646 | rm -f conftest* |
| 1647 | |
| 1648 | fi |
| 1649 | |
| 1650 | if test $ac_cv_header_stdc = yes; then |
| 1651 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 1652 | if test "$cross_compiling" = yes; then |
| 1653 | : |
| 1654 | else |
| 1655 | cat > conftest.$ac_ext <<EOF |
| 1656 | #line 1657 "configure" |
| 1657 | #include "confdefs.h" |
| 1658 | #include <ctype.h> |
| 1659 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 1660 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 1661 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 1662 | int main () { int i; for (i = 0; i < 256; i++) |
| 1663 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); |
| 1664 | exit (0); } |
| 1665 | |
| 1666 | EOF |
| 1667 | if { (eval echo configure:1668: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
| 1668 | then |
| 1669 | : |
| 1670 | else |
| 1671 | echo "configure: failed program was:" >&5 |
| 1672 | cat conftest.$ac_ext >&5 |
| 1673 | rm -fr conftest* |
| 1674 | ac_cv_header_stdc=no |
| 1675 | fi |
| 1676 | rm -fr conftest* |
| 1677 | fi |
| 1678 | |
| 1679 | fi |
| 1680 | fi |
| 1681 | |
| 1682 | echo "$ac_t""$ac_cv_header_stdc" 1>&6 |
| 1683 | if test $ac_cv_header_stdc = yes; then |
| 1684 | cat >> confdefs.h <<\EOF |
| 1685 | #define STDC_HEADERS 1 |
| 1686 | EOF |
| 1687 | |
| 1688 | fi |
| 1689 | |
| 1690 | echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6 |
| 1691 | echo "configure:1692: checking for sys/wait.h that is POSIX.1 compatible" >&5 |
| 1692 | if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then |
| 1693 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1694 | else |
| 1695 | cat > conftest.$ac_ext <<EOF |
| 1696 | #line 1697 "configure" |
| 1697 | #include "confdefs.h" |
| 1698 | #include <sys/types.h> |
| 1699 | #include <sys/wait.h> |
| 1700 | #ifndef WEXITSTATUS |
| 1701 | #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) |
| 1702 | #endif |
| 1703 | #ifndef WIFEXITED |
| 1704 | #define WIFEXITED(stat_val) (((stat_val) & 255) == 0) |
| 1705 | #endif |
| 1706 | int main() { |
| 1707 | int s; |
| 1708 | wait (&s); |
| 1709 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; |
| 1710 | ; return 0; } |
| 1711 | EOF |
| 1712 | if { (eval echo configure:1713: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| 1713 | rm -rf conftest* |
| 1714 | ac_cv_header_sys_wait_h=yes |
| 1715 | else |
| 1716 | echo "configure: failed program was:" >&5 |
| 1717 | cat conftest.$ac_ext >&5 |
| 1718 | rm -rf conftest* |
| 1719 | ac_cv_header_sys_wait_h=no |
| 1720 | fi |
| 1721 | rm -f conftest* |
| 1722 | fi |
| 1723 | |
| 1724 | echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6 |
| 1725 | if test $ac_cv_header_sys_wait_h = yes; then |
| 1726 | cat >> confdefs.h <<\EOF |
| 1727 | #define HAVE_SYS_WAIT_H 1 |
| 1728 | EOF |
| 1729 | |
| 1730 | fi |
| 1731 | |
| 1732 | echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 |
| 1733 | echo "configure:1734: checking whether time.h and sys/time.h may both be included" >&5 |
| 1734 | if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then |
| 1735 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1736 | else |
| 1737 | cat > conftest.$ac_ext <<EOF |
| 1738 | #line 1739 "configure" |
| 1739 | #include "confdefs.h" |
| 1740 | #include <sys/types.h> |
| 1741 | #include <sys/time.h> |
| 1742 | #include <time.h> |
| 1743 | int main() { |
| 1744 | struct tm *tp; |
| 1745 | ; return 0; } |
| 1746 | EOF |
| 1747 | if { (eval echo configure:1748: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| 1748 | rm -rf conftest* |
| 1749 | ac_cv_header_time=yes |
| 1750 | else |
| 1751 | echo "configure: failed program was:" >&5 |
| 1752 | cat conftest.$ac_ext >&5 |
| 1753 | rm -rf conftest* |
| 1754 | ac_cv_header_time=no |
| 1755 | fi |
| 1756 | rm -f conftest* |
| 1757 | fi |
| 1758 | |
| 1759 | echo "$ac_t""$ac_cv_header_time" 1>&6 |
| 1760 | if test $ac_cv_header_time = yes; then |
| 1761 | cat >> confdefs.h <<\EOF |
| 1762 | #define TIME_WITH_SYS_TIME 1 |
| 1763 | EOF |
| 1764 | |
| 1765 | fi |
| 1766 | |
| 1767 | |
| 1768 | for ac_hdr in inttypes.h |
| 1769 | do |
| 1770 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
| 1771 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
| 1772 | echo "configure:1773: checking for $ac_hdr" >&5 |
| 1773 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
| 1774 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1775 | else |
| 1776 | cat > conftest.$ac_ext <<EOF |
| 1777 | #line 1778 "configure" |
| 1778 | #include "confdefs.h" |
| 1779 | #include <$ac_hdr> |
| 1780 | EOF |
| 1781 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 1782 | { (eval echo configure:1783: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 1783 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 1784 | if test -z "$ac_err"; then |
| 1785 | rm -rf conftest* |
| 1786 | eval "ac_cv_header_$ac_safe=yes" |
| 1787 | else |
| 1788 | echo "$ac_err" >&5 |
| 1789 | echo "configure: failed program was:" >&5 |
| 1790 | cat conftest.$ac_ext >&5 |
| 1791 | rm -rf conftest* |
| 1792 | eval "ac_cv_header_$ac_safe=no" |
| 1793 | fi |
| 1794 | rm -f conftest* |
| 1795 | fi |
| 1796 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 1797 | echo "$ac_t""yes" 1>&6 |
| 1798 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
| 1799 | cat >> confdefs.h <<EOF |
| 1800 | #define $ac_tr_hdr 1 |
| 1801 | EOF |
| 1802 | |
| 1803 | else |
| 1804 | echo "$ac_t""no" 1>&6 |
| 1805 | fi |
| 1806 | done |
| 1807 | |
| 1808 | if test "${ac_cv_header_inttypes_h}" = "yes" ; then |
| 1809 | HAVE_INTTYPES_H=1 |
| 1810 | else |
| 1811 | HAVE_INTTYPES_H=0 |
| 1812 | fi |
| 1813 | |
| 1814 | |
| 1815 | for ac_hdr in limits.h sys/param.h |
| 1816 | do |
| 1817 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
| 1818 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
| 1819 | echo "configure:1820: checking for $ac_hdr" >&5 |
| 1820 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
| 1821 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1822 | else |
| 1823 | cat > conftest.$ac_ext <<EOF |
| 1824 | #line 1825 "configure" |
| 1825 | #include "confdefs.h" |
| 1826 | #include <$ac_hdr> |
| 1827 | EOF |
| 1828 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 1829 | { (eval echo configure:1830: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 1830 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 1831 | if test -z "$ac_err"; then |
| 1832 | rm -rf conftest* |
| 1833 | eval "ac_cv_header_$ac_safe=yes" |
| 1834 | else |
| 1835 | echo "$ac_err" >&5 |
| 1836 | echo "configure: failed program was:" >&5 |
| 1837 | cat conftest.$ac_ext >&5 |
| 1838 | rm -rf conftest* |
| 1839 | eval "ac_cv_header_$ac_safe=no" |
| 1840 | fi |
| 1841 | rm -f conftest* |
| 1842 | fi |
| 1843 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 1844 | echo "$ac_t""yes" 1>&6 |
| 1845 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
| 1846 | cat >> confdefs.h <<EOF |
| 1847 | #define $ac_tr_hdr 1 |
| 1848 | EOF |
| 1849 | |
| 1850 | else |
| 1851 | echo "$ac_t""no" 1>&6 |
| 1852 | fi |
| 1853 | done |
| 1854 | |
| 1855 | for ac_hdr in string.h ctype.h |
| 1856 | do |
| 1857 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
| 1858 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
| 1859 | echo "configure:1860: checking for $ac_hdr" >&5 |
| 1860 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
| 1861 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1862 | else |
| 1863 | cat > conftest.$ac_ext <<EOF |
| 1864 | #line 1865 "configure" |
| 1865 | #include "confdefs.h" |
| 1866 | #include <$ac_hdr> |
| 1867 | EOF |
| 1868 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 1869 | { (eval echo configure:1870: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 1870 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 1871 | if test -z "$ac_err"; then |
| 1872 | rm -rf conftest* |
| 1873 | eval "ac_cv_header_$ac_safe=yes" |
| 1874 | else |
| 1875 | echo "$ac_err" >&5 |
| 1876 | echo "configure: failed program was:" >&5 |
| 1877 | cat conftest.$ac_ext >&5 |
| 1878 | rm -rf conftest* |
| 1879 | eval "ac_cv_header_$ac_safe=no" |
| 1880 | fi |
| 1881 | rm -f conftest* |
| 1882 | fi |
| 1883 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 1884 | echo "$ac_t""yes" 1>&6 |
| 1885 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
| 1886 | cat >> confdefs.h <<EOF |
| 1887 | #define $ac_tr_hdr 1 |
| 1888 | EOF |
| 1889 | |
| 1890 | else |
| 1891 | echo "$ac_t""no" 1>&6 |
| 1892 | fi |
| 1893 | done |
| 1894 | |
| 1895 | for ac_hdr in errno.h float.h math.h ieeefp.h |
| 1896 | do |
| 1897 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
| 1898 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
| 1899 | echo "configure:1900: checking for $ac_hdr" >&5 |
| 1900 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
| 1901 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1902 | else |
| 1903 | cat > conftest.$ac_ext <<EOF |
| 1904 | #line 1905 "configure" |
| 1905 | #include "confdefs.h" |
| 1906 | #include <$ac_hdr> |
| 1907 | EOF |
| 1908 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 1909 | { (eval echo configure:1910: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 1910 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 1911 | if test -z "$ac_err"; then |
| 1912 | rm -rf conftest* |
| 1913 | eval "ac_cv_header_$ac_safe=yes" |
| 1914 | else |
| 1915 | echo "$ac_err" >&5 |
| 1916 | echo "configure: failed program was:" >&5 |
| 1917 | cat conftest.$ac_ext >&5 |
| 1918 | rm -rf conftest* |
| 1919 | eval "ac_cv_header_$ac_safe=no" |
| 1920 | fi |
| 1921 | rm -f conftest* |
| 1922 | fi |
| 1923 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 1924 | echo "$ac_t""yes" 1>&6 |
| 1925 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
| 1926 | cat >> confdefs.h <<EOF |
| 1927 | #define $ac_tr_hdr 1 |
| 1928 | EOF |
| 1929 | |
| 1930 | else |
| 1931 | echo "$ac_t""no" 1>&6 |
| 1932 | fi |
| 1933 | done |
| 1934 | |
| 1935 | for ac_hdr in sys/time.h waitflags.h sys/wait.h |
| 1936 | do |
| 1937 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
| 1938 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
| 1939 | echo "configure:1940: checking for $ac_hdr" >&5 |
| 1940 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
| 1941 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1942 | else |
| 1943 | cat > conftest.$ac_ext <<EOF |
| 1944 | #line 1945 "configure" |
| 1945 | #include "confdefs.h" |
| 1946 | #include <$ac_hdr> |
| 1947 | EOF |
| 1948 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 1949 | { (eval echo configure:1950: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 1950 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 1951 | if test -z "$ac_err"; then |
| 1952 | rm -rf conftest* |
| 1953 | eval "ac_cv_header_$ac_safe=yes" |
| 1954 | else |
| 1955 | echo "$ac_err" >&5 |
| 1956 | echo "configure: failed program was:" >&5 |
| 1957 | cat conftest.$ac_ext >&5 |
| 1958 | rm -rf conftest* |
| 1959 | eval "ac_cv_header_$ac_safe=no" |
| 1960 | fi |
| 1961 | rm -f conftest* |
| 1962 | fi |
| 1963 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 1964 | echo "$ac_t""yes" 1>&6 |
| 1965 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
| 1966 | cat >> confdefs.h <<EOF |
| 1967 | #define $ac_tr_hdr 1 |
| 1968 | EOF |
| 1969 | |
| 1970 | else |
| 1971 | echo "$ac_t""no" 1>&6 |
| 1972 | fi |
| 1973 | done |
| 1974 | |
| 1975 | for ac_hdr in malloc.h memory.h |
| 1976 | do |
| 1977 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
| 1978 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
| 1979 | echo "configure:1980: checking for $ac_hdr" >&5 |
| 1980 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
| 1981 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1982 | else |
| 1983 | cat > conftest.$ac_ext <<EOF |
| 1984 | #line 1985 "configure" |
| 1985 | #include "confdefs.h" |
| 1986 | #include <$ac_hdr> |
| 1987 | EOF |
| 1988 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 1989 | { (eval echo configure:1990: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 1990 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 1991 | if test -z "$ac_err"; then |
| 1992 | rm -rf conftest* |
| 1993 | eval "ac_cv_header_$ac_safe=yes" |
| 1994 | else |
| 1995 | echo "$ac_err" >&5 |
| 1996 | echo "configure: failed program was:" >&5 |
| 1997 | cat conftest.$ac_ext >&5 |
| 1998 | rm -rf conftest* |
| 1999 | eval "ac_cv_header_$ac_safe=no" |
| 2000 | fi |
| 2001 | rm -f conftest* |
| 2002 | fi |
| 2003 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 2004 | echo "$ac_t""yes" 1>&6 |
| 2005 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
| 2006 | cat >> confdefs.h <<EOF |
| 2007 | #define $ac_tr_hdr 1 |
| 2008 | EOF |
| 2009 | |
| 2010 | else |
| 2011 | echo "$ac_t""no" 1>&6 |
| 2012 | fi |
| 2013 | done |
| 2014 | |
| 2015 | for ac_hdr in setjmp.h |
| 2016 | do |
| 2017 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
| 2018 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
| 2019 | echo "configure:2020: checking for $ac_hdr" >&5 |
| 2020 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
| 2021 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2022 | else |
| 2023 | cat > conftest.$ac_ext <<EOF |
| 2024 | #line 2025 "configure" |
| 2025 | #include "confdefs.h" |
| 2026 | #include <$ac_hdr> |
| 2027 | EOF |
| 2028 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 2029 | { (eval echo configure:2030: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 2030 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 2031 | if test -z "$ac_err"; then |
| 2032 | rm -rf conftest* |
| 2033 | eval "ac_cv_header_$ac_safe=yes" |
| 2034 | else |
| 2035 | echo "$ac_err" >&5 |
| 2036 | echo "configure: failed program was:" >&5 |
| 2037 | cat conftest.$ac_ext >&5 |
| 2038 | rm -rf conftest* |
| 2039 | eval "ac_cv_header_$ac_safe=no" |
| 2040 | fi |
| 2041 | rm -f conftest* |
| 2042 | fi |
| 2043 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 2044 | echo "$ac_t""yes" 1>&6 |
| 2045 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
| 2046 | cat >> confdefs.h <<EOF |
| 2047 | #define $ac_tr_hdr 1 |
| 2048 | EOF |
| 2049 | |
| 2050 | else |
| 2051 | echo "$ac_t""no" 1>&6 |
| 2052 | fi |
| 2053 | done |
| 2054 | |
| 2055 | |
| 2056 | if test "${blt_enable_jpeg}" != "no" ; then |
| 2057 | jpeg_save_CPPFLAGS=${CPPFLAGS} |
| 2058 | CPPFLAGS="" |
| 2059 | if test "${blt_enable_jpeg}" != "yes" ; then |
| 2060 | CPPFLAGS="-I${blt_enable_jpeg}/include" |
| 2061 | fi |
| 2062 | for ac_hdr in jpeglib.h |
| 2063 | do |
| 2064 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
| 2065 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
| 2066 | echo "configure:2067: checking for $ac_hdr" >&5 |
| 2067 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
| 2068 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2069 | else |
| 2070 | cat > conftest.$ac_ext <<EOF |
| 2071 | #line 2072 "configure" |
| 2072 | #include "confdefs.h" |
| 2073 | #include <$ac_hdr> |
| 2074 | EOF |
| 2075 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 2076 | { (eval echo configure:2077: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 2077 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 2078 | if test -z "$ac_err"; then |
| 2079 | rm -rf conftest* |
| 2080 | eval "ac_cv_header_$ac_safe=yes" |
| 2081 | else |
| 2082 | echo "$ac_err" >&5 |
| 2083 | echo "configure: failed program was:" >&5 |
| 2084 | cat conftest.$ac_ext >&5 |
| 2085 | rm -rf conftest* |
| 2086 | eval "ac_cv_header_$ac_safe=no" |
| 2087 | fi |
| 2088 | rm -f conftest* |
| 2089 | fi |
| 2090 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 2091 | echo "$ac_t""yes" 1>&6 |
| 2092 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
| 2093 | cat >> confdefs.h <<EOF |
| 2094 | #define $ac_tr_hdr 1 |
| 2095 | EOF |
| 2096 | JPEG_INC_SPEC="${CPPFLAGS}" |
| 2097 | else |
| 2098 | echo "$ac_t""no" 1>&6 |
| 2099 | JPEG_INC_SPEC="" |
| 2100 | fi |
| 2101 | done |
| 2102 | |
| 2103 | CPPFLAGS=${jpeg_save_CPPFLAGS} |
| 2104 | fi |
| 2105 | |
| 2106 | # Run this check after jpeglib.h because jpeglib.h sets HAVE_STDLIB_H |
| 2107 | for ac_hdr in stdlib.h unistd.h |
| 2108 | do |
| 2109 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
| 2110 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
| 2111 | echo "configure:2112: checking for $ac_hdr" >&5 |
| 2112 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
| 2113 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2114 | else |
| 2115 | cat > conftest.$ac_ext <<EOF |
| 2116 | #line 2117 "configure" |
| 2117 | #include "confdefs.h" |
| 2118 | #include <$ac_hdr> |
| 2119 | EOF |
| 2120 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 2121 | { (eval echo configure:2122: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 2122 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 2123 | if test -z "$ac_err"; then |
| 2124 | rm -rf conftest* |
| 2125 | eval "ac_cv_header_$ac_safe=yes" |
| 2126 | else |
| 2127 | echo "$ac_err" >&5 |
| 2128 | echo "configure: failed program was:" >&5 |
| 2129 | cat conftest.$ac_ext >&5 |
| 2130 | rm -rf conftest* |
| 2131 | eval "ac_cv_header_$ac_safe=no" |
| 2132 | fi |
| 2133 | rm -f conftest* |
| 2134 | fi |
| 2135 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 2136 | echo "$ac_t""yes" 1>&6 |
| 2137 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
| 2138 | cat >> confdefs.h <<EOF |
| 2139 | #define $ac_tr_hdr 1 |
| 2140 | EOF |
| 2141 | |
| 2142 | else |
| 2143 | echo "$ac_t""no" 1>&6 |
| 2144 | fi |
| 2145 | done |
| 2146 | |
| 2147 | |
| 2148 | # ----------------------------------------------------------------------- |
| 2149 | # |
| 2150 | # Types: Check for existence of types of size_t and pid_t |
| 2151 | # |
| 2152 | # ----------------------------------------------------------------------- |
| 2153 | echo $ac_n "checking for size_t""... $ac_c" 1>&6 |
| 2154 | echo "configure:2155: checking for size_t" >&5 |
| 2155 | if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then |
| 2156 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2157 | else |
| 2158 | cat > conftest.$ac_ext <<EOF |
| 2159 | #line 2160 "configure" |
| 2160 | #include "confdefs.h" |
| 2161 | #include <sys/types.h> |
| 2162 | #if STDC_HEADERS |
| 2163 | #include <stdlib.h> |
| 2164 | #include <stddef.h> |
| 2165 | #endif |
| 2166 | EOF |
| 2167 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 2168 | egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then |
| 2169 | rm -rf conftest* |
| 2170 | ac_cv_type_size_t=yes |
| 2171 | else |
| 2172 | rm -rf conftest* |
| 2173 | ac_cv_type_size_t=no |
| 2174 | fi |
| 2175 | rm -f conftest* |
| 2176 | |
| 2177 | fi |
| 2178 | echo "$ac_t""$ac_cv_type_size_t" 1>&6 |
| 2179 | if test $ac_cv_type_size_t = no; then |
| 2180 | cat >> confdefs.h <<\EOF |
| 2181 | #define size_t unsigned |
| 2182 | EOF |
| 2183 | |
| 2184 | fi |
| 2185 | |
| 2186 | echo $ac_n "checking for pid_t""... $ac_c" 1>&6 |
| 2187 | echo "configure:2188: checking for pid_t" >&5 |
| 2188 | if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then |
| 2189 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2190 | else |
| 2191 | cat > conftest.$ac_ext <<EOF |
| 2192 | #line 2193 "configure" |
| 2193 | #include "confdefs.h" |
| 2194 | #include <sys/types.h> |
| 2195 | #if STDC_HEADERS |
| 2196 | #include <stdlib.h> |
| 2197 | #include <stddef.h> |
| 2198 | #endif |
| 2199 | EOF |
| 2200 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 2201 | egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then |
| 2202 | rm -rf conftest* |
| 2203 | ac_cv_type_pid_t=yes |
| 2204 | else |
| 2205 | rm -rf conftest* |
| 2206 | ac_cv_type_pid_t=no |
| 2207 | fi |
| 2208 | rm -f conftest* |
| 2209 | |
| 2210 | fi |
| 2211 | echo "$ac_t""$ac_cv_type_pid_t" 1>&6 |
| 2212 | if test $ac_cv_type_pid_t = no; then |
| 2213 | cat >> confdefs.h <<\EOF |
| 2214 | #define pid_t int |
| 2215 | EOF |
| 2216 | |
| 2217 | fi |
| 2218 | |
| 2219 | |
| 2220 | echo $ac_n "checking whether union wait is defined correctly""... $ac_c" 1>&6 |
| 2221 | echo "configure:2222: checking whether union wait is defined correctly" >&5 |
| 2222 | if eval "test \"`echo '$''{'blt_cv_struct_wait_works'+set}'`\" = set"; then |
| 2223 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2224 | else |
| 2225 | cat > conftest.$ac_ext <<EOF |
| 2226 | #line 2227 "configure" |
| 2227 | #include "confdefs.h" |
| 2228 | #include <sys/types.h> |
| 2229 | #include <sys/wait.h> |
| 2230 | int main() { |
| 2231 | |
| 2232 | /* |
| 2233 | * Check whether <sys/wait.h> defines the type "union wait" |
| 2234 | * correctly. It's needed because of weirdness in HP-UX where |
| 2235 | * "union wait" is defined in both the BSD and SYS-V environments. |
| 2236 | * Checking the usability of WIFEXITED seems to do the trick. |
| 2237 | */ |
| 2238 | union wait x; |
| 2239 | WIFEXITED(x); /* Generates compiler error if WIFEXITED |
| 2240 | * uses an int. */ |
| 2241 | |
| 2242 | ; return 0; } |
| 2243 | EOF |
| 2244 | if { (eval echo configure:2245: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| 2245 | rm -rf conftest* |
| 2246 | blt_cv_struct_wait_works="yes" |
| 2247 | else |
| 2248 | echo "configure: failed program was:" >&5 |
| 2249 | cat conftest.$ac_ext >&5 |
| 2250 | rm -rf conftest* |
| 2251 | blt_cv_struct_wait_works="no" |
| 2252 | fi |
| 2253 | rm -f conftest* |
| 2254 | fi |
| 2255 | |
| 2256 | |
| 2257 | if test "${blt_cv_struct_wait_works}" = "yes"; then |
| 2258 | cat >> confdefs.h <<\EOF |
| 2259 | #define HAVE_UNION_WAIT 1 |
| 2260 | EOF |
| 2261 | |
| 2262 | fi |
| 2263 | echo "$ac_t""$blt_cv_struct_wait_works" 1>&6 |
| 2264 | |
| 2265 | # ----------------------------------------------------------------------- |
| 2266 | # |
| 2267 | # Compiler characteristics: |
| 2268 | # Check for existence of types of size_t and pid_t |
| 2269 | # |
| 2270 | # ----------------------------------------------------------------------- |
| 2271 | |
| 2272 | echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6 |
| 2273 | echo "configure:2274: checking whether byte ordering is bigendian" >&5 |
| 2274 | if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then |
| 2275 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2276 | else |
| 2277 | ac_cv_c_bigendian=unknown |
| 2278 | # See if sys/param.h defines the BYTE_ORDER macro. |
| 2279 | cat > conftest.$ac_ext <<EOF |
| 2280 | #line 2281 "configure" |
| 2281 | #include "confdefs.h" |
| 2282 | #include <sys/types.h> |
| 2283 | #include <sys/param.h> |
| 2284 | int main() { |
| 2285 | |
| 2286 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN |
| 2287 | bogus endian macros |
| 2288 | #endif |
| 2289 | ; return 0; } |
| 2290 | EOF |
| 2291 | if { (eval echo configure:2292: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| 2292 | rm -rf conftest* |
| 2293 | # It does; now see whether it defined to BIG_ENDIAN or not. |
| 2294 | cat > conftest.$ac_ext <<EOF |
| 2295 | #line 2296 "configure" |
| 2296 | #include "confdefs.h" |
| 2297 | #include <sys/types.h> |
| 2298 | #include <sys/param.h> |
| 2299 | int main() { |
| 2300 | |
| 2301 | #if BYTE_ORDER != BIG_ENDIAN |
| 2302 | not big endian |
| 2303 | #endif |
| 2304 | ; return 0; } |
| 2305 | EOF |
| 2306 | if { (eval echo configure:2307: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| 2307 | rm -rf conftest* |
| 2308 | ac_cv_c_bigendian=yes |
| 2309 | else |
| 2310 | echo "configure: failed program was:" >&5 |
| 2311 | cat conftest.$ac_ext >&5 |
| 2312 | rm -rf conftest* |
| 2313 | ac_cv_c_bigendian=no |
| 2314 | fi |
| 2315 | rm -f conftest* |
| 2316 | else |
| 2317 | echo "configure: failed program was:" >&5 |
| 2318 | cat conftest.$ac_ext >&5 |
| 2319 | fi |
| 2320 | rm -f conftest* |
| 2321 | if test $ac_cv_c_bigendian = unknown; then |
| 2322 | if test "$cross_compiling" = yes; then |
| 2323 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 2324 | else |
| 2325 | cat > conftest.$ac_ext <<EOF |
| 2326 | #line 2327 "configure" |
| 2327 | #include "confdefs.h" |
| 2328 | main () { |
| 2329 | /* Are we little or big endian? From Harbison&Steele. */ |
| 2330 | union |
| 2331 | { |
| 2332 | long l; |
| 2333 | char c[sizeof (long)]; |
| 2334 | } u; |
| 2335 | u.l = 1; |
| 2336 | exit (u.c[sizeof (long) - 1] == 1); |
| 2337 | } |
| 2338 | EOF |
| 2339 | if { (eval echo configure:2340: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
| 2340 | then |
| 2341 | ac_cv_c_bigendian=no |
| 2342 | else |
| 2343 | echo "configure: failed program was:" >&5 |
| 2344 | cat conftest.$ac_ext >&5 |
| 2345 | rm -fr conftest* |
| 2346 | ac_cv_c_bigendian=yes |
| 2347 | fi |
| 2348 | rm -fr conftest* |
| 2349 | fi |
| 2350 | |
| 2351 | fi |
| 2352 | fi |
| 2353 | |
| 2354 | echo "$ac_t""$ac_cv_c_bigendian" 1>&6 |
| 2355 | if test $ac_cv_c_bigendian = yes; then |
| 2356 | cat >> confdefs.h <<\EOF |
| 2357 | #define WORDS_BIGENDIAN 1 |
| 2358 | EOF |
| 2359 | |
| 2360 | fi |
| 2361 | |
| 2362 | echo $ac_n "checking size of int""... $ac_c" 1>&6 |
| 2363 | echo "configure:2364: checking size of int" >&5 |
| 2364 | if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then |
| 2365 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2366 | else |
| 2367 | if test "$cross_compiling" = yes; then |
| 2368 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 2369 | else |
| 2370 | cat > conftest.$ac_ext <<EOF |
| 2371 | #line 2372 "configure" |
| 2372 | #include "confdefs.h" |
| 2373 | #include <stdio.h> |
| 2374 | main() |
| 2375 | { |
| 2376 | FILE *f=fopen("conftestval", "w"); |
| 2377 | if (!f) exit(1); |
| 2378 | fprintf(f, "%d\n", sizeof(int)); |
| 2379 | exit(0); |
| 2380 | } |
| 2381 | EOF |
| 2382 | if { (eval echo configure:2383: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
| 2383 | then |
| 2384 | ac_cv_sizeof_int=`cat conftestval` |
| 2385 | else |
| 2386 | echo "configure: failed program was:" >&5 |
| 2387 | cat conftest.$ac_ext >&5 |
| 2388 | rm -fr conftest* |
| 2389 | ac_cv_sizeof_int=0 |
| 2390 | fi |
| 2391 | rm -fr conftest* |
| 2392 | fi |
| 2393 | |
| 2394 | fi |
| 2395 | echo "$ac_t""$ac_cv_sizeof_int" 1>&6 |
| 2396 | cat >> confdefs.h <<EOF |
| 2397 | #define SIZEOF_INT $ac_cv_sizeof_int |
| 2398 | EOF |
| 2399 | |
| 2400 | |
| 2401 | echo $ac_n "checking size of long""... $ac_c" 1>&6 |
| 2402 | echo "configure:2403: checking size of long" >&5 |
| 2403 | if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then |
| 2404 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2405 | else |
| 2406 | if test "$cross_compiling" = yes; then |
| 2407 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 2408 | else |
| 2409 | cat > conftest.$ac_ext <<EOF |
| 2410 | #line 2411 "configure" |
| 2411 | #include "confdefs.h" |
| 2412 | #include <stdio.h> |
| 2413 | main() |
| 2414 | { |
| 2415 | FILE *f=fopen("conftestval", "w"); |
| 2416 | if (!f) exit(1); |
| 2417 | fprintf(f, "%d\n", sizeof(long)); |
| 2418 | exit(0); |
| 2419 | } |
| 2420 | EOF |
| 2421 | if { (eval echo configure:2422: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
| 2422 | then |
| 2423 | ac_cv_sizeof_long=`cat conftestval` |
| 2424 | else |
| 2425 | echo "configure: failed program was:" >&5 |
| 2426 | cat conftest.$ac_ext >&5 |
| 2427 | rm -fr conftest* |
| 2428 | ac_cv_sizeof_long=0 |
| 2429 | fi |
| 2430 | rm -fr conftest* |
| 2431 | fi |
| 2432 | |
| 2433 | fi |
| 2434 | echo "$ac_t""$ac_cv_sizeof_long" 1>&6 |
| 2435 | cat >> confdefs.h <<EOF |
| 2436 | #define SIZEOF_LONG $ac_cv_sizeof_long |
| 2437 | EOF |
| 2438 | |
| 2439 | |
| 2440 | echo $ac_n "checking size of long long""... $ac_c" 1>&6 |
| 2441 | echo "configure:2442: checking size of long long" >&5 |
| 2442 | if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then |
| 2443 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2444 | else |
| 2445 | if test "$cross_compiling" = yes; then |
| 2446 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 2447 | else |
| 2448 | cat > conftest.$ac_ext <<EOF |
| 2449 | #line 2450 "configure" |
| 2450 | #include "confdefs.h" |
| 2451 | #include <stdio.h> |
| 2452 | main() |
| 2453 | { |
| 2454 | FILE *f=fopen("conftestval", "w"); |
| 2455 | if (!f) exit(1); |
| 2456 | fprintf(f, "%d\n", sizeof(long long)); |
| 2457 | exit(0); |
| 2458 | } |
| 2459 | EOF |
| 2460 | if { (eval echo configure:2461: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
| 2461 | then |
| 2462 | ac_cv_sizeof_long_long=`cat conftestval` |
| 2463 | else |
| 2464 | echo "configure: failed program was:" >&5 |
| 2465 | cat conftest.$ac_ext >&5 |
| 2466 | rm -fr conftest* |
| 2467 | ac_cv_sizeof_long_long=0 |
| 2468 | fi |
| 2469 | rm -fr conftest* |
| 2470 | fi |
| 2471 | |
| 2472 | fi |
| 2473 | echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6 |
| 2474 | cat >> confdefs.h <<EOF |
| 2475 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
| 2476 | EOF |
| 2477 | |
| 2478 | |
| 2479 | echo $ac_n "checking size of void *""... $ac_c" 1>&6 |
| 2480 | echo "configure:2481: checking size of void *" >&5 |
| 2481 | if eval "test \"`echo '$''{'ac_cv_sizeof_void_p'+set}'`\" = set"; then |
| 2482 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2483 | else |
| 2484 | if test "$cross_compiling" = yes; then |
| 2485 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 2486 | else |
| 2487 | cat > conftest.$ac_ext <<EOF |
| 2488 | #line 2489 "configure" |
| 2489 | #include "confdefs.h" |
| 2490 | #include <stdio.h> |
| 2491 | main() |
| 2492 | { |
| 2493 | FILE *f=fopen("conftestval", "w"); |
| 2494 | if (!f) exit(1); |
| 2495 | fprintf(f, "%d\n", sizeof(void *)); |
| 2496 | exit(0); |
| 2497 | } |
| 2498 | EOF |
| 2499 | if { (eval echo configure:2500: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
| 2500 | then |
| 2501 | ac_cv_sizeof_void_p=`cat conftestval` |
| 2502 | else |
| 2503 | echo "configure: failed program was:" >&5 |
| 2504 | cat conftest.$ac_ext >&5 |
| 2505 | rm -fr conftest* |
| 2506 | ac_cv_sizeof_void_p=0 |
| 2507 | fi |
| 2508 | rm -fr conftest* |
| 2509 | fi |
| 2510 | |
| 2511 | fi |
| 2512 | echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6 |
| 2513 | cat >> confdefs.h <<EOF |
| 2514 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p |
| 2515 | EOF |
| 2516 | |
| 2517 | |
| 2518 | |
| 2519 | SIZEOF_LONG="${ac_cv_sizeof_long}" |
| 2520 | SIZEOF_LONG_LONG="${ac_cv_sizeof_long_long}" |
| 2521 | SIZEOF_VOID_P="${ac_cv_sizeof_void_p}" |
| 2522 | SIZEOF_INT="${ac_cv_sizeof_int}" |
| 2523 | |
| 2524 | |
| 2525 | |
| 2526 | |
| 2527 | |
| 2528 | # ----------------------------------------------------------------------- |
| 2529 | # |
| 2530 | # Library Functions: Check for strdup, drand48, and srand48. |
| 2531 | # |
| 2532 | # ----------------------------------------------------------------------- |
| 2533 | |
| 2534 | for ac_func in strdup strcasecmp strncasecmp drand48 srand48 finite isnan |
| 2535 | do |
| 2536 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
| 2537 | echo "configure:2538: checking for $ac_func" >&5 |
| 2538 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
| 2539 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2540 | else |
| 2541 | cat > conftest.$ac_ext <<EOF |
| 2542 | #line 2543 "configure" |
| 2543 | #include "confdefs.h" |
| 2544 | /* System header to define __stub macros and hopefully few prototypes, |
| 2545 | which can conflict with char $ac_func(); below. */ |
| 2546 | #include <assert.h> |
| 2547 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 2548 | /* We use char because int might match the return type of a gcc2 |
| 2549 | builtin and then its argument prototype would still apply. */ |
| 2550 | char $ac_func(); |
| 2551 | |
| 2552 | int main() { |
| 2553 | |
| 2554 | /* The GNU C library defines this for functions which it implements |
| 2555 | to always fail with ENOSYS. Some functions are actually named |
| 2556 | something starting with __ and the normal name is an alias. */ |
| 2557 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 2558 | choke me |
| 2559 | #else |
| 2560 | $ac_func(); |
| 2561 | #endif |
| 2562 | |
| 2563 | ; return 0; } |
| 2564 | EOF |
| 2565 | if { (eval echo configure:2566: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 2566 | rm -rf conftest* |
| 2567 | eval "ac_cv_func_$ac_func=yes" |
| 2568 | else |
| 2569 | echo "configure: failed program was:" >&5 |
| 2570 | cat conftest.$ac_ext >&5 |
| 2571 | rm -rf conftest* |
| 2572 | eval "ac_cv_func_$ac_func=no" |
| 2573 | fi |
| 2574 | rm -f conftest* |
| 2575 | fi |
| 2576 | |
| 2577 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
| 2578 | echo "$ac_t""yes" 1>&6 |
| 2579 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 2580 | cat >> confdefs.h <<EOF |
| 2581 | #define $ac_tr_func 1 |
| 2582 | EOF |
| 2583 | |
| 2584 | else |
| 2585 | echo "$ac_t""no" 1>&6 |
| 2586 | fi |
| 2587 | done |
| 2588 | |
| 2589 | |
| 2590 | # For HPUX it's a little more complicated to search for isfinite |
| 2591 | echo $ac_n "checking for isfinite""... $ac_c" 1>&6 |
| 2592 | echo "configure:2593: checking for isfinite" >&5 |
| 2593 | if eval "test \"`echo '$''{'blt_cv_have_isfinite'+set}'`\" = set"; then |
| 2594 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2595 | else |
| 2596 | cat > conftest.$ac_ext <<EOF |
| 2597 | #line 2598 "configure" |
| 2598 | #include "confdefs.h" |
| 2599 | #include <math.h> |
| 2600 | int main() { |
| 2601 | |
| 2602 | double x = 1.0; |
| 2603 | if (isfinite(x)) { |
| 2604 | return 0; |
| 2605 | } |
| 2606 | |
| 2607 | ; return 0; } |
| 2608 | EOF |
| 2609 | if { (eval echo configure:2610: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 2610 | rm -rf conftest* |
| 2611 | blt_cv_have_isfinite="yes" |
| 2612 | else |
| 2613 | echo "configure: failed program was:" >&5 |
| 2614 | cat conftest.$ac_ext >&5 |
| 2615 | rm -rf conftest* |
| 2616 | blt_cv_have_isfinite="no" |
| 2617 | fi |
| 2618 | rm -f conftest* |
| 2619 | fi |
| 2620 | |
| 2621 | |
| 2622 | if test "${blt_cv_have_isfinite}" = "yes"; then |
| 2623 | cat >> confdefs.h <<\EOF |
| 2624 | #define HAVE_ISFINITE 1 |
| 2625 | EOF |
| 2626 | |
| 2627 | fi |
| 2628 | echo "$ac_t""$blt_cv_have_isfinite" 1>&6 |
| 2629 | |
| 2630 | # ----------------------------------------------------------------------- |
| 2631 | # |
| 2632 | # Check the smallest value such that 1.0 + x != 1.0. |
| 2633 | # For ANSI compilers this is DBL_EPSILON in float.h |
| 2634 | # |
| 2635 | #-------------------------------------------------------------------- |
| 2636 | |
| 2637 | echo $ac_n "checking whether DBL_EPSILON is defined in float.h""... $ac_c" 1>&6 |
| 2638 | echo "configure:2639: checking whether DBL_EPSILON is defined in float.h" >&5 |
| 2639 | if eval "test \"`echo '$''{'blt_cv_found_dbl_epsilon'+set}'`\" = set"; then |
| 2640 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2641 | else |
| 2642 | cat > conftest.$ac_ext <<EOF |
| 2643 | #line 2644 "configure" |
| 2644 | #include "confdefs.h" |
| 2645 | |
| 2646 | #ifdef HAVE_FLOAT_H |
| 2647 | #include <float.h> |
| 2648 | #endif |
| 2649 | #ifdef DBL_EPSILON |
| 2650 | yes |
| 2651 | #endif |
| 2652 | |
| 2653 | EOF |
| 2654 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 2655 | egrep "yes" >/dev/null 2>&1; then |
| 2656 | rm -rf conftest* |
| 2657 | blt_cv_found_dbl_epsilon=yes |
| 2658 | else |
| 2659 | rm -rf conftest* |
| 2660 | blt_cv_found_dbl_epsilon=no |
| 2661 | fi |
| 2662 | rm -f conftest* |
| 2663 | |
| 2664 | |
| 2665 | fi |
| 2666 | |
| 2667 | echo "$ac_t""${blt_cv_found_dbl_epsilon}" 1>&6 |
| 2668 | |
| 2669 | if test "${blt_cv_found_dbl_epsilon}" = "no" ; then |
| 2670 | if eval "test \"`echo '$''{'blt_cv_dbl_epsilon'+set}'`\" = set"; then |
| 2671 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2672 | else |
| 2673 | old_flags="$CFLAGS" |
| 2674 | CFLAGS="-g -lm" |
| 2675 | echo $ac_n "checking whether DBL_EPSILON can be computed""... $ac_c" 1>&6 |
| 2676 | echo "configure:2677: checking whether DBL_EPSILON can be computed" >&5 |
| 2677 | if test "$cross_compiling" = yes; then |
| 2678 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
| 2679 | else |
| 2680 | cat > conftest.$ac_ext <<EOF |
| 2681 | #line 2682 "configure" |
| 2682 | #include "confdefs.h" |
| 2683 | |
| 2684 | main () { |
| 2685 | double e, u; |
| 2686 | /* |
| 2687 | * Check the smallest value such that 1.0 + x != 1.0. |
| 2688 | * For ANSI compilers this is DBL_EPSILON in float.h |
| 2689 | */ |
| 2690 | u = 1.0; |
| 2691 | for(;;) { |
| 2692 | u *= 0.5; |
| 2693 | if ((1.0 + u) == 1.0) { |
| 2694 | break; |
| 2695 | } |
| 2696 | } |
| 2697 | e = u * 2.0; |
| 2698 | printf("%.17e\n", e); |
| 2699 | exit(0); |
| 2700 | } |
| 2701 | EOF |
| 2702 | eval $ac_link |
| 2703 | if test -s conftest && (./conftest > ./conftest.stdout; exit) 2>/dev/null; then |
| 2704 | blt_cv_dbl_epsilon=`cat ./conftest.stdout` |
| 2705 | else |
| 2706 | blt_cv_dbl_epsilon="" |
| 2707 | fi |
| 2708 | fi |
| 2709 | rm -fr conftest* |
| 2710 | CFLAGS="$old_flags" |
| 2711 | cat >> confdefs.h <<EOF |
| 2712 | #define BLT_DBL_EPSILON ${blt_cv_dbl_epsilon} |
| 2713 | EOF |
| 2714 | |
| 2715 | echo "$ac_t""${blt_cv_dbl_epsilon}" 1>&6 |
| 2716 | |
| 2717 | fi |
| 2718 | |
| 2719 | fi |
| 2720 | |
| 2721 | |
| 2722 | echo $ac_n "checking whether declaration is needed for strdup""... $ac_c" 1>&6 |
| 2723 | echo "configure:2724: checking whether declaration is needed for strdup" >&5 |
| 2724 | if eval "test \"`echo '$''{'blt_cv_nedd_decl_strdup'+set}'`\" = set"; then |
| 2725 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2726 | else |
| 2727 | cat > conftest.$ac_ext <<EOF |
| 2728 | #line 2729 "configure" |
| 2729 | #include "confdefs.h" |
| 2730 | |
| 2731 | #ifdef HAVE_STDLIB_H |
| 2732 | #include <stdlib.h> |
| 2733 | #endif |
| 2734 | #ifdef HAVE_STRING_H |
| 2735 | #include <string.h> |
| 2736 | #endif |
| 2737 | #ifdef HAVE_UNISTD_H |
| 2738 | #include <unistd.h> |
| 2739 | #endif /* HAVE_UNISTD_H */ |
| 2740 | |
| 2741 | EOF |
| 2742 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 2743 | egrep "strdup" >/dev/null 2>&1; then |
| 2744 | rm -rf conftest* |
| 2745 | blt_cv_need_decl_strdup=no |
| 2746 | else |
| 2747 | rm -rf conftest* |
| 2748 | blt_cv_need_decl_strdup=yes |
| 2749 | fi |
| 2750 | rm -f conftest* |
| 2751 | |
| 2752 | fi |
| 2753 | |
| 2754 | |
| 2755 | if test "${blt_cv_need_decl_strdup}" = "yes"; then |
| 2756 | cat >> confdefs.h <<\EOF |
| 2757 | #define NEED_DECL_STRDUP 1 |
| 2758 | EOF |
| 2759 | |
| 2760 | fi |
| 2761 | echo "$ac_t""$blt_cv_need_decl_strdup" 1>&6 |
| 2762 | |
| 2763 | echo $ac_n "checking whether declaration is needed for drand48""... $ac_c" 1>&6 |
| 2764 | echo "configure:2765: checking whether declaration is needed for drand48" >&5 |
| 2765 | if eval "test \"`echo '$''{'blt_cv_need_decl_drand48'+set}'`\" = set"; then |
| 2766 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2767 | else |
| 2768 | cat > conftest.$ac_ext <<EOF |
| 2769 | #line 2770 "configure" |
| 2770 | #include "confdefs.h" |
| 2771 | |
| 2772 | #ifdef HAVE_STDLIB_H |
| 2773 | #include <stdlib.h> |
| 2774 | #endif |
| 2775 | #ifdef HAVE_MATH_H |
| 2776 | #include <math.h> |
| 2777 | #endif |
| 2778 | #ifdef HAVE_UNISTD_H |
| 2779 | #include <unistd.h> |
| 2780 | #endif /* HAVE_UNISTD_H */ |
| 2781 | |
| 2782 | EOF |
| 2783 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 2784 | egrep "drand48" >/dev/null 2>&1; then |
| 2785 | rm -rf conftest* |
| 2786 | blt_cv_need_decl_drand48=no |
| 2787 | else |
| 2788 | rm -rf conftest* |
| 2789 | blt_cv_need_decl_drand48=yes |
| 2790 | fi |
| 2791 | rm -f conftest* |
| 2792 | |
| 2793 | fi |
| 2794 | |
| 2795 | |
| 2796 | if test "${blt_cv_need_decl_drand48}" = "yes"; then |
| 2797 | cat >> confdefs.h <<\EOF |
| 2798 | #define NEED_DECL_DRAND48 1 |
| 2799 | EOF |
| 2800 | |
| 2801 | fi |
| 2802 | echo "$ac_t""$blt_cv_need_decl_drand48" 1>&6 |
| 2803 | |
| 2804 | echo $ac_n "checking whether declaration is needed for srand48""... $ac_c" 1>&6 |
| 2805 | echo "configure:2806: checking whether declaration is needed for srand48" >&5 |
| 2806 | if eval "test \"`echo '$''{'blt_cv_need_decl_srand48'+set}'`\" = set"; then |
| 2807 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2808 | else |
| 2809 | cat > conftest.$ac_ext <<EOF |
| 2810 | #line 2811 "configure" |
| 2811 | #include "confdefs.h" |
| 2812 | |
| 2813 | #ifdef HAVE_STDLIB_H |
| 2814 | #include <stdlib.h> |
| 2815 | #endif |
| 2816 | #ifdef HAVE_MATH_H |
| 2817 | #include <math.h> |
| 2818 | #endif |
| 2819 | #ifdef HAVE_UNISTD_H |
| 2820 | #include <unistd.h> |
| 2821 | #endif /* HAVE_UNISTD_H */ |
| 2822 | |
| 2823 | EOF |
| 2824 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 2825 | egrep "srand48" >/dev/null 2>&1; then |
| 2826 | rm -rf conftest* |
| 2827 | blt_cv_need_decl_srand48=no |
| 2828 | else |
| 2829 | rm -rf conftest* |
| 2830 | blt_cv_need_decl_srand48=yes |
| 2831 | fi |
| 2832 | rm -f conftest* |
| 2833 | |
| 2834 | fi |
| 2835 | |
| 2836 | |
| 2837 | if test "${blt_cv_need_decl_srand48}" = "yes"; then |
| 2838 | cat >> confdefs.h <<\EOF |
| 2839 | #define NEED_DECL_SRAND48 1 |
| 2840 | EOF |
| 2841 | |
| 2842 | fi |
| 2843 | echo "$ac_t""$blt_cv_need_decl_srand48" 1>&6 |
| 2844 | |
| 2845 | echo $ac_n "checking whether declaration is needed for j1""... $ac_c" 1>&6 |
| 2846 | echo "configure:2847: checking whether declaration is needed for j1" >&5 |
| 2847 | if eval "test \"`echo '$''{'blt_cv_need_decl_j1'+set}'`\" = set"; then |
| 2848 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2849 | else |
| 2850 | cat > conftest.$ac_ext <<EOF |
| 2851 | #line 2852 "configure" |
| 2852 | #include "confdefs.h" |
| 2853 | |
| 2854 | #ifdef HAVE_STDLIB_H |
| 2855 | #include <stdlib.h> |
| 2856 | #endif |
| 2857 | #ifdef HAVE_MATH_H |
| 2858 | #include <math.h> |
| 2859 | #endif |
| 2860 | #ifdef HAVE_UNISTD_H |
| 2861 | #include <unistd.h> |
| 2862 | #endif /* HAVE_UNISTD_H */ |
| 2863 | |
| 2864 | EOF |
| 2865 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 2866 | egrep "j1" >/dev/null 2>&1; then |
| 2867 | rm -rf conftest* |
| 2868 | blt_cv_need_decl_j1=no |
| 2869 | else |
| 2870 | rm -rf conftest* |
| 2871 | blt_cv_need_decl_j1=yes |
| 2872 | fi |
| 2873 | rm -f conftest* |
| 2874 | |
| 2875 | fi |
| 2876 | |
| 2877 | |
| 2878 | if test "${blt_cv_need_decl_j1}" = "yes"; then |
| 2879 | cat >> confdefs.h <<\EOF |
| 2880 | #define NEED_DECL_J1 1 |
| 2881 | EOF |
| 2882 | |
| 2883 | fi |
| 2884 | echo "$ac_t""$blt_cv_need_decl_j1" 1>&6 |
| 2885 | |
| 2886 | # ----------------------------------------------------------------------- |
| 2887 | # |
| 2888 | # System services: X, Tcl, Tk |
| 2889 | # |
| 2890 | # ----------------------------------------------------------------------- |
| 2891 | # If we find X, set shell vars x_includes and x_libraries to the |
| 2892 | # paths, otherwise set no_x=yes. |
| 2893 | # Uses ac_ vars as temps to allow command line to override cache and checks. |
| 2894 | # --without-x overrides everything else, but does not touch the cache. |
| 2895 | echo $ac_n "checking for X""... $ac_c" 1>&6 |
| 2896 | echo "configure:2897: checking for X" >&5 |
| 2897 | |
| 2898 | # Check whether --with-x or --without-x was given. |
| 2899 | if test "${with_x+set}" = set; then |
| 2900 | withval="$with_x" |
| 2901 | : |
| 2902 | fi |
| 2903 | |
| 2904 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. |
| 2905 | if test "x$with_x" = xno; then |
| 2906 | # The user explicitly disabled X. |
| 2907 | have_x=disabled |
| 2908 | else |
| 2909 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then |
| 2910 | # Both variables are already set. |
| 2911 | have_x=yes |
| 2912 | else |
| 2913 | if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then |
| 2914 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2915 | else |
| 2916 | # One or both of the vars are not set, and there is no cached value. |
| 2917 | ac_x_includes=NO ac_x_libraries=NO |
| 2918 | rm -fr conftestdir |
| 2919 | if mkdir conftestdir; then |
| 2920 | cd conftestdir |
| 2921 | # Make sure to not put "make" in the Imakefile rules, since we grep it out. |
| 2922 | cat > Imakefile <<'EOF' |
| 2923 | acfindx: |
| 2924 | @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' |
| 2925 | EOF |
| 2926 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then |
| 2927 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
| 2928 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` |
| 2929 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. |
| 2930 | for ac_extension in a so sl; do |
| 2931 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && |
| 2932 | test -f $ac_im_libdir/libX11.$ac_extension; then |
| 2933 | ac_im_usrlibdir=$ac_im_libdir; break |
| 2934 | fi |
| 2935 | done |
| 2936 | # Screen out bogus values from the imake configuration. They are |
| 2937 | # bogus both because they are the default anyway, and because |
| 2938 | # using them would break gcc on systems where it needs fixed includes. |
| 2939 | case "$ac_im_incroot" in |
| 2940 | /usr/include) ;; |
| 2941 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;; |
| 2942 | esac |
| 2943 | case "$ac_im_usrlibdir" in |
| 2944 | /usr/lib | /lib) ;; |
| 2945 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;; |
| 2946 | esac |
| 2947 | fi |
| 2948 | cd .. |
| 2949 | rm -fr conftestdir |
| 2950 | fi |
| 2951 | |
| 2952 | if test "$ac_x_includes" = NO; then |
| 2953 | # Guess where to find include files, by looking for this one X11 .h file. |
| 2954 | test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h |
| 2955 | |
| 2956 | # First, try using that file with no special directory specified. |
| 2957 | cat > conftest.$ac_ext <<EOF |
| 2958 | #line 2959 "configure" |
| 2959 | #include "confdefs.h" |
| 2960 | #include <$x_direct_test_include> |
| 2961 | EOF |
| 2962 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 2963 | { (eval echo configure:2964: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 2964 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 2965 | if test -z "$ac_err"; then |
| 2966 | rm -rf conftest* |
| 2967 | # We can compile using X headers with no special include directory. |
| 2968 | ac_x_includes= |
| 2969 | else |
| 2970 | echo "$ac_err" >&5 |
| 2971 | echo "configure: failed program was:" >&5 |
| 2972 | cat conftest.$ac_ext >&5 |
| 2973 | rm -rf conftest* |
| 2974 | # Look for the header file in a standard set of common directories. |
| 2975 | # Check X11 before X11Rn because it is often a symlink to the current release. |
| 2976 | for ac_dir in \ |
| 2977 | /usr/X11/include \ |
| 2978 | /usr/X11R6/include \ |
| 2979 | /usr/X11R5/include \ |
| 2980 | /usr/X11R4/include \ |
| 2981 | \ |
| 2982 | /usr/include/X11 \ |
| 2983 | /usr/include/X11R6 \ |
| 2984 | /usr/include/X11R5 \ |
| 2985 | /usr/include/X11R4 \ |
| 2986 | \ |
| 2987 | /usr/local/X11/include \ |
| 2988 | /usr/local/X11R6/include \ |
| 2989 | /usr/local/X11R5/include \ |
| 2990 | /usr/local/X11R4/include \ |
| 2991 | \ |
| 2992 | /usr/local/include/X11 \ |
| 2993 | /usr/local/include/X11R6 \ |
| 2994 | /usr/local/include/X11R5 \ |
| 2995 | /usr/local/include/X11R4 \ |
| 2996 | \ |
| 2997 | /usr/X386/include \ |
| 2998 | /usr/x386/include \ |
| 2999 | /usr/XFree86/include/X11 \ |
| 3000 | \ |
| 3001 | /usr/include \ |
| 3002 | /usr/local/include \ |
| 3003 | /usr/unsupported/include \ |
| 3004 | /usr/athena/include \ |
| 3005 | /usr/local/x11r5/include \ |
| 3006 | /usr/lpp/Xamples/include \ |
| 3007 | \ |
| 3008 | /usr/openwin/include \ |
| 3009 | /usr/openwin/share/include \ |
| 3010 | ; \ |
| 3011 | do |
| 3012 | if test -r "$ac_dir/$x_direct_test_include"; then |
| 3013 | ac_x_includes=$ac_dir |
| 3014 | break |
| 3015 | fi |
| 3016 | done |
| 3017 | fi |
| 3018 | rm -f conftest* |
| 3019 | fi # $ac_x_includes = NO |
| 3020 | |
| 3021 | if test "$ac_x_libraries" = NO; then |
| 3022 | # Check for the libraries. |
| 3023 | |
| 3024 | test -z "$x_direct_test_library" && x_direct_test_library=Xt |
| 3025 | test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc |
| 3026 | |
| 3027 | # See if we find them without any special options. |
| 3028 | # Don't add to $LIBS permanently. |
| 3029 | ac_save_LIBS="$LIBS" |
| 3030 | LIBS="-l$x_direct_test_library $LIBS" |
| 3031 | cat > conftest.$ac_ext <<EOF |
| 3032 | #line 3033 "configure" |
| 3033 | #include "confdefs.h" |
| 3034 | |
| 3035 | int main() { |
| 3036 | ${x_direct_test_function}() |
| 3037 | ; return 0; } |
| 3038 | EOF |
| 3039 | if { (eval echo configure:3040: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 3040 | rm -rf conftest* |
| 3041 | LIBS="$ac_save_LIBS" |
| 3042 | # We can link X programs with no special library path. |
| 3043 | ac_x_libraries= |
| 3044 | else |
| 3045 | echo "configure: failed program was:" >&5 |
| 3046 | cat conftest.$ac_ext >&5 |
| 3047 | rm -rf conftest* |
| 3048 | LIBS="$ac_save_LIBS" |
| 3049 | # First see if replacing the include by lib works. |
| 3050 | # Check X11 before X11Rn because it is often a symlink to the current release. |
| 3051 | for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \ |
| 3052 | /usr/X11/lib \ |
| 3053 | /usr/X11R6/lib \ |
| 3054 | /usr/X11R5/lib \ |
| 3055 | /usr/X11R4/lib \ |
| 3056 | \ |
| 3057 | /usr/lib/X11 \ |
| 3058 | /usr/lib/X11R6 \ |
| 3059 | /usr/lib/X11R5 \ |
| 3060 | /usr/lib/X11R4 \ |
| 3061 | \ |
| 3062 | /usr/local/X11/lib \ |
| 3063 | /usr/local/X11R6/lib \ |
| 3064 | /usr/local/X11R5/lib \ |
| 3065 | /usr/local/X11R4/lib \ |
| 3066 | \ |
| 3067 | /usr/local/lib/X11 \ |
| 3068 | /usr/local/lib/X11R6 \ |
| 3069 | /usr/local/lib/X11R5 \ |
| 3070 | /usr/local/lib/X11R4 \ |
| 3071 | \ |
| 3072 | /usr/X386/lib \ |
| 3073 | /usr/x386/lib \ |
| 3074 | /usr/XFree86/lib/X11 \ |
| 3075 | \ |
| 3076 | /usr/lib \ |
| 3077 | /usr/local/lib \ |
| 3078 | /usr/unsupported/lib \ |
| 3079 | /usr/athena/lib \ |
| 3080 | /usr/local/x11r5/lib \ |
| 3081 | /usr/lpp/Xamples/lib \ |
| 3082 | /lib/usr/lib/X11 \ |
| 3083 | \ |
| 3084 | /usr/openwin/lib \ |
| 3085 | /usr/openwin/share/lib \ |
| 3086 | ; \ |
| 3087 | do |
| 3088 | for ac_extension in a so sl; do |
| 3089 | if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then |
| 3090 | ac_x_libraries=$ac_dir |
| 3091 | break 2 |
| 3092 | fi |
| 3093 | done |
| 3094 | done |
| 3095 | fi |
| 3096 | rm -f conftest* |
| 3097 | fi # $ac_x_libraries = NO |
| 3098 | |
| 3099 | if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then |
| 3100 | # Didn't find X anywhere. Cache the known absence of X. |
| 3101 | ac_cv_have_x="have_x=no" |
| 3102 | else |
| 3103 | # Record where we found X for the cache. |
| 3104 | ac_cv_have_x="have_x=yes \ |
| 3105 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" |
| 3106 | fi |
| 3107 | fi |
| 3108 | fi |
| 3109 | eval "$ac_cv_have_x" |
| 3110 | fi # $with_x != no |
| 3111 | |
| 3112 | if test "$have_x" != yes; then |
| 3113 | echo "$ac_t""$have_x" 1>&6 |
| 3114 | no_x=yes |
| 3115 | else |
| 3116 | # If each of the values was on the command line, it overrides each guess. |
| 3117 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes |
| 3118 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries |
| 3119 | # Update the cache value to reflect the command line values. |
| 3120 | ac_cv_have_x="have_x=yes \ |
| 3121 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" |
| 3122 | echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6 |
| 3123 | fi |
| 3124 | |
| 3125 | |
| 3126 | # ----------------------------------------------------------------------- |
| 3127 | # |
| 3128 | # Find the Tcl build configuration file "tclConfig.sh" |
| 3129 | # |
| 3130 | # ----------------------------------------------------------------------- |
| 3131 | |
| 3132 | echo $ac_n "checking for tclConfig.sh""... $ac_c" 1>&6 |
| 3133 | echo "configure:3134: checking for tclConfig.sh" >&5 |
| 3134 | tcl_config_sh="" |
| 3135 | if test "x$blt_with_tcl" != "x" ; then |
| 3136 | |
| 3137 | # Verify that a tclConfig.sh file exists in the directory specified |
| 3138 | # by --with-tcl. |
| 3139 | |
| 3140 | for dir in \ |
| 3141 | $blt_with_tcl |
| 3142 | do |
| 3143 | if test -r "$dir/tclConfig.sh" ; then |
| 3144 | tcl_config_sh="$dir/tclConfig.sh" |
| 3145 | break |
| 3146 | elif test -r "$dir/lib/tclConfig.sh" ; then |
| 3147 | tcl_config_sh="$dir/lib/tclConfig.sh" |
| 3148 | break |
| 3149 | elif test -r "$dir/$blt_platform/tclConfig.sh" ; then |
| 3150 | tcl_config_sh="$dir/$blt_platform/tclConfig.sh" |
| 3151 | break |
| 3152 | fi |
| 3153 | done |
| 3154 | else |
| 3155 | |
| 3156 | # Otherwise, search for Tcl configuration file. |
| 3157 | |
| 3158 | # 1. Search previously named locations. |
| 3159 | |
| 3160 | for dir in \ |
| 3161 | $prefix \ |
| 3162 | $exec_prefix \ |
| 3163 | $blt_cv_tcl_lib |
| 3164 | do |
| 3165 | if test -r "$dir/tclConfig.sh" ; then |
| 3166 | tcl_config_sh="$dir/tclConfig.sh" |
| 3167 | break |
| 3168 | elif test -r "$dir/lib/tclConfig.sh" ; then |
| 3169 | tcl_config_sh="$dir/lib/tclConfig.sh" |
| 3170 | break |
| 3171 | elif test -r "$dir/$blt_platform/tclConfig.sh" ; then |
| 3172 | tcl_config_sh="$dir/$blt_platform/tclConfig.sh" |
| 3173 | break |
| 3174 | fi |
| 3175 | done |
| 3176 | |
| 3177 | # 2. Search source directories. |
| 3178 | |
| 3179 | if test "x$tcl_config_sh" = "x" ; then |
| 3180 | for dir in \ |
| 3181 | `ls -dr ../tcl[7-9].[0-9]* 2>/dev/null` \ |
| 3182 | ../tcl \ |
| 3183 | `ls -dr ../../tcl[7-9].[0-9]* 2>/dev/null` \ |
| 3184 | ../../tcl \ |
| 3185 | `ls -dr ../../../tcl[7-9].[0-9]* 2>/dev/null` \ |
| 3186 | ../../../tcl |
| 3187 | do |
| 3188 | if test -r "$dir/$blt_platform/tclConfig.sh" ; then |
| 3189 | tcl_config_sh="$dir/$blt_platform/tclConfig.sh" |
| 3190 | break |
| 3191 | fi |
| 3192 | done |
| 3193 | fi |
| 3194 | |
| 3195 | # 3. Search standard locations. |
| 3196 | |
| 3197 | if test "x$tcl_config_sh" = "x" ; then |
| 3198 | for dir in \ |
| 3199 | `ls -dr /usr/local/tcl/tcl[7-9].[0-9]* 2>/dev/null` \ |
| 3200 | /usr/local/tcl \ |
| 3201 | /usr/local \ |
| 3202 | /usr |
| 3203 | do |
| 3204 | if test -r "$dir/tclConfig.sh" ; then |
| 3205 | tcl_config_sh="$dir/tclConfig.sh" |
| 3206 | break |
| 3207 | elif test -r "$dir/lib/tclConfig.sh" ; then |
| 3208 | tcl_config_sh="$dir/lib/tclConfig.sh" |
| 3209 | break |
| 3210 | fi |
| 3211 | done |
| 3212 | fi |
| 3213 | fi |
| 3214 | |
| 3215 | echo "$ac_t""${tcl_config_sh}" 1>&6 |
| 3216 | |
| 3217 | if test "x$tcl_config_sh" = "x" ; then |
| 3218 | echo "can't find Tcl configuration script \"tclConfig.sh\"" |
| 3219 | exit 1 |
| 3220 | fi |
| 3221 | |
| 3222 | # ----------------------------------------------------------------------- |
| 3223 | # |
| 3224 | # Find the Tk build configuration file "tkConfig.sh" |
| 3225 | # |
| 3226 | # ----------------------------------------------------------------------- |
| 3227 | |
| 3228 | echo $ac_n "checking for tkConfig.sh""... $ac_c" 1>&6 |
| 3229 | echo "configure:3230: checking for tkConfig.sh" >&5 |
| 3230 | tk_config_sh="" |
| 3231 | if test "x$blt_with_tk" != "x" -o "x$blt_with_tcl" != "x"; then |
| 3232 | |
| 3233 | # Verify that a tkConfig.sh file exists in the directory specified |
| 3234 | # by --with-tcl or --with-tk. |
| 3235 | |
| 3236 | for dir in \ |
| 3237 | $blt_with_tk \ |
| 3238 | $blt_with_tcl |
| 3239 | do |
| 3240 | if test -r "$dir/tkConfig.sh" ; then |
| 3241 | tk_config_sh="$dir/tkConfig.sh" |
| 3242 | break |
| 3243 | elif test -r "$dir/lib/tkConfig.sh" ; then |
| 3244 | tk_config_sh="$dir/lib/tkConfig.sh" |
| 3245 | break |
| 3246 | elif test -r "$dir/$blt_platform/tkConfig.sh" ; then |
| 3247 | tk_config_sh="$dir/$blt_platform/tkConfig.sh" |
| 3248 | break |
| 3249 | fi |
| 3250 | done |
| 3251 | else |
| 3252 | |
| 3253 | # Search for Tk configuration file. |
| 3254 | |
| 3255 | # 1. Search previously named locations. |
| 3256 | |
| 3257 | for dir in \ |
| 3258 | $prefix \ |
| 3259 | $exec_prefix \ |
| 3260 | $blt_cv_tk_lib \ |
| 3261 | $blt_cv_tcl_lib |
| 3262 | do |
| 3263 | if test -r "$dir/tkConfig.sh" ; then |
| 3264 | tk_config_sh="$dir/tkConfig.sh" |
| 3265 | break |
| 3266 | elif test -r "$dir/lib/tkConfig.sh" ; then |
| 3267 | tk_config_sh="$dir/lib/tkConfig.sh" |
| 3268 | break |
| 3269 | elif test -r "$dir/$blt_platform/tkConfig.sh" ; then |
| 3270 | tk_config_sh="$dir/$blt_platform/tkConfig.sh" |
| 3271 | break |
| 3272 | fi |
| 3273 | done |
| 3274 | |
| 3275 | # 2. Search source directories. |
| 3276 | |
| 3277 | if test "x$tk_config_sh" = "x" ; then |
| 3278 | for dir in \ |
| 3279 | ../tcl \ |
| 3280 | `ls -dr ../tk[4-9].[0-9]* 2>/dev/null` \ |
| 3281 | ../../tcl \ |
| 3282 | `ls -dr ../../tk[4-9].[0-9]* 2>/dev/null` \ |
| 3283 | ../../../tcl \ |
| 3284 | `ls -dr ../../../tk[4-9].[0-9]* 2>/dev/null` |
| 3285 | do |
| 3286 | if test -r "$dir/$blt_platform/tkConfig.sh"; then |
| 3287 | tk_config_sh="$dir/$blt_platform/tkConfig.sh" |
| 3288 | break |
| 3289 | fi |
| 3290 | done |
| 3291 | fi |
| 3292 | |
| 3293 | # 3. Search standard locations. |
| 3294 | |
| 3295 | if test "x$tk_config_sh" = "x" ; then |
| 3296 | for dir in \ |
| 3297 | `ls -dr /usr/local/tcl/tcl[7-9].[0-9]* 2>/dev/null` \ |
| 3298 | /usr/local/tcl \ |
| 3299 | /usr/local \ |
| 3300 | ${x_libraries} \ |
| 3301 | /usr |
| 3302 | do |
| 3303 | if test -r "$dir/tkConfig.sh" ; then |
| 3304 | tk_config_sh="$dir/tkConfig.sh" |
| 3305 | break |
| 3306 | elif test -r "$dir/lib/tkConfig.sh" ; then |
| 3307 | tk_config_sh="$dir/lib/tkConfig.sh" |
| 3308 | break |
| 3309 | fi |
| 3310 | done |
| 3311 | fi |
| 3312 | fi |
| 3313 | echo "$ac_t""${tk_config_sh}" 1>&6 |
| 3314 | |
| 3315 | if test "x$tk_config_sh" = "x" ; then |
| 3316 | echo "can't find Tk configuration script \"tkConfig.sh\"" |
| 3317 | exit 1 |
| 3318 | fi |
| 3319 | |
| 3320 | # ----------------------------------------------------------------------- |
| 3321 | # |
| 3322 | # Source in the Tcl/Tk configuration scripts. |
| 3323 | # |
| 3324 | # ----------------------------------------------------------------------- |
| 3325 | |
| 3326 | . $tcl_config_sh |
| 3327 | . $tk_config_sh |
| 3328 | |
| 3329 | TCL_INC_DIR="" |
| 3330 | TK_INC_DIR="" |
| 3331 | |
| 3332 | if test "x${blt_with_tcl_includes}" != "x" ; then |
| 3333 | if test -r "${blt_with_tcl_includes}/tcl.h" ; then |
| 3334 | TCL_INC_DIR=${blt_with_tcl_includes} |
| 3335 | else |
| 3336 | echo "Can't find tcl.h in \"${blt_with_tcl_includes}\"" |
| 3337 | exit 1 |
| 3338 | fi |
| 3339 | else |
| 3340 | for dir in \ |
| 3341 | ${TCL_PREFIX}/include/tcl${TCL_MAJOR_VERSION}.${TCL_MINOR_VERSION} \ |
| 3342 | ${TCL_PREFIX}/include \ |
| 3343 | ${TCL_SRC_DIR}/generic |
| 3344 | do |
| 3345 | if test -r "$dir/tcl.h" ; then |
| 3346 | TCL_INC_DIR=$dir |
| 3347 | break |
| 3348 | fi |
| 3349 | done |
| 3350 | if test "x${TCL_INC_DIR}" = "x" ; then |
| 3351 | echo "Can't find tcl.h header file" |
| 3352 | exit 1 |
| 3353 | fi |
| 3354 | fi |
| 3355 | |
| 3356 | if test "x${blt_with_tk_includes}" != "x" ; then |
| 3357 | if test -r "${blt_with_tk_includes}/tk.h" ; then |
| 3358 | TK_INC_DIR=${blt_with_tk_includes} |
| 3359 | else |
| 3360 | echo "Can't find tk.h in \"${blt_with_tk_includes}\"" |
| 3361 | exit 1 |
| 3362 | fi |
| 3363 | else |
| 3364 | for dir in \ |
| 3365 | ${TK_PREFIX}/include/tk${TK_MAJOR_VERSION}.${TK_MINOR_VERSION} \ |
| 3366 | ${TK_PREFIX}/include \ |
| 3367 | ${TK_SRC_DIR}/generic \ |
| 3368 | ${TCL_INC_DIR} |
| 3369 | do |
| 3370 | if test -r "$dir/tk.h" ; then |
| 3371 | TK_INC_DIR=$dir |
| 3372 | break |
| 3373 | fi |
| 3374 | done |
| 3375 | if test "x${TK_INC_DIR}" = "x" ; then |
| 3376 | echo "Can't find tk.h header file" |
| 3377 | exit 1 |
| 3378 | fi |
| 3379 | fi |
| 3380 | |
| 3381 | case $target in |
| 3382 | *-sunos4*|*-*-netbsd|NetBSD-*|FreeBSD-*|OpenBSD-*|*-*-cygwin*|*-*-mingw*) |
| 3383 | TCL_LIB_NAME="tcl${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION}" |
| 3384 | TK_LIB_NAME="tk${TK_MAJOR_VERSION}${TK_MINOR_VERSION}" |
| 3385 | ;; |
| 3386 | *) |
| 3387 | TCL_LIB_NAME="tcl${TCL_MAJOR_VERSION}.${TCL_MINOR_VERSION}" |
| 3388 | TK_LIB_NAME="tk${TK_MAJOR_VERSION}.${TK_MINOR_VERSION}" |
| 3389 | ;; |
| 3390 | esac |
| 3391 | |
| 3392 | TCL_LIB_SPEC="-l${TCL_LIB_NAME}" |
| 3393 | TK_LIB_SPEC="-l${TK_LIB_NAME}" |
| 3394 | |
| 3395 | case $target in |
| 3396 | *-hpux*) |
| 3397 | SHLIB_SUFFIX="sl" |
| 3398 | ;; |
| 3399 | *) |
| 3400 | SHLIB_SUFFIX="so" |
| 3401 | ;; |
| 3402 | esac |
| 3403 | |
| 3404 | TCL_LIB_DIR="${TCL_SRC_DIR}/$blt_platform" |
| 3405 | TK_LIB_DIR="${TK_SRC_DIR}/$blt_platform" |
| 3406 | |
| 3407 | if test "x${blt_with_tcl_libraries}" != "x" ; then |
| 3408 | for libname in \ |
| 3409 | "${blt_with_tcl_libraries}/lib${TCL_LIB_NAME}.${SHLIB_SUFFIX}" \ |
| 3410 | "${blt_with_tcl_libraries}/lib${TCL_LIB_NAME}.a" |
| 3411 | do |
| 3412 | if test -r "$libname" ; then |
| 3413 | TCL_LIB_DIR="${blt_with_tcl_libraries}" |
| 3414 | break |
| 3415 | fi |
| 3416 | done |
| 3417 | if test "x${TCL_LIB_DIR}" = "x" ; then |
| 3418 | echo "Can't find tcl library in \"${blt_with_tcl_libraries}\"" |
| 3419 | exit 1 |
| 3420 | fi |
| 3421 | else |
| 3422 | for libname in \ |
| 3423 | "${TCL_EXEC_PREFIX}/lib/lib${TCL_LIB_NAME}.${SHLIB_SUFFIX}" \ |
| 3424 | "${TCL_EXEC_PREFIX}/lib/lib${TCL_LIB_NAME}.a" |
| 3425 | do |
| 3426 | if test -r "$libname" ; then |
| 3427 | TCL_LIB_DIR="${TCL_EXEC_PREFIX}/lib" |
| 3428 | break |
| 3429 | fi |
| 3430 | done |
| 3431 | if test "x${TCL_LIB_DIR}" = "x" ; then |
| 3432 | echo "Can't find tcl library" |
| 3433 | exit 1 |
| 3434 | fi |
| 3435 | fi |
| 3436 | |
| 3437 | if test "x${blt_with_tk_libraries}" != "x" ; then |
| 3438 | for libname in \ |
| 3439 | "${blt_with_tk_libraries}/lib${TK_LIB_NAME}.${SHLIB_SUFFIX}" \ |
| 3440 | "${blt_with_tk_libraries}/lib${TK_LIB_NAME}.a" |
| 3441 | do |
| 3442 | if test -r "$libname" ; then |
| 3443 | TK_LIB_DIR="${blt_with_tk_libraries}" |
| 3444 | break |
| 3445 | fi |
| 3446 | done |
| 3447 | if test "x${TK_LIB_DIR}" = "x" ; then |
| 3448 | echo "Can't find tk library in \"${blt_with_tk_libraries}\"" |
| 3449 | exit 1 |
| 3450 | fi |
| 3451 | else |
| 3452 | for libname in \ |
| 3453 | "${TK_EXEC_PREFIX}/lib/lib${TK_LIB_NAME}.${SHLIB_SUFFIX}" \ |
| 3454 | "${TK_EXEC_PREFIX}/lib/lib${TK_LIB_NAME}.a" |
| 3455 | do |
| 3456 | if test -r "$libname" ; then |
| 3457 | TK_LIB_DIR="${TK_EXEC_PREFIX}/lib" |
| 3458 | break |
| 3459 | fi |
| 3460 | done |
| 3461 | if test "x${TK_LIB_DIR}" = "x" ; then |
| 3462 | echo "Can't find tk library" |
| 3463 | exit 1 |
| 3464 | fi |
| 3465 | fi |
| 3466 | |
| 3467 | # ----------------------------------------------------------------------- |
| 3468 | # |
| 3469 | # Include files |
| 3470 | # |
| 3471 | # Append to INC_SPECS the various include files specifications |
| 3472 | # (built fromt the include directory information). |
| 3473 | # |
| 3474 | # ----------------------------------------------------------------------- |
| 3475 | |
| 3476 | # JPEG include files |
| 3477 | if test "${blt_enable_jpeg}" != "no" ; then |
| 3478 | if test "x${JPEG_INC_SPEC}" != "x" ; then |
| 3479 | INC_SPECS="${INC_SPECS} ${JPEG_INC_SPEC}" |
| 3480 | fi |
| 3481 | fi |
| 3482 | |
| 3483 | # Tk include files |
| 3484 | if test "${TK_INC_DIR}" != "/usr/include" ; then |
| 3485 | INC_SPECS="${INC_SPECS} -I${TK_INC_DIR}" |
| 3486 | fi |
| 3487 | |
| 3488 | # Tcl include files |
| 3489 | # |
| 3490 | # Add the include directory specification only if the Tcl |
| 3491 | # headers reside in a different directory from Tk's. |
| 3492 | if test "${TCL_INC_DIR}" != "/usr/include" -a \ |
| 3493 | "${TCL_INC_DIR}" != "${TK_INC_DIR}" ; then |
| 3494 | INC_SPECS="${INC_SPECS} -I${TCL_INC_DIR}" |
| 3495 | fi |
| 3496 | |
| 3497 | |
| 3498 | # On Windows, override the default include directory with our own. |
| 3499 | if test "${blt_platform}" = "win"; then |
| 3500 | x_includes="NONE" |
| 3501 | fi |
| 3502 | |
| 3503 | # X11 include files |
| 3504 | if test "x${x_includes}" != "x" -a \ |
| 3505 | "${x_includes}" != "NONE" -a \ |
| 3506 | "${x_includes}" != "/usr/include" -a \ |
| 3507 | "${x_includes}" != "${TK_INC_DIR}" -a \ |
| 3508 | "${x_includes}" != "${TCL_INC_DIR}" ; then |
| 3509 | INC_SPECS="${INC_SPECS} -I${x_includes}" |
| 3510 | fi |
| 3511 | |
| 3512 | # ----------------------------------------------------------------------- |
| 3513 | # |
| 3514 | # Libraries |
| 3515 | # |
| 3516 | # Append to LIB the various library specifications |
| 3517 | # (built from the library directory information). |
| 3518 | # |
| 3519 | # ----------------------------------------------------------------------- |
| 3520 | |
| 3521 | # Tk libraries |
| 3522 | if test "${TK_LIB_DIR}" = "/usr/lib" ; then |
| 3523 | LIB_SPECS="${LIB_SPECS} ${TK_LIB_SPEC}" |
| 3524 | else |
| 3525 | LIB_SPECS="${LIB_SPECS} -L${TK_LIB_DIR} ${TK_LIB_SPEC}" |
| 3526 | if test "x${loader_run_path}" = "x" ; then |
| 3527 | loader_run_path="${TK_LIB_DIR}" |
| 3528 | else |
| 3529 | loader_run_path="${TK_LIB_DIR}:${loader_run_path}" |
| 3530 | fi |
| 3531 | fi |
| 3532 | |
| 3533 | # Tcl libraries |
| 3534 | if test "${TCL_LIB_DIR}" = "/usr/lib" -o \ |
| 3535 | "${TCL_LIB_DIR}" = "${TK_LIB_DIR}" ; then |
| 3536 | LIB_SPECS="${LIB_SPECS} ${TCL_LIB_SPEC}" |
| 3537 | else |
| 3538 | LIB_SPECS="${LIB_SPECS} -L${TCL_LIB_DIR} ${TCL_LIB_SPEC}" |
| 3539 | if test "x${loader_run_path}" = "x" ; then |
| 3540 | loader_run_path="${TCL_LIB_DIR}" |
| 3541 | else |
| 3542 | loader_run_path="${TCL_LIB_DIR}:${loader_run_path}" |
| 3543 | fi |
| 3544 | fi |
| 3545 | |
| 3546 | if test "${TCL_LIB_DIR}" = "/usr/lib" ; then |
| 3547 | TCL_ONLY_LIB_SPECS="${TCL_LIB_SPEC}" |
| 3548 | else |
| 3549 | TCL_ONLY_LIB_SPECS="-L${TCL_LIB_DIR} ${TCL_LIB_SPEC}" |
| 3550 | fi |
| 3551 | |
| 3552 | |
| 3553 | # Collect the libraries for AIX that aren't using stubs. |
| 3554 | aix_lib_specs="" |
| 3555 | |
| 3556 | |
| 3557 | if test "${blt_platform}" = "win"; then |
| 3558 | LIB_SPECS="${LIB_SPECS} -mwindows" |
| 3559 | elif test "${blt_platform}" = "unix"; then |
| 3560 | |
| 3561 | # Add specification for X11 library only on Unix platforms. |
| 3562 | |
| 3563 | if test "x${x_libraries}" = "x" -o \ |
| 3564 | "x${x_libraries}" = "NONE" -o \ |
| 3565 | "${x_libraries}" = "/usr/lib" -o \ |
| 3566 | "${x_libraries}" = "${TK_LIB_DIR}" -o \ |
| 3567 | "${x_libraries}" = "${TCL_LIB_DIR}" ; then |
| 3568 | LIB_SPECS="${LIB_SPECS} -lX11" |
| 3569 | aix_lib_specs="${aix_lib_specs} -lX11" |
| 3570 | else |
| 3571 | LIB_SPECS="${LIB_SPECS} -L${x_libraries} -lX11" |
| 3572 | aix_lib_specs="${aix_lib_specs} -L${x_libraries} -lX11" |
| 3573 | if test "x${loader_run_path}" = "x" ; then |
| 3574 | loader_run_path="${x_libraries}" |
| 3575 | else |
| 3576 | loader_run_path="${loader_run_path}:${x_libraries}" |
| 3577 | fi |
| 3578 | fi |
| 3579 | fi |
| 3580 | |
| 3581 | # JPEG library |
| 3582 | if test "${blt_enable_jpeg}" != "no" ; then |
| 3583 | jpeg_save_LDFlags="${LDFLAGS}" |
| 3584 | JPEG_LIB_SPEC="-ljpeg" |
| 3585 | JPEG_LIB_DIR="" |
| 3586 | if test "${blt_enable_jpeg}" != "yes" ; then |
| 3587 | JPEG_LIB_DIR="${blt_enable_jpeg}/lib" |
| 3588 | JPEG_LIB_SPEC="-L${JPEG_LIB_DIR} ${JPEG_LIB_SPEC}" |
| 3589 | LDFLAGS="-L${JPEG_LIB_DIR} ${LDFLAGS}" |
| 3590 | fi |
| 3591 | echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6 |
| 3592 | echo "configure:3593: checking for jpeg_read_header in -ljpeg" >&5 |
| 3593 | ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'` |
| 3594 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 3595 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3596 | else |
| 3597 | ac_save_LIBS="$LIBS" |
| 3598 | LIBS="-ljpeg $LIBS" |
| 3599 | cat > conftest.$ac_ext <<EOF |
| 3600 | #line 3601 "configure" |
| 3601 | #include "confdefs.h" |
| 3602 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3603 | /* We use char because int might match the return type of a gcc2 |
| 3604 | builtin and then its argument prototype would still apply. */ |
| 3605 | char jpeg_read_header(); |
| 3606 | |
| 3607 | int main() { |
| 3608 | jpeg_read_header() |
| 3609 | ; return 0; } |
| 3610 | EOF |
| 3611 | if { (eval echo configure:3612: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 3612 | rm -rf conftest* |
| 3613 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 3614 | else |
| 3615 | echo "configure: failed program was:" >&5 |
| 3616 | cat conftest.$ac_ext >&5 |
| 3617 | rm -rf conftest* |
| 3618 | eval "ac_cv_lib_$ac_lib_var=no" |
| 3619 | fi |
| 3620 | rm -f conftest* |
| 3621 | LIBS="$ac_save_LIBS" |
| 3622 | |
| 3623 | fi |
| 3624 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 3625 | echo "$ac_t""yes" 1>&6 |
| 3626 | found=yes |
| 3627 | else |
| 3628 | echo "$ac_t""no" 1>&6 |
| 3629 | found=no |
| 3630 | fi |
| 3631 | |
| 3632 | if test "${found}" = "yes" ; then |
| 3633 | LIB_SPECS="${LIB_SPECS} ${JPEG_LIB_SPEC}" |
| 3634 | aix_lib_specs="${aix_lib_specs} ${JPEG_LIB_SPEC}" |
| 3635 | if test "x${JPEG_LIB_DIR}" != "x" ; then |
| 3636 | loader_run_path="${loader_run_path}:${JPEG_LIB_DIR}" |
| 3637 | fi |
| 3638 | fi |
| 3639 | LDFLAGS=${jpeg_save_LDFlags} |
| 3640 | fi |
| 3641 | |
| 3642 | save_libs=$LIBS |
| 3643 | LIBS="$LIB_SPECS $LIBS" |
| 3644 | for ac_func in XExtendedMaxRequestSize |
| 3645 | do |
| 3646 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
| 3647 | echo "configure:3648: checking for $ac_func" >&5 |
| 3648 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
| 3649 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3650 | else |
| 3651 | cat > conftest.$ac_ext <<EOF |
| 3652 | #line 3653 "configure" |
| 3653 | #include "confdefs.h" |
| 3654 | /* System header to define __stub macros and hopefully few prototypes, |
| 3655 | which can conflict with char $ac_func(); below. */ |
| 3656 | #include <assert.h> |
| 3657 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3658 | /* We use char because int might match the return type of a gcc2 |
| 3659 | builtin and then its argument prototype would still apply. */ |
| 3660 | char $ac_func(); |
| 3661 | |
| 3662 | int main() { |
| 3663 | |
| 3664 | /* The GNU C library defines this for functions which it implements |
| 3665 | to always fail with ENOSYS. Some functions are actually named |
| 3666 | something starting with __ and the normal name is an alias. */ |
| 3667 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 3668 | choke me |
| 3669 | #else |
| 3670 | $ac_func(); |
| 3671 | #endif |
| 3672 | |
| 3673 | ; return 0; } |
| 3674 | EOF |
| 3675 | if { (eval echo configure:3676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 3676 | rm -rf conftest* |
| 3677 | eval "ac_cv_func_$ac_func=yes" |
| 3678 | else |
| 3679 | echo "configure: failed program was:" >&5 |
| 3680 | cat conftest.$ac_ext >&5 |
| 3681 | rm -rf conftest* |
| 3682 | eval "ac_cv_func_$ac_func=no" |
| 3683 | fi |
| 3684 | rm -f conftest* |
| 3685 | fi |
| 3686 | |
| 3687 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
| 3688 | echo "$ac_t""yes" 1>&6 |
| 3689 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 3690 | cat >> confdefs.h <<EOF |
| 3691 | #define $ac_tr_func 1 |
| 3692 | EOF |
| 3693 | |
| 3694 | else |
| 3695 | echo "$ac_t""no" 1>&6 |
| 3696 | fi |
| 3697 | done |
| 3698 | |
| 3699 | LIBS=$save_libs |
| 3700 | |
| 3701 | # ----------------------------------------------------------------------- |
| 3702 | # |
| 3703 | # Set up a new default prefix to installation path. The ways |
| 3704 | # the prefix can be set and their precedence are as follows: |
| 3705 | # |
| 3706 | # 1. --prefix option given to ./configure. (prefix != NONE) |
| 3707 | # 2. use previously configured Tk prefix |
| 3708 | # |
| 3709 | # ----------------------------------------------------------------------- |
| 3710 | |
| 3711 | if test "$prefix" = "NONE" ; then |
| 3712 | prefix=${TCL_PREFIX} |
| 3713 | fi |
| 3714 | |
| 3715 | if test "$exec_prefix" = "NONE" ; then |
| 3716 | exec_prefix=$prefix |
| 3717 | fi |
| 3718 | |
| 3719 | # ------------------------------------------------------------------------- |
| 3720 | # |
| 3721 | # Extract the BLT version number for the blt.h header |
| 3722 | # |
| 3723 | # ------------------------------------------------------------------------- |
| 3724 | echo $ac_n "checking BLT_MAJOR_VERSION""... $ac_c" 1>&6 |
| 3725 | echo "configure:3726: checking BLT_MAJOR_VERSION" >&5 |
| 3726 | if eval "test \"`echo '$''{'blt_cv_major_version'+set}'`\" = set"; then |
| 3727 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3728 | else |
| 3729 | cat > conftest.awk <<EOF |
| 3730 | /^# *define *BLT_MAJOR_VERSION[ \t]/ { print \$3 } |
| 3731 | EOF |
| 3732 | blt_cv_major_version=`${AWK} -f conftest.awk ${srcdir}/generic/blt.h` |
| 3733 | rm -rf conftest* |
| 3734 | |
| 3735 | fi |
| 3736 | |
| 3737 | BLT_MAJOR_VERSION=${blt_cv_major_version} |
| 3738 | echo "$ac_t""$blt_cv_major_version" 1>&6 |
| 3739 | |
| 3740 | echo $ac_n "checking BLT_MINOR_VERSION""... $ac_c" 1>&6 |
| 3741 | echo "configure:3742: checking BLT_MINOR_VERSION" >&5 |
| 3742 | if eval "test \"`echo '$''{'blt_cv_minor_version'+set}'`\" = set"; then |
| 3743 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3744 | else |
| 3745 | cat > conftest.awk <<EOF |
| 3746 | /^# *define *BLT_MINOR_VERSION[ \t]/ { print \$3 } |
| 3747 | EOF |
| 3748 | blt_cv_minor_version=`${AWK} -f conftest.awk ${srcdir}/generic/blt.h` |
| 3749 | rm -rf conftest* |
| 3750 | |
| 3751 | fi |
| 3752 | |
| 3753 | echo "$ac_t""$blt_cv_minor_version" 1>&6 |
| 3754 | BLT_MINOR_VERSION=${blt_cv_minor_version} |
| 3755 | |
| 3756 | BLT_VERSION=${BLT_MAJOR_VERSION}.${BLT_MINOR_VERSION} |
| 3757 | |
| 3758 | # Add BLT to the run path |
| 3759 | libdir=${exec_prefix}/lib |
| 3760 | |
| 3761 | if test "x${libdir}" != "x" -a \ |
| 3762 | "${libdir}" != "/usr/lib" -a \ |
| 3763 | "${libdir}" != "${x_libraries}" -a \ |
| 3764 | "${libdir}" != "${TK_LIB_DIR}" -a \ |
| 3765 | "${libdir}" != "${TCL_LIB_DIR}" ; then |
| 3766 | if test "x${loader_run_path}" = "x" ; then |
| 3767 | loader_run_path="${libdir}" |
| 3768 | else |
| 3769 | loader_run_path="${libdir}:${loader_run_path}" |
| 3770 | fi |
| 3771 | fi |
| 3772 | |
| 3773 | aix_lib_specs="${aix_lib_specs} ${LIBS}" |
| 3774 | LIB_SPECS="${LIB_SPECS} ${LIBS}" |
| 3775 | TCL_ONLY_LIB_SPECS="${TCL_ONLY_LIB_SPECS} ${LIBS}" |
| 3776 | |
| 3777 | # ------------------------------------------------------------------------- |
| 3778 | # |
| 3779 | # Extract the Tcl version number for the tcl.h header |
| 3780 | # |
| 3781 | # ------------------------------------------------------------------------- |
| 3782 | echo $ac_n "checking TCL_VERSION in tcl.h""... $ac_c" 1>&6 |
| 3783 | echo "configure:3784: checking TCL_VERSION in tcl.h" >&5 |
| 3784 | if eval "test \"`echo '$''{'blt_cv_tcl_h_version'+set}'`\" = set"; then |
| 3785 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3786 | else |
| 3787 | cat > conftest.awk <<EOF |
| 3788 | /^# *define *TCL_VERSION[ \t]/ { print \$3 } |
| 3789 | EOF |
| 3790 | blt_cv_tcl_h_version=`${AWK} -f conftest.awk ${TCL_INC_DIR}/tcl.h` |
| 3791 | rm -rf conftest* |
| 3792 | |
| 3793 | fi |
| 3794 | |
| 3795 | eval TCL_H_VERSION=${blt_cv_tcl_h_version} |
| 3796 | echo "$ac_t""$TCL_H_VERSION" 1>&6 |
| 3797 | if test "${TCL_H_VERSION}" != "${TCL_VERSION}" ; then |
| 3798 | echo "Error: Tcl version mismatch. " |
| 3799 | echo " ${TCL_VERSION} ${tcl_config_sh}" |
| 3800 | echo " ${TCL_H_VERSION} ${TCL_INC_DIR}/tcl.h" |
| 3801 | exit 1 |
| 3802 | fi |
| 3803 | echo $ac_n "checking TK_VERSION in tk.h""... $ac_c" 1>&6 |
| 3804 | echo "configure:3805: checking TK_VERSION in tk.h" >&5 |
| 3805 | if eval "test \"`echo '$''{'blt_cv_tk_h_version'+set}'`\" = set"; then |
| 3806 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3807 | else |
| 3808 | cat > conftest.awk <<EOF |
| 3809 | /^# *define *TK_VERSION[ \t]/ { print \$3 } |
| 3810 | EOF |
| 3811 | blt_cv_tk_h_version=`${AWK} -f conftest.awk ${TK_INC_DIR}/tk.h` |
| 3812 | rm -rf conftest* |
| 3813 | |
| 3814 | fi |
| 3815 | |
| 3816 | eval TK_H_VERSION=${blt_cv_tk_h_version} |
| 3817 | echo "$ac_t""$TK_H_VERSION" 1>&6 |
| 3818 | if test "${TK_H_VERSION}" != "${TK_VERSION}" ; then |
| 3819 | echo "Error: Tk version mismatch." |
| 3820 | echo " ${TK_VERSION} ${tk_config_sh}" |
| 3821 | echo " ${TK_H_VERSION} ${TK_INC_DIR}/tk.h" |
| 3822 | exit 1 |
| 3823 | fi |
| 3824 | |
| 3825 | if test "$TCL_VERSION" = "7.6" -a "$TK_VERSION" = "4.2" ; then |
| 3826 | : |
| 3827 | elif test "$TCL_VERSION" = "7.5" -a "$TK_VERSION" = "4.1" ; then |
| 3828 | : |
| 3829 | elif test "$TCL_VERSION" = "$TK_VERSION" ; then |
| 3830 | : |
| 3831 | else |
| 3832 | echo "Mismatched Tcl/Tk versions ($TCL_VERSION != $TK_VERSION)" |
| 3833 | exit 1 |
| 3834 | fi |
| 3835 | |
| 3836 | #-------------------------------------------------------------------- |
| 3837 | # |
| 3838 | # Check if we can generate shared libraries on this system. Set flags |
| 3839 | # to generate shared libraries for systems that we know about. Start |
| 3840 | # with the values found in tclConfig.sh, make changes as we know about |
| 3841 | # the different systems. |
| 3842 | # |
| 3843 | #-------------------------------------------------------------------- |
| 3844 | |
| 3845 | LIB_BASE_NAME=libBLT |
| 3846 | |
| 3847 | # Initialize shared library build variables |
| 3848 | |
| 3849 | SHLIB_CFLAGS="$TCL_SHLIB_CFLAGS" |
| 3850 | SHLIB_LD="$TCL_SHLIB_LD" |
| 3851 | SHLIB_LD_FLAGS="$TCL_LD_FLAGS" |
| 3852 | SHLIB_RUNPATH="$TCL_LD_SEARCH_FLAGS" |
| 3853 | |
| 3854 | SHLIB_SUFFIX=".so" |
| 3855 | SHLIB_TARGET="" |
| 3856 | SHLIB_CFLAGS="" |
| 3857 | SHLIB_LIB_SPECS="${JPEG_LIB_SPEC}" |
| 3858 | SHLIB_TCL_ONLY_LIB_SPECS="${TCL_ONLY_LIB_SPECS}" |
| 3859 | SHLIB_TCL_ONLY_LIB_SPECS="" |
| 3860 | LDFLAGS="" |
| 3861 | LD_RUN_PATH="" |
| 3862 | EXTRA_LIB_SPECS="" |
| 3863 | |
| 3864 | build_shared="yes" |
| 3865 | library_name=libBLT${BLT_MAJOR_VERSION}${BLT_MINOR_VERSION} |
| 3866 | |
| 3867 | case $target in |
| 3868 | *-aix4.[2-9]*) |
| 3869 | # No Position-Independent flags needed |
| 3870 | SHLIB_CFLAGS="" |
| 3871 | |
| 3872 | # Use the installed export file or the one found in the source directory. |
| 3873 | |
| 3874 | if test -r "${TCL_LIB_DIR}/lib${TCL_LIB_NAME}.exp" ; then |
| 3875 | tcl_exp="${TCL_LIB_DIR}/lib${TCL_LIB_NAME}.exp" |
| 3876 | else |
| 3877 | tcl_exp="${TCL_SRC_DIR}/unix/lib.exp" |
| 3878 | fi |
| 3879 | if test -r "${TK_LIB_DIR}/lib${TK_LIB_NAME}.exp" ; then |
| 3880 | tk_exp="${TK_LIB_DIR}/lib${TK_LIB_NAME}.exp" |
| 3881 | else |
| 3882 | tk_exp="${TK_SRC_DIR}/unix/lib.exp" |
| 3883 | fi |
| 3884 | |
| 3885 | full_src_path=`cd ${srcdir}; pwd` |
| 3886 | |
| 3887 | # Use shell-script to link shared library |
| 3888 | SHLIB_LD="${full_src_path}/cf/ldAix /bin/ld -bhalt:4 -bM:SRE -bE:lib.exp -H512 -T512 -bnoentry -bI:${tk_exp} -bI:${tcl_exp}" |
| 3889 | |
| 3890 | SHLIB_LIB_SPECS="${aix_lib_specs} -lc" |
| 3891 | |
| 3892 | LDFLAGS="-L${loader_run_path}" |
| 3893 | EXTRA_LIB_SPECS="-ldl" |
| 3894 | ;; |
| 3895 | |
| 3896 | *-aix*) |
| 3897 | # No Position-Independent flags needed |
| 3898 | SHLIB_CFLAGS="" |
| 3899 | |
| 3900 | # Use the installed export file or the one found in the source directory. |
| 3901 | |
| 3902 | if test -r "${TCL_LIB_DIR}/lib${TCL_LIB_NAME}.exp" ; then |
| 3903 | tcl_exp="${TCL_LIB_DIR}/lib${TCL_LIB_NAME}.exp" |
| 3904 | else |
| 3905 | tcl_exp="${TCL_SRC_DIR}/unix/lib.exp" |
| 3906 | fi |
| 3907 | if test -r "${TK_LIB_DIR}/lib${TK_LIB_NAME}.exp" ; then |
| 3908 | tk_exp="${TK_LIB_DIR}/lib${TK_LIB_NAME}.exp" |
| 3909 | else |
| 3910 | tk_exp="${TK_SRC_DIR}/unix/lib.exp" |
| 3911 | fi |
| 3912 | |
| 3913 | full_src_path=`cd ${srcdir}/cf; pwd` |
| 3914 | |
| 3915 | # Use shell-script to link shared library |
| 3916 | |
| 3917 | SHLIB_LD="${full_src_path}/ldAix /bin/ld -bhalt:4 -bM:SRE -bE:lib.exp -H512 -T512 -bnoentry -bI:${tk_exp} -bI:${tcl_exp}" |
| 3918 | |
| 3919 | SHLIB_LIB_SPECS="${aix_lib_specs} -lc" |
| 3920 | |
| 3921 | LDFLAGS="-L${loader_run_path}" |
| 3922 | EXTRA_LIB_SPECS="-lld" |
| 3923 | ;; |
| 3924 | |
| 3925 | *-bsdi2*|*-bsdi3*) |
| 3926 | SHLIB_CFLAGS="" |
| 3927 | SHLIB_LD="shlicc" |
| 3928 | SHLIB_LD_FLAGS="-r" |
| 3929 | |
| 3930 | EXTRA_LIB_SPECS="-ldl" |
| 3931 | ;; |
| 3932 | |
| 3933 | *-bsdi4*) |
| 3934 | SHLIB_CFLAGS="-export-dynamic -fPIC" |
| 3935 | SHLIB_LD="${CC}" |
| 3936 | SHLIB_LD_FLAGS='-shared -Wl,-E -Wl,-soname,$@' |
| 3937 | ;; |
| 3938 | |
| 3939 | *-*-cygwin* | *-*-mingw*) |
| 3940 | SHLIB_LD="${CC}" |
| 3941 | SHLIB_LD_FLAGS='-shared -Wl,-E -Wl,--out-implib,$@' |
| 3942 | EXTRA_LIB_SPECS="-lwinspool" |
| 3943 | LDFLAGS="" |
| 3944 | ;; |
| 3945 | |
| 3946 | *-dgux*) |
| 3947 | SHLIB_CFLAGS="-K PIC" |
| 3948 | SHLIB_LD="cc" |
| 3949 | SHLIB_LD_FLAGS="-G" |
| 3950 | |
| 3951 | EXTRA_LIB_SPECS="-ldl" |
| 3952 | ;; |
| 3953 | |
| 3954 | *-hpux*) |
| 3955 | if test "$blt_have_gcc" = "no" ; then |
| 3956 | DEFINES="$DEFINES -D_HPUX_SOURCE" |
| 3957 | fi |
| 3958 | echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6 |
| 3959 | echo "configure:3960: checking for shl_load in -ldld" >&5 |
| 3960 | ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'` |
| 3961 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 3962 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3963 | else |
| 3964 | ac_save_LIBS="$LIBS" |
| 3965 | LIBS="-ldld $LIBS" |
| 3966 | cat > conftest.$ac_ext <<EOF |
| 3967 | #line 3968 "configure" |
| 3968 | #include "confdefs.h" |
| 3969 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3970 | /* We use char because int might match the return type of a gcc2 |
| 3971 | builtin and then its argument prototype would still apply. */ |
| 3972 | char shl_load(); |
| 3973 | |
| 3974 | int main() { |
| 3975 | shl_load() |
| 3976 | ; return 0; } |
| 3977 | EOF |
| 3978 | if { (eval echo configure:3979: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 3979 | rm -rf conftest* |
| 3980 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 3981 | else |
| 3982 | echo "configure: failed program was:" >&5 |
| 3983 | cat conftest.$ac_ext >&5 |
| 3984 | rm -rf conftest* |
| 3985 | eval "ac_cv_lib_$ac_lib_var=no" |
| 3986 | fi |
| 3987 | rm -f conftest* |
| 3988 | LIBS="$ac_save_LIBS" |
| 3989 | |
| 3990 | fi |
| 3991 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 3992 | echo "$ac_t""yes" 1>&6 |
| 3993 | found=yes |
| 3994 | else |
| 3995 | echo "$ac_t""no" 1>&6 |
| 3996 | found=no |
| 3997 | fi |
| 3998 | |
| 3999 | if test "${found}" = "yes" ; then |
| 4000 | SHLIB_CFLAGS="+Z" |
| 4001 | SHLIB_LD="ld" |
| 4002 | SHLIB_LD_FLAGS="-b -E -n +s +b,${loader_run_path}:." |
| 4003 | SHLIB_SUFFIX=".sl" |
| 4004 | |
| 4005 | # The run path is included in both LDFLAGS and SHLIB_LD_FLAGS |
| 4006 | # because SHLIB_LD is ld and LD is cc/gcc. |
| 4007 | |
| 4008 | LDFLAGS="-Wl,-E -Wl,+s,+b,${loader_run_path}:." |
| 4009 | EXTRA_LIB_SPECS="-ldld" |
| 4010 | fi |
| 4011 | ;; |
| 4012 | |
| 4013 | *-irix64-6.5*) |
| 4014 | SHLIB_CFLAGS="" |
| 4015 | SHLIB_LD="ld" |
| 4016 | SHLIB_LD_FLAGS="-32 -shared -rdata_shared" |
| 4017 | LD_RUN_PATH="-Wl,-rpath,${loader_run_path}" |
| 4018 | ;; |
| 4019 | |
| 4020 | *-irix-56.*|*-irix64-*) |
| 4021 | SHLIB_CFLAGS="" |
| 4022 | SHLIB_LD="ld" |
| 4023 | SHLIB_LD_FLAGS="-shared -rdata_shared" |
| 4024 | LD_RUN_PATH="-Wl,-rpath,${loader_run_path}" |
| 4025 | LDFLAGS="" |
| 4026 | if test "$blt_have_gcc" = "yes" ; then |
| 4027 | SHLIB_CFLAGS="-mabi=n32 $SHLIB_CFLAGS" |
| 4028 | SHLIB_LD_FLAGS="-mabi=n32 $SHLIB_LD_FLAGS" |
| 4029 | LDFLAGS="-mabi=n32 $LDFLAGS" |
| 4030 | else |
| 4031 | CFLAGS="-n32 $CFLAGS" |
| 4032 | LDFLAGS="-n32 $LDFLAGS" |
| 4033 | fi |
| 4034 | ;; |
| 4035 | |
| 4036 | *-linux*) |
| 4037 | SHLIB_CFLAGS="-fPIC" |
| 4038 | SHLIB_LD="${CC}" |
| 4039 | SHLIB_LD_FLAGS='-rdynamic -shared -Wl,-E -Wl,-soname,$@' |
| 4040 | LD_RUN_PATH="-Wl,-rpath,${loader_run_path}" |
| 4041 | |
| 4042 | LDFLAGS="" |
| 4043 | EXTRA_LIB_SPECS="-ldl" |
| 4044 | ;; |
| 4045 | |
| 4046 | *-mp-ras-02*) |
| 4047 | SHLIB_CFLAGS="-G -K PIC" |
| 4048 | SHLIB_LD="${CC}" |
| 4049 | SHLIB_LD_FLAGS="" |
| 4050 | ;; |
| 4051 | |
| 4052 | *-mp-ras-*) |
| 4053 | SHLIB_CFLAGS="-G -K PIC" |
| 4054 | SHLIB_LD="${CC}" |
| 4055 | SHLIB_LD_FLAGS="-Wl,-Bexport" |
| 4056 | ;; |
| 4057 | |
| 4058 | *-ncr-sysv4-*2*) |
| 4059 | SHLIB_CFLAGS="-K PIC" |
| 4060 | SHLIB_LD="cc" |
| 4061 | SHLIB_LD_FLAGS="-G" |
| 4062 | |
| 4063 | EXTRA_LIB_SPECS="-ldl" |
| 4064 | ;; |
| 4065 | |
| 4066 | *-ncr-sysv4*) |
| 4067 | SHLIB_CFLAGS="-K PIC" |
| 4068 | SHLIB_LD="cc" |
| 4069 | SHLIB_LD_FLAGS="-G -Wl,-Bexport" |
| 4070 | |
| 4071 | LDFLAGS="-Wl,-Bexport" |
| 4072 | EXTRA_LIB_SPECS="-ldl" |
| 4073 | ;; |
| 4074 | |
| 4075 | *-netbsd*|*-freebsd*|*-openbsd*) |
| 4076 | # Not available on all versions: check for include file. |
| 4077 | ac_safe=`echo "dlfcn.h" | sed 'y%./+-%__p_%'` |
| 4078 | echo $ac_n "checking for dlfcn.h""... $ac_c" 1>&6 |
| 4079 | echo "configure:4080: checking for dlfcn.h" >&5 |
| 4080 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
| 4081 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 4082 | else |
| 4083 | cat > conftest.$ac_ext <<EOF |
| 4084 | #line 4085 "configure" |
| 4085 | #include "confdefs.h" |
| 4086 | #include <dlfcn.h> |
| 4087 | EOF |
| 4088 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 4089 | { (eval echo configure:4090: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 4090 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 4091 | if test -z "$ac_err"; then |
| 4092 | rm -rf conftest* |
| 4093 | eval "ac_cv_header_$ac_safe=yes" |
| 4094 | else |
| 4095 | echo "$ac_err" >&5 |
| 4096 | echo "configure: failed program was:" >&5 |
| 4097 | cat conftest.$ac_ext >&5 |
| 4098 | rm -rf conftest* |
| 4099 | eval "ac_cv_header_$ac_safe=no" |
| 4100 | fi |
| 4101 | rm -f conftest* |
| 4102 | fi |
| 4103 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 4104 | echo "$ac_t""yes" 1>&6 |
| 4105 | test_ok=yes |
| 4106 | else |
| 4107 | echo "$ac_t""no" 1>&6 |
| 4108 | test_ok=no |
| 4109 | fi |
| 4110 | |
| 4111 | if test "$test_ok" = yes; then |
| 4112 | SHLIB_CFLAGS="-fpic" |
| 4113 | SHLIB_LD="ld" |
| 4114 | SHLIB_LD_FLAGS="-Bshareable -x" |
| 4115 | fi |
| 4116 | ;; |
| 4117 | |
| 4118 | *-nextstep*) |
| 4119 | SHLIB_CFLAGS="" |
| 4120 | SHLIB_LD="cc" |
| 4121 | SHLIB_LD_FLAGS="-nostdlib -r" |
| 4122 | ;; |
| 4123 | |
| 4124 | *-osf1-1.012*) |
| 4125 | # OSF/1 1.[012] from OSF, and derivatives, including Paragon OSF/1 |
| 4126 | |
| 4127 | SHLIB_CFLAGS="" |
| 4128 | |
| 4129 | # Warning: Ugly Makefile Hack |
| 4130 | # Make package name same as library name |
| 4131 | |
| 4132 | SHLIB_LD='ld -R -export $@:' |
| 4133 | ;; |
| 4134 | |
| 4135 | *-osf1-1.*) |
| 4136 | # OSF/1 1.3 from OSF using ELF, and derivatives, including AD2 |
| 4137 | |
| 4138 | SHLIB_CFLAGS="-fpic" |
| 4139 | SHLIB_LD="ld -shared" |
| 4140 | ;; |
| 4141 | |
| 4142 | *-osf1V*) |
| 4143 | # Digital OSF/1 |
| 4144 | |
| 4145 | SHLIB_CFLAGS="" |
| 4146 | SHLIB_LD='ld' |
| 4147 | SHLIB_LD_FLAGS='-shared -expect_unresolved "*"' |
| 4148 | LD_RUN_PATH="-Wl,-rpath,${loader_run_path}" |
| 4149 | LDFLAGS="" |
| 4150 | ;; |
| 4151 | |
| 4152 | *-sco*) |
| 4153 | # Note, dlopen is available only on SCO 3.2.5 and greater. However, |
| 4154 | # this test works, since "uname -s" was non-standard in 3.2.4 and |
| 4155 | # below. |
| 4156 | |
| 4157 | SHLIB_CFLAGS="-Kpic -belf" |
| 4158 | SHLIB_LD="ld" |
| 4159 | SHLIB_LD_FLAGS="-G" |
| 4160 | LDFLAGS="-belf -Wl,-Bexport" |
| 4161 | ;; |
| 4162 | |
| 4163 | *-sni-sysv*) |
| 4164 | |
| 4165 | SHLIB_CFLAGS="-K PIC" |
| 4166 | SHLIB_LD="cc" |
| 4167 | SHLIB_LD_FLAGS="-G" |
| 4168 | |
| 4169 | EXTRA_LIB_SPECS="-ldl" |
| 4170 | ;; |
| 4171 | |
| 4172 | *-sunos4*) |
| 4173 | |
| 4174 | SHLIB_CFLAGS="-PIC" |
| 4175 | SHLIB_LD="ld" |
| 4176 | SHLIB_LD_FLAGS="-assert pure-text" |
| 4177 | |
| 4178 | EXTRA_LIB_SPECS="-ldl" |
| 4179 | ;; |
| 4180 | |
| 4181 | *-solaris2*) |
| 4182 | |
| 4183 | SHLIB_CFLAGS="-KPIC" |
| 4184 | if test "${blt_with_gnu_ld}" = "yes" -a "$blt_have_gcc" = "yes" ; then |
| 4185 | SHLIB_LD="gcc" |
| 4186 | SHLIB_LD_FLAGS='-rdynamic -shared -Wl,-E -Wl,-soname,$@' |
| 4187 | LD_RUN_PATH="-Wl,-rpath,${loader_run_path}" |
| 4188 | else |
| 4189 | SHLIB_LD="/usr/ccs/bin/ld" |
| 4190 | SHLIB_LD_FLAGS="-G -z text" |
| 4191 | LD_RUN_PATH="-R ${loader_run_path}" |
| 4192 | fi |
| 4193 | EXTRA_LIB_SPECS="-ldl" |
| 4194 | ;; |
| 4195 | |
| 4196 | *-mips-dde-sysv*) |
| 4197 | |
| 4198 | SHLIB_CFLAGS="-KPIC" |
| 4199 | SHLIB_LD="cc" |
| 4200 | SHLIB_LD_FLAGS="-G" |
| 4201 | |
| 4202 | EXTRA_LIB_SPECS="-ldl" |
| 4203 | ;; |
| 4204 | |
| 4205 | *-pc-sysv4* | *-unixware-5*) |
| 4206 | SHLIB_CFLAGS="-G -KPIC" |
| 4207 | SHLIB_LD="${CC}" |
| 4208 | SHLIB_LD_FLAGS=" -Wl,-Bexport" |
| 4209 | ;; |
| 4210 | |
| 4211 | *) |
| 4212 | build_shared="no" |
| 4213 | ;; |
| 4214 | |
| 4215 | esac |
| 4216 | |
| 4217 | # If we're running gcc, then set SHLIB_CFLAGS flags for compiling |
| 4218 | # shared libraries for gcc, instead of those of the vendor's |
| 4219 | # compiler. |
| 4220 | |
| 4221 | |
| 4222 | if test "$blt_have_gcc" = "yes" ; then |
| 4223 | SHLIB_CFLAGS="-fPIC" |
| 4224 | fi |
| 4225 | |
| 4226 | # We can't back link against static versions of Tcl/Tk. |
| 4227 | # If # ${TCL_SHARED_BUILD} can't be found or isn't "1", assume that |
| 4228 | # shared libraies weren't built. |
| 4229 | |
| 4230 | if test "${TCL_SHARED_BUILD}" != "1" ; then |
| 4231 | SHLIB_LIB_SPECS="" |
| 4232 | fi |
| 4233 | |
| 4234 | if test "${build_shared}" = "yes" ; then |
| 4235 | SHLIB_TARGET="build_shared" |
| 4236 | |
| 4237 | |
| 4238 | |
| 4239 | |
| 4240 | |
| 4241 | |
| 4242 | |
| 4243 | fi |
| 4244 | |
| 4245 | |
| 4246 | |
| 4247 | |
| 4248 | LIBS=${LIB_SPECS} |
| 4249 | |
| 4250 | |
| 4251 | |
| 4252 | |
| 4253 | INCLUDES=${INC_SPECS} |
| 4254 | |
| 4255 | |
| 4256 | |
| 4257 | |
| 4258 | |
| 4259 | |
| 4260 | |
| 4261 | |
| 4262 | BLT_LIB_PREFIX=${blt_lib_prefix} |
| 4263 | |
| 4264 | |
| 4265 | #-------------------------------------------------------------------- |
| 4266 | # The BLT script directory was either specified or we |
| 4267 | # assume <prefix>/lib |
| 4268 | #-------------------------------------------------------------------- |
| 4269 | if test "x${blt_with_scriptdir}" = "x" ; then |
| 4270 | BLT_LIBRARY="${prefix}/lib/blt${BLT_VERSION}" |
| 4271 | else |
| 4272 | BLT_LIBRARY="${blt_with_scriptdir}/blt${BLT_VERSION}" |
| 4273 | fi |
| 4274 | |
| 4275 | |
| 4276 | #-------------------------------------------------------------------- |
| 4277 | # Print out some of the more important settings |
| 4278 | #-------------------------------------------------------------------- |
| 4279 | echo "" |
| 4280 | echo "Configuration results:" |
| 4281 | echo "" |
| 4282 | echo " tcl.h found in $TCL_INC_DIR" |
| 4283 | echo " tk.h found in $TK_INC_DIR" |
| 4284 | echo " X11/Xlib.h found in $x_includes" |
| 4285 | echo " lib${TCL_LIB_NAME} found in $TCL_LIB_DIR" |
| 4286 | echo " lib${TK_LIB_NAME} found in $TK_LIB_DIR" |
| 4287 | echo " libX11 found in $x_libraries" |
| 4288 | echo "" |
| 4289 | echo "Directories where BLT is to be installed:" |
| 4290 | echo "" |
| 4291 | echo " \"\$prefix\" is $prefix" |
| 4292 | echo " \"\$exec_prefix\" is $exec_prefix" |
| 4293 | echo "" |
| 4294 | echo " bltwish to be installed in $bindir" |
| 4295 | echo " libBLT.a to be installed in $libdir" |
| 4296 | echo " scripts to be installed in $BLT_LIBRARY" |
| 4297 | echo " manual pages to be installed in $mandir" |
| 4298 | echo "" |
| 4299 | |
| 4300 | #-------------------------------------------------------------------- |
| 4301 | # |
| 4302 | # Generate the following Makefiles |
| 4303 | # |
| 4304 | # ./Makefile |
| 4305 | # ./generic/Makefile |
| 4306 | # ./generic/shared/Makefile |
| 4307 | # ./man/Makefile |
| 4308 | # ./library/Makefile |
| 4309 | # ./demos/Makefile |
| 4310 | # |
| 4311 | #-------------------------------------------------------------------- |
| 4312 | src_Makefile="generic/Makefile" |
| 4313 | if test "${blt_platform}" = "win"; then |
| 4314 | src_Makefile="generic/Makefile:generic/Makefile-cyg.in" |
| 4315 | fi |
| 4316 | trap '' 1 2 15 |
| 4317 | |
| 4318 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
| 4319 | |
| 4320 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 4321 | # Let make expand exec_prefix. |
| 4322 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 4323 | |
| 4324 | # Any assignment to VPATH causes Sun make to only execute |
| 4325 | # the first set of double-colon rules, so remove it if not needed. |
| 4326 | # If there is a colon in the path, we need to keep it. |
| 4327 | if test "x$srcdir" = x.; then |
| 4328 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' |
| 4329 | fi |
| 4330 | |
| 4331 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 |
| 4332 | |
| 4333 | DEFS=-DHAVE_CONFIG_H |
| 4334 | |
| 4335 | # Without the "./", some shells look in PATH for config.status. |
| 4336 | : ${CONFIG_STATUS=./config.status} |
| 4337 | |
| 4338 | echo creating $CONFIG_STATUS |
| 4339 | rm -f $CONFIG_STATUS |
| 4340 | cat > $CONFIG_STATUS <<EOF |
| 4341 | #! /bin/sh |
| 4342 | # Generated automatically by configure. |
| 4343 | # Run this file to recreate the current configuration. |
| 4344 | # This directory was configured as follows, |
| 4345 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 4346 | # |
| 4347 | # $0 $ac_configure_args |
| 4348 | # |
| 4349 | # Compiler output produced by configure, useful for debugging |
| 4350 | # configure, is in ./config.log if it exists. |
| 4351 | |
| 4352 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" |
| 4353 | for ac_option |
| 4354 | do |
| 4355 | case "\$ac_option" in |
| 4356 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 4357 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" |
| 4358 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; |
| 4359 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) |
| 4360 | echo "$CONFIG_STATUS generated by autoconf version 2.13" |
| 4361 | exit 0 ;; |
| 4362 | -help | --help | --hel | --he | --h) |
| 4363 | echo "\$ac_cs_usage"; exit 0 ;; |
| 4364 | *) echo "\$ac_cs_usage"; exit 1 ;; |
| 4365 | esac |
| 4366 | done |
| 4367 | |
| 4368 | ac_given_srcdir=$srcdir |
| 4369 | ac_given_INSTALL="$INSTALL" |
| 4370 | |
| 4371 | trap 'rm -fr `echo "Makefile ${src_Makefile} generic/bltHash.h generic/shared/Makefile man/Makefile library/Makefile demos/Makefile generic/bltConfig.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 |
| 4372 | EOF |
| 4373 | cat >> $CONFIG_STATUS <<EOF |
| 4374 | |
| 4375 | # Protect against being on the right side of a sed subst in config.status. |
| 4376 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; |
| 4377 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF |
| 4378 | $ac_vpsub |
| 4379 | $extrasub |
| 4380 | s%@SHELL@%$SHELL%g |
| 4381 | s%@CFLAGS@%$CFLAGS%g |
| 4382 | s%@CPPFLAGS@%$CPPFLAGS%g |
| 4383 | s%@CXXFLAGS@%$CXXFLAGS%g |
| 4384 | s%@FFLAGS@%$FFLAGS%g |
| 4385 | s%@DEFS@%$DEFS%g |
| 4386 | s%@LDFLAGS@%$LDFLAGS%g |
| 4387 | s%@LIBS@%$LIBS%g |
| 4388 | s%@exec_prefix@%$exec_prefix%g |
| 4389 | s%@prefix@%$prefix%g |
| 4390 | s%@program_transform_name@%$program_transform_name%g |
| 4391 | s%@bindir@%$bindir%g |
| 4392 | s%@sbindir@%$sbindir%g |
| 4393 | s%@libexecdir@%$libexecdir%g |
| 4394 | s%@datadir@%$datadir%g |
| 4395 | s%@sysconfdir@%$sysconfdir%g |
| 4396 | s%@sharedstatedir@%$sharedstatedir%g |
| 4397 | s%@localstatedir@%$localstatedir%g |
| 4398 | s%@libdir@%$libdir%g |
| 4399 | s%@includedir@%$includedir%g |
| 4400 | s%@oldincludedir@%$oldincludedir%g |
| 4401 | s%@infodir@%$infodir%g |
| 4402 | s%@mandir@%$mandir%g |
| 4403 | s%@host@%$host%g |
| 4404 | s%@host_alias@%$host_alias%g |
| 4405 | s%@host_cpu@%$host_cpu%g |
| 4406 | s%@host_vendor@%$host_vendor%g |
| 4407 | s%@host_os@%$host_os%g |
| 4408 | s%@target@%$target%g |
| 4409 | s%@target_alias@%$target_alias%g |
| 4410 | s%@target_cpu@%$target_cpu%g |
| 4411 | s%@target_vendor@%$target_vendor%g |
| 4412 | s%@target_os@%$target_os%g |
| 4413 | s%@build@%$build%g |
| 4414 | s%@build_alias@%$build_alias%g |
| 4415 | s%@build_cpu@%$build_cpu%g |
| 4416 | s%@build_vendor@%$build_vendor%g |
| 4417 | s%@build_os@%$build_os%g |
| 4418 | s%@WISH@%$WISH%g |
| 4419 | s%@CC@%$CC%g |
| 4420 | s%@CPP@%$CPP%g |
| 4421 | s%@GCCFLAGS@%$GCCFLAGS%g |
| 4422 | s%@AWK@%$AWK%g |
| 4423 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g |
| 4424 | s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g |
| 4425 | s%@INSTALL_DATA@%$INSTALL_DATA%g |
| 4426 | s%@RANLIB@%$RANLIB%g |
| 4427 | s%@LN_S@%$LN_S%g |
| 4428 | s%@HAVE_INTTYPES_H@%$HAVE_INTTYPES_H%g |
| 4429 | s%@SIZEOF_INT@%$SIZEOF_INT%g |
| 4430 | s%@SIZEOF_LONG@%$SIZEOF_LONG%g |
| 4431 | s%@SIZEOF_LONG_LONG@%$SIZEOF_LONG_LONG%g |
| 4432 | s%@SIZEOF_VOID_P@%$SIZEOF_VOID_P%g |
| 4433 | s%@SHLIB_CFLAGS@%$SHLIB_CFLAGS%g |
| 4434 | s%@SHLIB_TARGET@%$SHLIB_TARGET%g |
| 4435 | s%@SHLIB_LD@%$SHLIB_LD%g |
| 4436 | s%@SHLIB_LD_FLAGS@%$SHLIB_LD_FLAGS%g |
| 4437 | s%@SHLIB_LIB_SPECS@%$SHLIB_LIB_SPECS%g |
| 4438 | s%@SHLIB_TCL_ONLY_LIB_SPECS@%$SHLIB_TCL_ONLY_LIB_SPECS%g |
| 4439 | s%@SHLIB_SUFFIX@%$SHLIB_SUFFIX%g |
| 4440 | s%@LD_RUN_PATH@%$LD_RUN_PATH%g |
| 4441 | s%@LIB_SPECS@%$LIB_SPECS%g |
| 4442 | s%@TCL_ONLY_LIB_SPECS@%$TCL_ONLY_LIB_SPECS%g |
| 4443 | s%@EXTRA_LIB_SPECS@%$EXTRA_LIB_SPECS%g |
| 4444 | s%@INCLUDES@%$INCLUDES%g |
| 4445 | s%@DEFINES@%$DEFINES%g |
| 4446 | s%@BLT_MAJOR_VERSION@%$BLT_MAJOR_VERSION%g |
| 4447 | s%@BLT_MINOR_VERSION@%$BLT_MINOR_VERSION%g |
| 4448 | s%@BLT_VERSION@%$BLT_VERSION%g |
| 4449 | s%@AUX_LIBS@%$AUX_LIBS%g |
| 4450 | s%@TCL_LIB_DIR@%$TCL_LIB_DIR%g |
| 4451 | s%@TCL_VERSION@%$TCL_VERSION%g |
| 4452 | s%@BLT_LIB_PREFIX@%$BLT_LIB_PREFIX%g |
| 4453 | s%@BLT_LIBRARY@%$BLT_LIBRARY%g |
| 4454 | |
| 4455 | CEOF |
| 4456 | EOF |
| 4457 | |
| 4458 | cat >> $CONFIG_STATUS <<\EOF |
| 4459 | |
| 4460 | # Split the substitutions into bite-sized pieces for seds with |
| 4461 | # small command number limits, like on Digital OSF/1 and HP-UX. |
| 4462 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. |
| 4463 | ac_file=1 # Number of current file. |
| 4464 | ac_beg=1 # First line for current file. |
| 4465 | ac_end=$ac_max_sed_cmds # Line after last line for current file. |
| 4466 | ac_more_lines=: |
| 4467 | ac_sed_cmds="" |
| 4468 | while $ac_more_lines; do |
| 4469 | if test $ac_beg -gt 1; then |
| 4470 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file |
| 4471 | else |
| 4472 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file |
| 4473 | fi |
| 4474 | if test ! -s conftest.s$ac_file; then |
| 4475 | ac_more_lines=false |
| 4476 | rm -f conftest.s$ac_file |
| 4477 | else |
| 4478 | if test -z "$ac_sed_cmds"; then |
| 4479 | ac_sed_cmds="sed -f conftest.s$ac_file" |
| 4480 | else |
| 4481 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" |
| 4482 | fi |
| 4483 | ac_file=`expr $ac_file + 1` |
| 4484 | ac_beg=$ac_end |
| 4485 | ac_end=`expr $ac_end + $ac_max_sed_cmds` |
| 4486 | fi |
| 4487 | done |
| 4488 | if test -z "$ac_sed_cmds"; then |
| 4489 | ac_sed_cmds=cat |
| 4490 | fi |
| 4491 | EOF |
| 4492 | |
| 4493 | cat >> $CONFIG_STATUS <<EOF |
| 4494 | |
| 4495 | CONFIG_FILES=\${CONFIG_FILES-"Makefile ${src_Makefile} generic/bltHash.h generic/shared/Makefile man/Makefile library/Makefile demos/Makefile"} |
| 4496 | EOF |
| 4497 | cat >> $CONFIG_STATUS <<\EOF |
| 4498 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then |
| 4499 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
| 4500 | case "$ac_file" in |
| 4501 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` |
| 4502 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
| 4503 | *) ac_file_in="${ac_file}.in" ;; |
| 4504 | esac |
| 4505 | |
| 4506 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. |
| 4507 | |
| 4508 | # Remove last slash and all that follows it. Not all systems have dirname. |
| 4509 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` |
| 4510 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
| 4511 | # The file is in a subdirectory. |
| 4512 | test ! -d "$ac_dir" && mkdir "$ac_dir" |
| 4513 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" |
| 4514 | # A "../" for each directory in $ac_dir_suffix. |
| 4515 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` |
| 4516 | else |
| 4517 | ac_dir_suffix= ac_dots= |
| 4518 | fi |
| 4519 | |
| 4520 | case "$ac_given_srcdir" in |
| 4521 | .) srcdir=. |
| 4522 | if test -z "$ac_dots"; then top_srcdir=. |
| 4523 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; |
| 4524 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; |
| 4525 | *) # Relative path. |
| 4526 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" |
| 4527 | top_srcdir="$ac_dots$ac_given_srcdir" ;; |
| 4528 | esac |
| 4529 | |
| 4530 | case "$ac_given_INSTALL" in |
| 4531 | [/$]*) INSTALL="$ac_given_INSTALL" ;; |
| 4532 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; |
| 4533 | esac |
| 4534 | |
| 4535 | echo creating "$ac_file" |
| 4536 | rm -f "$ac_file" |
| 4537 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." |
| 4538 | case "$ac_file" in |
| 4539 | *Makefile*) ac_comsub="1i\\ |
| 4540 | # $configure_input" ;; |
| 4541 | *) ac_comsub= ;; |
| 4542 | esac |
| 4543 | |
| 4544 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` |
| 4545 | sed -e "$ac_comsub |
| 4546 | s%@configure_input@%$configure_input%g |
| 4547 | s%@srcdir@%$srcdir%g |
| 4548 | s%@top_srcdir@%$top_srcdir%g |
| 4549 | s%@INSTALL@%$INSTALL%g |
| 4550 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file |
| 4551 | fi; done |
| 4552 | rm -f conftest.s* |
| 4553 | |
| 4554 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
| 4555 | # NAME is the cpp macro being defined and VALUE is the value it is being given. |
| 4556 | # |
| 4557 | # ac_d sets the value in "#define NAME VALUE" lines. |
| 4558 | ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
| 4559 | ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' |
| 4560 | ac_dC='\3' |
| 4561 | ac_dD='%g' |
| 4562 | # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". |
| 4563 | ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
| 4564 | ac_uB='\([ ]\)%\1#\2define\3' |
| 4565 | ac_uC=' ' |
| 4566 | ac_uD='\4%g' |
| 4567 | # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
| 4568 | ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
| 4569 | ac_eB='$%\1#\2define\3' |
| 4570 | ac_eC=' ' |
| 4571 | ac_eD='%g' |
| 4572 | |
| 4573 | if test "${CONFIG_HEADERS+set}" != set; then |
| 4574 | EOF |
| 4575 | cat >> $CONFIG_STATUS <<EOF |
| 4576 | CONFIG_HEADERS="generic/bltConfig.h" |
| 4577 | EOF |
| 4578 | cat >> $CONFIG_STATUS <<\EOF |
| 4579 | fi |
| 4580 | for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then |
| 4581 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
| 4582 | case "$ac_file" in |
| 4583 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` |
| 4584 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
| 4585 | *) ac_file_in="${ac_file}.in" ;; |
| 4586 | esac |
| 4587 | |
| 4588 | echo creating $ac_file |
| 4589 | |
| 4590 | rm -f conftest.frag conftest.in conftest.out |
| 4591 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` |
| 4592 | cat $ac_file_inputs > conftest.in |
| 4593 | |
| 4594 | EOF |
| 4595 | |
| 4596 | # Transform confdefs.h into a sed script conftest.vals that substitutes |
| 4597 | # the proper values into config.h.in to produce config.h. And first: |
| 4598 | # Protect against being on the right side of a sed subst in config.status. |
| 4599 | # Protect against being in an unquoted here document in config.status. |
| 4600 | rm -f conftest.vals |
| 4601 | cat > conftest.hdr <<\EOF |
| 4602 | s/[\\&%]/\\&/g |
| 4603 | s%[\\$`]%\\&%g |
| 4604 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp |
| 4605 | s%ac_d%ac_u%gp |
| 4606 | s%ac_u%ac_e%gp |
| 4607 | EOF |
| 4608 | sed -n -f conftest.hdr confdefs.h > conftest.vals |
| 4609 | rm -f conftest.hdr |
| 4610 | |
| 4611 | # This sed command replaces #undef with comments. This is necessary, for |
| 4612 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
| 4613 | # on some systems where configure will not decide to define it. |
| 4614 | cat >> conftest.vals <<\EOF |
| 4615 | s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% |
| 4616 | EOF |
| 4617 | |
| 4618 | # Break up conftest.vals because some shells have a limit on |
| 4619 | # the size of here documents, and old seds have small limits too. |
| 4620 | |
| 4621 | rm -f conftest.tail |
| 4622 | while : |
| 4623 | do |
| 4624 | ac_lines=`grep -c . conftest.vals` |
| 4625 | # grep -c gives empty output for an empty file on some AIX systems. |
| 4626 | if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi |
| 4627 | # Write a limited-size here document to conftest.frag. |
| 4628 | echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS |
| 4629 | sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS |
| 4630 | echo 'CEOF |
| 4631 | sed -f conftest.frag conftest.in > conftest.out |
| 4632 | rm -f conftest.in |
| 4633 | mv conftest.out conftest.in |
| 4634 | ' >> $CONFIG_STATUS |
| 4635 | sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail |
| 4636 | rm -f conftest.vals |
| 4637 | mv conftest.tail conftest.vals |
| 4638 | done |
| 4639 | rm -f conftest.vals |
| 4640 | |
| 4641 | cat >> $CONFIG_STATUS <<\EOF |
| 4642 | rm -f conftest.frag conftest.h |
| 4643 | echo "/* $ac_file. Generated automatically by configure. */" > conftest.h |
| 4644 | cat conftest.in >> conftest.h |
| 4645 | rm -f conftest.in |
| 4646 | if cmp -s $ac_file conftest.h 2>/dev/null; then |
| 4647 | echo "$ac_file is unchanged" |
| 4648 | rm -f conftest.h |
| 4649 | else |
| 4650 | # Remove last slash and all that follows it. Not all systems have dirname. |
| 4651 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` |
| 4652 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
| 4653 | # The file is in a subdirectory. |
| 4654 | test ! -d "$ac_dir" && mkdir "$ac_dir" |
| 4655 | fi |
| 4656 | rm -f $ac_file |
| 4657 | mv conftest.h $ac_file |
| 4658 | fi |
| 4659 | fi; done |
| 4660 | |
| 4661 | EOF |
| 4662 | cat >> $CONFIG_STATUS <<EOF |
| 4663 | |
| 4664 | EOF |
| 4665 | cat >> $CONFIG_STATUS <<\EOF |
| 4666 | |
| 4667 | exit 0 |
| 4668 | EOF |
| 4669 | chmod +x $CONFIG_STATUS |
| 4670 | rm -fr confdefs* $ac_clean_files |
| 4671 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 |
| 4672 | |
| 4673 |