[17270] | 1 | #! /bin/sh |
---|
| 2 | |
---|
| 3 | # Guess values for system-dependent variables and create Makefiles. |
---|
| 4 | # Generated automatically using autoconf version 2.12 |
---|
| 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-regex=REGEX-LIB specify an alternative regex implementation" |
---|
| 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 | # Maximum number of lines to put in a shell here document. |
---|
| 55 | ac_max_here_lines=12 |
---|
| 56 | |
---|
| 57 | ac_prev= |
---|
| 58 | for ac_option |
---|
| 59 | do |
---|
| 60 | |
---|
| 61 | # If the previous option needs an argument, assign it. |
---|
| 62 | if test -n "$ac_prev"; then |
---|
| 63 | eval "$ac_prev=\$ac_option" |
---|
| 64 | ac_prev= |
---|
| 65 | continue |
---|
| 66 | fi |
---|
| 67 | |
---|
| 68 | case "$ac_option" in |
---|
| 69 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; |
---|
| 70 | *) ac_optarg= ;; |
---|
| 71 | esac |
---|
| 72 | |
---|
| 73 | # Accept the important Cygnus configure options, so we can diagnose typos. |
---|
| 74 | |
---|
| 75 | case "$ac_option" in |
---|
| 76 | |
---|
| 77 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
---|
| 78 | ac_prev=bindir ;; |
---|
| 79 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
---|
| 80 | bindir="$ac_optarg" ;; |
---|
| 81 | |
---|
| 82 | -build | --build | --buil | --bui | --bu) |
---|
| 83 | ac_prev=build ;; |
---|
| 84 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
---|
| 85 | build="$ac_optarg" ;; |
---|
| 86 | |
---|
| 87 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
---|
| 88 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
---|
| 89 | ac_prev=cache_file ;; |
---|
| 90 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
---|
| 91 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
---|
| 92 | cache_file="$ac_optarg" ;; |
---|
| 93 | |
---|
| 94 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
---|
| 95 | ac_prev=datadir ;; |
---|
| 96 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
---|
| 97 | | --da=*) |
---|
| 98 | datadir="$ac_optarg" ;; |
---|
| 99 | |
---|
| 100 | -disable-* | --disable-*) |
---|
| 101 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` |
---|
| 102 | # Reject names that are not valid shell variable names. |
---|
| 103 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then |
---|
| 104 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } |
---|
| 105 | fi |
---|
| 106 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` |
---|
| 107 | eval "enable_${ac_feature}=no" ;; |
---|
| 108 | |
---|
| 109 | -enable-* | --enable-*) |
---|
| 110 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` |
---|
| 111 | # Reject names that are not valid shell variable names. |
---|
| 112 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then |
---|
| 113 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } |
---|
| 114 | fi |
---|
| 115 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` |
---|
| 116 | case "$ac_option" in |
---|
| 117 | *=*) ;; |
---|
| 118 | *) ac_optarg=yes ;; |
---|
| 119 | esac |
---|
| 120 | eval "enable_${ac_feature}='$ac_optarg'" ;; |
---|
| 121 | |
---|
| 122 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
---|
| 123 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
---|
| 124 | | --exec | --exe | --ex) |
---|
| 125 | ac_prev=exec_prefix ;; |
---|
| 126 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
---|
| 127 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
---|
| 128 | | --exec=* | --exe=* | --ex=*) |
---|
| 129 | exec_prefix="$ac_optarg" ;; |
---|
| 130 | |
---|
| 131 | -gas | --gas | --ga | --g) |
---|
| 132 | # Obsolete; use --with-gas. |
---|
| 133 | with_gas=yes ;; |
---|
| 134 | |
---|
| 135 | -help | --help | --hel | --he) |
---|
| 136 | # Omit some internal or obsolete options to make the list less imposing. |
---|
| 137 | # This message is too long to be a string in the A/UX 3.1 sh. |
---|
| 138 | cat << EOF |
---|
| 139 | Usage: configure [options] [host] |
---|
| 140 | Options: [defaults in brackets after descriptions] |
---|
| 141 | Configuration: |
---|
| 142 | --cache-file=FILE cache test results in FILE |
---|
| 143 | --help print this message |
---|
| 144 | --no-create do not create output files |
---|
| 145 | --quiet, --silent do not print \`checking...' messages |
---|
| 146 | --version print the version of autoconf that created configure |
---|
| 147 | Directory and file names: |
---|
| 148 | --prefix=PREFIX install architecture-independent files in PREFIX |
---|
| 149 | [$ac_default_prefix] |
---|
| 150 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
---|
| 151 | [same as prefix] |
---|
| 152 | --bindir=DIR user executables in DIR [EPREFIX/bin] |
---|
| 153 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] |
---|
| 154 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec] |
---|
| 155 | --datadir=DIR read-only architecture-independent data in DIR |
---|
| 156 | [PREFIX/share] |
---|
| 157 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] |
---|
| 158 | --sharedstatedir=DIR modifiable architecture-independent data in DIR |
---|
| 159 | [PREFIX/com] |
---|
| 160 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] |
---|
| 161 | --libdir=DIR object code libraries in DIR [EPREFIX/lib] |
---|
| 162 | --includedir=DIR C header files in DIR [PREFIX/include] |
---|
| 163 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] |
---|
| 164 | --infodir=DIR info documentation in DIR [PREFIX/info] |
---|
| 165 | --mandir=DIR man documentation in DIR [PREFIX/man] |
---|
| 166 | --srcdir=DIR find the sources in DIR [configure dir or ..] |
---|
| 167 | --program-prefix=PREFIX prepend PREFIX to installed program names |
---|
| 168 | --program-suffix=SUFFIX append SUFFIX to installed program names |
---|
| 169 | --program-transform-name=PROGRAM |
---|
| 170 | run sed PROGRAM on installed program names |
---|
| 171 | EOF |
---|
| 172 | cat << EOF |
---|
| 173 | Host type: |
---|
| 174 | --build=BUILD configure for building on BUILD [BUILD=HOST] |
---|
| 175 | --host=HOST configure for HOST [guessed] |
---|
| 176 | --target=TARGET configure for TARGET [TARGET=HOST] |
---|
| 177 | Features and packages: |
---|
| 178 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
---|
| 179 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
---|
| 180 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
---|
| 181 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
---|
| 182 | --x-includes=DIR X include files are in DIR |
---|
| 183 | --x-libraries=DIR X library files are in DIR |
---|
| 184 | EOF |
---|
| 185 | if test -n "$ac_help"; then |
---|
| 186 | echo "--enable and --with options recognized:$ac_help" |
---|
| 187 | fi |
---|
| 188 | exit 0 ;; |
---|
| 189 | |
---|
| 190 | -host | --host | --hos | --ho) |
---|
| 191 | ac_prev=host ;; |
---|
| 192 | -host=* | --host=* | --hos=* | --ho=*) |
---|
| 193 | host="$ac_optarg" ;; |
---|
| 194 | |
---|
| 195 | -includedir | --includedir | --includedi | --included | --include \ |
---|
| 196 | | --includ | --inclu | --incl | --inc) |
---|
| 197 | ac_prev=includedir ;; |
---|
| 198 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
---|
| 199 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
---|
| 200 | includedir="$ac_optarg" ;; |
---|
| 201 | |
---|
| 202 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
---|
| 203 | ac_prev=infodir ;; |
---|
| 204 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
---|
| 205 | infodir="$ac_optarg" ;; |
---|
| 206 | |
---|
| 207 | -libdir | --libdir | --libdi | --libd) |
---|
| 208 | ac_prev=libdir ;; |
---|
| 209 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
---|
| 210 | libdir="$ac_optarg" ;; |
---|
| 211 | |
---|
| 212 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
---|
| 213 | | --libexe | --libex | --libe) |
---|
| 214 | ac_prev=libexecdir ;; |
---|
| 215 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
---|
| 216 | | --libexe=* | --libex=* | --libe=*) |
---|
| 217 | libexecdir="$ac_optarg" ;; |
---|
| 218 | |
---|
| 219 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
---|
| 220 | | --localstate | --localstat | --localsta | --localst \ |
---|
| 221 | | --locals | --local | --loca | --loc | --lo) |
---|
| 222 | ac_prev=localstatedir ;; |
---|
| 223 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
---|
| 224 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
---|
| 225 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
---|
| 226 | localstatedir="$ac_optarg" ;; |
---|
| 227 | |
---|
| 228 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
---|
| 229 | ac_prev=mandir ;; |
---|
| 230 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
---|
| 231 | mandir="$ac_optarg" ;; |
---|
| 232 | |
---|
| 233 | -nfp | --nfp | --nf) |
---|
| 234 | # Obsolete; use --without-fp. |
---|
| 235 | with_fp=no ;; |
---|
| 236 | |
---|
| 237 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
---|
| 238 | | --no-cr | --no-c) |
---|
| 239 | no_create=yes ;; |
---|
| 240 | |
---|
| 241 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
---|
| 242 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
---|
| 243 | no_recursion=yes ;; |
---|
| 244 | |
---|
| 245 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
---|
| 246 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
---|
| 247 | | --oldin | --oldi | --old | --ol | --o) |
---|
| 248 | ac_prev=oldincludedir ;; |
---|
| 249 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
---|
| 250 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
---|
| 251 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
---|
| 252 | oldincludedir="$ac_optarg" ;; |
---|
| 253 | |
---|
| 254 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
---|
| 255 | ac_prev=prefix ;; |
---|
| 256 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
---|
| 257 | prefix="$ac_optarg" ;; |
---|
| 258 | |
---|
| 259 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
---|
| 260 | | --program-pre | --program-pr | --program-p) |
---|
| 261 | ac_prev=program_prefix ;; |
---|
| 262 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
---|
| 263 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
---|
| 264 | program_prefix="$ac_optarg" ;; |
---|
| 265 | |
---|
| 266 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
---|
| 267 | | --program-suf | --program-su | --program-s) |
---|
| 268 | ac_prev=program_suffix ;; |
---|
| 269 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
---|
| 270 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
---|
| 271 | program_suffix="$ac_optarg" ;; |
---|
| 272 | |
---|
| 273 | -program-transform-name | --program-transform-name \ |
---|
| 274 | | --program-transform-nam | --program-transform-na \ |
---|
| 275 | | --program-transform-n | --program-transform- \ |
---|
| 276 | | --program-transform | --program-transfor \ |
---|
| 277 | | --program-transfo | --program-transf \ |
---|
| 278 | | --program-trans | --program-tran \ |
---|
| 279 | | --progr-tra | --program-tr | --program-t) |
---|
| 280 | ac_prev=program_transform_name ;; |
---|
| 281 | -program-transform-name=* | --program-transform-name=* \ |
---|
| 282 | | --program-transform-nam=* | --program-transform-na=* \ |
---|
| 283 | | --program-transform-n=* | --program-transform-=* \ |
---|
| 284 | | --program-transform=* | --program-transfor=* \ |
---|
| 285 | | --program-transfo=* | --program-transf=* \ |
---|
| 286 | | --program-trans=* | --program-tran=* \ |
---|
| 287 | | --progr-tra=* | --program-tr=* | --program-t=*) |
---|
| 288 | program_transform_name="$ac_optarg" ;; |
---|
| 289 | |
---|
| 290 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
| 291 | | -silent | --silent | --silen | --sile | --sil) |
---|
| 292 | silent=yes ;; |
---|
| 293 | |
---|
| 294 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
---|
| 295 | ac_prev=sbindir ;; |
---|
| 296 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
---|
| 297 | | --sbi=* | --sb=*) |
---|
| 298 | sbindir="$ac_optarg" ;; |
---|
| 299 | |
---|
| 300 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
---|
| 301 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
---|
| 302 | | --sharedst | --shareds | --shared | --share | --shar \ |
---|
| 303 | | --sha | --sh) |
---|
| 304 | ac_prev=sharedstatedir ;; |
---|
| 305 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
---|
| 306 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
---|
| 307 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
---|
| 308 | | --sha=* | --sh=*) |
---|
| 309 | sharedstatedir="$ac_optarg" ;; |
---|
| 310 | |
---|
| 311 | -site | --site | --sit) |
---|
| 312 | ac_prev=site ;; |
---|
| 313 | -site=* | --site=* | --sit=*) |
---|
| 314 | site="$ac_optarg" ;; |
---|
| 315 | |
---|
| 316 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
---|
| 317 | ac_prev=srcdir ;; |
---|
| 318 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
---|
| 319 | srcdir="$ac_optarg" ;; |
---|
| 320 | |
---|
| 321 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
---|
| 322 | | --syscon | --sysco | --sysc | --sys | --sy) |
---|
| 323 | ac_prev=sysconfdir ;; |
---|
| 324 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
---|
| 325 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
---|
| 326 | sysconfdir="$ac_optarg" ;; |
---|
| 327 | |
---|
| 328 | -target | --target | --targe | --targ | --tar | --ta | --t) |
---|
| 329 | ac_prev=target ;; |
---|
| 330 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
---|
| 331 | target="$ac_optarg" ;; |
---|
| 332 | |
---|
| 333 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
---|
| 334 | verbose=yes ;; |
---|
| 335 | |
---|
| 336 | -version | --version | --versio | --versi | --vers) |
---|
| 337 | echo "configure generated by autoconf version 2.12" |
---|
| 338 | exit 0 ;; |
---|
| 339 | |
---|
| 340 | -with-* | --with-*) |
---|
| 341 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` |
---|
| 342 | # Reject names that are not valid shell variable names. |
---|
| 343 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then |
---|
| 344 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } |
---|
| 345 | fi |
---|
| 346 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
---|
| 347 | case "$ac_option" in |
---|
| 348 | *=*) ;; |
---|
| 349 | *) ac_optarg=yes ;; |
---|
| 350 | esac |
---|
| 351 | eval "with_${ac_package}='$ac_optarg'" ;; |
---|
| 352 | |
---|
| 353 | -without-* | --without-*) |
---|
| 354 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` |
---|
| 355 | # Reject names that are not valid shell variable names. |
---|
| 356 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then |
---|
| 357 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } |
---|
| 358 | fi |
---|
| 359 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
---|
| 360 | eval "with_${ac_package}=no" ;; |
---|
| 361 | |
---|
| 362 | --x) |
---|
| 363 | # Obsolete; use --with-x. |
---|
| 364 | with_x=yes ;; |
---|
| 365 | |
---|
| 366 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
---|
| 367 | | --x-incl | --x-inc | --x-in | --x-i) |
---|
| 368 | ac_prev=x_includes ;; |
---|
| 369 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
---|
| 370 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
---|
| 371 | x_includes="$ac_optarg" ;; |
---|
| 372 | |
---|
| 373 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
---|
| 374 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
---|
| 375 | ac_prev=x_libraries ;; |
---|
| 376 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
---|
| 377 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
---|
| 378 | x_libraries="$ac_optarg" ;; |
---|
| 379 | |
---|
| 380 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } |
---|
| 381 | ;; |
---|
| 382 | |
---|
| 383 | *) |
---|
| 384 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then |
---|
| 385 | echo "configure: warning: $ac_option: invalid host type" 1>&2 |
---|
| 386 | fi |
---|
| 387 | if test "x$nonopt" != xNONE; then |
---|
| 388 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } |
---|
| 389 | fi |
---|
| 390 | nonopt="$ac_option" |
---|
| 391 | ;; |
---|
| 392 | |
---|
| 393 | esac |
---|
| 394 | done |
---|
| 395 | |
---|
| 396 | if test -n "$ac_prev"; then |
---|
| 397 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } |
---|
| 398 | fi |
---|
| 399 | |
---|
| 400 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
---|
| 401 | |
---|
| 402 | # File descriptor usage: |
---|
| 403 | # 0 standard input |
---|
| 404 | # 1 file creation |
---|
| 405 | # 2 errors and warnings |
---|
| 406 | # 3 some systems may open it to /dev/tty |
---|
| 407 | # 4 used on the Kubota Titan |
---|
| 408 | # 6 checking for... messages and results |
---|
| 409 | # 5 compiler messages saved in config.log |
---|
| 410 | if test "$silent" = yes; then |
---|
| 411 | exec 6>/dev/null |
---|
| 412 | else |
---|
| 413 | exec 6>&1 |
---|
| 414 | fi |
---|
| 415 | exec 5>./config.log |
---|
| 416 | |
---|
| 417 | echo "\ |
---|
| 418 | This file contains any messages produced by compilers while |
---|
| 419 | running configure, to aid debugging if configure makes a mistake. |
---|
| 420 | " 1>&5 |
---|
| 421 | |
---|
| 422 | # Strip out --no-create and --no-recursion so they do not pile up. |
---|
| 423 | # Also quote any args containing shell metacharacters. |
---|
| 424 | ac_configure_args= |
---|
| 425 | for ac_arg |
---|
| 426 | do |
---|
| 427 | case "$ac_arg" in |
---|
| 428 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
---|
| 429 | | --no-cr | --no-c) ;; |
---|
| 430 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
---|
| 431 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; |
---|
| 432 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) |
---|
| 433 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
---|
| 434 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; |
---|
| 435 | esac |
---|
| 436 | done |
---|
| 437 | |
---|
| 438 | # NLS nuisances. |
---|
| 439 | # Only set these to C if already set. These must not be set unconditionally |
---|
| 440 | # because not all systems understand e.g. LANG=C (notably SCO). |
---|
| 441 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! |
---|
| 442 | # Non-C LC_CTYPE values break the ctype check. |
---|
| 443 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi |
---|
| 444 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi |
---|
| 445 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi |
---|
| 446 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi |
---|
| 447 | |
---|
| 448 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
---|
| 449 | rm -rf conftest* confdefs.h |
---|
| 450 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
---|
| 451 | echo > confdefs.h |
---|
| 452 | |
---|
| 453 | # A filename unique to this package, relative to the directory that |
---|
| 454 | # configure is in, which we can look for to find out if srcdir is correct. |
---|
| 455 | ac_unique_file=sed/sed.c |
---|
| 456 | |
---|
| 457 | # Find the source files, if location was not specified. |
---|
| 458 | if test -z "$srcdir"; then |
---|
| 459 | ac_srcdir_defaulted=yes |
---|
| 460 | # Try the directory containing this script, then its parent. |
---|
| 461 | ac_prog=$0 |
---|
| 462 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` |
---|
| 463 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. |
---|
| 464 | srcdir=$ac_confdir |
---|
| 465 | if test ! -r $srcdir/$ac_unique_file; then |
---|
| 466 | srcdir=.. |
---|
| 467 | fi |
---|
| 468 | else |
---|
| 469 | ac_srcdir_defaulted=no |
---|
| 470 | fi |
---|
| 471 | if test ! -r $srcdir/$ac_unique_file; then |
---|
| 472 | if test "$ac_srcdir_defaulted" = yes; then |
---|
| 473 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } |
---|
| 474 | else |
---|
| 475 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } |
---|
| 476 | fi |
---|
| 477 | fi |
---|
| 478 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` |
---|
| 479 | |
---|
| 480 | # Prefer explicitly selected file to automatically selected ones. |
---|
| 481 | if test -z "$CONFIG_SITE"; then |
---|
| 482 | if test "x$prefix" != xNONE; then |
---|
| 483 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
---|
| 484 | else |
---|
| 485 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
---|
| 486 | fi |
---|
| 487 | fi |
---|
| 488 | for ac_site_file in $CONFIG_SITE; do |
---|
| 489 | if test -r "$ac_site_file"; then |
---|
| 490 | echo "loading site script $ac_site_file" |
---|
| 491 | . "$ac_site_file" |
---|
| 492 | fi |
---|
| 493 | done |
---|
| 494 | |
---|
| 495 | if test -r "$cache_file"; then |
---|
| 496 | echo "loading cache $cache_file" |
---|
| 497 | . $cache_file |
---|
| 498 | else |
---|
| 499 | echo "creating cache $cache_file" |
---|
| 500 | > $cache_file |
---|
| 501 | fi |
---|
| 502 | |
---|
| 503 | ac_ext=c |
---|
| 504 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
---|
| 505 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 506 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
---|
| 507 | ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
---|
| 508 | cross_compiling=$ac_cv_prog_cc_cross |
---|
| 509 | |
---|
| 510 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then |
---|
| 511 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. |
---|
| 512 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then |
---|
| 513 | ac_n= ac_c=' |
---|
| 514 | ' ac_t=' ' |
---|
| 515 | else |
---|
| 516 | ac_n=-n ac_c= ac_t= |
---|
| 517 | fi |
---|
| 518 | else |
---|
| 519 | ac_n= ac_c='\c' ac_t= |
---|
| 520 | fi |
---|
| 521 | |
---|
| 522 | |
---|
| 523 | |
---|
| 524 | |
---|
| 525 | |
---|
| 526 | ac_aux_dir= |
---|
| 527 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
---|
| 528 | if test -f $ac_dir/install-sh; then |
---|
| 529 | ac_aux_dir=$ac_dir |
---|
| 530 | ac_install_sh="$ac_aux_dir/install-sh -c" |
---|
| 531 | break |
---|
| 532 | elif test -f $ac_dir/install.sh; then |
---|
| 533 | ac_aux_dir=$ac_dir |
---|
| 534 | ac_install_sh="$ac_aux_dir/install.sh -c" |
---|
| 535 | break |
---|
| 536 | fi |
---|
| 537 | done |
---|
| 538 | if test -z "$ac_aux_dir"; then |
---|
| 539 | { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } |
---|
| 540 | fi |
---|
| 541 | ac_config_guess=$ac_aux_dir/config.guess |
---|
| 542 | ac_config_sub=$ac_aux_dir/config.sub |
---|
| 543 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. |
---|
| 544 | |
---|
| 545 | # Find a good install program. We prefer a C program (faster), |
---|
| 546 | # so one script is as good as another. But avoid the broken or |
---|
| 547 | # incompatible versions: |
---|
| 548 | # SysV /etc/install, /usr/sbin/install |
---|
| 549 | # SunOS /usr/etc/install |
---|
| 550 | # IRIX /sbin/install |
---|
| 551 | # AIX /bin/install |
---|
| 552 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
---|
| 553 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
---|
| 554 | # ./install, which can be erroneously created by make from ./install.sh. |
---|
| 555 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 |
---|
| 556 | echo "configure:557: checking for a BSD compatible install" >&5 |
---|
| 557 | if test -z "$INSTALL"; then |
---|
| 558 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then |
---|
| 559 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 560 | else |
---|
| 561 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:" |
---|
| 562 | for ac_dir in $PATH; do |
---|
| 563 | # Account for people who put trailing slashes in PATH elements. |
---|
| 564 | case "$ac_dir/" in |
---|
| 565 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; |
---|
| 566 | *) |
---|
| 567 | # OSF1 and SCO ODT 3.0 have their own names for install. |
---|
| 568 | for ac_prog in ginstall installbsd scoinst install; do |
---|
| 569 | if test -f $ac_dir/$ac_prog; then |
---|
| 570 | if test $ac_prog = install && |
---|
| 571 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then |
---|
| 572 | # AIX install. It has an incompatible calling convention. |
---|
| 573 | # OSF/1 installbsd also uses dspmsg, but is usable. |
---|
| 574 | : |
---|
| 575 | else |
---|
| 576 | ac_cv_path_install="$ac_dir/$ac_prog -c" |
---|
| 577 | break 2 |
---|
| 578 | fi |
---|
| 579 | fi |
---|
| 580 | done |
---|
| 581 | ;; |
---|
| 582 | esac |
---|
| 583 | done |
---|
| 584 | IFS="$ac_save_IFS" |
---|
| 585 | |
---|
| 586 | fi |
---|
| 587 | if test "${ac_cv_path_install+set}" = set; then |
---|
| 588 | INSTALL="$ac_cv_path_install" |
---|
| 589 | else |
---|
| 590 | # As a last resort, use the slow shell script. We don't cache a |
---|
| 591 | # path for INSTALL within a source directory, because that will |
---|
| 592 | # break other packages using the cache if that directory is |
---|
| 593 | # removed, or if the path is relative. |
---|
| 594 | INSTALL="$ac_install_sh" |
---|
| 595 | fi |
---|
| 596 | fi |
---|
| 597 | echo "$ac_t""$INSTALL" 1>&6 |
---|
| 598 | |
---|
| 599 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
---|
| 600 | # It thinks the first close brace ends the variable substitution. |
---|
| 601 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
---|
| 602 | |
---|
| 603 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
---|
| 604 | |
---|
| 605 | |
---|
| 606 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' |
---|
| 607 | |
---|
| 608 | echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6 |
---|
| 609 | echo "configure:610: checking whether build environment is sane" >&5 |
---|
| 610 | # Just in case |
---|
| 611 | sleep 1 |
---|
| 612 | echo timestamp > conftestfile |
---|
| 613 | # Do `set' in a subshell so we don't clobber the current shell's |
---|
| 614 | # arguments. Must try -L first in case configure is actually a |
---|
| 615 | # symlink; some systems play weird games with the mod time of symlinks |
---|
| 616 | # (eg FreeBSD returns the mod time of the symlink's containing |
---|
| 617 | # directory). |
---|
| 618 | if ( |
---|
| 619 | set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null` |
---|
| 620 | if test "$*" = "X"; then |
---|
| 621 | # -L didn't work. |
---|
| 622 | set X `ls -t $srcdir/configure conftestfile` |
---|
| 623 | fi |
---|
| 624 | if test "$*" != "X $srcdir/configure conftestfile" \ |
---|
| 625 | && test "$*" != "X conftestfile $srcdir/configure"; then |
---|
| 626 | |
---|
| 627 | # If neither matched, then we have a broken ls. This can happen |
---|
| 628 | # if, for instance, CONFIG_SHELL is bash and it inherits a |
---|
| 629 | # broken ls alias from the environment. This has actually |
---|
| 630 | # happened. Such a system could not be considered "sane". |
---|
| 631 | { echo "configure: error: ls -t appears to fail. Make sure there is not a broken |
---|
| 632 | alias in your environment" 1>&2; exit 1; } |
---|
| 633 | fi |
---|
| 634 | |
---|
| 635 | test "$2" = conftestfile |
---|
| 636 | ) |
---|
| 637 | then |
---|
| 638 | # Ok. |
---|
| 639 | : |
---|
| 640 | else |
---|
| 641 | { echo "configure: error: newly created file is older than distributed files! |
---|
| 642 | Check your system clock" 1>&2; exit 1; } |
---|
| 643 | fi |
---|
| 644 | rm -f conftest* |
---|
| 645 | echo "$ac_t""yes" 1>&6 |
---|
| 646 | if test "$program_transform_name" = s,x,x,; then |
---|
| 647 | program_transform_name= |
---|
| 648 | else |
---|
| 649 | # Double any \ or $. echo might interpret backslashes. |
---|
| 650 | cat <<\EOF_SED > conftestsed |
---|
| 651 | s,\\,\\\\,g; s,\$,$$,g |
---|
| 652 | EOF_SED |
---|
| 653 | program_transform_name="`echo $program_transform_name|sed -f conftestsed`" |
---|
| 654 | rm -f conftestsed |
---|
| 655 | fi |
---|
| 656 | test "$program_prefix" != NONE && |
---|
| 657 | program_transform_name="s,^,${program_prefix},; $program_transform_name" |
---|
| 658 | # Use a double $ so make ignores it. |
---|
| 659 | test "$program_suffix" != NONE && |
---|
| 660 | program_transform_name="s,\$\$,${program_suffix},; $program_transform_name" |
---|
| 661 | |
---|
| 662 | # sed with no file args requires a program. |
---|
| 663 | test "$program_transform_name" = "" && program_transform_name="s,x,x," |
---|
| 664 | |
---|
| 665 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 |
---|
| 666 | echo "configure:667: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
---|
| 667 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` |
---|
| 668 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then |
---|
| 669 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 670 | else |
---|
| 671 | cat > conftestmake <<\EOF |
---|
| 672 | all: |
---|
| 673 | @echo 'ac_maketemp="${MAKE}"' |
---|
| 674 | EOF |
---|
| 675 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
---|
| 676 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` |
---|
| 677 | if test -n "$ac_maketemp"; then |
---|
| 678 | eval ac_cv_prog_make_${ac_make}_set=yes |
---|
| 679 | else |
---|
| 680 | eval ac_cv_prog_make_${ac_make}_set=no |
---|
| 681 | fi |
---|
| 682 | rm -f conftestmake |
---|
| 683 | fi |
---|
| 684 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
---|
| 685 | echo "$ac_t""yes" 1>&6 |
---|
| 686 | SET_MAKE= |
---|
| 687 | else |
---|
| 688 | echo "$ac_t""no" 1>&6 |
---|
| 689 | SET_MAKE="MAKE=${MAKE-make}" |
---|
| 690 | fi |
---|
| 691 | |
---|
| 692 | |
---|
| 693 | PACKAGE=sed |
---|
| 694 | |
---|
| 695 | VERSION=3.02 |
---|
| 696 | |
---|
| 697 | if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then |
---|
| 698 | { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; } |
---|
| 699 | fi |
---|
| 700 | cat >> confdefs.h <<EOF |
---|
| 701 | #define PACKAGE "$PACKAGE" |
---|
| 702 | EOF |
---|
| 703 | |
---|
| 704 | cat >> confdefs.h <<EOF |
---|
| 705 | #define VERSION "$VERSION" |
---|
| 706 | EOF |
---|
| 707 | |
---|
| 708 | |
---|
| 709 | |
---|
| 710 | missing_dir=`cd $ac_aux_dir && pwd` |
---|
| 711 | echo $ac_n "checking for working aclocal""... $ac_c" 1>&6 |
---|
| 712 | echo "configure:713: checking for working aclocal" >&5 |
---|
| 713 | # Run test in a subshell; some versions of sh will print an error if |
---|
| 714 | # an executable is not found, even if stderr is redirected. |
---|
| 715 | # Redirect stdin to placate older versions of autoconf. Sigh. |
---|
| 716 | if (aclocal --version) < /dev/null > /dev/null 2>&1; then |
---|
| 717 | ACLOCAL=aclocal |
---|
| 718 | echo "$ac_t""found" 1>&6 |
---|
| 719 | else |
---|
| 720 | ACLOCAL="$missing_dir/missing aclocal" |
---|
| 721 | echo "$ac_t""missing" 1>&6 |
---|
| 722 | fi |
---|
| 723 | |
---|
| 724 | echo $ac_n "checking for working autoconf""... $ac_c" 1>&6 |
---|
| 725 | echo "configure:726: checking for working autoconf" >&5 |
---|
| 726 | # Run test in a subshell; some versions of sh will print an error if |
---|
| 727 | # an executable is not found, even if stderr is redirected. |
---|
| 728 | # Redirect stdin to placate older versions of autoconf. Sigh. |
---|
| 729 | if (autoconf --version) < /dev/null > /dev/null 2>&1; then |
---|
| 730 | AUTOCONF=autoconf |
---|
| 731 | echo "$ac_t""found" 1>&6 |
---|
| 732 | else |
---|
| 733 | AUTOCONF="$missing_dir/missing autoconf" |
---|
| 734 | echo "$ac_t""missing" 1>&6 |
---|
| 735 | fi |
---|
| 736 | |
---|
| 737 | echo $ac_n "checking for working automake""... $ac_c" 1>&6 |
---|
| 738 | echo "configure:739: checking for working automake" >&5 |
---|
| 739 | # Run test in a subshell; some versions of sh will print an error if |
---|
| 740 | # an executable is not found, even if stderr is redirected. |
---|
| 741 | # Redirect stdin to placate older versions of autoconf. Sigh. |
---|
| 742 | if (automake --version) < /dev/null > /dev/null 2>&1; then |
---|
| 743 | AUTOMAKE=automake |
---|
| 744 | echo "$ac_t""found" 1>&6 |
---|
| 745 | else |
---|
| 746 | AUTOMAKE="$missing_dir/missing automake" |
---|
| 747 | echo "$ac_t""missing" 1>&6 |
---|
| 748 | fi |
---|
| 749 | |
---|
| 750 | echo $ac_n "checking for working autoheader""... $ac_c" 1>&6 |
---|
| 751 | echo "configure:752: checking for working autoheader" >&5 |
---|
| 752 | # Run test in a subshell; some versions of sh will print an error if |
---|
| 753 | # an executable is not found, even if stderr is redirected. |
---|
| 754 | # Redirect stdin to placate older versions of autoconf. Sigh. |
---|
| 755 | if (autoheader --version) < /dev/null > /dev/null 2>&1; then |
---|
| 756 | AUTOHEADER=autoheader |
---|
| 757 | echo "$ac_t""found" 1>&6 |
---|
| 758 | else |
---|
| 759 | AUTOHEADER="$missing_dir/missing autoheader" |
---|
| 760 | echo "$ac_t""missing" 1>&6 |
---|
| 761 | fi |
---|
| 762 | |
---|
| 763 | echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6 |
---|
| 764 | echo "configure:765: checking for working makeinfo" >&5 |
---|
| 765 | # Run test in a subshell; some versions of sh will print an error if |
---|
| 766 | # an executable is not found, even if stderr is redirected. |
---|
| 767 | # Redirect stdin to placate older versions of autoconf. Sigh. |
---|
| 768 | if (makeinfo --version) < /dev/null > /dev/null 2>&1; then |
---|
| 769 | MAKEINFO=makeinfo |
---|
| 770 | echo "$ac_t""found" 1>&6 |
---|
| 771 | else |
---|
| 772 | MAKEINFO="$missing_dir/missing makeinfo" |
---|
| 773 | echo "$ac_t""missing" 1>&6 |
---|
| 774 | fi |
---|
| 775 | |
---|
| 776 | |
---|
| 777 | # Extract the first word of "gcc", so it can be a program name with args. |
---|
| 778 | set dummy gcc; ac_word=$2 |
---|
| 779 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
| 780 | echo "configure:781: checking for $ac_word" >&5 |
---|
| 781 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
---|
| 782 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 783 | else |
---|
| 784 | if test -n "$CC"; then |
---|
| 785 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
| 786 | else |
---|
| 787 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
---|
| 788 | for ac_dir in $PATH; do |
---|
| 789 | test -z "$ac_dir" && ac_dir=. |
---|
| 790 | if test -f $ac_dir/$ac_word; then |
---|
| 791 | ac_cv_prog_CC="gcc" |
---|
| 792 | break |
---|
| 793 | fi |
---|
| 794 | done |
---|
| 795 | IFS="$ac_save_ifs" |
---|
| 796 | fi |
---|
| 797 | fi |
---|
| 798 | CC="$ac_cv_prog_CC" |
---|
| 799 | if test -n "$CC"; then |
---|
| 800 | echo "$ac_t""$CC" 1>&6 |
---|
| 801 | else |
---|
| 802 | echo "$ac_t""no" 1>&6 |
---|
| 803 | fi |
---|
| 804 | |
---|
| 805 | if test -z "$CC"; then |
---|
| 806 | # Extract the first word of "cc", so it can be a program name with args. |
---|
| 807 | set dummy cc; ac_word=$2 |
---|
| 808 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
| 809 | echo "configure:810: checking for $ac_word" >&5 |
---|
| 810 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
---|
| 811 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 812 | else |
---|
| 813 | if test -n "$CC"; then |
---|
| 814 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
| 815 | else |
---|
| 816 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
---|
| 817 | ac_prog_rejected=no |
---|
| 818 | for ac_dir in $PATH; do |
---|
| 819 | test -z "$ac_dir" && ac_dir=. |
---|
| 820 | if test -f $ac_dir/$ac_word; then |
---|
| 821 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then |
---|
| 822 | ac_prog_rejected=yes |
---|
| 823 | continue |
---|
| 824 | fi |
---|
| 825 | ac_cv_prog_CC="cc" |
---|
| 826 | break |
---|
| 827 | fi |
---|
| 828 | done |
---|
| 829 | IFS="$ac_save_ifs" |
---|
| 830 | if test $ac_prog_rejected = yes; then |
---|
| 831 | # We found a bogon in the path, so make sure we never use it. |
---|
| 832 | set dummy $ac_cv_prog_CC |
---|
| 833 | shift |
---|
| 834 | if test $# -gt 0; then |
---|
| 835 | # We chose a different compiler from the bogus one. |
---|
| 836 | # However, it has the same basename, so the bogon will be chosen |
---|
| 837 | # first if we set CC to just the basename; use the full file name. |
---|
| 838 | shift |
---|
| 839 | set dummy "$ac_dir/$ac_word" "$@" |
---|
| 840 | shift |
---|
| 841 | ac_cv_prog_CC="$@" |
---|
| 842 | fi |
---|
| 843 | fi |
---|
| 844 | fi |
---|
| 845 | fi |
---|
| 846 | CC="$ac_cv_prog_CC" |
---|
| 847 | if test -n "$CC"; then |
---|
| 848 | echo "$ac_t""$CC" 1>&6 |
---|
| 849 | else |
---|
| 850 | echo "$ac_t""no" 1>&6 |
---|
| 851 | fi |
---|
| 852 | |
---|
| 853 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } |
---|
| 854 | fi |
---|
| 855 | |
---|
| 856 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
---|
| 857 | echo "configure:858: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
---|
| 858 | |
---|
| 859 | ac_ext=c |
---|
| 860 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
---|
| 861 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 862 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
---|
| 863 | ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
---|
| 864 | cross_compiling=$ac_cv_prog_cc_cross |
---|
| 865 | |
---|
| 866 | cat > conftest.$ac_ext <<EOF |
---|
| 867 | #line 868 "configure" |
---|
| 868 | #include "confdefs.h" |
---|
| 869 | main(){return(0);} |
---|
| 870 | EOF |
---|
| 871 | if { (eval echo configure:872: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
---|
| 872 | ac_cv_prog_cc_works=yes |
---|
| 873 | # If we can't run a trivial program, we are probably using a cross compiler. |
---|
| 874 | if (./conftest; exit) 2>/dev/null; then |
---|
| 875 | ac_cv_prog_cc_cross=no |
---|
| 876 | else |
---|
| 877 | ac_cv_prog_cc_cross=yes |
---|
| 878 | fi |
---|
| 879 | else |
---|
| 880 | echo "configure: failed program was:" >&5 |
---|
| 881 | cat conftest.$ac_ext >&5 |
---|
| 882 | ac_cv_prog_cc_works=no |
---|
| 883 | fi |
---|
| 884 | rm -fr conftest* |
---|
| 885 | |
---|
| 886 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 |
---|
| 887 | if test $ac_cv_prog_cc_works = no; then |
---|
| 888 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } |
---|
| 889 | fi |
---|
| 890 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 |
---|
| 891 | echo "configure:892: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
---|
| 892 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
---|
| 893 | cross_compiling=$ac_cv_prog_cc_cross |
---|
| 894 | |
---|
| 895 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 |
---|
| 896 | echo "configure:897: checking whether we are using GNU C" >&5 |
---|
| 897 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
---|
| 898 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 899 | else |
---|
| 900 | cat > conftest.c <<EOF |
---|
| 901 | #ifdef __GNUC__ |
---|
| 902 | yes; |
---|
| 903 | #endif |
---|
| 904 | EOF |
---|
| 905 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:906: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
---|
| 906 | ac_cv_prog_gcc=yes |
---|
| 907 | else |
---|
| 908 | ac_cv_prog_gcc=no |
---|
| 909 | fi |
---|
| 910 | fi |
---|
| 911 | |
---|
| 912 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 |
---|
| 913 | |
---|
| 914 | if test $ac_cv_prog_gcc = yes; then |
---|
| 915 | GCC=yes |
---|
| 916 | ac_test_CFLAGS="${CFLAGS+set}" |
---|
| 917 | ac_save_CFLAGS="$CFLAGS" |
---|
| 918 | CFLAGS= |
---|
| 919 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 |
---|
| 920 | echo "configure:921: checking whether ${CC-cc} accepts -g" >&5 |
---|
| 921 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
---|
| 922 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 923 | else |
---|
| 924 | echo 'void f(){}' > conftest.c |
---|
| 925 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then |
---|
| 926 | ac_cv_prog_cc_g=yes |
---|
| 927 | else |
---|
| 928 | ac_cv_prog_cc_g=no |
---|
| 929 | fi |
---|
| 930 | rm -f conftest* |
---|
| 931 | |
---|
| 932 | fi |
---|
| 933 | |
---|
| 934 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 |
---|
| 935 | if test "$ac_test_CFLAGS" = set; then |
---|
| 936 | CFLAGS="$ac_save_CFLAGS" |
---|
| 937 | elif test $ac_cv_prog_cc_g = yes; then |
---|
| 938 | CFLAGS="-g -O2" |
---|
| 939 | else |
---|
| 940 | CFLAGS="-O2" |
---|
| 941 | fi |
---|
| 942 | else |
---|
| 943 | GCC= |
---|
| 944 | test "${CFLAGS+set}" = set || CFLAGS="-g" |
---|
| 945 | fi |
---|
| 946 | |
---|
| 947 | # Extract the first word of "ranlib", so it can be a program name with args. |
---|
| 948 | set dummy ranlib; ac_word=$2 |
---|
| 949 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
| 950 | echo "configure:951: checking for $ac_word" >&5 |
---|
| 951 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
---|
| 952 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 953 | else |
---|
| 954 | if test -n "$RANLIB"; then |
---|
| 955 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
---|
| 956 | else |
---|
| 957 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
---|
| 958 | for ac_dir in $PATH; do |
---|
| 959 | test -z "$ac_dir" && ac_dir=. |
---|
| 960 | if test -f $ac_dir/$ac_word; then |
---|
| 961 | ac_cv_prog_RANLIB="ranlib" |
---|
| 962 | break |
---|
| 963 | fi |
---|
| 964 | done |
---|
| 965 | IFS="$ac_save_ifs" |
---|
| 966 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" |
---|
| 967 | fi |
---|
| 968 | fi |
---|
| 969 | RANLIB="$ac_cv_prog_RANLIB" |
---|
| 970 | if test -n "$RANLIB"; then |
---|
| 971 | echo "$ac_t""$RANLIB" 1>&6 |
---|
| 972 | else |
---|
| 973 | echo "$ac_t""no" 1>&6 |
---|
| 974 | fi |
---|
| 975 | |
---|
| 976 | |
---|
| 977 | # If available, prefer support for large files unless the user specified |
---|
| 978 | # one of the CPPFLAGS, LDFLAGS, or LIBS variables. |
---|
| 979 | echo $ac_n "checking whether large file support needs explicit enabling""... $ac_c" 1>&6 |
---|
| 980 | echo "configure:981: checking whether large file support needs explicit enabling" >&5 |
---|
| 981 | ac_getconfs='' |
---|
| 982 | ac_result=yes |
---|
| 983 | ac_set='' |
---|
| 984 | ac_shellvars='CPPFLAGS LDFLAGS LIBS' |
---|
| 985 | for ac_shellvar in $ac_shellvars; do |
---|
| 986 | case $ac_shellvar in |
---|
| 987 | CPPFLAGS) ac_lfsvar=LFS_CFLAGS ;; |
---|
| 988 | *) ac_lfsvar=LFS_$ac_shellvar ;; |
---|
| 989 | esac |
---|
| 990 | eval test '"${'$ac_shellvar'+set}"' = set && ac_set=$ac_shellvar |
---|
| 991 | (getconf $ac_lfsvar) >/dev/null 2>&1 || { ac_result=no; break; } |
---|
| 992 | ac_getconf=`getconf $ac_lfsvar` |
---|
| 993 | ac_getconfs=$ac_getconfs$ac_getconf |
---|
| 994 | eval ac_test_$ac_shellvar=\$ac_getconf |
---|
| 995 | done |
---|
| 996 | case "$ac_result$ac_getconfs" in |
---|
| 997 | yes) ac_result=no ;; |
---|
| 998 | esac |
---|
| 999 | case "$ac_result$ac_set" in |
---|
| 1000 | yes?*) ac_result="yes, but $ac_set is already set, so use its settings" |
---|
| 1001 | esac |
---|
| 1002 | echo "$ac_t""$ac_result" 1>&6 |
---|
| 1003 | case $ac_result in |
---|
| 1004 | yes) |
---|
| 1005 | for ac_shellvar in $ac_shellvars; do |
---|
| 1006 | eval $ac_shellvar=\$ac_test_$ac_shellvar |
---|
| 1007 | done ;; |
---|
| 1008 | esac |
---|
| 1009 | |
---|
| 1010 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 |
---|
| 1011 | echo "configure:1012: checking how to run the C preprocessor" >&5 |
---|
| 1012 | # On Suns, sometimes $CPP names a directory. |
---|
| 1013 | if test -n "$CPP" && test -d "$CPP"; then |
---|
| 1014 | CPP= |
---|
| 1015 | fi |
---|
| 1016 | if test -z "$CPP"; then |
---|
| 1017 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then |
---|
| 1018 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 1019 | else |
---|
| 1020 | # This must be in double quotes, not single quotes, because CPP may get |
---|
| 1021 | # substituted into the Makefile and "${CC-cc}" will confuse make. |
---|
| 1022 | CPP="${CC-cc} -E" |
---|
| 1023 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
| 1024 | # not just through cpp. |
---|
| 1025 | cat > conftest.$ac_ext <<EOF |
---|
| 1026 | #line 1027 "configure" |
---|
| 1027 | #include "confdefs.h" |
---|
| 1028 | #include <assert.h> |
---|
| 1029 | Syntax Error |
---|
| 1030 | EOF |
---|
| 1031 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
---|
| 1032 | { (eval echo configure:1033: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
---|
| 1033 | ac_err=`grep -v '^ *+' conftest.out` |
---|
| 1034 | if test -z "$ac_err"; then |
---|
| 1035 | : |
---|
| 1036 | else |
---|
| 1037 | echo "$ac_err" >&5 |
---|
| 1038 | echo "configure: failed program was:" >&5 |
---|
| 1039 | cat conftest.$ac_ext >&5 |
---|
| 1040 | rm -rf conftest* |
---|
| 1041 | CPP="${CC-cc} -E -traditional-cpp" |
---|
| 1042 | cat > conftest.$ac_ext <<EOF |
---|
| 1043 | #line 1044 "configure" |
---|
| 1044 | #include "confdefs.h" |
---|
| 1045 | #include <assert.h> |
---|
| 1046 | Syntax Error |
---|
| 1047 | EOF |
---|
| 1048 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
---|
| 1049 | { (eval echo configure:1050: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
---|
| 1050 | ac_err=`grep -v '^ *+' conftest.out` |
---|
| 1051 | if test -z "$ac_err"; then |
---|
| 1052 | : |
---|
| 1053 | else |
---|
| 1054 | echo "$ac_err" >&5 |
---|
| 1055 | echo "configure: failed program was:" >&5 |
---|
| 1056 | cat conftest.$ac_ext >&5 |
---|
| 1057 | rm -rf conftest* |
---|
| 1058 | CPP=/lib/cpp |
---|
| 1059 | fi |
---|
| 1060 | rm -f conftest* |
---|
| 1061 | fi |
---|
| 1062 | rm -f conftest* |
---|
| 1063 | ac_cv_prog_CPP="$CPP" |
---|
| 1064 | fi |
---|
| 1065 | CPP="$ac_cv_prog_CPP" |
---|
| 1066 | else |
---|
| 1067 | ac_cv_prog_CPP="$CPP" |
---|
| 1068 | fi |
---|
| 1069 | echo "$ac_t""$CPP" 1>&6 |
---|
| 1070 | |
---|
| 1071 | ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'` |
---|
| 1072 | echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6 |
---|
| 1073 | echo "configure:1074: checking for minix/config.h" >&5 |
---|
| 1074 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
---|
| 1075 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 1076 | else |
---|
| 1077 | cat > conftest.$ac_ext <<EOF |
---|
| 1078 | #line 1079 "configure" |
---|
| 1079 | #include "confdefs.h" |
---|
| 1080 | #include <minix/config.h> |
---|
| 1081 | EOF |
---|
| 1082 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
---|
| 1083 | { (eval echo configure:1084: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
---|
| 1084 | ac_err=`grep -v '^ *+' conftest.out` |
---|
| 1085 | if test -z "$ac_err"; then |
---|
| 1086 | rm -rf conftest* |
---|
| 1087 | eval "ac_cv_header_$ac_safe=yes" |
---|
| 1088 | else |
---|
| 1089 | echo "$ac_err" >&5 |
---|
| 1090 | echo "configure: failed program was:" >&5 |
---|
| 1091 | cat conftest.$ac_ext >&5 |
---|
| 1092 | rm -rf conftest* |
---|
| 1093 | eval "ac_cv_header_$ac_safe=no" |
---|
| 1094 | fi |
---|
| 1095 | rm -f conftest* |
---|
| 1096 | fi |
---|
| 1097 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
---|
| 1098 | echo "$ac_t""yes" 1>&6 |
---|
| 1099 | MINIX=yes |
---|
| 1100 | else |
---|
| 1101 | echo "$ac_t""no" 1>&6 |
---|
| 1102 | MINIX= |
---|
| 1103 | fi |
---|
| 1104 | |
---|
| 1105 | if test "$MINIX" = yes; then |
---|
| 1106 | cat >> confdefs.h <<\EOF |
---|
| 1107 | #define _POSIX_SOURCE 1 |
---|
| 1108 | EOF |
---|
| 1109 | |
---|
| 1110 | cat >> confdefs.h <<\EOF |
---|
| 1111 | #define _POSIX_1_SOURCE 2 |
---|
| 1112 | EOF |
---|
| 1113 | |
---|
| 1114 | cat >> confdefs.h <<\EOF |
---|
| 1115 | #define _MINIX 1 |
---|
| 1116 | EOF |
---|
| 1117 | |
---|
| 1118 | fi |
---|
| 1119 | |
---|
| 1120 | echo $ac_n "checking for AIX""... $ac_c" 1>&6 |
---|
| 1121 | echo "configure:1122: checking for AIX" >&5 |
---|
| 1122 | cat > conftest.$ac_ext <<EOF |
---|
| 1123 | #line 1124 "configure" |
---|
| 1124 | #include "confdefs.h" |
---|
| 1125 | #ifdef _AIX |
---|
| 1126 | yes |
---|
| 1127 | #endif |
---|
| 1128 | |
---|
| 1129 | EOF |
---|
| 1130 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
| 1131 | egrep "yes" >/dev/null 2>&1; then |
---|
| 1132 | rm -rf conftest* |
---|
| 1133 | echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF |
---|
| 1134 | #define _ALL_SOURCE 1 |
---|
| 1135 | EOF |
---|
| 1136 | |
---|
| 1137 | else |
---|
| 1138 | rm -rf conftest* |
---|
| 1139 | echo "$ac_t""no" 1>&6 |
---|
| 1140 | fi |
---|
| 1141 | rm -f conftest* |
---|
| 1142 | |
---|
| 1143 | |
---|
| 1144 | echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6 |
---|
| 1145 | echo "configure:1146: checking for strerror in -lcposix" >&5 |
---|
| 1146 | ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'` |
---|
| 1147 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
| 1148 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 1149 | else |
---|
| 1150 | ac_save_LIBS="$LIBS" |
---|
| 1151 | LIBS="-lcposix $LIBS" |
---|
| 1152 | cat > conftest.$ac_ext <<EOF |
---|
| 1153 | #line 1154 "configure" |
---|
| 1154 | #include "confdefs.h" |
---|
| 1155 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
| 1156 | /* We use char because int might match the return type of a gcc2 |
---|
| 1157 | builtin and then its argument prototype would still apply. */ |
---|
| 1158 | char strerror(); |
---|
| 1159 | |
---|
| 1160 | int main() { |
---|
| 1161 | strerror() |
---|
| 1162 | ; return 0; } |
---|
| 1163 | EOF |
---|
| 1164 | if { (eval echo configure:1165: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
---|
| 1165 | rm -rf conftest* |
---|
| 1166 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
| 1167 | else |
---|
| 1168 | echo "configure: failed program was:" >&5 |
---|
| 1169 | cat conftest.$ac_ext >&5 |
---|
| 1170 | rm -rf conftest* |
---|
| 1171 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
| 1172 | fi |
---|
| 1173 | rm -f conftest* |
---|
| 1174 | LIBS="$ac_save_LIBS" |
---|
| 1175 | |
---|
| 1176 | fi |
---|
| 1177 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
| 1178 | echo "$ac_t""yes" 1>&6 |
---|
| 1179 | ac_tr_lib=HAVE_LIB`echo cposix | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
---|
| 1180 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
---|
| 1181 | cat >> confdefs.h <<EOF |
---|
| 1182 | #define $ac_tr_lib 1 |
---|
| 1183 | EOF |
---|
| 1184 | |
---|
| 1185 | LIBS="-lcposix $LIBS" |
---|
| 1186 | |
---|
| 1187 | else |
---|
| 1188 | echo "$ac_t""no" 1>&6 |
---|
| 1189 | fi |
---|
| 1190 | |
---|
| 1191 | |
---|
| 1192 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 |
---|
| 1193 | echo "configure:1194: checking for ANSI C header files" >&5 |
---|
| 1194 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then |
---|
| 1195 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 1196 | else |
---|
| 1197 | cat > conftest.$ac_ext <<EOF |
---|
| 1198 | #line 1199 "configure" |
---|
| 1199 | #include "confdefs.h" |
---|
| 1200 | #include <stdlib.h> |
---|
| 1201 | #include <stdarg.h> |
---|
| 1202 | #include <string.h> |
---|
| 1203 | #include <float.h> |
---|
| 1204 | EOF |
---|
| 1205 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
---|
| 1206 | { (eval echo configure:1207: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
---|
| 1207 | ac_err=`grep -v '^ *+' conftest.out` |
---|
| 1208 | if test -z "$ac_err"; then |
---|
| 1209 | rm -rf conftest* |
---|
| 1210 | ac_cv_header_stdc=yes |
---|
| 1211 | else |
---|
| 1212 | echo "$ac_err" >&5 |
---|
| 1213 | echo "configure: failed program was:" >&5 |
---|
| 1214 | cat conftest.$ac_ext >&5 |
---|
| 1215 | rm -rf conftest* |
---|
| 1216 | ac_cv_header_stdc=no |
---|
| 1217 | fi |
---|
| 1218 | rm -f conftest* |
---|
| 1219 | |
---|
| 1220 | if test $ac_cv_header_stdc = yes; then |
---|
| 1221 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
---|
| 1222 | cat > conftest.$ac_ext <<EOF |
---|
| 1223 | #line 1224 "configure" |
---|
| 1224 | #include "confdefs.h" |
---|
| 1225 | #include <string.h> |
---|
| 1226 | EOF |
---|
| 1227 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
| 1228 | egrep "memchr" >/dev/null 2>&1; then |
---|
| 1229 | : |
---|
| 1230 | else |
---|
| 1231 | rm -rf conftest* |
---|
| 1232 | ac_cv_header_stdc=no |
---|
| 1233 | fi |
---|
| 1234 | rm -f conftest* |
---|
| 1235 | |
---|
| 1236 | fi |
---|
| 1237 | |
---|
| 1238 | if test $ac_cv_header_stdc = yes; then |
---|
| 1239 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
---|
| 1240 | cat > conftest.$ac_ext <<EOF |
---|
| 1241 | #line 1242 "configure" |
---|
| 1242 | #include "confdefs.h" |
---|
| 1243 | #include <stdlib.h> |
---|
| 1244 | EOF |
---|
| 1245 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
| 1246 | egrep "free" >/dev/null 2>&1; then |
---|
| 1247 | : |
---|
| 1248 | else |
---|
| 1249 | rm -rf conftest* |
---|
| 1250 | ac_cv_header_stdc=no |
---|
| 1251 | fi |
---|
| 1252 | rm -f conftest* |
---|
| 1253 | |
---|
| 1254 | fi |
---|
| 1255 | |
---|
| 1256 | if test $ac_cv_header_stdc = yes; then |
---|
| 1257 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
---|
| 1258 | if test "$cross_compiling" = yes; then |
---|
| 1259 | : |
---|
| 1260 | else |
---|
| 1261 | cat > conftest.$ac_ext <<EOF |
---|
| 1262 | #line 1263 "configure" |
---|
| 1263 | #include "confdefs.h" |
---|
| 1264 | #include <ctype.h> |
---|
| 1265 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
---|
| 1266 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
---|
| 1267 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
---|
| 1268 | int main () { int i; for (i = 0; i < 256; i++) |
---|
| 1269 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); |
---|
| 1270 | exit (0); } |
---|
| 1271 | |
---|
| 1272 | EOF |
---|
| 1273 | if { (eval echo configure:1274: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null |
---|
| 1274 | then |
---|
| 1275 | : |
---|
| 1276 | else |
---|
| 1277 | echo "configure: failed program was:" >&5 |
---|
| 1278 | cat conftest.$ac_ext >&5 |
---|
| 1279 | rm -fr conftest* |
---|
| 1280 | ac_cv_header_stdc=no |
---|
| 1281 | fi |
---|
| 1282 | rm -fr conftest* |
---|
| 1283 | fi |
---|
| 1284 | |
---|
| 1285 | fi |
---|
| 1286 | fi |
---|
| 1287 | |
---|
| 1288 | echo "$ac_t""$ac_cv_header_stdc" 1>&6 |
---|
| 1289 | if test $ac_cv_header_stdc = yes; then |
---|
| 1290 | cat >> confdefs.h <<\EOF |
---|
| 1291 | #define STDC_HEADERS 1 |
---|
| 1292 | EOF |
---|
| 1293 | |
---|
| 1294 | fi |
---|
| 1295 | |
---|
| 1296 | for ac_hdr in string.h stdlib.h limits.h unistd.h memory.h sys/types.h |
---|
| 1297 | do |
---|
| 1298 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
---|
| 1299 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
---|
| 1300 | echo "configure:1301: checking for $ac_hdr" >&5 |
---|
| 1301 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
---|
| 1302 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 1303 | else |
---|
| 1304 | cat > conftest.$ac_ext <<EOF |
---|
| 1305 | #line 1306 "configure" |
---|
| 1306 | #include "confdefs.h" |
---|
| 1307 | #include <$ac_hdr> |
---|
| 1308 | EOF |
---|
| 1309 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
---|
| 1310 | { (eval echo configure:1311: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
---|
| 1311 | ac_err=`grep -v '^ *+' conftest.out` |
---|
| 1312 | if test -z "$ac_err"; then |
---|
| 1313 | rm -rf conftest* |
---|
| 1314 | eval "ac_cv_header_$ac_safe=yes" |
---|
| 1315 | else |
---|
| 1316 | echo "$ac_err" >&5 |
---|
| 1317 | echo "configure: failed program was:" >&5 |
---|
| 1318 | cat conftest.$ac_ext >&5 |
---|
| 1319 | rm -rf conftest* |
---|
| 1320 | eval "ac_cv_header_$ac_safe=no" |
---|
| 1321 | fi |
---|
| 1322 | rm -f conftest* |
---|
| 1323 | fi |
---|
| 1324 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
---|
| 1325 | echo "$ac_t""yes" 1>&6 |
---|
| 1326 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
---|
| 1327 | cat >> confdefs.h <<EOF |
---|
| 1328 | #define $ac_tr_hdr 1 |
---|
| 1329 | EOF |
---|
| 1330 | |
---|
| 1331 | else |
---|
| 1332 | echo "$ac_t""no" 1>&6 |
---|
| 1333 | fi |
---|
| 1334 | done |
---|
| 1335 | |
---|
| 1336 | echo $ac_n "checking for working const""... $ac_c" 1>&6 |
---|
| 1337 | echo "configure:1338: checking for working const" >&5 |
---|
| 1338 | if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then |
---|
| 1339 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 1340 | else |
---|
| 1341 | cat > conftest.$ac_ext <<EOF |
---|
| 1342 | #line 1343 "configure" |
---|
| 1343 | #include "confdefs.h" |
---|
| 1344 | |
---|
| 1345 | int main() { |
---|
| 1346 | |
---|
| 1347 | /* Ultrix mips cc rejects this. */ |
---|
| 1348 | typedef int charset[2]; const charset x; |
---|
| 1349 | /* SunOS 4.1.1 cc rejects this. */ |
---|
| 1350 | char const *const *ccp; |
---|
| 1351 | char **p; |
---|
| 1352 | /* NEC SVR4.0.2 mips cc rejects this. */ |
---|
| 1353 | struct point {int x, y;}; |
---|
| 1354 | static struct point const zero = {0,0}; |
---|
| 1355 | /* AIX XL C 1.02.0.0 rejects this. |
---|
| 1356 | It does not let you subtract one const X* pointer from another in an arm |
---|
| 1357 | of an if-expression whose if-part is not a constant expression */ |
---|
| 1358 | const char *g = "string"; |
---|
| 1359 | ccp = &g + (g ? g-g : 0); |
---|
| 1360 | /* HPUX 7.0 cc rejects these. */ |
---|
| 1361 | ++ccp; |
---|
| 1362 | p = (char**) ccp; |
---|
| 1363 | ccp = (char const *const *) p; |
---|
| 1364 | { /* SCO 3.2v4 cc rejects this. */ |
---|
| 1365 | char *t; |
---|
| 1366 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
---|
| 1367 | |
---|
| 1368 | *t++ = 0; |
---|
| 1369 | } |
---|
| 1370 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
---|
| 1371 | int x[] = {25, 17}; |
---|
| 1372 | const int *foo = &x[0]; |
---|
| 1373 | ++foo; |
---|
| 1374 | } |
---|
| 1375 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
---|
| 1376 | typedef const int *iptr; |
---|
| 1377 | iptr p = 0; |
---|
| 1378 | ++p; |
---|
| 1379 | } |
---|
| 1380 | { /* AIX XL C 1.02.0.0 rejects this saying |
---|
| 1381 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
---|
| 1382 | struct s { int j; const int *ap[3]; }; |
---|
| 1383 | struct s *b; b->j = 5; |
---|
| 1384 | } |
---|
| 1385 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
---|
| 1386 | const int foo = 10; |
---|
| 1387 | } |
---|
| 1388 | |
---|
| 1389 | ; return 0; } |
---|
| 1390 | EOF |
---|
| 1391 | if { (eval echo configure:1392: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
---|
| 1392 | rm -rf conftest* |
---|
| 1393 | ac_cv_c_const=yes |
---|
| 1394 | else |
---|
| 1395 | echo "configure: failed program was:" >&5 |
---|
| 1396 | cat conftest.$ac_ext >&5 |
---|
| 1397 | rm -rf conftest* |
---|
| 1398 | ac_cv_c_const=no |
---|
| 1399 | fi |
---|
| 1400 | rm -f conftest* |
---|
| 1401 | fi |
---|
| 1402 | |
---|
| 1403 | echo "$ac_t""$ac_cv_c_const" 1>&6 |
---|
| 1404 | if test $ac_cv_c_const = no; then |
---|
| 1405 | cat >> confdefs.h <<\EOF |
---|
| 1406 | #define const |
---|
| 1407 | EOF |
---|
| 1408 | |
---|
| 1409 | fi |
---|
| 1410 | |
---|
| 1411 | echo $ac_n "checking for size_t""... $ac_c" 1>&6 |
---|
| 1412 | echo "configure:1413: checking for size_t" >&5 |
---|
| 1413 | if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then |
---|
| 1414 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 1415 | else |
---|
| 1416 | cat > conftest.$ac_ext <<EOF |
---|
| 1417 | #line 1418 "configure" |
---|
| 1418 | #include "confdefs.h" |
---|
| 1419 | #include <sys/types.h> |
---|
| 1420 | #if STDC_HEADERS |
---|
| 1421 | #include <stdlib.h> |
---|
| 1422 | #include <stddef.h> |
---|
| 1423 | #endif |
---|
| 1424 | EOF |
---|
| 1425 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
| 1426 | egrep "size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then |
---|
| 1427 | rm -rf conftest* |
---|
| 1428 | ac_cv_type_size_t=yes |
---|
| 1429 | else |
---|
| 1430 | rm -rf conftest* |
---|
| 1431 | ac_cv_type_size_t=no |
---|
| 1432 | fi |
---|
| 1433 | rm -f conftest* |
---|
| 1434 | |
---|
| 1435 | fi |
---|
| 1436 | echo "$ac_t""$ac_cv_type_size_t" 1>&6 |
---|
| 1437 | if test $ac_cv_type_size_t = no; then |
---|
| 1438 | cat >> confdefs.h <<\EOF |
---|
| 1439 | #define size_t unsigned |
---|
| 1440 | EOF |
---|
| 1441 | |
---|
| 1442 | fi |
---|
| 1443 | |
---|
| 1444 | |
---|
| 1445 | echo $ac_n "checking which regex library to use""... $ac_c" 1>&6 |
---|
| 1446 | echo "configure:1447: checking which regex library to use" >&5 |
---|
| 1447 | ac_regex_lib=lib/regex.o |
---|
| 1448 | # Check whether --with-regex or --without-regex was given. |
---|
| 1449 | if test "${with_regex+set}" = set; then |
---|
| 1450 | withval="$with_regex" |
---|
| 1451 | case "$withval" in yes|no) ;; *) ac_regex_lib="$withval" ;; esac |
---|
| 1452 | fi |
---|
| 1453 | |
---|
| 1454 | case "$ac_regex_lib" in |
---|
| 1455 | lib/regex.o) LIBOBJS="$LIBOBJS regex.o" ;; |
---|
| 1456 | ""|no) ;; |
---|
| 1457 | *) LIBS="$LIBS $ac_regex_lib" ;; |
---|
| 1458 | esac |
---|
| 1459 | case "$ac_regex_lib" in |
---|
| 1460 | "") echo "$ac_t""using system's regex" 1>&6 ;; |
---|
| 1461 | *) echo "$ac_t""using $ac_regex_lib" 1>&6 ;; |
---|
| 1462 | esac |
---|
| 1463 | |
---|
| 1464 | case " $LIBOBJS " in |
---|
| 1465 | *\ regex.o\ *) |
---|
| 1466 | ac_cv_func_regnexec=yes |
---|
| 1467 | ac_cv_func_regexec=yes |
---|
| 1468 | cat >> confdefs.h <<\EOF |
---|
| 1469 | #define HAVE_REGNEXEC 1 |
---|
| 1470 | #define HAVE_REGEXEC 1 |
---|
| 1471 | EOF |
---|
| 1472 | cat >> confdefs.h <<\EOF |
---|
| 1473 | #define USE_REGEX_GNU_H 1 |
---|
| 1474 | EOF |
---|
| 1475 | |
---|
| 1476 | ;; |
---|
| 1477 | *) |
---|
| 1478 | for ac_hdr in regex.h |
---|
| 1479 | do |
---|
| 1480 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
---|
| 1481 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
---|
| 1482 | echo "configure:1483: checking for $ac_hdr" >&5 |
---|
| 1483 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
---|
| 1484 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 1485 | else |
---|
| 1486 | cat > conftest.$ac_ext <<EOF |
---|
| 1487 | #line 1488 "configure" |
---|
| 1488 | #include "confdefs.h" |
---|
| 1489 | #include <$ac_hdr> |
---|
| 1490 | EOF |
---|
| 1491 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
---|
| 1492 | { (eval echo configure:1493: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
---|
| 1493 | ac_err=`grep -v '^ *+' conftest.out` |
---|
| 1494 | if test -z "$ac_err"; then |
---|
| 1495 | rm -rf conftest* |
---|
| 1496 | eval "ac_cv_header_$ac_safe=yes" |
---|
| 1497 | else |
---|
| 1498 | echo "$ac_err" >&5 |
---|
| 1499 | echo "configure: failed program was:" >&5 |
---|
| 1500 | cat conftest.$ac_ext >&5 |
---|
| 1501 | rm -rf conftest* |
---|
| 1502 | eval "ac_cv_header_$ac_safe=no" |
---|
| 1503 | fi |
---|
| 1504 | rm -f conftest* |
---|
| 1505 | fi |
---|
| 1506 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
---|
| 1507 | echo "$ac_t""yes" 1>&6 |
---|
| 1508 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
---|
| 1509 | cat >> confdefs.h <<EOF |
---|
| 1510 | #define $ac_tr_hdr 1 |
---|
| 1511 | EOF |
---|
| 1512 | |
---|
| 1513 | else |
---|
| 1514 | echo "$ac_t""no" 1>&6 |
---|
| 1515 | fi |
---|
| 1516 | done |
---|
| 1517 | |
---|
| 1518 | case "$ac_cv_header_regex_h" in |
---|
| 1519 | yes) ;; |
---|
| 1520 | *) |
---|
| 1521 | { echo "configure: error: <regex.h> header is required for use with non-default regex implementation" 1>&2; exit 1; } |
---|
| 1522 | ;; |
---|
| 1523 | esac |
---|
| 1524 | for ac_func in regnexec regexec |
---|
| 1525 | do |
---|
| 1526 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
---|
| 1527 | echo "configure:1528: checking for $ac_func" >&5 |
---|
| 1528 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
---|
| 1529 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 1530 | else |
---|
| 1531 | cat > conftest.$ac_ext <<EOF |
---|
| 1532 | #line 1533 "configure" |
---|
| 1533 | #include "confdefs.h" |
---|
| 1534 | /* System header to define __stub macros and hopefully few prototypes, |
---|
| 1535 | which can conflict with char $ac_func(); below. */ |
---|
| 1536 | #include <assert.h> |
---|
| 1537 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
| 1538 | /* We use char because int might match the return type of a gcc2 |
---|
| 1539 | builtin and then its argument prototype would still apply. */ |
---|
| 1540 | char $ac_func(); |
---|
| 1541 | |
---|
| 1542 | int main() { |
---|
| 1543 | |
---|
| 1544 | /* The GNU C library defines this for functions which it implements |
---|
| 1545 | to always fail with ENOSYS. Some functions are actually named |
---|
| 1546 | something starting with __ and the normal name is an alias. */ |
---|
| 1547 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
---|
| 1548 | choke me |
---|
| 1549 | #else |
---|
| 1550 | $ac_func(); |
---|
| 1551 | #endif |
---|
| 1552 | |
---|
| 1553 | ; return 0; } |
---|
| 1554 | EOF |
---|
| 1555 | if { (eval echo configure:1556: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
---|
| 1556 | rm -rf conftest* |
---|
| 1557 | eval "ac_cv_func_$ac_func=yes" |
---|
| 1558 | else |
---|
| 1559 | echo "configure: failed program was:" >&5 |
---|
| 1560 | cat conftest.$ac_ext >&5 |
---|
| 1561 | rm -rf conftest* |
---|
| 1562 | eval "ac_cv_func_$ac_func=no" |
---|
| 1563 | fi |
---|
| 1564 | rm -f conftest* |
---|
| 1565 | fi |
---|
| 1566 | |
---|
| 1567 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
---|
| 1568 | echo "$ac_t""yes" 1>&6 |
---|
| 1569 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
---|
| 1570 | cat >> confdefs.h <<EOF |
---|
| 1571 | #define $ac_tr_func 1 |
---|
| 1572 | EOF |
---|
| 1573 | |
---|
| 1574 | else |
---|
| 1575 | echo "$ac_t""no" 1>&6 |
---|
| 1576 | fi |
---|
| 1577 | done |
---|
| 1578 | |
---|
| 1579 | ;; |
---|
| 1580 | esac |
---|
| 1581 | case "$ac_cv_func_regnexec $ac_cv_func_regexec" in |
---|
| 1582 | *yes*) ;; |
---|
| 1583 | *) { echo "configure: error: at least one of regexec() or regnexec() must be supported" 1>&2; exit 1; } ;; |
---|
| 1584 | esac |
---|
| 1585 | |
---|
| 1586 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
---|
| 1587 | # for constant arguments. Useless! |
---|
| 1588 | echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6 |
---|
| 1589 | echo "configure:1590: checking for working alloca.h" >&5 |
---|
| 1590 | if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then |
---|
| 1591 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 1592 | else |
---|
| 1593 | cat > conftest.$ac_ext <<EOF |
---|
| 1594 | #line 1595 "configure" |
---|
| 1595 | #include "confdefs.h" |
---|
| 1596 | #include <alloca.h> |
---|
| 1597 | int main() { |
---|
| 1598 | char *p = alloca(2 * sizeof(int)); |
---|
| 1599 | ; return 0; } |
---|
| 1600 | EOF |
---|
| 1601 | if { (eval echo configure:1602: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
---|
| 1602 | rm -rf conftest* |
---|
| 1603 | ac_cv_header_alloca_h=yes |
---|
| 1604 | else |
---|
| 1605 | echo "configure: failed program was:" >&5 |
---|
| 1606 | cat conftest.$ac_ext >&5 |
---|
| 1607 | rm -rf conftest* |
---|
| 1608 | ac_cv_header_alloca_h=no |
---|
| 1609 | fi |
---|
| 1610 | rm -f conftest* |
---|
| 1611 | fi |
---|
| 1612 | |
---|
| 1613 | echo "$ac_t""$ac_cv_header_alloca_h" 1>&6 |
---|
| 1614 | if test $ac_cv_header_alloca_h = yes; then |
---|
| 1615 | cat >> confdefs.h <<\EOF |
---|
| 1616 | #define HAVE_ALLOCA_H 1 |
---|
| 1617 | EOF |
---|
| 1618 | |
---|
| 1619 | fi |
---|
| 1620 | |
---|
| 1621 | echo $ac_n "checking for alloca""... $ac_c" 1>&6 |
---|
| 1622 | echo "configure:1623: checking for alloca" >&5 |
---|
| 1623 | if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then |
---|
| 1624 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 1625 | else |
---|
| 1626 | cat > conftest.$ac_ext <<EOF |
---|
| 1627 | #line 1628 "configure" |
---|
| 1628 | #include "confdefs.h" |
---|
| 1629 | |
---|
| 1630 | #ifdef __GNUC__ |
---|
| 1631 | # define alloca __builtin_alloca |
---|
| 1632 | #else |
---|
| 1633 | # if HAVE_ALLOCA_H |
---|
| 1634 | # include <alloca.h> |
---|
| 1635 | # else |
---|
| 1636 | # ifdef _AIX |
---|
| 1637 | #pragma alloca |
---|
| 1638 | # else |
---|
| 1639 | # ifndef alloca /* predefined by HP cc +Olibcalls */ |
---|
| 1640 | char *alloca (); |
---|
| 1641 | # endif |
---|
| 1642 | # endif |
---|
| 1643 | # endif |
---|
| 1644 | #endif |
---|
| 1645 | |
---|
| 1646 | int main() { |
---|
| 1647 | char *p = (char *) alloca(1); |
---|
| 1648 | ; return 0; } |
---|
| 1649 | EOF |
---|
| 1650 | if { (eval echo configure:1651: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
---|
| 1651 | rm -rf conftest* |
---|
| 1652 | ac_cv_func_alloca_works=yes |
---|
| 1653 | else |
---|
| 1654 | echo "configure: failed program was:" >&5 |
---|
| 1655 | cat conftest.$ac_ext >&5 |
---|
| 1656 | rm -rf conftest* |
---|
| 1657 | ac_cv_func_alloca_works=no |
---|
| 1658 | fi |
---|
| 1659 | rm -f conftest* |
---|
| 1660 | fi |
---|
| 1661 | |
---|
| 1662 | echo "$ac_t""$ac_cv_func_alloca_works" 1>&6 |
---|
| 1663 | if test $ac_cv_func_alloca_works = yes; then |
---|
| 1664 | cat >> confdefs.h <<\EOF |
---|
| 1665 | #define HAVE_ALLOCA 1 |
---|
| 1666 | EOF |
---|
| 1667 | |
---|
| 1668 | fi |
---|
| 1669 | |
---|
| 1670 | if test $ac_cv_func_alloca_works = no; then |
---|
| 1671 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions |
---|
| 1672 | # that cause trouble. Some versions do not even contain alloca or |
---|
| 1673 | # contain a buggy version. If you still want to use their alloca, |
---|
| 1674 | # use ar to extract alloca.o from them instead of compiling alloca.c. |
---|
| 1675 | ALLOCA=alloca.o |
---|
| 1676 | cat >> confdefs.h <<\EOF |
---|
| 1677 | #define C_ALLOCA 1 |
---|
| 1678 | EOF |
---|
| 1679 | |
---|
| 1680 | |
---|
| 1681 | echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 |
---|
| 1682 | echo "configure:1683: checking whether alloca needs Cray hooks" >&5 |
---|
| 1683 | if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then |
---|
| 1684 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 1685 | else |
---|
| 1686 | cat > conftest.$ac_ext <<EOF |
---|
| 1687 | #line 1688 "configure" |
---|
| 1688 | #include "confdefs.h" |
---|
| 1689 | #if defined(CRAY) && ! defined(CRAY2) |
---|
| 1690 | webecray |
---|
| 1691 | #else |
---|
| 1692 | wenotbecray |
---|
| 1693 | #endif |
---|
| 1694 | |
---|
| 1695 | EOF |
---|
| 1696 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
| 1697 | egrep "webecray" >/dev/null 2>&1; then |
---|
| 1698 | rm -rf conftest* |
---|
| 1699 | ac_cv_os_cray=yes |
---|
| 1700 | else |
---|
| 1701 | rm -rf conftest* |
---|
| 1702 | ac_cv_os_cray=no |
---|
| 1703 | fi |
---|
| 1704 | rm -f conftest* |
---|
| 1705 | |
---|
| 1706 | fi |
---|
| 1707 | |
---|
| 1708 | echo "$ac_t""$ac_cv_os_cray" 1>&6 |
---|
| 1709 | if test $ac_cv_os_cray = yes; then |
---|
| 1710 | for ac_func in _getb67 GETB67 getb67; do |
---|
| 1711 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
---|
| 1712 | echo "configure:1713: checking for $ac_func" >&5 |
---|
| 1713 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
---|
| 1714 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 1715 | else |
---|
| 1716 | cat > conftest.$ac_ext <<EOF |
---|
| 1717 | #line 1718 "configure" |
---|
| 1718 | #include "confdefs.h" |
---|
| 1719 | /* System header to define __stub macros and hopefully few prototypes, |
---|
| 1720 | which can conflict with char $ac_func(); below. */ |
---|
| 1721 | #include <assert.h> |
---|
| 1722 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
| 1723 | /* We use char because int might match the return type of a gcc2 |
---|
| 1724 | builtin and then its argument prototype would still apply. */ |
---|
| 1725 | char $ac_func(); |
---|
| 1726 | |
---|
| 1727 | int main() { |
---|
| 1728 | |
---|
| 1729 | /* The GNU C library defines this for functions which it implements |
---|
| 1730 | to always fail with ENOSYS. Some functions are actually named |
---|
| 1731 | something starting with __ and the normal name is an alias. */ |
---|
| 1732 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
---|
| 1733 | choke me |
---|
| 1734 | #else |
---|
| 1735 | $ac_func(); |
---|
| 1736 | #endif |
---|
| 1737 | |
---|
| 1738 | ; return 0; } |
---|
| 1739 | EOF |
---|
| 1740 | if { (eval echo configure:1741: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
---|
| 1741 | rm -rf conftest* |
---|
| 1742 | eval "ac_cv_func_$ac_func=yes" |
---|
| 1743 | else |
---|
| 1744 | echo "configure: failed program was:" >&5 |
---|
| 1745 | cat conftest.$ac_ext >&5 |
---|
| 1746 | rm -rf conftest* |
---|
| 1747 | eval "ac_cv_func_$ac_func=no" |
---|
| 1748 | fi |
---|
| 1749 | rm -f conftest* |
---|
| 1750 | fi |
---|
| 1751 | |
---|
| 1752 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
---|
| 1753 | echo "$ac_t""yes" 1>&6 |
---|
| 1754 | cat >> confdefs.h <<EOF |
---|
| 1755 | #define CRAY_STACKSEG_END $ac_func |
---|
| 1756 | EOF |
---|
| 1757 | |
---|
| 1758 | break |
---|
| 1759 | else |
---|
| 1760 | echo "$ac_t""no" 1>&6 |
---|
| 1761 | fi |
---|
| 1762 | |
---|
| 1763 | done |
---|
| 1764 | fi |
---|
| 1765 | |
---|
| 1766 | echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 |
---|
| 1767 | echo "configure:1768: checking stack direction for C alloca" >&5 |
---|
| 1768 | if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then |
---|
| 1769 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 1770 | else |
---|
| 1771 | if test "$cross_compiling" = yes; then |
---|
| 1772 | ac_cv_c_stack_direction=0 |
---|
| 1773 | else |
---|
| 1774 | cat > conftest.$ac_ext <<EOF |
---|
| 1775 | #line 1776 "configure" |
---|
| 1776 | #include "confdefs.h" |
---|
| 1777 | find_stack_direction () |
---|
| 1778 | { |
---|
| 1779 | static char *addr = 0; |
---|
| 1780 | auto char dummy; |
---|
| 1781 | if (addr == 0) |
---|
| 1782 | { |
---|
| 1783 | addr = &dummy; |
---|
| 1784 | return find_stack_direction (); |
---|
| 1785 | } |
---|
| 1786 | else |
---|
| 1787 | return (&dummy > addr) ? 1 : -1; |
---|
| 1788 | } |
---|
| 1789 | main () |
---|
| 1790 | { |
---|
| 1791 | exit (find_stack_direction() < 0); |
---|
| 1792 | } |
---|
| 1793 | EOF |
---|
| 1794 | if { (eval echo configure:1795: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null |
---|
| 1795 | then |
---|
| 1796 | ac_cv_c_stack_direction=1 |
---|
| 1797 | else |
---|
| 1798 | echo "configure: failed program was:" >&5 |
---|
| 1799 | cat conftest.$ac_ext >&5 |
---|
| 1800 | rm -fr conftest* |
---|
| 1801 | ac_cv_c_stack_direction=-1 |
---|
| 1802 | fi |
---|
| 1803 | rm -fr conftest* |
---|
| 1804 | fi |
---|
| 1805 | |
---|
| 1806 | fi |
---|
| 1807 | |
---|
| 1808 | echo "$ac_t""$ac_cv_c_stack_direction" 1>&6 |
---|
| 1809 | cat >> confdefs.h <<EOF |
---|
| 1810 | #define STACK_DIRECTION $ac_cv_c_stack_direction |
---|
| 1811 | EOF |
---|
| 1812 | |
---|
| 1813 | fi |
---|
| 1814 | |
---|
| 1815 | for ac_hdr in unistd.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` |
---|
| 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_func in getpagesize |
---|
| 1856 | do |
---|
| 1857 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
---|
| 1858 | echo "configure:1859: checking for $ac_func" >&5 |
---|
| 1859 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
---|
| 1860 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 1861 | else |
---|
| 1862 | cat > conftest.$ac_ext <<EOF |
---|
| 1863 | #line 1864 "configure" |
---|
| 1864 | #include "confdefs.h" |
---|
| 1865 | /* System header to define __stub macros and hopefully few prototypes, |
---|
| 1866 | which can conflict with char $ac_func(); below. */ |
---|
| 1867 | #include <assert.h> |
---|
| 1868 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
| 1869 | /* We use char because int might match the return type of a gcc2 |
---|
| 1870 | builtin and then its argument prototype would still apply. */ |
---|
| 1871 | char $ac_func(); |
---|
| 1872 | |
---|
| 1873 | int main() { |
---|
| 1874 | |
---|
| 1875 | /* The GNU C library defines this for functions which it implements |
---|
| 1876 | to always fail with ENOSYS. Some functions are actually named |
---|
| 1877 | something starting with __ and the normal name is an alias. */ |
---|
| 1878 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
---|
| 1879 | choke me |
---|
| 1880 | #else |
---|
| 1881 | $ac_func(); |
---|
| 1882 | #endif |
---|
| 1883 | |
---|
| 1884 | ; return 0; } |
---|
| 1885 | EOF |
---|
| 1886 | if { (eval echo configure:1887: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
---|
| 1887 | rm -rf conftest* |
---|
| 1888 | eval "ac_cv_func_$ac_func=yes" |
---|
| 1889 | else |
---|
| 1890 | echo "configure: failed program was:" >&5 |
---|
| 1891 | cat conftest.$ac_ext >&5 |
---|
| 1892 | rm -rf conftest* |
---|
| 1893 | eval "ac_cv_func_$ac_func=no" |
---|
| 1894 | fi |
---|
| 1895 | rm -f conftest* |
---|
| 1896 | fi |
---|
| 1897 | |
---|
| 1898 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
---|
| 1899 | echo "$ac_t""yes" 1>&6 |
---|
| 1900 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
---|
| 1901 | cat >> confdefs.h <<EOF |
---|
| 1902 | #define $ac_tr_func 1 |
---|
| 1903 | EOF |
---|
| 1904 | |
---|
| 1905 | else |
---|
| 1906 | echo "$ac_t""no" 1>&6 |
---|
| 1907 | fi |
---|
| 1908 | done |
---|
| 1909 | |
---|
| 1910 | echo $ac_n "checking for working mmap""... $ac_c" 1>&6 |
---|
| 1911 | echo "configure:1912: checking for working mmap" >&5 |
---|
| 1912 | if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then |
---|
| 1913 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 1914 | else |
---|
| 1915 | if test "$cross_compiling" = yes; then |
---|
| 1916 | ac_cv_func_mmap_fixed_mapped=no |
---|
| 1917 | else |
---|
| 1918 | cat > conftest.$ac_ext <<EOF |
---|
| 1919 | #line 1920 "configure" |
---|
| 1920 | #include "confdefs.h" |
---|
| 1921 | |
---|
| 1922 | /* Thanks to Mike Haertel and Jim Avera for this test. |
---|
| 1923 | Here is a matrix of mmap possibilities: |
---|
| 1924 | mmap private not fixed |
---|
| 1925 | mmap private fixed at somewhere currently unmapped |
---|
| 1926 | mmap private fixed at somewhere already mapped |
---|
| 1927 | mmap shared not fixed |
---|
| 1928 | mmap shared fixed at somewhere currently unmapped |
---|
| 1929 | mmap shared fixed at somewhere already mapped |
---|
| 1930 | For private mappings, we should verify that changes cannot be read() |
---|
| 1931 | back from the file, nor mmap's back from the file at a different |
---|
| 1932 | address. (There have been systems where private was not correctly |
---|
| 1933 | implemented like the infamous i386 svr4.0, and systems where the |
---|
| 1934 | VM page cache was not coherent with the filesystem buffer cache |
---|
| 1935 | like early versions of FreeBSD and possibly contemporary NetBSD.) |
---|
| 1936 | For shared mappings, we should conversely verify that changes get |
---|
| 1937 | propogated back to all the places they're supposed to be. |
---|
| 1938 | |
---|
| 1939 | Grep wants private fixed already mapped. |
---|
| 1940 | The main things grep needs to know about mmap are: |
---|
| 1941 | * does it exist and is it safe to write into the mmap'd area |
---|
| 1942 | * how to use it (BSD variants) */ |
---|
| 1943 | #include <sys/types.h> |
---|
| 1944 | #include <fcntl.h> |
---|
| 1945 | #include <sys/mman.h> |
---|
| 1946 | |
---|
| 1947 | /* This mess was copied from the GNU getpagesize.h. */ |
---|
| 1948 | #ifndef HAVE_GETPAGESIZE |
---|
| 1949 | # ifdef HAVE_UNISTD_H |
---|
| 1950 | # include <unistd.h> |
---|
| 1951 | # endif |
---|
| 1952 | |
---|
| 1953 | /* Assume that all systems that can run configure have sys/param.h. */ |
---|
| 1954 | # ifndef HAVE_SYS_PARAM_H |
---|
| 1955 | # define HAVE_SYS_PARAM_H 1 |
---|
| 1956 | # endif |
---|
| 1957 | |
---|
| 1958 | # ifdef _SC_PAGESIZE |
---|
| 1959 | # define getpagesize() sysconf(_SC_PAGESIZE) |
---|
| 1960 | # else /* no _SC_PAGESIZE */ |
---|
| 1961 | # ifdef HAVE_SYS_PARAM_H |
---|
| 1962 | # include <sys/param.h> |
---|
| 1963 | # ifdef EXEC_PAGESIZE |
---|
| 1964 | # define getpagesize() EXEC_PAGESIZE |
---|
| 1965 | # else /* no EXEC_PAGESIZE */ |
---|
| 1966 | # ifdef NBPG |
---|
| 1967 | # define getpagesize() NBPG * CLSIZE |
---|
| 1968 | # ifndef CLSIZE |
---|
| 1969 | # define CLSIZE 1 |
---|
| 1970 | # endif /* no CLSIZE */ |
---|
| 1971 | # else /* no NBPG */ |
---|
| 1972 | # ifdef NBPC |
---|
| 1973 | # define getpagesize() NBPC |
---|
| 1974 | # else /* no NBPC */ |
---|
| 1975 | # ifdef PAGESIZE |
---|
| 1976 | # define getpagesize() PAGESIZE |
---|
| 1977 | # endif /* PAGESIZE */ |
---|
| 1978 | # endif /* no NBPC */ |
---|
| 1979 | # endif /* no NBPG */ |
---|
| 1980 | # endif /* no EXEC_PAGESIZE */ |
---|
| 1981 | # else /* no HAVE_SYS_PARAM_H */ |
---|
| 1982 | # define getpagesize() 8192 /* punt totally */ |
---|
| 1983 | # endif /* no HAVE_SYS_PARAM_H */ |
---|
| 1984 | # endif /* no _SC_PAGESIZE */ |
---|
| 1985 | |
---|
| 1986 | #endif /* no HAVE_GETPAGESIZE */ |
---|
| 1987 | |
---|
| 1988 | #ifdef __cplusplus |
---|
| 1989 | extern "C" { void *malloc(unsigned); } |
---|
| 1990 | #else |
---|
| 1991 | char *malloc(); |
---|
| 1992 | #endif |
---|
| 1993 | |
---|
| 1994 | int |
---|
| 1995 | main() |
---|
| 1996 | { |
---|
| 1997 | char *data, *data2, *data3; |
---|
| 1998 | int i, pagesize; |
---|
| 1999 | int fd; |
---|
| 2000 | |
---|
| 2001 | pagesize = getpagesize(); |
---|
| 2002 | |
---|
| 2003 | /* |
---|
| 2004 | * First, make a file with some known garbage in it. |
---|
| 2005 | */ |
---|
| 2006 | data = malloc(pagesize); |
---|
| 2007 | if (!data) |
---|
| 2008 | exit(1); |
---|
| 2009 | for (i = 0; i < pagesize; ++i) |
---|
| 2010 | *(data + i) = rand(); |
---|
| 2011 | umask(0); |
---|
| 2012 | fd = creat("conftestmmap", 0600); |
---|
| 2013 | if (fd < 0) |
---|
| 2014 | exit(1); |
---|
| 2015 | if (write(fd, data, pagesize) != pagesize) |
---|
| 2016 | exit(1); |
---|
| 2017 | close(fd); |
---|
| 2018 | |
---|
| 2019 | /* |
---|
| 2020 | * Next, try to mmap the file at a fixed address which |
---|
| 2021 | * already has something else allocated at it. If we can, |
---|
| 2022 | * also make sure that we see the same garbage. |
---|
| 2023 | */ |
---|
| 2024 | fd = open("conftestmmap", O_RDWR); |
---|
| 2025 | if (fd < 0) |
---|
| 2026 | exit(1); |
---|
| 2027 | data2 = malloc(2 * pagesize); |
---|
| 2028 | if (!data2) |
---|
| 2029 | exit(1); |
---|
| 2030 | data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1); |
---|
| 2031 | if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE, |
---|
| 2032 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) |
---|
| 2033 | exit(1); |
---|
| 2034 | for (i = 0; i < pagesize; ++i) |
---|
| 2035 | if (*(data + i) != *(data2 + i)) |
---|
| 2036 | exit(1); |
---|
| 2037 | |
---|
| 2038 | /* |
---|
| 2039 | * Finally, make sure that changes to the mapped area |
---|
| 2040 | * do not percolate back to the file as seen by read(). |
---|
| 2041 | * (This is a bug on some variants of i386 svr4.0.) |
---|
| 2042 | */ |
---|
| 2043 | for (i = 0; i < pagesize; ++i) |
---|
| 2044 | *(data2 + i) = *(data2 + i) + 1; |
---|
| 2045 | data3 = malloc(pagesize); |
---|
| 2046 | if (!data3) |
---|
| 2047 | exit(1); |
---|
| 2048 | if (read(fd, data3, pagesize) != pagesize) |
---|
| 2049 | exit(1); |
---|
| 2050 | for (i = 0; i < pagesize; ++i) |
---|
| 2051 | if (*(data + i) != *(data3 + i)) |
---|
| 2052 | exit(1); |
---|
| 2053 | close(fd); |
---|
| 2054 | unlink("conftestmmap"); |
---|
| 2055 | exit(0); |
---|
| 2056 | } |
---|
| 2057 | |
---|
| 2058 | EOF |
---|
| 2059 | if { (eval echo configure:2060: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null |
---|
| 2060 | then |
---|
| 2061 | ac_cv_func_mmap_fixed_mapped=yes |
---|
| 2062 | else |
---|
| 2063 | echo "configure: failed program was:" >&5 |
---|
| 2064 | cat conftest.$ac_ext >&5 |
---|
| 2065 | rm -fr conftest* |
---|
| 2066 | ac_cv_func_mmap_fixed_mapped=no |
---|
| 2067 | fi |
---|
| 2068 | rm -fr conftest* |
---|
| 2069 | fi |
---|
| 2070 | |
---|
| 2071 | fi |
---|
| 2072 | |
---|
| 2073 | echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6 |
---|
| 2074 | if test $ac_cv_func_mmap_fixed_mapped = yes; then |
---|
| 2075 | cat >> confdefs.h <<\EOF |
---|
| 2076 | #define HAVE_MMAP 1 |
---|
| 2077 | EOF |
---|
| 2078 | |
---|
| 2079 | fi |
---|
| 2080 | |
---|
| 2081 | echo $ac_n "checking for vprintf""... $ac_c" 1>&6 |
---|
| 2082 | echo "configure:2083: checking for vprintf" >&5 |
---|
| 2083 | if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then |
---|
| 2084 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 2085 | else |
---|
| 2086 | cat > conftest.$ac_ext <<EOF |
---|
| 2087 | #line 2088 "configure" |
---|
| 2088 | #include "confdefs.h" |
---|
| 2089 | /* System header to define __stub macros and hopefully few prototypes, |
---|
| 2090 | which can conflict with char vprintf(); below. */ |
---|
| 2091 | #include <assert.h> |
---|
| 2092 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
| 2093 | /* We use char because int might match the return type of a gcc2 |
---|
| 2094 | builtin and then its argument prototype would still apply. */ |
---|
| 2095 | char vprintf(); |
---|
| 2096 | |
---|
| 2097 | int main() { |
---|
| 2098 | |
---|
| 2099 | /* The GNU C library defines this for functions which it implements |
---|
| 2100 | to always fail with ENOSYS. Some functions are actually named |
---|
| 2101 | something starting with __ and the normal name is an alias. */ |
---|
| 2102 | #if defined (__stub_vprintf) || defined (__stub___vprintf) |
---|
| 2103 | choke me |
---|
| 2104 | #else |
---|
| 2105 | vprintf(); |
---|
| 2106 | #endif |
---|
| 2107 | |
---|
| 2108 | ; return 0; } |
---|
| 2109 | EOF |
---|
| 2110 | if { (eval echo configure:2111: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
---|
| 2111 | rm -rf conftest* |
---|
| 2112 | eval "ac_cv_func_vprintf=yes" |
---|
| 2113 | else |
---|
| 2114 | echo "configure: failed program was:" >&5 |
---|
| 2115 | cat conftest.$ac_ext >&5 |
---|
| 2116 | rm -rf conftest* |
---|
| 2117 | eval "ac_cv_func_vprintf=no" |
---|
| 2118 | fi |
---|
| 2119 | rm -f conftest* |
---|
| 2120 | fi |
---|
| 2121 | |
---|
| 2122 | if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then |
---|
| 2123 | echo "$ac_t""yes" 1>&6 |
---|
| 2124 | cat >> confdefs.h <<\EOF |
---|
| 2125 | #define HAVE_VPRINTF 1 |
---|
| 2126 | EOF |
---|
| 2127 | |
---|
| 2128 | else |
---|
| 2129 | echo "$ac_t""no" 1>&6 |
---|
| 2130 | fi |
---|
| 2131 | |
---|
| 2132 | if test "$ac_cv_func_vprintf" != yes; then |
---|
| 2133 | echo $ac_n "checking for _doprnt""... $ac_c" 1>&6 |
---|
| 2134 | echo "configure:2135: checking for _doprnt" >&5 |
---|
| 2135 | if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then |
---|
| 2136 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 2137 | else |
---|
| 2138 | cat > conftest.$ac_ext <<EOF |
---|
| 2139 | #line 2140 "configure" |
---|
| 2140 | #include "confdefs.h" |
---|
| 2141 | /* System header to define __stub macros and hopefully few prototypes, |
---|
| 2142 | which can conflict with char _doprnt(); below. */ |
---|
| 2143 | #include <assert.h> |
---|
| 2144 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
| 2145 | /* We use char because int might match the return type of a gcc2 |
---|
| 2146 | builtin and then its argument prototype would still apply. */ |
---|
| 2147 | char _doprnt(); |
---|
| 2148 | |
---|
| 2149 | int main() { |
---|
| 2150 | |
---|
| 2151 | /* The GNU C library defines this for functions which it implements |
---|
| 2152 | to always fail with ENOSYS. Some functions are actually named |
---|
| 2153 | something starting with __ and the normal name is an alias. */ |
---|
| 2154 | #if defined (__stub__doprnt) || defined (__stub____doprnt) |
---|
| 2155 | choke me |
---|
| 2156 | #else |
---|
| 2157 | _doprnt(); |
---|
| 2158 | #endif |
---|
| 2159 | |
---|
| 2160 | ; return 0; } |
---|
| 2161 | EOF |
---|
| 2162 | if { (eval echo configure:2163: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
---|
| 2163 | rm -rf conftest* |
---|
| 2164 | eval "ac_cv_func__doprnt=yes" |
---|
| 2165 | else |
---|
| 2166 | echo "configure: failed program was:" >&5 |
---|
| 2167 | cat conftest.$ac_ext >&5 |
---|
| 2168 | rm -rf conftest* |
---|
| 2169 | eval "ac_cv_func__doprnt=no" |
---|
| 2170 | fi |
---|
| 2171 | rm -f conftest* |
---|
| 2172 | fi |
---|
| 2173 | |
---|
| 2174 | if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then |
---|
| 2175 | echo "$ac_t""yes" 1>&6 |
---|
| 2176 | cat >> confdefs.h <<\EOF |
---|
| 2177 | #define HAVE_DOPRNT 1 |
---|
| 2178 | EOF |
---|
| 2179 | |
---|
| 2180 | else |
---|
| 2181 | echo "$ac_t""no" 1>&6 |
---|
| 2182 | fi |
---|
| 2183 | |
---|
| 2184 | fi |
---|
| 2185 | |
---|
| 2186 | |
---|
| 2187 | for ac_func in memchr memcmp memmove strerror |
---|
| 2188 | do |
---|
| 2189 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
---|
| 2190 | echo "configure:2191: checking for $ac_func" >&5 |
---|
| 2191 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
---|
| 2192 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 2193 | else |
---|
| 2194 | cat > conftest.$ac_ext <<EOF |
---|
| 2195 | #line 2196 "configure" |
---|
| 2196 | #include "confdefs.h" |
---|
| 2197 | /* System header to define __stub macros and hopefully few prototypes, |
---|
| 2198 | which can conflict with char $ac_func(); below. */ |
---|
| 2199 | #include <assert.h> |
---|
| 2200 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
| 2201 | /* We use char because int might match the return type of a gcc2 |
---|
| 2202 | builtin and then its argument prototype would still apply. */ |
---|
| 2203 | char $ac_func(); |
---|
| 2204 | |
---|
| 2205 | int main() { |
---|
| 2206 | |
---|
| 2207 | /* The GNU C library defines this for functions which it implements |
---|
| 2208 | to always fail with ENOSYS. Some functions are actually named |
---|
| 2209 | something starting with __ and the normal name is an alias. */ |
---|
| 2210 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
---|
| 2211 | choke me |
---|
| 2212 | #else |
---|
| 2213 | $ac_func(); |
---|
| 2214 | #endif |
---|
| 2215 | |
---|
| 2216 | ; return 0; } |
---|
| 2217 | EOF |
---|
| 2218 | if { (eval echo configure:2219: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
---|
| 2219 | rm -rf conftest* |
---|
| 2220 | eval "ac_cv_func_$ac_func=yes" |
---|
| 2221 | else |
---|
| 2222 | echo "configure: failed program was:" >&5 |
---|
| 2223 | cat conftest.$ac_ext >&5 |
---|
| 2224 | rm -rf conftest* |
---|
| 2225 | eval "ac_cv_func_$ac_func=no" |
---|
| 2226 | fi |
---|
| 2227 | rm -f conftest* |
---|
| 2228 | fi |
---|
| 2229 | |
---|
| 2230 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
---|
| 2231 | echo "$ac_t""yes" 1>&6 |
---|
| 2232 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
---|
| 2233 | cat >> confdefs.h <<EOF |
---|
| 2234 | #define $ac_tr_func 1 |
---|
| 2235 | EOF |
---|
| 2236 | |
---|
| 2237 | else |
---|
| 2238 | echo "$ac_t""no" 1>&6 |
---|
| 2239 | LIBOBJS="$LIBOBJS ${ac_func}.o" |
---|
| 2240 | fi |
---|
| 2241 | done |
---|
| 2242 | |
---|
| 2243 | |
---|
| 2244 | for ac_func in isatty bcopy bzero isascii memcpy |
---|
| 2245 | do |
---|
| 2246 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
---|
| 2247 | echo "configure:2248: checking for $ac_func" >&5 |
---|
| 2248 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
---|
| 2249 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 2250 | else |
---|
| 2251 | cat > conftest.$ac_ext <<EOF |
---|
| 2252 | #line 2253 "configure" |
---|
| 2253 | #include "confdefs.h" |
---|
| 2254 | /* System header to define __stub macros and hopefully few prototypes, |
---|
| 2255 | which can conflict with char $ac_func(); below. */ |
---|
| 2256 | #include <assert.h> |
---|
| 2257 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
| 2258 | /* We use char because int might match the return type of a gcc2 |
---|
| 2259 | builtin and then its argument prototype would still apply. */ |
---|
| 2260 | char $ac_func(); |
---|
| 2261 | |
---|
| 2262 | int main() { |
---|
| 2263 | |
---|
| 2264 | /* The GNU C library defines this for functions which it implements |
---|
| 2265 | to always fail with ENOSYS. Some functions are actually named |
---|
| 2266 | something starting with __ and the normal name is an alias. */ |
---|
| 2267 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
---|
| 2268 | choke me |
---|
| 2269 | #else |
---|
| 2270 | $ac_func(); |
---|
| 2271 | #endif |
---|
| 2272 | |
---|
| 2273 | ; return 0; } |
---|
| 2274 | EOF |
---|
| 2275 | if { (eval echo configure:2276: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
---|
| 2276 | rm -rf conftest* |
---|
| 2277 | eval "ac_cv_func_$ac_func=yes" |
---|
| 2278 | else |
---|
| 2279 | echo "configure: failed program was:" >&5 |
---|
| 2280 | cat conftest.$ac_ext >&5 |
---|
| 2281 | rm -rf conftest* |
---|
| 2282 | eval "ac_cv_func_$ac_func=no" |
---|
| 2283 | fi |
---|
| 2284 | rm -f conftest* |
---|
| 2285 | fi |
---|
| 2286 | |
---|
| 2287 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
---|
| 2288 | echo "$ac_t""yes" 1>&6 |
---|
| 2289 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
---|
| 2290 | cat >> confdefs.h <<EOF |
---|
| 2291 | #define $ac_tr_func 1 |
---|
| 2292 | EOF |
---|
| 2293 | |
---|
| 2294 | else |
---|
| 2295 | echo "$ac_t""no" 1>&6 |
---|
| 2296 | fi |
---|
| 2297 | done |
---|
| 2298 | |
---|
| 2299 | |
---|
| 2300 | if test "$program_transform_name" = s,x,x,; then |
---|
| 2301 | program_transform_name= |
---|
| 2302 | else |
---|
| 2303 | # Double any \ or $. echo might interpret backslashes. |
---|
| 2304 | cat <<\EOF_SED > conftestsed |
---|
| 2305 | s,\\,\\\\,g; s,\$,$$,g |
---|
| 2306 | EOF_SED |
---|
| 2307 | program_transform_name="`echo $program_transform_name|sed -f conftestsed`" |
---|
| 2308 | rm -f conftestsed |
---|
| 2309 | fi |
---|
| 2310 | test "$program_prefix" != NONE && |
---|
| 2311 | program_transform_name="s,^,${program_prefix},; $program_transform_name" |
---|
| 2312 | # Use a double $ so make ignores it. |
---|
| 2313 | test "$program_suffix" != NONE && |
---|
| 2314 | program_transform_name="s,\$\$,${program_suffix},; $program_transform_name" |
---|
| 2315 | |
---|
| 2316 | # sed with no file args requires a program. |
---|
| 2317 | test "$program_transform_name" = "" && program_transform_name="s,x,x," |
---|
| 2318 | |
---|
| 2319 | trap '' 1 2 15 |
---|
| 2320 | cat > confcache <<\EOF |
---|
| 2321 | # This file is a shell script that caches the results of configure |
---|
| 2322 | # tests run on this system so they can be shared between configure |
---|
| 2323 | # scripts and configure runs. It is not useful on other systems. |
---|
| 2324 | # If it contains results you don't want to keep, you may remove or edit it. |
---|
| 2325 | # |
---|
| 2326 | # By default, configure uses ./config.cache as the cache file, |
---|
| 2327 | # creating it if it does not exist already. You can give configure |
---|
| 2328 | # the --cache-file=FILE option to use a different cache file; that is |
---|
| 2329 | # what configure does when it calls configure scripts in |
---|
| 2330 | # subdirectories, so they share the cache. |
---|
| 2331 | # Giving --cache-file=/dev/null disables caching, for debugging configure. |
---|
| 2332 | # config.status only pays attention to the cache file if you give it the |
---|
| 2333 | # --recheck option to rerun configure. |
---|
| 2334 | # |
---|
| 2335 | EOF |
---|
| 2336 | # The following way of writing the cache mishandles newlines in values, |
---|
| 2337 | # but we know of no workaround that is simple, portable, and efficient. |
---|
| 2338 | # So, don't put newlines in cache variables' values. |
---|
| 2339 | # Ultrix sh set writes to stderr and can't be redirected directly, |
---|
| 2340 | # and sets the high bit in the cache file unless we assign to the vars. |
---|
| 2341 | (set) 2>&1 | |
---|
| 2342 | case `(ac_space=' '; set) 2>&1` in |
---|
| 2343 | *ac_space=\ *) |
---|
| 2344 | # `set' does not quote correctly, so add quotes (double-quote substitution |
---|
| 2345 | # turns \\\\ into \\, and sed turns \\ into \). |
---|
| 2346 | sed -n \ |
---|
| 2347 | -e "s/'/'\\\\''/g" \ |
---|
| 2348 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" |
---|
| 2349 | ;; |
---|
| 2350 | *) |
---|
| 2351 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
---|
| 2352 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' |
---|
| 2353 | ;; |
---|
| 2354 | esac >> confcache |
---|
| 2355 | if cmp -s $cache_file confcache; then |
---|
| 2356 | : |
---|
| 2357 | else |
---|
| 2358 | if test -w $cache_file; then |
---|
| 2359 | echo "updating cache $cache_file" |
---|
| 2360 | cat confcache > $cache_file |
---|
| 2361 | else |
---|
| 2362 | echo "not updating unwritable cache $cache_file" |
---|
| 2363 | fi |
---|
| 2364 | fi |
---|
| 2365 | rm -f confcache |
---|
| 2366 | |
---|
| 2367 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
---|
| 2368 | |
---|
| 2369 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
---|
| 2370 | # Let make expand exec_prefix. |
---|
| 2371 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
---|
| 2372 | |
---|
| 2373 | # Any assignment to VPATH causes Sun make to only execute |
---|
| 2374 | # the first set of double-colon rules, so remove it if not needed. |
---|
| 2375 | # If there is a colon in the path, we need to keep it. |
---|
| 2376 | if test "x$srcdir" = x.; then |
---|
| 2377 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' |
---|
| 2378 | fi |
---|
| 2379 | |
---|
| 2380 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 |
---|
| 2381 | |
---|
| 2382 | DEFS=-DHAVE_CONFIG_H |
---|
| 2383 | |
---|
| 2384 | # Without the "./", some shells look in PATH for config.status. |
---|
| 2385 | : ${CONFIG_STATUS=./config.status} |
---|
| 2386 | |
---|
| 2387 | echo creating $CONFIG_STATUS |
---|
| 2388 | rm -f $CONFIG_STATUS |
---|
| 2389 | cat > $CONFIG_STATUS <<EOF |
---|
| 2390 | #! /bin/sh |
---|
| 2391 | # Generated automatically by configure. |
---|
| 2392 | # Run this file to recreate the current configuration. |
---|
| 2393 | # This directory was configured as follows, |
---|
| 2394 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
---|
| 2395 | # |
---|
| 2396 | # $0 $ac_configure_args |
---|
| 2397 | # |
---|
| 2398 | # Compiler output produced by configure, useful for debugging |
---|
| 2399 | # configure, is in ./config.log if it exists. |
---|
| 2400 | |
---|
| 2401 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" |
---|
| 2402 | for ac_option |
---|
| 2403 | do |
---|
| 2404 | case "\$ac_option" in |
---|
| 2405 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
---|
| 2406 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" |
---|
| 2407 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; |
---|
| 2408 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) |
---|
| 2409 | echo "$CONFIG_STATUS generated by autoconf version 2.12" |
---|
| 2410 | exit 0 ;; |
---|
| 2411 | -help | --help | --hel | --he | --h) |
---|
| 2412 | echo "\$ac_cs_usage"; exit 0 ;; |
---|
| 2413 | *) echo "\$ac_cs_usage"; exit 1 ;; |
---|
| 2414 | esac |
---|
| 2415 | done |
---|
| 2416 | |
---|
| 2417 | ac_given_srcdir=$srcdir |
---|
| 2418 | ac_given_INSTALL="$INSTALL" |
---|
| 2419 | |
---|
| 2420 | trap 'rm -fr `echo "Makefile djgpp/Makefile doc/Makefile lib/Makefile sed/Makefile testsuite/Makefile |
---|
| 2421 | config.h:config_h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 |
---|
| 2422 | EOF |
---|
| 2423 | cat >> $CONFIG_STATUS <<EOF |
---|
| 2424 | |
---|
| 2425 | # Protect against being on the right side of a sed subst in config.status. |
---|
| 2426 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; |
---|
| 2427 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF |
---|
| 2428 | $ac_vpsub |
---|
| 2429 | $extrasub |
---|
| 2430 | s%@CFLAGS@%$CFLAGS%g |
---|
| 2431 | s%@CPPFLAGS@%$CPPFLAGS%g |
---|
| 2432 | s%@CXXFLAGS@%$CXXFLAGS%g |
---|
| 2433 | s%@DEFS@%$DEFS%g |
---|
| 2434 | s%@LDFLAGS@%$LDFLAGS%g |
---|
| 2435 | s%@LIBS@%$LIBS%g |
---|
| 2436 | s%@exec_prefix@%$exec_prefix%g |
---|
| 2437 | s%@prefix@%$prefix%g |
---|
| 2438 | s%@program_transform_name@%$program_transform_name%g |
---|
| 2439 | s%@bindir@%$bindir%g |
---|
| 2440 | s%@sbindir@%$sbindir%g |
---|
| 2441 | s%@libexecdir@%$libexecdir%g |
---|
| 2442 | s%@datadir@%$datadir%g |
---|
| 2443 | s%@sysconfdir@%$sysconfdir%g |
---|
| 2444 | s%@sharedstatedir@%$sharedstatedir%g |
---|
| 2445 | s%@localstatedir@%$localstatedir%g |
---|
| 2446 | s%@libdir@%$libdir%g |
---|
| 2447 | s%@includedir@%$includedir%g |
---|
| 2448 | s%@oldincludedir@%$oldincludedir%g |
---|
| 2449 | s%@infodir@%$infodir%g |
---|
| 2450 | s%@mandir@%$mandir%g |
---|
| 2451 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g |
---|
| 2452 | s%@INSTALL_DATA@%$INSTALL_DATA%g |
---|
| 2453 | s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g |
---|
| 2454 | s%@PACKAGE@%$PACKAGE%g |
---|
| 2455 | s%@VERSION@%$VERSION%g |
---|
| 2456 | s%@ACLOCAL@%$ACLOCAL%g |
---|
| 2457 | s%@AUTOCONF@%$AUTOCONF%g |
---|
| 2458 | s%@AUTOMAKE@%$AUTOMAKE%g |
---|
| 2459 | s%@AUTOHEADER@%$AUTOHEADER%g |
---|
| 2460 | s%@MAKEINFO@%$MAKEINFO%g |
---|
| 2461 | s%@SET_MAKE@%$SET_MAKE%g |
---|
| 2462 | s%@CC@%$CC%g |
---|
| 2463 | s%@RANLIB@%$RANLIB%g |
---|
| 2464 | s%@CPP@%$CPP%g |
---|
| 2465 | s%@ALLOCA@%$ALLOCA%g |
---|
| 2466 | s%@LIBOBJS@%$LIBOBJS%g |
---|
| 2467 | |
---|
| 2468 | CEOF |
---|
| 2469 | EOF |
---|
| 2470 | |
---|
| 2471 | cat >> $CONFIG_STATUS <<\EOF |
---|
| 2472 | |
---|
| 2473 | # Split the substitutions into bite-sized pieces for seds with |
---|
| 2474 | # small command number limits, like on Digital OSF/1 and HP-UX. |
---|
| 2475 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. |
---|
| 2476 | ac_file=1 # Number of current file. |
---|
| 2477 | ac_beg=1 # First line for current file. |
---|
| 2478 | ac_end=$ac_max_sed_cmds # Line after last line for current file. |
---|
| 2479 | ac_more_lines=: |
---|
| 2480 | ac_sed_cmds="" |
---|
| 2481 | while $ac_more_lines; do |
---|
| 2482 | if test $ac_beg -gt 1; then |
---|
| 2483 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file |
---|
| 2484 | else |
---|
| 2485 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file |
---|
| 2486 | fi |
---|
| 2487 | if test ! -s conftest.s$ac_file; then |
---|
| 2488 | ac_more_lines=false |
---|
| 2489 | rm -f conftest.s$ac_file |
---|
| 2490 | else |
---|
| 2491 | if test -z "$ac_sed_cmds"; then |
---|
| 2492 | ac_sed_cmds="sed -f conftest.s$ac_file" |
---|
| 2493 | else |
---|
| 2494 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" |
---|
| 2495 | fi |
---|
| 2496 | ac_file=`expr $ac_file + 1` |
---|
| 2497 | ac_beg=$ac_end |
---|
| 2498 | ac_end=`expr $ac_end + $ac_max_sed_cmds` |
---|
| 2499 | fi |
---|
| 2500 | done |
---|
| 2501 | if test -z "$ac_sed_cmds"; then |
---|
| 2502 | ac_sed_cmds=cat |
---|
| 2503 | fi |
---|
| 2504 | EOF |
---|
| 2505 | |
---|
| 2506 | cat >> $CONFIG_STATUS <<EOF |
---|
| 2507 | |
---|
| 2508 | CONFIG_FILES=\${CONFIG_FILES-"Makefile djgpp/Makefile doc/Makefile lib/Makefile sed/Makefile testsuite/Makefile |
---|
| 2509 | "} |
---|
| 2510 | EOF |
---|
| 2511 | cat >> $CONFIG_STATUS <<\EOF |
---|
| 2512 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then |
---|
| 2513 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
---|
| 2514 | case "$ac_file" in |
---|
| 2515 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` |
---|
| 2516 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
---|
| 2517 | *) ac_file_in="${ac_file}.in" ;; |
---|
| 2518 | esac |
---|
| 2519 | |
---|
| 2520 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. |
---|
| 2521 | |
---|
| 2522 | # Remove last slash and all that follows it. Not all systems have dirname. |
---|
| 2523 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` |
---|
| 2524 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
---|
| 2525 | # The file is in a subdirectory. |
---|
| 2526 | test ! -d "$ac_dir" && mkdir "$ac_dir" |
---|
| 2527 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" |
---|
| 2528 | # A "../" for each directory in $ac_dir_suffix. |
---|
| 2529 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` |
---|
| 2530 | else |
---|
| 2531 | ac_dir_suffix= ac_dots= |
---|
| 2532 | fi |
---|
| 2533 | |
---|
| 2534 | case "$ac_given_srcdir" in |
---|
| 2535 | .) srcdir=. |
---|
| 2536 | if test -z "$ac_dots"; then top_srcdir=. |
---|
| 2537 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; |
---|
| 2538 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; |
---|
| 2539 | *) # Relative path. |
---|
| 2540 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" |
---|
| 2541 | top_srcdir="$ac_dots$ac_given_srcdir" ;; |
---|
| 2542 | esac |
---|
| 2543 | |
---|
| 2544 | case "$ac_given_INSTALL" in |
---|
| 2545 | [/$]*) INSTALL="$ac_given_INSTALL" ;; |
---|
| 2546 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; |
---|
| 2547 | esac |
---|
| 2548 | |
---|
| 2549 | echo creating "$ac_file" |
---|
| 2550 | rm -f "$ac_file" |
---|
| 2551 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." |
---|
| 2552 | case "$ac_file" in |
---|
| 2553 | *Makefile*) ac_comsub="1i\\ |
---|
| 2554 | # $configure_input" ;; |
---|
| 2555 | *) ac_comsub= ;; |
---|
| 2556 | esac |
---|
| 2557 | |
---|
| 2558 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` |
---|
| 2559 | sed -e "$ac_comsub |
---|
| 2560 | s%@configure_input@%$configure_input%g |
---|
| 2561 | s%@srcdir@%$srcdir%g |
---|
| 2562 | s%@top_srcdir@%$top_srcdir%g |
---|
| 2563 | s%@INSTALL@%$INSTALL%g |
---|
| 2564 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file |
---|
| 2565 | fi; done |
---|
| 2566 | rm -f conftest.s* |
---|
| 2567 | |
---|
| 2568 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
---|
| 2569 | # NAME is the cpp macro being defined and VALUE is the value it is being given. |
---|
| 2570 | # |
---|
| 2571 | # ac_d sets the value in "#define NAME VALUE" lines. |
---|
| 2572 | ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
---|
| 2573 | ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' |
---|
| 2574 | ac_dC='\3' |
---|
| 2575 | ac_dD='%g' |
---|
| 2576 | # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". |
---|
| 2577 | ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
---|
| 2578 | ac_uB='\([ ]\)%\1#\2define\3' |
---|
| 2579 | ac_uC=' ' |
---|
| 2580 | ac_uD='\4%g' |
---|
| 2581 | # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
---|
| 2582 | ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
---|
| 2583 | ac_eB='$%\1#\2define\3' |
---|
| 2584 | ac_eC=' ' |
---|
| 2585 | ac_eD='%g' |
---|
| 2586 | |
---|
| 2587 | if test "${CONFIG_HEADERS+set}" != set; then |
---|
| 2588 | EOF |
---|
| 2589 | cat >> $CONFIG_STATUS <<EOF |
---|
| 2590 | CONFIG_HEADERS="config.h:config_h.in" |
---|
| 2591 | EOF |
---|
| 2592 | cat >> $CONFIG_STATUS <<\EOF |
---|
| 2593 | fi |
---|
| 2594 | for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then |
---|
| 2595 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
---|
| 2596 | case "$ac_file" in |
---|
| 2597 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` |
---|
| 2598 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
---|
| 2599 | *) ac_file_in="${ac_file}.in" ;; |
---|
| 2600 | esac |
---|
| 2601 | |
---|
| 2602 | echo creating $ac_file |
---|
| 2603 | |
---|
| 2604 | rm -f conftest.frag conftest.in conftest.out |
---|
| 2605 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` |
---|
| 2606 | cat $ac_file_inputs > conftest.in |
---|
| 2607 | |
---|
| 2608 | EOF |
---|
| 2609 | |
---|
| 2610 | # Transform confdefs.h into a sed script conftest.vals that substitutes |
---|
| 2611 | # the proper values into config.h.in to produce config.h. And first: |
---|
| 2612 | # Protect against being on the right side of a sed subst in config.status. |
---|
| 2613 | # Protect against being in an unquoted here document in config.status. |
---|
| 2614 | rm -f conftest.vals |
---|
| 2615 | cat > conftest.hdr <<\EOF |
---|
| 2616 | s/[\\&%]/\\&/g |
---|
| 2617 | s%[\\$`]%\\&%g |
---|
| 2618 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp |
---|
| 2619 | s%ac_d%ac_u%gp |
---|
| 2620 | s%ac_u%ac_e%gp |
---|
| 2621 | EOF |
---|
| 2622 | sed -n -f conftest.hdr confdefs.h > conftest.vals |
---|
| 2623 | rm -f conftest.hdr |
---|
| 2624 | |
---|
| 2625 | # This sed command replaces #undef with comments. This is necessary, for |
---|
| 2626 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
---|
| 2627 | # on some systems where configure will not decide to define it. |
---|
| 2628 | cat >> conftest.vals <<\EOF |
---|
| 2629 | s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% |
---|
| 2630 | EOF |
---|
| 2631 | |
---|
| 2632 | # Break up conftest.vals because some shells have a limit on |
---|
| 2633 | # the size of here documents, and old seds have small limits too. |
---|
| 2634 | |
---|
| 2635 | rm -f conftest.tail |
---|
| 2636 | while : |
---|
| 2637 | do |
---|
| 2638 | ac_lines=`grep -c . conftest.vals` |
---|
| 2639 | # grep -c gives empty output for an empty file on some AIX systems. |
---|
| 2640 | if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi |
---|
| 2641 | # Write a limited-size here document to conftest.frag. |
---|
| 2642 | echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS |
---|
| 2643 | sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS |
---|
| 2644 | echo 'CEOF |
---|
| 2645 | sed -f conftest.frag conftest.in > conftest.out |
---|
| 2646 | rm -f conftest.in |
---|
| 2647 | mv conftest.out conftest.in |
---|
| 2648 | ' >> $CONFIG_STATUS |
---|
| 2649 | sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail |
---|
| 2650 | rm -f conftest.vals |
---|
| 2651 | mv conftest.tail conftest.vals |
---|
| 2652 | done |
---|
| 2653 | rm -f conftest.vals |
---|
| 2654 | |
---|
| 2655 | cat >> $CONFIG_STATUS <<\EOF |
---|
| 2656 | rm -f conftest.frag conftest.h |
---|
| 2657 | echo "/* $ac_file. Generated automatically by configure. */" > conftest.h |
---|
| 2658 | cat conftest.in >> conftest.h |
---|
| 2659 | rm -f conftest.in |
---|
| 2660 | if cmp -s $ac_file conftest.h 2>/dev/null; then |
---|
| 2661 | echo "$ac_file is unchanged" |
---|
| 2662 | rm -f conftest.h |
---|
| 2663 | else |
---|
| 2664 | # Remove last slash and all that follows it. Not all systems have dirname. |
---|
| 2665 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` |
---|
| 2666 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
---|
| 2667 | # The file is in a subdirectory. |
---|
| 2668 | test ! -d "$ac_dir" && mkdir "$ac_dir" |
---|
| 2669 | fi |
---|
| 2670 | rm -f $ac_file |
---|
| 2671 | mv conftest.h $ac_file |
---|
| 2672 | fi |
---|
| 2673 | fi; done |
---|
| 2674 | |
---|
| 2675 | EOF |
---|
| 2676 | cat >> $CONFIG_STATUS <<EOF |
---|
| 2677 | |
---|
| 2678 | |
---|
| 2679 | EOF |
---|
| 2680 | cat >> $CONFIG_STATUS <<\EOF |
---|
| 2681 | test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h |
---|
| 2682 | |
---|
| 2683 | exit 0 |
---|
| 2684 | EOF |
---|
| 2685 | chmod +x $CONFIG_STATUS |
---|
| 2686 | rm -fr confdefs* $ac_clean_files |
---|
| 2687 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 |
---|
| 2688 | |
---|