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