drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1 | #! /bin/sh |
| 2 | |
| 3 | # Guess values for system-dependent variables and create Makefiles. |
| 4 | # Generated automatically using autoconf version 2.13 |
| 5 | # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. |
| 6 | # |
| 7 | # This configure script is free software; the Free Software Foundation |
| 8 | # gives unlimited permission to copy, distribute and modify it. |
| 9 | |
| 10 | # Defaults: |
| 11 | ac_help= |
| 12 | ac_default_prefix=/usr/local |
| 13 | # Any additions from configure.in: |
| 14 | ac_help="$ac_help |
| 15 | --with-hints=FILE Read configuration options from FILE" |
| 16 | |
| 17 | # Initialize some variables set by options. |
| 18 | # The variables have the same names as the options, with |
| 19 | # dashes changed to underlines. |
| 20 | build=NONE |
| 21 | cache_file=./config.cache |
| 22 | exec_prefix=NONE |
| 23 | host=NONE |
| 24 | no_create= |
| 25 | nonopt=NONE |
| 26 | no_recursion= |
| 27 | prefix=NONE |
| 28 | program_prefix=NONE |
| 29 | program_suffix=NONE |
| 30 | program_transform_name=s,x,x, |
| 31 | silent= |
| 32 | site= |
| 33 | srcdir= |
| 34 | target=NONE |
| 35 | verbose= |
| 36 | x_includes=NONE |
| 37 | x_libraries=NONE |
| 38 | bindir='${exec_prefix}/bin' |
| 39 | sbindir='${exec_prefix}/sbin' |
| 40 | libexecdir='${exec_prefix}/libexec' |
| 41 | datadir='${prefix}/share' |
| 42 | sysconfdir='${prefix}/etc' |
| 43 | sharedstatedir='${prefix}/com' |
| 44 | localstatedir='${prefix}/var' |
| 45 | libdir='${exec_prefix}/lib' |
| 46 | includedir='${prefix}/include' |
| 47 | oldincludedir='/usr/include' |
| 48 | infodir='${prefix}/info' |
| 49 | mandir='${prefix}/man' |
| 50 | |
| 51 | # Initialize some other variables. |
| 52 | subdirs= |
| 53 | MFLAGS= MAKEFLAGS= |
| 54 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 55 | # Maximum number of lines to put in a shell here document. |
| 56 | ac_max_here_lines=12 |
| 57 | |
| 58 | ac_prev= |
| 59 | for ac_option |
| 60 | do |
| 61 | |
| 62 | # If the previous option needs an argument, assign it. |
| 63 | if test -n "$ac_prev"; then |
| 64 | eval "$ac_prev=\$ac_option" |
| 65 | ac_prev= |
| 66 | continue |
| 67 | fi |
| 68 | |
| 69 | case "$ac_option" in |
| 70 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; |
| 71 | *) ac_optarg= ;; |
| 72 | esac |
| 73 | |
| 74 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 75 | |
| 76 | case "$ac_option" in |
| 77 | |
| 78 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 79 | ac_prev=bindir ;; |
| 80 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 81 | bindir="$ac_optarg" ;; |
| 82 | |
| 83 | -build | --build | --buil | --bui | --bu) |
| 84 | ac_prev=build ;; |
| 85 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
| 86 | build="$ac_optarg" ;; |
| 87 | |
| 88 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 89 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 90 | ac_prev=cache_file ;; |
| 91 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 92 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 93 | cache_file="$ac_optarg" ;; |
| 94 | |
| 95 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
| 96 | ac_prev=datadir ;; |
| 97 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
| 98 | | --da=*) |
| 99 | datadir="$ac_optarg" ;; |
| 100 | |
| 101 | -disable-* | --disable-*) |
| 102 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` |
| 103 | # Reject names that are not valid shell variable names. |
| 104 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then |
| 105 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } |
| 106 | fi |
| 107 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` |
| 108 | eval "enable_${ac_feature}=no" ;; |
| 109 | |
| 110 | -enable-* | --enable-*) |
| 111 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` |
| 112 | # Reject names that are not valid shell variable names. |
| 113 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then |
| 114 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } |
| 115 | fi |
| 116 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` |
| 117 | case "$ac_option" in |
| 118 | *=*) ;; |
| 119 | *) ac_optarg=yes ;; |
| 120 | esac |
| 121 | eval "enable_${ac_feature}='$ac_optarg'" ;; |
| 122 | |
| 123 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 124 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 125 | | --exec | --exe | --ex) |
| 126 | ac_prev=exec_prefix ;; |
| 127 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 128 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 129 | | --exec=* | --exe=* | --ex=*) |
| 130 | exec_prefix="$ac_optarg" ;; |
| 131 | |
| 132 | -gas | --gas | --ga | --g) |
| 133 | # Obsolete; use --with-gas. |
| 134 | with_gas=yes ;; |
| 135 | |
| 136 | -help | --help | --hel | --he) |
| 137 | # Omit some internal or obsolete options to make the list less imposing. |
| 138 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 139 | cat << EOF |
| 140 | Usage: configure [options] [host] |
| 141 | Options: [defaults in brackets after descriptions] |
| 142 | Configuration: |
| 143 | --cache-file=FILE cache test results in FILE |
| 144 | --help print this message |
| 145 | --no-create do not create output files |
| 146 | --quiet, --silent do not print \`checking...' messages |
| 147 | --version print the version of autoconf that created configure |
| 148 | Directory and file names: |
| 149 | --prefix=PREFIX install architecture-independent files in PREFIX |
| 150 | [$ac_default_prefix] |
| 151 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
| 152 | [same as prefix] |
| 153 | --bindir=DIR user executables in DIR [EPREFIX/bin] |
| 154 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] |
| 155 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec] |
| 156 | --datadir=DIR read-only architecture-independent data in DIR |
| 157 | [PREFIX/share] |
| 158 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] |
| 159 | --sharedstatedir=DIR modifiable architecture-independent data in DIR |
| 160 | [PREFIX/com] |
| 161 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] |
| 162 | --libdir=DIR object code libraries in DIR [EPREFIX/lib] |
| 163 | --includedir=DIR C header files in DIR [PREFIX/include] |
| 164 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] |
| 165 | --infodir=DIR info documentation in DIR [PREFIX/info] |
| 166 | --mandir=DIR man documentation in DIR [PREFIX/man] |
| 167 | --srcdir=DIR find the sources in DIR [configure dir or ..] |
| 168 | --program-prefix=PREFIX prepend PREFIX to installed program names |
| 169 | --program-suffix=SUFFIX append SUFFIX to installed program names |
| 170 | --program-transform-name=PROGRAM |
| 171 | run sed PROGRAM on installed program names |
| 172 | EOF |
| 173 | cat << EOF |
| 174 | Host type: |
| 175 | --build=BUILD configure for building on BUILD [BUILD=HOST] |
| 176 | --host=HOST configure for HOST [guessed] |
| 177 | --target=TARGET configure for TARGET [TARGET=HOST] |
| 178 | Features and packages: |
| 179 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 180 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
| 181 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 182 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
| 183 | --x-includes=DIR X include files are in DIR |
| 184 | --x-libraries=DIR X library files are in DIR |
| 185 | EOF |
| 186 | if test -n "$ac_help"; then |
| 187 | echo "--enable and --with options recognized:$ac_help" |
| 188 | fi |
| 189 | exit 0 ;; |
| 190 | |
| 191 | -host | --host | --hos | --ho) |
| 192 | ac_prev=host ;; |
| 193 | -host=* | --host=* | --hos=* | --ho=*) |
| 194 | host="$ac_optarg" ;; |
| 195 | |
| 196 | -includedir | --includedir | --includedi | --included | --include \ |
| 197 | | --includ | --inclu | --incl | --inc) |
| 198 | ac_prev=includedir ;; |
| 199 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 200 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
| 201 | includedir="$ac_optarg" ;; |
| 202 | |
| 203 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 204 | ac_prev=infodir ;; |
| 205 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 206 | infodir="$ac_optarg" ;; |
| 207 | |
| 208 | -libdir | --libdir | --libdi | --libd) |
| 209 | ac_prev=libdir ;; |
| 210 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 211 | libdir="$ac_optarg" ;; |
| 212 | |
| 213 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 214 | | --libexe | --libex | --libe) |
| 215 | ac_prev=libexecdir ;; |
| 216 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 217 | | --libexe=* | --libex=* | --libe=*) |
| 218 | libexecdir="$ac_optarg" ;; |
| 219 | |
| 220 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
| 221 | | --localstate | --localstat | --localsta | --localst \ |
| 222 | | --locals | --local | --loca | --loc | --lo) |
| 223 | ac_prev=localstatedir ;; |
| 224 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
| 225 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
| 226 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
| 227 | localstatedir="$ac_optarg" ;; |
| 228 | |
| 229 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 230 | ac_prev=mandir ;; |
| 231 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 232 | mandir="$ac_optarg" ;; |
| 233 | |
| 234 | -nfp | --nfp | --nf) |
| 235 | # Obsolete; use --without-fp. |
| 236 | with_fp=no ;; |
| 237 | |
| 238 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 239 | | --no-cr | --no-c) |
| 240 | no_create=yes ;; |
| 241 | |
| 242 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 243 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 244 | no_recursion=yes ;; |
| 245 | |
| 246 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 247 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 248 | | --oldin | --oldi | --old | --ol | --o) |
| 249 | ac_prev=oldincludedir ;; |
| 250 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 251 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 252 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 253 | oldincludedir="$ac_optarg" ;; |
| 254 | |
| 255 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 256 | ac_prev=prefix ;; |
| 257 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 258 | prefix="$ac_optarg" ;; |
| 259 | |
| 260 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 261 | | --program-pre | --program-pr | --program-p) |
| 262 | ac_prev=program_prefix ;; |
| 263 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 264 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 265 | program_prefix="$ac_optarg" ;; |
| 266 | |
| 267 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 268 | | --program-suf | --program-su | --program-s) |
| 269 | ac_prev=program_suffix ;; |
| 270 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 271 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 272 | program_suffix="$ac_optarg" ;; |
| 273 | |
| 274 | -program-transform-name | --program-transform-name \ |
| 275 | | --program-transform-nam | --program-transform-na \ |
| 276 | | --program-transform-n | --program-transform- \ |
| 277 | | --program-transform | --program-transfor \ |
| 278 | | --program-transfo | --program-transf \ |
| 279 | | --program-trans | --program-tran \ |
| 280 | | --progr-tra | --program-tr | --program-t) |
| 281 | ac_prev=program_transform_name ;; |
| 282 | -program-transform-name=* | --program-transform-name=* \ |
| 283 | | --program-transform-nam=* | --program-transform-na=* \ |
| 284 | | --program-transform-n=* | --program-transform-=* \ |
| 285 | | --program-transform=* | --program-transfor=* \ |
| 286 | | --program-transfo=* | --program-transf=* \ |
| 287 | | --program-trans=* | --program-tran=* \ |
| 288 | | --progr-tra=* | --program-tr=* | --program-t=*) |
| 289 | program_transform_name="$ac_optarg" ;; |
| 290 | |
| 291 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 292 | | -silent | --silent | --silen | --sile | --sil) |
| 293 | silent=yes ;; |
| 294 | |
| 295 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 296 | ac_prev=sbindir ;; |
| 297 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 298 | | --sbi=* | --sb=*) |
| 299 | sbindir="$ac_optarg" ;; |
| 300 | |
| 301 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 302 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 303 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 304 | | --sha | --sh) |
| 305 | ac_prev=sharedstatedir ;; |
| 306 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 307 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 308 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 309 | | --sha=* | --sh=*) |
| 310 | sharedstatedir="$ac_optarg" ;; |
| 311 | |
| 312 | -site | --site | --sit) |
| 313 | ac_prev=site ;; |
| 314 | -site=* | --site=* | --sit=*) |
| 315 | site="$ac_optarg" ;; |
| 316 | |
| 317 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 318 | ac_prev=srcdir ;; |
| 319 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 320 | srcdir="$ac_optarg" ;; |
| 321 | |
| 322 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 323 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 324 | ac_prev=sysconfdir ;; |
| 325 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 326 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 327 | sysconfdir="$ac_optarg" ;; |
| 328 | |
| 329 | -target | --target | --targe | --targ | --tar | --ta | --t) |
| 330 | ac_prev=target ;; |
| 331 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 332 | target="$ac_optarg" ;; |
| 333 | |
| 334 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 335 | verbose=yes ;; |
| 336 | |
| 337 | -version | --version | --versio | --versi | --vers) |
| 338 | echo "configure generated by autoconf version 2.13" |
| 339 | exit 0 ;; |
| 340 | |
| 341 | -with-* | --with-*) |
| 342 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` |
| 343 | # Reject names that are not valid shell variable names. |
| 344 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then |
| 345 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } |
| 346 | fi |
| 347 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
| 348 | case "$ac_option" in |
| 349 | *=*) ;; |
| 350 | *) ac_optarg=yes ;; |
| 351 | esac |
| 352 | eval "with_${ac_package}='$ac_optarg'" ;; |
| 353 | |
| 354 | -without-* | --without-*) |
| 355 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` |
| 356 | # Reject names that are not valid shell variable names. |
| 357 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then |
| 358 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } |
| 359 | fi |
| 360 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
| 361 | eval "with_${ac_package}=no" ;; |
| 362 | |
| 363 | --x) |
| 364 | # Obsolete; use --with-x. |
| 365 | with_x=yes ;; |
| 366 | |
| 367 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 368 | | --x-incl | --x-inc | --x-in | --x-i) |
| 369 | ac_prev=x_includes ;; |
| 370 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 371 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 372 | x_includes="$ac_optarg" ;; |
| 373 | |
| 374 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 375 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 376 | ac_prev=x_libraries ;; |
| 377 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 378 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 379 | x_libraries="$ac_optarg" ;; |
| 380 | |
| 381 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } |
| 382 | ;; |
| 383 | |
| 384 | *) |
| 385 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then |
| 386 | echo "configure: warning: $ac_option: invalid host type" 1>&2 |
| 387 | fi |
| 388 | if test "x$nonopt" != xNONE; then |
| 389 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } |
| 390 | fi |
| 391 | nonopt="$ac_option" |
| 392 | ;; |
| 393 | |
| 394 | esac |
| 395 | done |
| 396 | |
| 397 | if test -n "$ac_prev"; then |
| 398 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } |
| 399 | fi |
| 400 | |
| 401 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
| 402 | |
| 403 | # File descriptor usage: |
| 404 | # 0 standard input |
| 405 | # 1 file creation |
| 406 | # 2 errors and warnings |
| 407 | # 3 some systems may open it to /dev/tty |
| 408 | # 4 used on the Kubota Titan |
| 409 | # 6 checking for... messages and results |
| 410 | # 5 compiler messages saved in config.log |
| 411 | if test "$silent" = yes; then |
| 412 | exec 6>/dev/null |
| 413 | else |
| 414 | exec 6>&1 |
| 415 | fi |
| 416 | exec 5>./config.log |
| 417 | |
| 418 | echo "\ |
| 419 | This file contains any messages produced by compilers while |
| 420 | running configure, to aid debugging if configure makes a mistake. |
| 421 | " 1>&5 |
| 422 | |
| 423 | # Strip out --no-create and --no-recursion so they do not pile up. |
| 424 | # Also quote any args containing shell metacharacters. |
| 425 | ac_configure_args= |
| 426 | for ac_arg |
| 427 | do |
| 428 | case "$ac_arg" in |
| 429 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 430 | | --no-cr | --no-c) ;; |
| 431 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 432 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; |
| 433 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) |
| 434 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
| 435 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; |
| 436 | esac |
| 437 | done |
| 438 | |
| 439 | # NLS nuisances. |
| 440 | # Only set these to C if already set. These must not be set unconditionally |
| 441 | # because not all systems understand e.g. LANG=C (notably SCO). |
| 442 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! |
| 443 | # Non-C LC_CTYPE values break the ctype check. |
| 444 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi |
| 445 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi |
| 446 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi |
| 447 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi |
| 448 | |
| 449 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
| 450 | rm -rf conftest* confdefs.h |
| 451 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
| 452 | echo > confdefs.h |
| 453 | |
| 454 | # A filename unique to this package, relative to the directory that |
| 455 | # configure is in, which we can look for to find out if srcdir is correct. |
drh | d317676 | 2000-08-18 09:34:19 +0000 | [diff] [blame] | 456 | ac_unique_file=src/sqlite.h.in |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 457 | |
| 458 | # Find the source files, if location was not specified. |
| 459 | if test -z "$srcdir"; then |
| 460 | ac_srcdir_defaulted=yes |
| 461 | # Try the directory containing this script, then its parent. |
| 462 | ac_prog=$0 |
| 463 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` |
| 464 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. |
| 465 | srcdir=$ac_confdir |
| 466 | if test ! -r $srcdir/$ac_unique_file; then |
| 467 | srcdir=.. |
| 468 | fi |
| 469 | else |
| 470 | ac_srcdir_defaulted=no |
| 471 | fi |
| 472 | if test ! -r $srcdir/$ac_unique_file; then |
| 473 | if test "$ac_srcdir_defaulted" = yes; then |
| 474 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } |
| 475 | else |
| 476 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } |
| 477 | fi |
| 478 | fi |
| 479 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` |
| 480 | |
| 481 | # Prefer explicitly selected file to automatically selected ones. |
| 482 | if test -z "$CONFIG_SITE"; then |
| 483 | if test "x$prefix" != xNONE; then |
| 484 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
| 485 | else |
| 486 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
| 487 | fi |
| 488 | fi |
| 489 | for ac_site_file in $CONFIG_SITE; do |
| 490 | if test -r "$ac_site_file"; then |
| 491 | echo "loading site script $ac_site_file" |
| 492 | . "$ac_site_file" |
| 493 | fi |
| 494 | done |
| 495 | |
| 496 | if test -r "$cache_file"; then |
| 497 | echo "loading cache $cache_file" |
| 498 | . $cache_file |
| 499 | else |
| 500 | echo "creating cache $cache_file" |
| 501 | > $cache_file |
| 502 | fi |
| 503 | |
| 504 | ac_ext=c |
| 505 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
| 506 | ac_cpp='$CPP $CPPFLAGS' |
| 507 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
| 508 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
| 509 | cross_compiling=$ac_cv_prog_cc_cross |
| 510 | |
| 511 | ac_exeext= |
| 512 | ac_objext=o |
| 513 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then |
| 514 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. |
| 515 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then |
| 516 | ac_n= ac_c=' |
| 517 | ' ac_t=' ' |
| 518 | else |
| 519 | ac_n=-n ac_c= ac_t= |
| 520 | fi |
| 521 | else |
| 522 | ac_n= ac_c='\c' ac_t= |
| 523 | fi |
| 524 | |
| 525 | |
| 526 | |
| 527 | # The following RCS revision string applies to configure.in |
drh | 6d31316 | 2000-09-21 13:01:35 +0000 | [diff] [blame] | 528 | # $Revision: 1.7 $ |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 529 | |
| 530 | ######### |
| 531 | # Make sure we are not building in a subdirectory of the source tree. |
| 532 | # |
| 533 | |
| 534 | temp=`echo $srcdir | grep '[^./]'` |
| 535 | |
| 536 | if test "$temp" = ""; then |
| 537 | { echo "configure: error: |
| 538 | ************************************************************************** |
| 539 | ** This program may not be compiled in the same directory that contains ** |
| 540 | ** the configure script or any subdirectory of that directory. Rerun ** |
| 541 | ** the configure script from a directory that is separate from the ** |
| 542 | ** source tree. ** |
drh | 348784e | 2000-05-29 20:41:49 +0000 | [diff] [blame] | 543 | ** ** |
| 544 | ** See the README file for additional information. ** |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 545 | **************************************************************************" 1>&2; exit 1; } |
| 546 | fi |
| 547 | |
| 548 | ######### |
| 549 | # Set up an appropriate program prefix |
| 550 | # |
| 551 | if test "$program_prefix" = "NONE"; then |
| 552 | program_prefix="" |
| 553 | fi |
| 554 | |
| 555 | |
| 556 | ######### |
| 557 | # Check to see if the --with-hints=FILE option is used. If there is none, |
| 558 | # then check for a files named "$host.hints" and ../$hosts.hints where |
| 559 | # $host is the hostname of the build system. If still no hints are |
| 560 | # found, try looking in $system.hints and ../$system.hints where |
| 561 | # $system is the result of uname -s. |
| 562 | # |
| 563 | # Check whether --with-hints or --without-hints was given. |
| 564 | if test "${with_hints+set}" = set; then |
| 565 | withval="$with_hints" |
| 566 | hints=$withval |
| 567 | fi |
| 568 | |
| 569 | if test "$hints" = ""; then |
| 570 | host=`hostname | sed 's/\..*//'` |
| 571 | if test -r $host.hints; then |
| 572 | hints=$host.hints |
| 573 | else |
| 574 | if test -r ../$host.hints; then |
| 575 | hints=../$host.hints |
| 576 | fi |
| 577 | fi |
| 578 | fi |
| 579 | if test "$hints" = ""; then |
| 580 | sys=`uname -s` |
| 581 | if test -r $sys.hints; then |
| 582 | hints=$sys.hints |
| 583 | else |
| 584 | if test -r ../$sys.hints; then |
| 585 | hints=../$sys.hints |
| 586 | fi |
| 587 | fi |
| 588 | fi |
| 589 | if test "$hints" != ""; then |
| 590 | echo "$ac_t""reading hints from $hints" 1>&6 |
| 591 | . $hints |
| 592 | fi |
| 593 | |
| 594 | ######### |
| 595 | # Locate a compiler for the build machine. This compiler should |
| 596 | # generate command-line programs that run on the build machine. |
| 597 | # |
| 598 | default_build_cflags="-g" |
| 599 | if test "$config_BUILD_CC" = ""; then |
| 600 | # Extract the first word of "gcc", so it can be a program name with args. |
| 601 | set dummy gcc; ac_word=$2 |
| 602 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
drh | 348784e | 2000-05-29 20:41:49 +0000 | [diff] [blame] | 603 | echo "configure:604: checking for $ac_word" >&5 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 604 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
| 605 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 606 | else |
| 607 | if test -n "$CC"; then |
| 608 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 609 | else |
| 610 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 611 | ac_dummy="$PATH" |
| 612 | for ac_dir in $ac_dummy; do |
| 613 | test -z "$ac_dir" && ac_dir=. |
| 614 | if test -f $ac_dir/$ac_word; then |
| 615 | ac_cv_prog_CC="gcc" |
| 616 | break |
| 617 | fi |
| 618 | done |
| 619 | IFS="$ac_save_ifs" |
| 620 | fi |
| 621 | fi |
| 622 | CC="$ac_cv_prog_CC" |
| 623 | if test -n "$CC"; then |
| 624 | echo "$ac_t""$CC" 1>&6 |
| 625 | else |
| 626 | echo "$ac_t""no" 1>&6 |
| 627 | fi |
| 628 | |
| 629 | if test -z "$CC"; then |
| 630 | # Extract the first word of "cc", so it can be a program name with args. |
| 631 | set dummy cc; ac_word=$2 |
| 632 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
drh | 348784e | 2000-05-29 20:41:49 +0000 | [diff] [blame] | 633 | echo "configure:634: checking for $ac_word" >&5 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 634 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
| 635 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 636 | else |
| 637 | if test -n "$CC"; then |
| 638 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 639 | else |
| 640 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 641 | ac_prog_rejected=no |
| 642 | ac_dummy="$PATH" |
| 643 | for ac_dir in $ac_dummy; do |
| 644 | test -z "$ac_dir" && ac_dir=. |
| 645 | if test -f $ac_dir/$ac_word; then |
| 646 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then |
| 647 | ac_prog_rejected=yes |
| 648 | continue |
| 649 | fi |
| 650 | ac_cv_prog_CC="cc" |
| 651 | break |
| 652 | fi |
| 653 | done |
| 654 | IFS="$ac_save_ifs" |
| 655 | if test $ac_prog_rejected = yes; then |
| 656 | # We found a bogon in the path, so make sure we never use it. |
| 657 | set dummy $ac_cv_prog_CC |
| 658 | shift |
| 659 | if test $# -gt 0; then |
| 660 | # We chose a different compiler from the bogus one. |
| 661 | # However, it has the same basename, so the bogon will be chosen |
| 662 | # first if we set CC to just the basename; use the full file name. |
| 663 | shift |
| 664 | set dummy "$ac_dir/$ac_word" "$@" |
| 665 | shift |
| 666 | ac_cv_prog_CC="$@" |
| 667 | fi |
| 668 | fi |
| 669 | fi |
| 670 | fi |
| 671 | CC="$ac_cv_prog_CC" |
| 672 | if test -n "$CC"; then |
| 673 | echo "$ac_t""$CC" 1>&6 |
| 674 | else |
| 675 | echo "$ac_t""no" 1>&6 |
| 676 | fi |
| 677 | |
| 678 | if test -z "$CC"; then |
| 679 | case "`uname -s`" in |
| 680 | *win32* | *WIN32*) |
| 681 | # Extract the first word of "cl", so it can be a program name with args. |
| 682 | set dummy cl; ac_word=$2 |
| 683 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
drh | 348784e | 2000-05-29 20:41:49 +0000 | [diff] [blame] | 684 | echo "configure:685: checking for $ac_word" >&5 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 685 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
| 686 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 687 | else |
| 688 | if test -n "$CC"; then |
| 689 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 690 | else |
| 691 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 692 | ac_dummy="$PATH" |
| 693 | for ac_dir in $ac_dummy; do |
| 694 | test -z "$ac_dir" && ac_dir=. |
| 695 | if test -f $ac_dir/$ac_word; then |
| 696 | ac_cv_prog_CC="cl" |
| 697 | break |
| 698 | fi |
| 699 | done |
| 700 | IFS="$ac_save_ifs" |
| 701 | fi |
| 702 | fi |
| 703 | CC="$ac_cv_prog_CC" |
| 704 | if test -n "$CC"; then |
| 705 | echo "$ac_t""$CC" 1>&6 |
| 706 | else |
| 707 | echo "$ac_t""no" 1>&6 |
| 708 | fi |
| 709 | ;; |
| 710 | esac |
| 711 | fi |
| 712 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } |
| 713 | fi |
| 714 | |
| 715 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
drh | 348784e | 2000-05-29 20:41:49 +0000 | [diff] [blame] | 716 | echo "configure:717: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 717 | |
| 718 | ac_ext=c |
| 719 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
| 720 | ac_cpp='$CPP $CPPFLAGS' |
| 721 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
| 722 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
| 723 | cross_compiling=$ac_cv_prog_cc_cross |
| 724 | |
| 725 | cat > conftest.$ac_ext << EOF |
| 726 | |
drh | 348784e | 2000-05-29 20:41:49 +0000 | [diff] [blame] | 727 | #line 728 "configure" |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 728 | #include "confdefs.h" |
| 729 | |
| 730 | main(){return(0);} |
| 731 | EOF |
drh | 348784e | 2000-05-29 20:41:49 +0000 | [diff] [blame] | 732 | if { (eval echo configure:733: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 733 | ac_cv_prog_cc_works=yes |
| 734 | # If we can't run a trivial program, we are probably using a cross compiler. |
| 735 | if (./conftest; exit) 2>/dev/null; then |
| 736 | ac_cv_prog_cc_cross=no |
| 737 | else |
| 738 | ac_cv_prog_cc_cross=yes |
| 739 | fi |
| 740 | else |
| 741 | echo "configure: failed program was:" >&5 |
| 742 | cat conftest.$ac_ext >&5 |
| 743 | ac_cv_prog_cc_works=no |
| 744 | fi |
| 745 | rm -fr conftest* |
| 746 | ac_ext=c |
| 747 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
| 748 | ac_cpp='$CPP $CPPFLAGS' |
| 749 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
| 750 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
| 751 | cross_compiling=$ac_cv_prog_cc_cross |
| 752 | |
| 753 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 |
| 754 | if test $ac_cv_prog_cc_works = no; then |
| 755 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } |
| 756 | fi |
| 757 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 |
drh | 348784e | 2000-05-29 20:41:49 +0000 | [diff] [blame] | 758 | echo "configure:759: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 759 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
| 760 | cross_compiling=$ac_cv_prog_cc_cross |
| 761 | |
| 762 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 |
drh | 348784e | 2000-05-29 20:41:49 +0000 | [diff] [blame] | 763 | echo "configure:764: checking whether we are using GNU C" >&5 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 764 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
| 765 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 766 | else |
| 767 | cat > conftest.c <<EOF |
| 768 | #ifdef __GNUC__ |
| 769 | yes; |
| 770 | #endif |
| 771 | EOF |
drh | 348784e | 2000-05-29 20:41:49 +0000 | [diff] [blame] | 772 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:773: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 773 | ac_cv_prog_gcc=yes |
| 774 | else |
| 775 | ac_cv_prog_gcc=no |
| 776 | fi |
| 777 | fi |
| 778 | |
| 779 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 |
| 780 | |
| 781 | if test $ac_cv_prog_gcc = yes; then |
| 782 | GCC=yes |
| 783 | else |
| 784 | GCC= |
| 785 | fi |
| 786 | |
| 787 | ac_test_CFLAGS="${CFLAGS+set}" |
| 788 | ac_save_CFLAGS="$CFLAGS" |
| 789 | CFLAGS= |
| 790 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 |
drh | 348784e | 2000-05-29 20:41:49 +0000 | [diff] [blame] | 791 | echo "configure:792: checking whether ${CC-cc} accepts -g" >&5 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 792 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
| 793 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 794 | else |
| 795 | echo 'void f(){}' > conftest.c |
| 796 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then |
| 797 | ac_cv_prog_cc_g=yes |
| 798 | else |
| 799 | ac_cv_prog_cc_g=no |
| 800 | fi |
| 801 | rm -f conftest* |
| 802 | |
| 803 | fi |
| 804 | |
| 805 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 |
| 806 | if test "$ac_test_CFLAGS" = set; then |
| 807 | CFLAGS="$ac_save_CFLAGS" |
| 808 | elif test $ac_cv_prog_cc_g = yes; then |
| 809 | if test "$GCC" = yes; then |
| 810 | CFLAGS="-g -O2" |
| 811 | else |
| 812 | CFLAGS="-g" |
| 813 | fi |
| 814 | else |
| 815 | if test "$GCC" = yes; then |
| 816 | CFLAGS="-O2" |
| 817 | else |
| 818 | CFLAGS= |
| 819 | fi |
| 820 | fi |
| 821 | |
| 822 | if test "$cross_compiling" = "yes"; then |
| 823 | { echo "configure: error: unable to find a compiler for building build tools" 1>&2; exit 1; } |
| 824 | fi |
| 825 | BUILD_CC=$CC |
| 826 | default_build_cflags=$CFLAGS |
| 827 | else |
| 828 | BUILD_CC=$config_BUILD_CC |
| 829 | echo $ac_n "checking host compiler""... $ac_c" 1>&6 |
drh | 348784e | 2000-05-29 20:41:49 +0000 | [diff] [blame] | 830 | echo "configure:831: checking host compiler" >&5 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 831 | CC=$BUILD_CC |
| 832 | echo "$ac_t""$BUILD_CC" 1>&6 |
| 833 | fi |
| 834 | echo $ac_n "checking switches for the host compiler""... $ac_c" 1>&6 |
drh | 348784e | 2000-05-29 20:41:49 +0000 | [diff] [blame] | 835 | echo "configure:836: checking switches for the host compiler" >&5 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 836 | if test "$config_BUILD_CFLAGS" != ""; then |
| 837 | CFLAGS=$config_BUILD_CFLAGS |
| 838 | BUILD_CFLAGS=$config_BUILD_CFLAGS |
| 839 | else |
| 840 | BUILD_CFLAGS=$default_build_cflags |
| 841 | fi |
| 842 | echo "$ac_t""$BUILD_CFLAGS" 1>&6 |
| 843 | if test "$config_BUILD_LIBS" != ""; then |
| 844 | BUILD_LIBS=$config_BUILD_LIBS |
| 845 | fi |
| 846 | |
| 847 | |
| 848 | |
| 849 | |
| 850 | ########## |
| 851 | # Locate a compiler that converts C code into *.o files that run on |
| 852 | # the target machine. |
| 853 | # |
| 854 | echo $ac_n "checking target compiler""... $ac_c" 1>&6 |
drh | 348784e | 2000-05-29 20:41:49 +0000 | [diff] [blame] | 855 | echo "configure:856: checking target compiler" >&5 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 856 | if test "$config_TARGET_CC" != ""; then |
| 857 | TARGET_CC=$config_TARGET_CC |
| 858 | else |
| 859 | TARGET_CC=$BUILD_CC |
| 860 | fi |
| 861 | echo "$ac_t""$TARGET_CC" 1>&6 |
| 862 | echo $ac_n "checking switches on the target compiler""... $ac_c" 1>&6 |
drh | 348784e | 2000-05-29 20:41:49 +0000 | [diff] [blame] | 863 | echo "configure:864: checking switches on the target compiler" >&5 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 864 | if test "$config_TARGET_CFLAGS" != ""; then |
| 865 | TARGET_CFLAGS=$config_TARGET_CFLAGS |
| 866 | else |
| 867 | TARGET_CFLAGS=$BUILD_CFLAGS |
| 868 | fi |
| 869 | echo "$ac_t""$TARGET_CFLAGS" 1>&6 |
| 870 | echo $ac_n "checking target linker""... $ac_c" 1>&6 |
drh | 348784e | 2000-05-29 20:41:49 +0000 | [diff] [blame] | 871 | echo "configure:872: checking target linker" >&5 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 872 | if test "$config_TARGET_LINK" = ""; then |
| 873 | TARGET_LINK=$TARGET_CC |
| 874 | else |
| 875 | TARGET_LINK=$config_TARGET_LINK |
| 876 | fi |
| 877 | echo "$ac_t""$TARGET_LINK" 1>&6 |
| 878 | echo $ac_n "checking switches on the target compiler""... $ac_c" 1>&6 |
drh | 348784e | 2000-05-29 20:41:49 +0000 | [diff] [blame] | 879 | echo "configure:880: checking switches on the target compiler" >&5 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 880 | if test "$config_TARGET_TFLAGS" != ""; then |
| 881 | TARGET_TFLAGS=$config_TARGET_TFLAGS |
| 882 | else |
| 883 | TARGET_TFLAGS=$BUILD_CFLAGS |
| 884 | fi |
| 885 | if test "$config_TARGET_RANLIB" != ""; then |
| 886 | TARGET_RANLIB=$config_TARGET_RANLIB |
| 887 | else |
| 888 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 889 | set dummy ranlib; ac_word=$2 |
| 890 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
drh | 348784e | 2000-05-29 20:41:49 +0000 | [diff] [blame] | 891 | echo "configure:892: checking for $ac_word" >&5 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 892 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
| 893 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 894 | else |
| 895 | if test -n "$RANLIB"; then |
| 896 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 897 | else |
| 898 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 899 | ac_dummy="$PATH" |
| 900 | for ac_dir in $ac_dummy; do |
| 901 | test -z "$ac_dir" && ac_dir=. |
| 902 | if test -f $ac_dir/$ac_word; then |
| 903 | ac_cv_prog_RANLIB="ranlib" |
| 904 | break |
| 905 | fi |
| 906 | done |
| 907 | IFS="$ac_save_ifs" |
| 908 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" |
| 909 | fi |
| 910 | fi |
| 911 | RANLIB="$ac_cv_prog_RANLIB" |
| 912 | if test -n "$RANLIB"; then |
| 913 | echo "$ac_t""$RANLIB" 1>&6 |
| 914 | else |
| 915 | echo "$ac_t""no" 1>&6 |
| 916 | fi |
| 917 | |
| 918 | TARGET_RANLIB=$RANLIB |
| 919 | fi |
| 920 | if test "$config_TARGET_AR" != ""; then |
drh | 82ad383 | 2000-07-31 13:38:24 +0000 | [diff] [blame] | 921 | TARGET_AR=$config_TARGET_AR |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 922 | else |
| 923 | TARGET_AR='ar cr' |
| 924 | fi |
| 925 | echo "$ac_t""$TARGET_TFLAGS" 1>&6 |
| 926 | |
| 927 | |
| 928 | |
| 929 | |
| 930 | |
| 931 | |
| 932 | |
| 933 | # Set the $cross variable if we are cross-compiling. Make |
| 934 | # it 0 if we are not. |
| 935 | # |
| 936 | echo $ac_n "checking if host and target compilers are the same""... $ac_c" 1>&6 |
drh | 348784e | 2000-05-29 20:41:49 +0000 | [diff] [blame] | 937 | echo "configure:938: checking if host and target compilers are the same" >&5 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 938 | if test "$BUILD_CC" = "$TARGET_CC"; then |
| 939 | cross=0 |
| 940 | echo "$ac_t""yes" 1>&6 |
| 941 | else |
| 942 | cross=1 |
| 943 | echo "$ac_t""no" 1>&6 |
| 944 | fi |
| 945 | |
| 946 | ########### |
| 947 | # Lots of things are different if we are compiling for Windows using |
| 948 | # the CYGWIN environment. So check for that special case and handle |
| 949 | # things accordingly. |
| 950 | # |
| 951 | echo $ac_n "checking if executables have the .exe suffix""... $ac_c" 1>&6 |
drh | 348784e | 2000-05-29 20:41:49 +0000 | [diff] [blame] | 952 | echo "configure:953: checking if executables have the .exe suffix" >&5 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 953 | if test "$config_BUILD_EXEEXT" = ".exe"; then |
| 954 | CYGWIN=yes |
| 955 | echo "$ac_t""yes" 1>&6 |
| 956 | else |
| 957 | echo "$ac_t""unknown" 1>&6 |
| 958 | fi |
| 959 | if test "$CYGWIN" != "yes"; then |
| 960 | echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6 |
drh | 348784e | 2000-05-29 20:41:49 +0000 | [diff] [blame] | 961 | echo "configure:962: checking for Cygwin environment" >&5 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 962 | if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then |
| 963 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 964 | else |
| 965 | cat > conftest.$ac_ext <<EOF |
drh | 348784e | 2000-05-29 20:41:49 +0000 | [diff] [blame] | 966 | #line 967 "configure" |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 967 | #include "confdefs.h" |
| 968 | |
| 969 | int main() { |
| 970 | |
| 971 | #ifndef __CYGWIN__ |
| 972 | #define __CYGWIN__ __CYGWIN32__ |
| 973 | #endif |
| 974 | return __CYGWIN__; |
| 975 | ; return 0; } |
| 976 | EOF |
drh | 348784e | 2000-05-29 20:41:49 +0000 | [diff] [blame] | 977 | if { (eval echo configure:978: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 978 | rm -rf conftest* |
| 979 | ac_cv_cygwin=yes |
| 980 | else |
| 981 | echo "configure: failed program was:" >&5 |
| 982 | cat conftest.$ac_ext >&5 |
| 983 | rm -rf conftest* |
| 984 | ac_cv_cygwin=no |
| 985 | fi |
| 986 | rm -f conftest* |
| 987 | rm -f conftest* |
| 988 | fi |
| 989 | |
| 990 | echo "$ac_t""$ac_cv_cygwin" 1>&6 |
| 991 | CYGWIN= |
| 992 | test "$ac_cv_cygwin" = yes && CYGWIN=yes |
| 993 | fi |
| 994 | if test "$CYGWIN" = "yes"; then |
| 995 | BUILD_EXEEXT=.exe |
| 996 | else |
| 997 | BUILD_EXEEXT="" |
| 998 | fi |
| 999 | if test "$cross" = "0"; then |
| 1000 | TARGET_EXEEXT=$BUILD_EXEEXT |
| 1001 | else |
| 1002 | TARGET_EXEEXT=$config_TARGET_EXEEXT |
| 1003 | fi |
| 1004 | if test "$TARGET_EXEEXT" = ".exe"; then |
| 1005 | OS_UNIX=0 |
| 1006 | OS_WIN=1 |
| 1007 | tclsubdir=win |
| 1008 | else |
| 1009 | OS_UNIX=1 |
| 1010 | OS_WIN=0 |
| 1011 | tclsubdir=unix |
| 1012 | fi |
| 1013 | TARGET_CFLAGS="$TARGET_CFLAGS -DOS_UNIX=$OS_UNIX -DOS_WIN=$OS_WIN" |
| 1014 | |
| 1015 | |
| 1016 | |
| 1017 | |
| 1018 | |
| 1019 | |
| 1020 | ########## |
| 1021 | # Extract generic linker options from the environment. |
| 1022 | # |
| 1023 | if test "$config_TARGET_LIBS" != ""; then |
| 1024 | TARGET_LIBS=$config_TARGET_LIBS |
| 1025 | else |
| 1026 | TARGET_LIBS="" |
| 1027 | fi |
| 1028 | |
| 1029 | |
| 1030 | ########## |
| 1031 | # Figure out what C libraries are required to compile Tcl programs. |
| 1032 | # |
| 1033 | if test "$config_TARGET_TCL_LIBS" != ""; then |
| 1034 | TARGET_TCL_LIBS="$config_TARGET_TCL_LIBS" |
| 1035 | else |
| 1036 | if test "$with_tcl" != ""; then |
| 1037 | extra=`echo $with_tcl/$tclsubdir/libtcl8*.a` |
| 1038 | fi |
| 1039 | CC=$TARGET_CC |
| 1040 | echo $ac_n "checking for sin""... $ac_c" 1>&6 |
drh | 348784e | 2000-05-29 20:41:49 +0000 | [diff] [blame] | 1041 | echo "configure:1042: checking for sin" >&5 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1042 | if eval "test \"`echo '$''{'ac_cv_func_sin'+set}'`\" = set"; then |
| 1043 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1044 | else |
| 1045 | cat > conftest.$ac_ext <<EOF |
drh | 348784e | 2000-05-29 20:41:49 +0000 | [diff] [blame] | 1046 | #line 1047 "configure" |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1047 | #include "confdefs.h" |
| 1048 | /* System header to define __stub macros and hopefully few prototypes, |
| 1049 | which can conflict with char sin(); below. */ |
| 1050 | #include <assert.h> |
| 1051 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 1052 | /* We use char because int might match the return type of a gcc2 |
| 1053 | builtin and then its argument prototype would still apply. */ |
| 1054 | char sin(); |
| 1055 | |
| 1056 | int main() { |
| 1057 | |
| 1058 | /* The GNU C library defines this for functions which it implements |
| 1059 | to always fail with ENOSYS. Some functions are actually named |
| 1060 | something starting with __ and the normal name is an alias. */ |
| 1061 | #if defined (__stub_sin) || defined (__stub___sin) |
| 1062 | choke me |
| 1063 | #else |
| 1064 | sin(); |
| 1065 | #endif |
| 1066 | |
| 1067 | ; return 0; } |
| 1068 | EOF |
drh | 348784e | 2000-05-29 20:41:49 +0000 | [diff] [blame] | 1069 | if { (eval echo configure:1070: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1070 | rm -rf conftest* |
| 1071 | eval "ac_cv_func_sin=yes" |
| 1072 | else |
| 1073 | echo "configure: failed program was:" >&5 |
| 1074 | cat conftest.$ac_ext >&5 |
| 1075 | rm -rf conftest* |
| 1076 | eval "ac_cv_func_sin=no" |
| 1077 | fi |
| 1078 | rm -f conftest* |
| 1079 | fi |
| 1080 | |
| 1081 | if eval "test \"`echo '$ac_cv_func_'sin`\" = yes"; then |
| 1082 | echo "$ac_t""yes" 1>&6 |
| 1083 | LIBS="" |
| 1084 | else |
| 1085 | echo "$ac_t""no" 1>&6 |
| 1086 | LIBS="-lm" |
| 1087 | fi |
| 1088 | |
| 1089 | echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 |
drh | 348784e | 2000-05-29 20:41:49 +0000 | [diff] [blame] | 1090 | echo "configure:1091: checking for dlopen in -ldl" >&5 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1091 | ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` |
| 1092 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 1093 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1094 | else |
| 1095 | ac_save_LIBS="$LIBS" |
| 1096 | LIBS="-ldl $LIBS" |
| 1097 | cat > conftest.$ac_ext <<EOF |
drh | 348784e | 2000-05-29 20:41:49 +0000 | [diff] [blame] | 1098 | #line 1099 "configure" |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1099 | #include "confdefs.h" |
| 1100 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 1101 | /* We use char because int might match the return type of a gcc2 |
| 1102 | builtin and then its argument prototype would still apply. */ |
| 1103 | char dlopen(); |
| 1104 | |
| 1105 | int main() { |
| 1106 | dlopen() |
| 1107 | ; return 0; } |
| 1108 | EOF |
drh | 348784e | 2000-05-29 20:41:49 +0000 | [diff] [blame] | 1109 | if { (eval echo configure:1110: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1110 | rm -rf conftest* |
| 1111 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 1112 | else |
| 1113 | echo "configure: failed program was:" >&5 |
| 1114 | cat conftest.$ac_ext >&5 |
| 1115 | rm -rf conftest* |
| 1116 | eval "ac_cv_lib_$ac_lib_var=no" |
| 1117 | fi |
| 1118 | rm -f conftest* |
| 1119 | LIBS="$ac_save_LIBS" |
| 1120 | |
| 1121 | fi |
| 1122 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 1123 | echo "$ac_t""yes" 1>&6 |
| 1124 | ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
| 1125 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
| 1126 | cat >> confdefs.h <<EOF |
| 1127 | #define $ac_tr_lib 1 |
| 1128 | EOF |
| 1129 | |
| 1130 | LIBS="-ldl $LIBS" |
| 1131 | |
| 1132 | else |
| 1133 | echo "$ac_t""no" 1>&6 |
| 1134 | fi |
| 1135 | |
| 1136 | otherlibs=$LIBS |
| 1137 | if test "$extra" != ""; then |
| 1138 | LIBS=$extra |
| 1139 | else |
| 1140 | LIBS="" |
| 1141 | |
| 1142 | echo $ac_n "checking for library containing Tcl_Init""... $ac_c" 1>&6 |
drh | 348784e | 2000-05-29 20:41:49 +0000 | [diff] [blame] | 1143 | echo "configure:1144: checking for library containing Tcl_Init" >&5 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1144 | if eval "test \"`echo '$''{'ac_cv_search_Tcl_Init'+set}'`\" = set"; then |
| 1145 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1146 | else |
| 1147 | ac_func_search_save_LIBS="$LIBS" |
| 1148 | ac_cv_search_Tcl_Init="no" |
| 1149 | cat > conftest.$ac_ext <<EOF |
drh | 348784e | 2000-05-29 20:41:49 +0000 | [diff] [blame] | 1150 | #line 1151 "configure" |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1151 | #include "confdefs.h" |
| 1152 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 1153 | /* We use char because int might match the return type of a gcc2 |
| 1154 | builtin and then its argument prototype would still apply. */ |
| 1155 | char Tcl_Init(); |
| 1156 | |
| 1157 | int main() { |
| 1158 | Tcl_Init() |
| 1159 | ; return 0; } |
| 1160 | EOF |
drh | 348784e | 2000-05-29 20:41:49 +0000 | [diff] [blame] | 1161 | if { (eval echo configure:1162: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1162 | rm -rf conftest* |
| 1163 | ac_cv_search_Tcl_Init="none required" |
| 1164 | else |
| 1165 | echo "configure: failed program was:" >&5 |
| 1166 | cat conftest.$ac_ext >&5 |
| 1167 | fi |
| 1168 | rm -f conftest* |
| 1169 | test "$ac_cv_search_Tcl_Init" = "no" && for i in tcl8.4 tcl8.3 tcl8.2 tcl8.1 tcl8.0 tcl80 tcl; do |
| 1170 | LIBS="-l$i $otherlibs $ac_func_search_save_LIBS" |
| 1171 | cat > conftest.$ac_ext <<EOF |
drh | 348784e | 2000-05-29 20:41:49 +0000 | [diff] [blame] | 1172 | #line 1173 "configure" |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1173 | #include "confdefs.h" |
| 1174 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 1175 | /* We use char because int might match the return type of a gcc2 |
| 1176 | builtin and then its argument prototype would still apply. */ |
| 1177 | char Tcl_Init(); |
| 1178 | |
| 1179 | int main() { |
| 1180 | Tcl_Init() |
| 1181 | ; return 0; } |
| 1182 | EOF |
drh | 348784e | 2000-05-29 20:41:49 +0000 | [diff] [blame] | 1183 | if { (eval echo configure:1184: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1184 | rm -rf conftest* |
| 1185 | ac_cv_search_Tcl_Init="-l$i" |
| 1186 | break |
| 1187 | else |
| 1188 | echo "configure: failed program was:" >&5 |
| 1189 | cat conftest.$ac_ext >&5 |
| 1190 | fi |
| 1191 | rm -f conftest* |
| 1192 | done |
| 1193 | LIBS="$ac_func_search_save_LIBS" |
| 1194 | fi |
| 1195 | |
| 1196 | echo "$ac_t""$ac_cv_search_Tcl_Init" 1>&6 |
| 1197 | if test "$ac_cv_search_Tcl_Init" != "no"; then |
| 1198 | test "$ac_cv_search_Tcl_Init" = "none required" || LIBS="$ac_cv_search_Tcl_Init $LIBS" |
| 1199 | |
| 1200 | else : |
| 1201 | |
| 1202 | fi |
| 1203 | fi |
| 1204 | TARGET_TCL_LIBS="$LIBS $otherlibs" |
| 1205 | fi |
| 1206 | |
| 1207 | |
| 1208 | ########## |
| 1209 | # Figure out where to get the TCL header files. |
| 1210 | # |
| 1211 | echo $ac_n "checking TCL header files""... $ac_c" 1>&6 |
drh | 348784e | 2000-05-29 20:41:49 +0000 | [diff] [blame] | 1212 | echo "configure:1213: checking TCL header files" >&5 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1213 | found=no |
| 1214 | if test "$config_TARGET_TCL_INC" != ""; then |
| 1215 | TARGET_TCL_INC=$config_TARGET_TCL_INC |
| 1216 | found=yes |
| 1217 | else |
| 1218 | if test "$with_tcl" != ""; then |
| 1219 | TARGET_TCL_INC="-I$with_tcl/generic -I$with_tcl/$tclsubdir" |
| 1220 | found=yes |
| 1221 | else |
| 1222 | TARGET_TCL_INC="" |
| 1223 | found=no |
| 1224 | fi |
| 1225 | fi |
| 1226 | if test "$found" = "yes"; then |
| 1227 | echo "$ac_t""$TARGET_TCL_INC" 1>&6 |
| 1228 | else |
| 1229 | echo "$ac_t""not specified: still searching..." 1>&6 |
| 1230 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 |
drh | 348784e | 2000-05-29 20:41:49 +0000 | [diff] [blame] | 1231 | echo "configure:1232: checking how to run the C preprocessor" >&5 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1232 | # On Suns, sometimes $CPP names a directory. |
| 1233 | if test -n "$CPP" && test -d "$CPP"; then |
| 1234 | CPP= |
| 1235 | fi |
| 1236 | if test -z "$CPP"; then |
| 1237 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then |
| 1238 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1239 | else |
| 1240 | # This must be in double quotes, not single quotes, because CPP may get |
| 1241 | # substituted into the Makefile and "${CC-cc}" will confuse make. |
| 1242 | CPP="${CC-cc} -E" |
| 1243 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 1244 | # not just through cpp. |
| 1245 | cat > conftest.$ac_ext <<EOF |
drh | 348784e | 2000-05-29 20:41:49 +0000 | [diff] [blame] | 1246 | #line 1247 "configure" |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1247 | #include "confdefs.h" |
| 1248 | #include <assert.h> |
| 1249 | Syntax Error |
| 1250 | EOF |
| 1251 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
drh | 348784e | 2000-05-29 20:41:49 +0000 | [diff] [blame] | 1252 | { (eval echo configure:1253: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1253 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 1254 | if test -z "$ac_err"; then |
| 1255 | : |
| 1256 | else |
| 1257 | echo "$ac_err" >&5 |
| 1258 | echo "configure: failed program was:" >&5 |
| 1259 | cat conftest.$ac_ext >&5 |
| 1260 | rm -rf conftest* |
| 1261 | CPP="${CC-cc} -E -traditional-cpp" |
| 1262 | cat > conftest.$ac_ext <<EOF |
drh | 348784e | 2000-05-29 20:41:49 +0000 | [diff] [blame] | 1263 | #line 1264 "configure" |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1264 | #include "confdefs.h" |
| 1265 | #include <assert.h> |
| 1266 | Syntax Error |
| 1267 | EOF |
| 1268 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
drh | 348784e | 2000-05-29 20:41:49 +0000 | [diff] [blame] | 1269 | { (eval echo configure:1270: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1270 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 1271 | if test -z "$ac_err"; then |
| 1272 | : |
| 1273 | else |
| 1274 | echo "$ac_err" >&5 |
| 1275 | echo "configure: failed program was:" >&5 |
| 1276 | cat conftest.$ac_ext >&5 |
| 1277 | rm -rf conftest* |
| 1278 | CPP="${CC-cc} -nologo -E" |
| 1279 | cat > conftest.$ac_ext <<EOF |
drh | 348784e | 2000-05-29 20:41:49 +0000 | [diff] [blame] | 1280 | #line 1281 "configure" |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1281 | #include "confdefs.h" |
| 1282 | #include <assert.h> |
| 1283 | Syntax Error |
| 1284 | EOF |
| 1285 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
drh | 348784e | 2000-05-29 20:41:49 +0000 | [diff] [blame] | 1286 | { (eval echo configure:1287: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1287 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 1288 | if test -z "$ac_err"; then |
| 1289 | : |
| 1290 | else |
| 1291 | echo "$ac_err" >&5 |
| 1292 | echo "configure: failed program was:" >&5 |
| 1293 | cat conftest.$ac_ext >&5 |
| 1294 | rm -rf conftest* |
| 1295 | CPP=/lib/cpp |
| 1296 | fi |
| 1297 | rm -f conftest* |
| 1298 | fi |
| 1299 | rm -f conftest* |
| 1300 | fi |
| 1301 | rm -f conftest* |
| 1302 | ac_cv_prog_CPP="$CPP" |
| 1303 | fi |
| 1304 | CPP="$ac_cv_prog_CPP" |
| 1305 | else |
| 1306 | ac_cv_prog_CPP="$CPP" |
| 1307 | fi |
| 1308 | echo "$ac_t""$CPP" 1>&6 |
| 1309 | |
| 1310 | ac_safe=`echo "tcl.h" | sed 'y%./+-%__p_%'` |
| 1311 | echo $ac_n "checking for tcl.h""... $ac_c" 1>&6 |
drh | 348784e | 2000-05-29 20:41:49 +0000 | [diff] [blame] | 1312 | echo "configure:1313: checking for tcl.h" >&5 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1313 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
| 1314 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1315 | else |
| 1316 | cat > conftest.$ac_ext <<EOF |
drh | 348784e | 2000-05-29 20:41:49 +0000 | [diff] [blame] | 1317 | #line 1318 "configure" |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1318 | #include "confdefs.h" |
| 1319 | #include <tcl.h> |
| 1320 | EOF |
| 1321 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
drh | 348784e | 2000-05-29 20:41:49 +0000 | [diff] [blame] | 1322 | { (eval echo configure:1323: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1323 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 1324 | if test -z "$ac_err"; then |
| 1325 | rm -rf conftest* |
| 1326 | eval "ac_cv_header_$ac_safe=yes" |
| 1327 | else |
| 1328 | echo "$ac_err" >&5 |
| 1329 | echo "configure: failed program was:" >&5 |
| 1330 | cat conftest.$ac_ext >&5 |
| 1331 | rm -rf conftest* |
| 1332 | eval "ac_cv_header_$ac_safe=no" |
| 1333 | fi |
| 1334 | rm -f conftest* |
| 1335 | fi |
| 1336 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 1337 | echo "$ac_t""yes" 1>&6 |
| 1338 | found=yes |
| 1339 | else |
| 1340 | echo "$ac_t""no" 1>&6 |
| 1341 | fi |
| 1342 | |
| 1343 | fi |
| 1344 | if test "$found" = "no"; then |
| 1345 | for dir in /usr/local /usr/X11* /usr/pkg /usr/contrib /usr; do |
| 1346 | |
| 1347 | ac_safe=`echo "$dir/include/tcl.h" | sed 'y%./+-%__p_%'` |
| 1348 | echo $ac_n "checking for $dir/include/tcl.h""... $ac_c" 1>&6 |
drh | 348784e | 2000-05-29 20:41:49 +0000 | [diff] [blame] | 1349 | echo "configure:1350: checking for $dir/include/tcl.h" >&5 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1350 | if eval "test \"`echo '$''{'ac_cv_file_$ac_safe'+set}'`\" = set"; then |
| 1351 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1352 | else |
| 1353 | if test "$cross_compiling" = yes; then |
| 1354 | { echo "configure: error: Cannot check for file existence when cross compiling" 1>&2; exit 1; } |
| 1355 | else |
| 1356 | if test -r $dir/include/tcl.h; then |
| 1357 | eval "ac_cv_file_$ac_safe=yes" |
| 1358 | else |
| 1359 | eval "ac_cv_file_$ac_safe=no" |
| 1360 | fi |
| 1361 | fi |
| 1362 | fi |
| 1363 | if eval "test \"`echo '$ac_cv_file_'$ac_safe`\" = yes"; then |
| 1364 | echo "$ac_t""yes" 1>&6 |
| 1365 | found=yes |
| 1366 | else |
| 1367 | echo "$ac_t""no" 1>&6 |
| 1368 | |
| 1369 | fi |
| 1370 | |
| 1371 | if test "$found" = "yes"; then |
| 1372 | TARGET_TCL_INC="-I$dir/include" |
| 1373 | break |
| 1374 | fi |
| 1375 | done |
| 1376 | fi |
drh | 6d31316 | 2000-09-21 13:01:35 +0000 | [diff] [blame] | 1377 | if test "$found" = "no"; then |
| 1378 | TARGET_TCL_INC="-DNO_TCL=1" |
| 1379 | fi |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1380 | |
| 1381 | |
| 1382 | ########## |
| 1383 | # Figure out what C libraries are required to compile programs |
| 1384 | # that use GDBM. |
| 1385 | # |
| 1386 | if test "$config_TARGET_GDBM_LIBS" != ""; then |
| 1387 | TARGET_GDBM_LIBS="$config_TARGET_GDBM_LIBS" |
| 1388 | else |
| 1389 | CC=$TARGET_CC |
| 1390 | LIBS="" |
| 1391 | |
| 1392 | echo $ac_n "checking for library containing gdbm_open""... $ac_c" 1>&6 |
drh | 6d31316 | 2000-09-21 13:01:35 +0000 | [diff] [blame] | 1393 | echo "configure:1394: checking for library containing gdbm_open" >&5 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1394 | if eval "test \"`echo '$''{'ac_cv_search_gdbm_open'+set}'`\" = set"; then |
| 1395 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1396 | else |
| 1397 | ac_func_search_save_LIBS="$LIBS" |
| 1398 | ac_cv_search_gdbm_open="no" |
| 1399 | cat > conftest.$ac_ext <<EOF |
drh | 6d31316 | 2000-09-21 13:01:35 +0000 | [diff] [blame] | 1400 | #line 1401 "configure" |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1401 | #include "confdefs.h" |
| 1402 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 1403 | /* We use char because int might match the return type of a gcc2 |
| 1404 | builtin and then its argument prototype would still apply. */ |
| 1405 | char gdbm_open(); |
| 1406 | |
| 1407 | int main() { |
| 1408 | gdbm_open() |
| 1409 | ; return 0; } |
| 1410 | EOF |
drh | 6d31316 | 2000-09-21 13:01:35 +0000 | [diff] [blame] | 1411 | if { (eval echo configure:1412: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1412 | rm -rf conftest* |
| 1413 | ac_cv_search_gdbm_open="none required" |
| 1414 | else |
| 1415 | echo "configure: failed program was:" >&5 |
| 1416 | cat conftest.$ac_ext >&5 |
| 1417 | fi |
| 1418 | rm -f conftest* |
| 1419 | test "$ac_cv_search_gdbm_open" = "no" && for i in gdbm; do |
| 1420 | LIBS="-l$i $ac_func_search_save_LIBS" |
| 1421 | cat > conftest.$ac_ext <<EOF |
drh | 6d31316 | 2000-09-21 13:01:35 +0000 | [diff] [blame] | 1422 | #line 1423 "configure" |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1423 | #include "confdefs.h" |
| 1424 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 1425 | /* We use char because int might match the return type of a gcc2 |
| 1426 | builtin and then its argument prototype would still apply. */ |
| 1427 | char gdbm_open(); |
| 1428 | |
| 1429 | int main() { |
| 1430 | gdbm_open() |
| 1431 | ; return 0; } |
| 1432 | EOF |
drh | 6d31316 | 2000-09-21 13:01:35 +0000 | [diff] [blame] | 1433 | if { (eval echo configure:1434: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1434 | rm -rf conftest* |
| 1435 | ac_cv_search_gdbm_open="-l$i" |
| 1436 | break |
| 1437 | else |
| 1438 | echo "configure: failed program was:" >&5 |
| 1439 | cat conftest.$ac_ext >&5 |
| 1440 | fi |
| 1441 | rm -f conftest* |
| 1442 | done |
| 1443 | LIBS="$ac_func_search_save_LIBS" |
| 1444 | fi |
| 1445 | |
| 1446 | echo "$ac_t""$ac_cv_search_gdbm_open" 1>&6 |
| 1447 | if test "$ac_cv_search_gdbm_open" != "no"; then |
| 1448 | test "$ac_cv_search_gdbm_open" = "none required" || LIBS="$ac_cv_search_gdbm_open $LIBS" |
| 1449 | |
| 1450 | else : |
| 1451 | |
| 1452 | fi |
| 1453 | TARGET_GDBM_LIBS="$LIBS" |
| 1454 | fi |
| 1455 | |
| 1456 | |
| 1457 | ########## |
| 1458 | # Figure out where to get the GDBM header files. |
| 1459 | # |
| 1460 | echo $ac_n "checking GDBM header files""... $ac_c" 1>&6 |
drh | 6d31316 | 2000-09-21 13:01:35 +0000 | [diff] [blame] | 1461 | echo "configure:1462: checking GDBM header files" >&5 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1462 | found=no |
| 1463 | if test "$config_TARGET_GDBM_INC" != ""; then |
| 1464 | TARGET_GDBM_INC=$config_TARGET_GDBM_INC |
| 1465 | found=yes |
| 1466 | fi |
| 1467 | if test "$found" = "yes"; then |
drh | 5fc27f9 | 2000-06-12 17:49:22 +0000 | [diff] [blame] | 1468 | echo "$ac_t""$TARGET_GDBM_INC" 1>&6 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1469 | else |
| 1470 | echo "$ac_t""not specified: still searching..." 1>&6 |
| 1471 | ac_safe=`echo "gdbm.h" | sed 'y%./+-%__p_%'` |
| 1472 | echo $ac_n "checking for gdbm.h""... $ac_c" 1>&6 |
drh | 6d31316 | 2000-09-21 13:01:35 +0000 | [diff] [blame] | 1473 | echo "configure:1474: checking for gdbm.h" >&5 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1474 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
| 1475 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1476 | else |
| 1477 | cat > conftest.$ac_ext <<EOF |
drh | 6d31316 | 2000-09-21 13:01:35 +0000 | [diff] [blame] | 1478 | #line 1479 "configure" |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1479 | #include "confdefs.h" |
| 1480 | #include <gdbm.h> |
| 1481 | EOF |
| 1482 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
drh | 6d31316 | 2000-09-21 13:01:35 +0000 | [diff] [blame] | 1483 | { (eval echo configure:1484: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1484 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 1485 | if test -z "$ac_err"; then |
| 1486 | rm -rf conftest* |
| 1487 | eval "ac_cv_header_$ac_safe=yes" |
| 1488 | else |
| 1489 | echo "$ac_err" >&5 |
| 1490 | echo "configure: failed program was:" >&5 |
| 1491 | cat conftest.$ac_ext >&5 |
| 1492 | rm -rf conftest* |
| 1493 | eval "ac_cv_header_$ac_safe=no" |
| 1494 | fi |
| 1495 | rm -f conftest* |
| 1496 | fi |
| 1497 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 1498 | echo "$ac_t""yes" 1>&6 |
| 1499 | found=yes |
| 1500 | else |
| 1501 | echo "$ac_t""no" 1>&6 |
| 1502 | fi |
| 1503 | |
| 1504 | fi |
| 1505 | if test "$found" = "no"; then |
| 1506 | for dir in /usr/local /usr/pkg /usr/contrib; do |
| 1507 | |
| 1508 | ac_safe=`echo "$dir/include/gdbm.h" | sed 'y%./+-%__p_%'` |
| 1509 | echo $ac_n "checking for $dir/include/gdbm.h""... $ac_c" 1>&6 |
drh | 6d31316 | 2000-09-21 13:01:35 +0000 | [diff] [blame] | 1510 | echo "configure:1511: checking for $dir/include/gdbm.h" >&5 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1511 | if eval "test \"`echo '$''{'ac_cv_file_$ac_safe'+set}'`\" = set"; then |
| 1512 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1513 | else |
| 1514 | if test "$cross_compiling" = yes; then |
| 1515 | { echo "configure: error: Cannot check for file existence when cross compiling" 1>&2; exit 1; } |
| 1516 | else |
| 1517 | if test -r $dir/include/gdbm.h; then |
| 1518 | eval "ac_cv_file_$ac_safe=yes" |
| 1519 | else |
| 1520 | eval "ac_cv_file_$ac_safe=no" |
| 1521 | fi |
| 1522 | fi |
| 1523 | fi |
| 1524 | if eval "test \"`echo '$ac_cv_file_'$ac_safe`\" = yes"; then |
| 1525 | echo "$ac_t""yes" 1>&6 |
| 1526 | found=yes |
| 1527 | else |
| 1528 | echo "$ac_t""no" 1>&6 |
| 1529 | |
| 1530 | fi |
| 1531 | |
| 1532 | if test "$found" = "yes"; then |
| 1533 | TARGET_GDBM_INC="-I$dir/include" |
| 1534 | break |
| 1535 | fi |
| 1536 | done |
| 1537 | fi |
| 1538 | |
| 1539 | |
| 1540 | ########## |
| 1541 | # Figure out what C libraries are required to compile programs |
| 1542 | # that use "readline()" library. |
| 1543 | # |
| 1544 | if test "$config_TARGET_READLINE_LIBS" != ""; then |
| 1545 | TARGET_READLINE_LIBS="$config_TARGET_READLINE_LIBS" |
| 1546 | else |
| 1547 | CC=$TARGET_CC |
| 1548 | LIBS="" |
| 1549 | |
| 1550 | echo $ac_n "checking for library containing readline""... $ac_c" 1>&6 |
drh | 6d31316 | 2000-09-21 13:01:35 +0000 | [diff] [blame] | 1551 | echo "configure:1552: checking for library containing readline" >&5 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1552 | if eval "test \"`echo '$''{'ac_cv_search_readline'+set}'`\" = set"; then |
| 1553 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1554 | else |
| 1555 | ac_func_search_save_LIBS="$LIBS" |
| 1556 | ac_cv_search_readline="no" |
| 1557 | cat > conftest.$ac_ext <<EOF |
drh | 6d31316 | 2000-09-21 13:01:35 +0000 | [diff] [blame] | 1558 | #line 1559 "configure" |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1559 | #include "confdefs.h" |
| 1560 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 1561 | /* We use char because int might match the return type of a gcc2 |
| 1562 | builtin and then its argument prototype would still apply. */ |
| 1563 | char readline(); |
| 1564 | |
| 1565 | int main() { |
| 1566 | readline() |
| 1567 | ; return 0; } |
| 1568 | EOF |
drh | 6d31316 | 2000-09-21 13:01:35 +0000 | [diff] [blame] | 1569 | if { (eval echo configure:1570: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1570 | rm -rf conftest* |
| 1571 | ac_cv_search_readline="none required" |
| 1572 | else |
| 1573 | echo "configure: failed program was:" >&5 |
| 1574 | cat conftest.$ac_ext >&5 |
| 1575 | fi |
| 1576 | rm -f conftest* |
| 1577 | test "$ac_cv_search_readline" = "no" && for i in readline; do |
| 1578 | LIBS="-l$i $ac_func_search_save_LIBS" |
| 1579 | cat > conftest.$ac_ext <<EOF |
drh | 6d31316 | 2000-09-21 13:01:35 +0000 | [diff] [blame] | 1580 | #line 1581 "configure" |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1581 | #include "confdefs.h" |
| 1582 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 1583 | /* We use char because int might match the return type of a gcc2 |
| 1584 | builtin and then its argument prototype would still apply. */ |
| 1585 | char readline(); |
| 1586 | |
| 1587 | int main() { |
| 1588 | readline() |
| 1589 | ; return 0; } |
| 1590 | EOF |
drh | 6d31316 | 2000-09-21 13:01:35 +0000 | [diff] [blame] | 1591 | if { (eval echo configure:1592: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1592 | rm -rf conftest* |
| 1593 | ac_cv_search_readline="-l$i" |
| 1594 | break |
| 1595 | else |
| 1596 | echo "configure: failed program was:" >&5 |
| 1597 | cat conftest.$ac_ext >&5 |
| 1598 | fi |
| 1599 | rm -f conftest* |
| 1600 | done |
| 1601 | LIBS="$ac_func_search_save_LIBS" |
| 1602 | fi |
| 1603 | |
| 1604 | echo "$ac_t""$ac_cv_search_readline" 1>&6 |
| 1605 | if test "$ac_cv_search_readline" != "no"; then |
| 1606 | test "$ac_cv_search_readline" = "none required" || LIBS="$ac_cv_search_readline $LIBS" |
| 1607 | |
| 1608 | else : |
| 1609 | |
| 1610 | fi |
| 1611 | TARGET_READLINE_LIBS="$LIBS" |
| 1612 | fi |
| 1613 | |
| 1614 | |
| 1615 | ########## |
| 1616 | # Figure out where to get the READLINE header files. |
| 1617 | # |
| 1618 | echo $ac_n "checking readline header files""... $ac_c" 1>&6 |
drh | 6d31316 | 2000-09-21 13:01:35 +0000 | [diff] [blame] | 1619 | echo "configure:1620: checking readline header files" >&5 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1620 | found=no |
| 1621 | if test "$config_TARGET_READLINE_INC" != ""; then |
| 1622 | TARGET_READLINE_INC=$config_TARGET_READLINE_INC |
| 1623 | found=yes |
| 1624 | fi |
| 1625 | if test "$found" = "yes"; then |
| 1626 | echo "$ac_t""$TARGET_READLINE_INC" 1>&6 |
| 1627 | else |
| 1628 | echo "$ac_t""not specified: still searching..." 1>&6 |
| 1629 | ac_safe=`echo "readline.h" | sed 'y%./+-%__p_%'` |
| 1630 | echo $ac_n "checking for readline.h""... $ac_c" 1>&6 |
drh | 6d31316 | 2000-09-21 13:01:35 +0000 | [diff] [blame] | 1631 | echo "configure:1632: checking for readline.h" >&5 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1632 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
| 1633 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1634 | else |
| 1635 | cat > conftest.$ac_ext <<EOF |
drh | 6d31316 | 2000-09-21 13:01:35 +0000 | [diff] [blame] | 1636 | #line 1637 "configure" |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1637 | #include "confdefs.h" |
| 1638 | #include <readline.h> |
| 1639 | EOF |
| 1640 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
drh | 6d31316 | 2000-09-21 13:01:35 +0000 | [diff] [blame] | 1641 | { (eval echo configure:1642: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1642 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 1643 | if test -z "$ac_err"; then |
| 1644 | rm -rf conftest* |
| 1645 | eval "ac_cv_header_$ac_safe=yes" |
| 1646 | else |
| 1647 | echo "$ac_err" >&5 |
| 1648 | echo "configure: failed program was:" >&5 |
| 1649 | cat conftest.$ac_ext >&5 |
| 1650 | rm -rf conftest* |
| 1651 | eval "ac_cv_header_$ac_safe=no" |
| 1652 | fi |
| 1653 | rm -f conftest* |
| 1654 | fi |
| 1655 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 1656 | echo "$ac_t""yes" 1>&6 |
| 1657 | found=yes |
| 1658 | else |
| 1659 | echo "$ac_t""no" 1>&6 |
| 1660 | fi |
| 1661 | |
| 1662 | fi |
| 1663 | if test "$found" = "no"; then |
| 1664 | for dir in /usr /usr/local /usr/local/readline /usr/contrib; do |
| 1665 | |
| 1666 | ac_safe=`echo "$dir/include/readline.h" | sed 'y%./+-%__p_%'` |
| 1667 | echo $ac_n "checking for $dir/include/readline.h""... $ac_c" 1>&6 |
drh | 6d31316 | 2000-09-21 13:01:35 +0000 | [diff] [blame] | 1668 | echo "configure:1669: checking for $dir/include/readline.h" >&5 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1669 | if eval "test \"`echo '$''{'ac_cv_file_$ac_safe'+set}'`\" = set"; then |
| 1670 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1671 | else |
| 1672 | if test "$cross_compiling" = yes; then |
| 1673 | { echo "configure: error: Cannot check for file existence when cross compiling" 1>&2; exit 1; } |
| 1674 | else |
| 1675 | if test -r $dir/include/readline.h; then |
| 1676 | eval "ac_cv_file_$ac_safe=yes" |
| 1677 | else |
| 1678 | eval "ac_cv_file_$ac_safe=no" |
| 1679 | fi |
| 1680 | fi |
| 1681 | fi |
| 1682 | if eval "test \"`echo '$ac_cv_file_'$ac_safe`\" = yes"; then |
| 1683 | echo "$ac_t""yes" 1>&6 |
| 1684 | found=yes |
| 1685 | else |
| 1686 | echo "$ac_t""no" 1>&6 |
| 1687 | |
| 1688 | fi |
| 1689 | |
| 1690 | if test "$found" = "yes"; then |
| 1691 | TARGET_READLINE_INC="-I$dir/include" |
| 1692 | break |
| 1693 | fi |
| 1694 | |
| 1695 | ac_safe=`echo "$dir/include/readline/readline.h" | sed 'y%./+-%__p_%'` |
| 1696 | echo $ac_n "checking for $dir/include/readline/readline.h""... $ac_c" 1>&6 |
drh | 6d31316 | 2000-09-21 13:01:35 +0000 | [diff] [blame] | 1697 | echo "configure:1698: checking for $dir/include/readline/readline.h" >&5 |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1698 | if eval "test \"`echo '$''{'ac_cv_file_$ac_safe'+set}'`\" = set"; then |
| 1699 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1700 | else |
| 1701 | if test "$cross_compiling" = yes; then |
| 1702 | { echo "configure: error: Cannot check for file existence when cross compiling" 1>&2; exit 1; } |
| 1703 | else |
| 1704 | if test -r $dir/include/readline/readline.h; then |
| 1705 | eval "ac_cv_file_$ac_safe=yes" |
| 1706 | else |
| 1707 | eval "ac_cv_file_$ac_safe=no" |
| 1708 | fi |
| 1709 | fi |
| 1710 | fi |
| 1711 | if eval "test \"`echo '$ac_cv_file_'$ac_safe`\" = yes"; then |
| 1712 | echo "$ac_t""yes" 1>&6 |
| 1713 | found=yes |
| 1714 | else |
| 1715 | echo "$ac_t""no" 1>&6 |
| 1716 | |
| 1717 | fi |
| 1718 | |
| 1719 | if test "$found" = "yes"; then |
| 1720 | TARGET_READLINE_INC="-I$dir/include/readline" |
| 1721 | break |
| 1722 | fi |
| 1723 | done |
| 1724 | fi |
| 1725 | if test "$found" = "yes"; then |
drh | 82ad383 | 2000-07-31 13:38:24 +0000 | [diff] [blame] | 1726 | if test "$TARGET_READLINE_LIBS" = ""; then |
| 1727 | TARGET_HAVE_READLINE=0 |
| 1728 | else |
| 1729 | TARGET_HAVE_READLINE=1 |
| 1730 | fi |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1731 | else |
| 1732 | TARGET_HAVE_READLINE=0 |
| 1733 | fi |
| 1734 | |
| 1735 | |
| 1736 | |
| 1737 | ######### |
drh | 2dfbbca | 2000-07-28 14:32:48 +0000 | [diff] [blame] | 1738 | # Figure out whether or not we have a "usleep()" function. |
| 1739 | # |
| 1740 | echo $ac_n "checking for usleep""... $ac_c" 1>&6 |
drh | 6d31316 | 2000-09-21 13:01:35 +0000 | [diff] [blame] | 1741 | echo "configure:1742: checking for usleep" >&5 |
drh | 2dfbbca | 2000-07-28 14:32:48 +0000 | [diff] [blame] | 1742 | if eval "test \"`echo '$''{'ac_cv_func_usleep'+set}'`\" = set"; then |
| 1743 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1744 | else |
| 1745 | cat > conftest.$ac_ext <<EOF |
drh | 6d31316 | 2000-09-21 13:01:35 +0000 | [diff] [blame] | 1746 | #line 1747 "configure" |
drh | 2dfbbca | 2000-07-28 14:32:48 +0000 | [diff] [blame] | 1747 | #include "confdefs.h" |
| 1748 | /* System header to define __stub macros and hopefully few prototypes, |
| 1749 | which can conflict with char usleep(); below. */ |
| 1750 | #include <assert.h> |
| 1751 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 1752 | /* We use char because int might match the return type of a gcc2 |
| 1753 | builtin and then its argument prototype would still apply. */ |
| 1754 | char usleep(); |
| 1755 | |
| 1756 | int main() { |
| 1757 | |
| 1758 | /* The GNU C library defines this for functions which it implements |
| 1759 | to always fail with ENOSYS. Some functions are actually named |
| 1760 | something starting with __ and the normal name is an alias. */ |
| 1761 | #if defined (__stub_usleep) || defined (__stub___usleep) |
| 1762 | choke me |
| 1763 | #else |
| 1764 | usleep(); |
| 1765 | #endif |
| 1766 | |
| 1767 | ; return 0; } |
| 1768 | EOF |
drh | 6d31316 | 2000-09-21 13:01:35 +0000 | [diff] [blame] | 1769 | if { (eval echo configure:1770: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
drh | 2dfbbca | 2000-07-28 14:32:48 +0000 | [diff] [blame] | 1770 | rm -rf conftest* |
| 1771 | eval "ac_cv_func_usleep=yes" |
| 1772 | else |
| 1773 | echo "configure: failed program was:" >&5 |
| 1774 | cat conftest.$ac_ext >&5 |
| 1775 | rm -rf conftest* |
| 1776 | eval "ac_cv_func_usleep=no" |
| 1777 | fi |
| 1778 | rm -f conftest* |
| 1779 | fi |
| 1780 | |
| 1781 | if eval "test \"`echo '$ac_cv_func_'usleep`\" = yes"; then |
| 1782 | echo "$ac_t""yes" 1>&6 |
| 1783 | TARGET_CFLAGS="$TARGET_CFLAGS -DHAVE_USLEEP=1" |
| 1784 | else |
| 1785 | echo "$ac_t""no" 1>&6 |
| 1786 | fi |
| 1787 | |
| 1788 | |
| 1789 | ######### |
drh | 7589723 | 2000-05-29 14:26:00 +0000 | [diff] [blame] | 1790 | # Generate the output files. |
| 1791 | # |
| 1792 | trap '' 1 2 15 |
| 1793 | cat > confcache <<\EOF |
| 1794 | # This file is a shell script that caches the results of configure |
| 1795 | # tests run on this system so they can be shared between configure |
| 1796 | # scripts and configure runs. It is not useful on other systems. |
| 1797 | # If it contains results you don't want to keep, you may remove or edit it. |
| 1798 | # |
| 1799 | # By default, configure uses ./config.cache as the cache file, |
| 1800 | # creating it if it does not exist already. You can give configure |
| 1801 | # the --cache-file=FILE option to use a different cache file; that is |
| 1802 | # what configure does when it calls configure scripts in |
| 1803 | # subdirectories, so they share the cache. |
| 1804 | # Giving --cache-file=/dev/null disables caching, for debugging configure. |
| 1805 | # config.status only pays attention to the cache file if you give it the |
| 1806 | # --recheck option to rerun configure. |
| 1807 | # |
| 1808 | EOF |
| 1809 | # The following way of writing the cache mishandles newlines in values, |
| 1810 | # but we know of no workaround that is simple, portable, and efficient. |
| 1811 | # So, don't put newlines in cache variables' values. |
| 1812 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 1813 | # and sets the high bit in the cache file unless we assign to the vars. |
| 1814 | (set) 2>&1 | |
| 1815 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
| 1816 | *ac_space=\ *) |
| 1817 | # `set' does not quote correctly, so add quotes (double-quote substitution |
| 1818 | # turns \\\\ into \\, and sed turns \\ into \). |
| 1819 | sed -n \ |
| 1820 | -e "s/'/'\\\\''/g" \ |
| 1821 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" |
| 1822 | ;; |
| 1823 | *) |
| 1824 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
| 1825 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' |
| 1826 | ;; |
| 1827 | esac >> confcache |
| 1828 | if cmp -s $cache_file confcache; then |
| 1829 | : |
| 1830 | else |
| 1831 | if test -w $cache_file; then |
| 1832 | echo "updating cache $cache_file" |
| 1833 | cat confcache > $cache_file |
| 1834 | else |
| 1835 | echo "not updating unwritable cache $cache_file" |
| 1836 | fi |
| 1837 | fi |
| 1838 | rm -f confcache |
| 1839 | |
| 1840 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
| 1841 | |
| 1842 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 1843 | # Let make expand exec_prefix. |
| 1844 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 1845 | |
| 1846 | # Any assignment to VPATH causes Sun make to only execute |
| 1847 | # the first set of double-colon rules, so remove it if not needed. |
| 1848 | # If there is a colon in the path, we need to keep it. |
| 1849 | if test "x$srcdir" = x.; then |
| 1850 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' |
| 1851 | fi |
| 1852 | |
| 1853 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 |
| 1854 | |
| 1855 | # Transform confdefs.h into DEFS. |
| 1856 | # Protect against shell expansion while executing Makefile rules. |
| 1857 | # Protect against Makefile macro expansion. |
| 1858 | cat > conftest.defs <<\EOF |
| 1859 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g |
| 1860 | s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g |
| 1861 | s%\[%\\&%g |
| 1862 | s%\]%\\&%g |
| 1863 | s%\$%$$%g |
| 1864 | EOF |
| 1865 | DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '` |
| 1866 | rm -f conftest.defs |
| 1867 | |
| 1868 | |
| 1869 | # Without the "./", some shells look in PATH for config.status. |
| 1870 | : ${CONFIG_STATUS=./config.status} |
| 1871 | |
| 1872 | echo creating $CONFIG_STATUS |
| 1873 | rm -f $CONFIG_STATUS |
| 1874 | cat > $CONFIG_STATUS <<EOF |
| 1875 | #! /bin/sh |
| 1876 | # Generated automatically by configure. |
| 1877 | # Run this file to recreate the current configuration. |
| 1878 | # This directory was configured as follows, |
| 1879 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 1880 | # |
| 1881 | # $0 $ac_configure_args |
| 1882 | # |
| 1883 | # Compiler output produced by configure, useful for debugging |
| 1884 | # configure, is in ./config.log if it exists. |
| 1885 | |
| 1886 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" |
| 1887 | for ac_option |
| 1888 | do |
| 1889 | case "\$ac_option" in |
| 1890 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 1891 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" |
| 1892 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; |
| 1893 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) |
| 1894 | echo "$CONFIG_STATUS generated by autoconf version 2.13" |
| 1895 | exit 0 ;; |
| 1896 | -help | --help | --hel | --he | --h) |
| 1897 | echo "\$ac_cs_usage"; exit 0 ;; |
| 1898 | *) echo "\$ac_cs_usage"; exit 1 ;; |
| 1899 | esac |
| 1900 | done |
| 1901 | |
| 1902 | ac_given_srcdir=$srcdir |
| 1903 | |
| 1904 | trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 |
| 1905 | EOF |
| 1906 | cat >> $CONFIG_STATUS <<EOF |
| 1907 | |
| 1908 | # Protect against being on the right side of a sed subst in config.status. |
| 1909 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; |
| 1910 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF |
| 1911 | $ac_vpsub |
| 1912 | $extrasub |
| 1913 | s%@SHELL@%$SHELL%g |
| 1914 | s%@CFLAGS@%$CFLAGS%g |
| 1915 | s%@CPPFLAGS@%$CPPFLAGS%g |
| 1916 | s%@CXXFLAGS@%$CXXFLAGS%g |
| 1917 | s%@FFLAGS@%$FFLAGS%g |
| 1918 | s%@DEFS@%$DEFS%g |
| 1919 | s%@LDFLAGS@%$LDFLAGS%g |
| 1920 | s%@LIBS@%$LIBS%g |
| 1921 | s%@exec_prefix@%$exec_prefix%g |
| 1922 | s%@prefix@%$prefix%g |
| 1923 | s%@program_transform_name@%$program_transform_name%g |
| 1924 | s%@bindir@%$bindir%g |
| 1925 | s%@sbindir@%$sbindir%g |
| 1926 | s%@libexecdir@%$libexecdir%g |
| 1927 | s%@datadir@%$datadir%g |
| 1928 | s%@sysconfdir@%$sysconfdir%g |
| 1929 | s%@sharedstatedir@%$sharedstatedir%g |
| 1930 | s%@localstatedir@%$localstatedir%g |
| 1931 | s%@libdir@%$libdir%g |
| 1932 | s%@includedir@%$includedir%g |
| 1933 | s%@oldincludedir@%$oldincludedir%g |
| 1934 | s%@infodir@%$infodir%g |
| 1935 | s%@mandir@%$mandir%g |
| 1936 | s%@program_prefix@%$program_prefix%g |
| 1937 | s%@CC@%$CC%g |
| 1938 | s%@BUILD_CC@%$BUILD_CC%g |
| 1939 | s%@BUILD_CFLAGS@%$BUILD_CFLAGS%g |
| 1940 | s%@BUILD_LIBS@%$BUILD_LIBS%g |
| 1941 | s%@RANLIB@%$RANLIB%g |
| 1942 | s%@TARGET_CC@%$TARGET_CC%g |
| 1943 | s%@TARGET_CFLAGS@%$TARGET_CFLAGS%g |
| 1944 | s%@TARGET_LINK@%$TARGET_LINK%g |
| 1945 | s%@TARGET_LFLAGS@%$TARGET_LFLAGS%g |
| 1946 | s%@TARGET_RANLIB@%$TARGET_RANLIB%g |
| 1947 | s%@TARGET_AR@%$TARGET_AR%g |
| 1948 | s%@BUILD_EXEEXT@%$BUILD_EXEEXT%g |
| 1949 | s%@OS_UNIX@%$OS_UNIX%g |
| 1950 | s%@OS_WIN@%$OS_WIN%g |
| 1951 | s%@TARGET_EXEEXT@%$TARGET_EXEEXT%g |
| 1952 | s%@TARGET_LIBS@%$TARGET_LIBS%g |
| 1953 | s%@TARGET_TCL_LIBS@%$TARGET_TCL_LIBS%g |
| 1954 | s%@CPP@%$CPP%g |
| 1955 | s%@TARGET_TCL_INC@%$TARGET_TCL_INC%g |
| 1956 | s%@TARGET_GDBM_LIBS@%$TARGET_GDBM_LIBS%g |
| 1957 | s%@TARGET_GDBM_INC@%$TARGET_GDBM_INC%g |
| 1958 | s%@TARGET_READLINE_LIBS@%$TARGET_READLINE_LIBS%g |
| 1959 | s%@TARGET_READLINE_INC@%$TARGET_READLINE_INC%g |
| 1960 | s%@TARGET_HAVE_READLINE@%$TARGET_HAVE_READLINE%g |
| 1961 | |
| 1962 | CEOF |
| 1963 | EOF |
| 1964 | |
| 1965 | cat >> $CONFIG_STATUS <<\EOF |
| 1966 | |
| 1967 | # Split the substitutions into bite-sized pieces for seds with |
| 1968 | # small command number limits, like on Digital OSF/1 and HP-UX. |
| 1969 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. |
| 1970 | ac_file=1 # Number of current file. |
| 1971 | ac_beg=1 # First line for current file. |
| 1972 | ac_end=$ac_max_sed_cmds # Line after last line for current file. |
| 1973 | ac_more_lines=: |
| 1974 | ac_sed_cmds="" |
| 1975 | while $ac_more_lines; do |
| 1976 | if test $ac_beg -gt 1; then |
| 1977 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file |
| 1978 | else |
| 1979 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file |
| 1980 | fi |
| 1981 | if test ! -s conftest.s$ac_file; then |
| 1982 | ac_more_lines=false |
| 1983 | rm -f conftest.s$ac_file |
| 1984 | else |
| 1985 | if test -z "$ac_sed_cmds"; then |
| 1986 | ac_sed_cmds="sed -f conftest.s$ac_file" |
| 1987 | else |
| 1988 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" |
| 1989 | fi |
| 1990 | ac_file=`expr $ac_file + 1` |
| 1991 | ac_beg=$ac_end |
| 1992 | ac_end=`expr $ac_end + $ac_max_sed_cmds` |
| 1993 | fi |
| 1994 | done |
| 1995 | if test -z "$ac_sed_cmds"; then |
| 1996 | ac_sed_cmds=cat |
| 1997 | fi |
| 1998 | EOF |
| 1999 | |
| 2000 | cat >> $CONFIG_STATUS <<EOF |
| 2001 | |
| 2002 | CONFIG_FILES=\${CONFIG_FILES-"Makefile"} |
| 2003 | EOF |
| 2004 | cat >> $CONFIG_STATUS <<\EOF |
| 2005 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then |
| 2006 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
| 2007 | case "$ac_file" in |
| 2008 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` |
| 2009 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
| 2010 | *) ac_file_in="${ac_file}.in" ;; |
| 2011 | esac |
| 2012 | |
| 2013 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. |
| 2014 | |
| 2015 | # Remove last slash and all that follows it. Not all systems have dirname. |
| 2016 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` |
| 2017 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
| 2018 | # The file is in a subdirectory. |
| 2019 | test ! -d "$ac_dir" && mkdir "$ac_dir" |
| 2020 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" |
| 2021 | # A "../" for each directory in $ac_dir_suffix. |
| 2022 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` |
| 2023 | else |
| 2024 | ac_dir_suffix= ac_dots= |
| 2025 | fi |
| 2026 | |
| 2027 | case "$ac_given_srcdir" in |
| 2028 | .) srcdir=. |
| 2029 | if test -z "$ac_dots"; then top_srcdir=. |
| 2030 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; |
| 2031 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; |
| 2032 | *) # Relative path. |
| 2033 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" |
| 2034 | top_srcdir="$ac_dots$ac_given_srcdir" ;; |
| 2035 | esac |
| 2036 | |
| 2037 | |
| 2038 | echo creating "$ac_file" |
| 2039 | rm -f "$ac_file" |
| 2040 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." |
| 2041 | case "$ac_file" in |
| 2042 | *Makefile*) ac_comsub="1i\\ |
| 2043 | # $configure_input" ;; |
| 2044 | *) ac_comsub= ;; |
| 2045 | esac |
| 2046 | |
| 2047 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` |
| 2048 | sed -e "$ac_comsub |
| 2049 | s%@configure_input@%$configure_input%g |
| 2050 | s%@srcdir@%$srcdir%g |
| 2051 | s%@top_srcdir@%$top_srcdir%g |
| 2052 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file |
| 2053 | fi; done |
| 2054 | rm -f conftest.s* |
| 2055 | |
| 2056 | EOF |
| 2057 | cat >> $CONFIG_STATUS <<EOF |
| 2058 | |
| 2059 | EOF |
| 2060 | cat >> $CONFIG_STATUS <<\EOF |
| 2061 | |
| 2062 | exit 0 |
| 2063 | EOF |
| 2064 | chmod +x $CONFIG_STATUS |
| 2065 | rm -fr confdefs* $ac_clean_files |
| 2066 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 |
| 2067 | |