Constantin Kaplinsky | 13e9083 | 2006-05-30 06:08:20 +0000 | [diff] [blame^] | 1 | #! /bin/sh |
| 2 | |
| 3 | # Guess values for system-dependent variables and create Makefiles. |
| 4 | # Generated automatically using autoconf version 2.13 |
| 5 | # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. |
| 6 | # |
| 7 | # This configure script is free software; the Free Software Foundation |
| 8 | # gives unlimited permission to copy, distribute and modify it. |
| 9 | |
| 10 | # Defaults: |
| 11 | ac_help= |
| 12 | ac_default_prefix=/usr/local |
| 13 | # Any additions from configure.in: |
| 14 | ac_help="$ac_help |
| 15 | --with-x use the X Window System" |
| 16 | ac_help="$ac_help |
| 17 | --with-installed-zlib use the version of zlib which is installed on the |
| 18 | system instead of the one distributed with VNC" |
| 19 | ac_help="$ac_help |
| 20 | --with-installed-jpeg use the version of jpeg which is installed on the |
| 21 | system instead of the one distributed with VNC" |
| 22 | |
| 23 | # Initialize some variables set by options. |
| 24 | # The variables have the same names as the options, with |
| 25 | # dashes changed to underlines. |
| 26 | build=NONE |
| 27 | cache_file=./config.cache |
| 28 | exec_prefix=NONE |
| 29 | host=NONE |
| 30 | no_create= |
| 31 | nonopt=NONE |
| 32 | no_recursion= |
| 33 | prefix=NONE |
| 34 | program_prefix=NONE |
| 35 | program_suffix=NONE |
| 36 | program_transform_name=s,x,x, |
| 37 | silent= |
| 38 | site= |
| 39 | srcdir= |
| 40 | target=NONE |
| 41 | verbose= |
| 42 | x_includes=NONE |
| 43 | x_libraries=NONE |
| 44 | bindir='${exec_prefix}/bin' |
| 45 | sbindir='${exec_prefix}/sbin' |
| 46 | libexecdir='${exec_prefix}/libexec' |
| 47 | datadir='${prefix}/share' |
| 48 | sysconfdir='${prefix}/etc' |
| 49 | sharedstatedir='${prefix}/com' |
| 50 | localstatedir='${prefix}/var' |
| 51 | libdir='${exec_prefix}/lib' |
| 52 | includedir='${prefix}/include' |
| 53 | oldincludedir='/usr/include' |
| 54 | infodir='${prefix}/info' |
| 55 | mandir='${prefix}/man' |
| 56 | |
| 57 | # Initialize some other variables. |
| 58 | subdirs= |
| 59 | MFLAGS= MAKEFLAGS= |
| 60 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 61 | # Maximum number of lines to put in a shell here document. |
| 62 | ac_max_here_lines=12 |
| 63 | |
| 64 | ac_prev= |
| 65 | for ac_option |
| 66 | do |
| 67 | |
| 68 | # If the previous option needs an argument, assign it. |
| 69 | if test -n "$ac_prev"; then |
| 70 | eval "$ac_prev=\$ac_option" |
| 71 | ac_prev= |
| 72 | continue |
| 73 | fi |
| 74 | |
| 75 | case "$ac_option" in |
| 76 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; |
| 77 | *) ac_optarg= ;; |
| 78 | esac |
| 79 | |
| 80 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 81 | |
| 82 | case "$ac_option" in |
| 83 | |
| 84 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 85 | ac_prev=bindir ;; |
| 86 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 87 | bindir="$ac_optarg" ;; |
| 88 | |
| 89 | -build | --build | --buil | --bui | --bu) |
| 90 | ac_prev=build ;; |
| 91 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
| 92 | build="$ac_optarg" ;; |
| 93 | |
| 94 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 95 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 96 | ac_prev=cache_file ;; |
| 97 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 98 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 99 | cache_file="$ac_optarg" ;; |
| 100 | |
| 101 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
| 102 | ac_prev=datadir ;; |
| 103 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
| 104 | | --da=*) |
| 105 | datadir="$ac_optarg" ;; |
| 106 | |
| 107 | -disable-* | --disable-*) |
| 108 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` |
| 109 | # Reject names that are not valid shell variable names. |
| 110 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then |
| 111 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } |
| 112 | fi |
| 113 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` |
| 114 | eval "enable_${ac_feature}=no" ;; |
| 115 | |
| 116 | -enable-* | --enable-*) |
| 117 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` |
| 118 | # Reject names that are not valid shell variable names. |
| 119 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then |
| 120 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } |
| 121 | fi |
| 122 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` |
| 123 | case "$ac_option" in |
| 124 | *=*) ;; |
| 125 | *) ac_optarg=yes ;; |
| 126 | esac |
| 127 | eval "enable_${ac_feature}='$ac_optarg'" ;; |
| 128 | |
| 129 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 130 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 131 | | --exec | --exe | --ex) |
| 132 | ac_prev=exec_prefix ;; |
| 133 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 134 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 135 | | --exec=* | --exe=* | --ex=*) |
| 136 | exec_prefix="$ac_optarg" ;; |
| 137 | |
| 138 | -gas | --gas | --ga | --g) |
| 139 | # Obsolete; use --with-gas. |
| 140 | with_gas=yes ;; |
| 141 | |
| 142 | -help | --help | --hel | --he) |
| 143 | # Omit some internal or obsolete options to make the list less imposing. |
| 144 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 145 | cat << EOF |
| 146 | Usage: configure [options] [host] |
| 147 | Options: [defaults in brackets after descriptions] |
| 148 | Configuration: |
| 149 | --cache-file=FILE cache test results in FILE |
| 150 | --help print this message |
| 151 | --no-create do not create output files |
| 152 | --quiet, --silent do not print \`checking...' messages |
| 153 | --version print the version of autoconf that created configure |
| 154 | Directory and file names: |
| 155 | --prefix=PREFIX install architecture-independent files in PREFIX |
| 156 | [$ac_default_prefix] |
| 157 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
| 158 | [same as prefix] |
| 159 | --bindir=DIR user executables in DIR [EPREFIX/bin] |
| 160 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] |
| 161 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec] |
| 162 | --datadir=DIR read-only architecture-independent data in DIR |
| 163 | [PREFIX/share] |
| 164 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] |
| 165 | --sharedstatedir=DIR modifiable architecture-independent data in DIR |
| 166 | [PREFIX/com] |
| 167 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] |
| 168 | --libdir=DIR object code libraries in DIR [EPREFIX/lib] |
| 169 | --includedir=DIR C header files in DIR [PREFIX/include] |
| 170 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] |
| 171 | --infodir=DIR info documentation in DIR [PREFIX/info] |
| 172 | --mandir=DIR man documentation in DIR [PREFIX/man] |
| 173 | --srcdir=DIR find the sources in DIR [configure dir or ..] |
| 174 | --program-prefix=PREFIX prepend PREFIX to installed program names |
| 175 | --program-suffix=SUFFIX append SUFFIX to installed program names |
| 176 | --program-transform-name=PROGRAM |
| 177 | run sed PROGRAM on installed program names |
| 178 | EOF |
| 179 | cat << EOF |
| 180 | Host type: |
| 181 | --build=BUILD configure for building on BUILD [BUILD=HOST] |
| 182 | --host=HOST configure for HOST [guessed] |
| 183 | --target=TARGET configure for TARGET [TARGET=HOST] |
| 184 | Features and packages: |
| 185 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 186 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
| 187 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 188 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
| 189 | --x-includes=DIR X include files are in DIR |
| 190 | --x-libraries=DIR X library files are in DIR |
| 191 | EOF |
| 192 | if test -n "$ac_help"; then |
| 193 | echo "--enable and --with options recognized:$ac_help" |
| 194 | fi |
| 195 | exit 0 ;; |
| 196 | |
| 197 | -host | --host | --hos | --ho) |
| 198 | ac_prev=host ;; |
| 199 | -host=* | --host=* | --hos=* | --ho=*) |
| 200 | host="$ac_optarg" ;; |
| 201 | |
| 202 | -includedir | --includedir | --includedi | --included | --include \ |
| 203 | | --includ | --inclu | --incl | --inc) |
| 204 | ac_prev=includedir ;; |
| 205 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 206 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
| 207 | includedir="$ac_optarg" ;; |
| 208 | |
| 209 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 210 | ac_prev=infodir ;; |
| 211 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 212 | infodir="$ac_optarg" ;; |
| 213 | |
| 214 | -libdir | --libdir | --libdi | --libd) |
| 215 | ac_prev=libdir ;; |
| 216 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 217 | libdir="$ac_optarg" ;; |
| 218 | |
| 219 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 220 | | --libexe | --libex | --libe) |
| 221 | ac_prev=libexecdir ;; |
| 222 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 223 | | --libexe=* | --libex=* | --libe=*) |
| 224 | libexecdir="$ac_optarg" ;; |
| 225 | |
| 226 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
| 227 | | --localstate | --localstat | --localsta | --localst \ |
| 228 | | --locals | --local | --loca | --loc | --lo) |
| 229 | ac_prev=localstatedir ;; |
| 230 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
| 231 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
| 232 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
| 233 | localstatedir="$ac_optarg" ;; |
| 234 | |
| 235 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 236 | ac_prev=mandir ;; |
| 237 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 238 | mandir="$ac_optarg" ;; |
| 239 | |
| 240 | -nfp | --nfp | --nf) |
| 241 | # Obsolete; use --without-fp. |
| 242 | with_fp=no ;; |
| 243 | |
| 244 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 245 | | --no-cr | --no-c) |
| 246 | no_create=yes ;; |
| 247 | |
| 248 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 249 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 250 | no_recursion=yes ;; |
| 251 | |
| 252 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 253 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 254 | | --oldin | --oldi | --old | --ol | --o) |
| 255 | ac_prev=oldincludedir ;; |
| 256 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 257 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 258 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 259 | oldincludedir="$ac_optarg" ;; |
| 260 | |
| 261 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 262 | ac_prev=prefix ;; |
| 263 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 264 | prefix="$ac_optarg" ;; |
| 265 | |
| 266 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 267 | | --program-pre | --program-pr | --program-p) |
| 268 | ac_prev=program_prefix ;; |
| 269 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 270 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 271 | program_prefix="$ac_optarg" ;; |
| 272 | |
| 273 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 274 | | --program-suf | --program-su | --program-s) |
| 275 | ac_prev=program_suffix ;; |
| 276 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 277 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 278 | program_suffix="$ac_optarg" ;; |
| 279 | |
| 280 | -program-transform-name | --program-transform-name \ |
| 281 | | --program-transform-nam | --program-transform-na \ |
| 282 | | --program-transform-n | --program-transform- \ |
| 283 | | --program-transform | --program-transfor \ |
| 284 | | --program-transfo | --program-transf \ |
| 285 | | --program-trans | --program-tran \ |
| 286 | | --progr-tra | --program-tr | --program-t) |
| 287 | ac_prev=program_transform_name ;; |
| 288 | -program-transform-name=* | --program-transform-name=* \ |
| 289 | | --program-transform-nam=* | --program-transform-na=* \ |
| 290 | | --program-transform-n=* | --program-transform-=* \ |
| 291 | | --program-transform=* | --program-transfor=* \ |
| 292 | | --program-transfo=* | --program-transf=* \ |
| 293 | | --program-trans=* | --program-tran=* \ |
| 294 | | --progr-tra=* | --program-tr=* | --program-t=*) |
| 295 | program_transform_name="$ac_optarg" ;; |
| 296 | |
| 297 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 298 | | -silent | --silent | --silen | --sile | --sil) |
| 299 | silent=yes ;; |
| 300 | |
| 301 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 302 | ac_prev=sbindir ;; |
| 303 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 304 | | --sbi=* | --sb=*) |
| 305 | sbindir="$ac_optarg" ;; |
| 306 | |
| 307 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 308 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 309 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 310 | | --sha | --sh) |
| 311 | ac_prev=sharedstatedir ;; |
| 312 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 313 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 314 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 315 | | --sha=* | --sh=*) |
| 316 | sharedstatedir="$ac_optarg" ;; |
| 317 | |
| 318 | -site | --site | --sit) |
| 319 | ac_prev=site ;; |
| 320 | -site=* | --site=* | --sit=*) |
| 321 | site="$ac_optarg" ;; |
| 322 | |
| 323 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 324 | ac_prev=srcdir ;; |
| 325 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 326 | srcdir="$ac_optarg" ;; |
| 327 | |
| 328 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 329 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 330 | ac_prev=sysconfdir ;; |
| 331 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 332 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 333 | sysconfdir="$ac_optarg" ;; |
| 334 | |
| 335 | -target | --target | --targe | --targ | --tar | --ta | --t) |
| 336 | ac_prev=target ;; |
| 337 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 338 | target="$ac_optarg" ;; |
| 339 | |
| 340 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 341 | verbose=yes ;; |
| 342 | |
| 343 | -version | --version | --versio | --versi | --vers) |
| 344 | echo "configure generated by autoconf version 2.13" |
| 345 | exit 0 ;; |
| 346 | |
| 347 | -with-* | --with-*) |
| 348 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` |
| 349 | # Reject names that are not valid shell variable names. |
| 350 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then |
| 351 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } |
| 352 | fi |
| 353 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
| 354 | case "$ac_option" in |
| 355 | *=*) ;; |
| 356 | *) ac_optarg=yes ;; |
| 357 | esac |
| 358 | eval "with_${ac_package}='$ac_optarg'" ;; |
| 359 | |
| 360 | -without-* | --without-*) |
| 361 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` |
| 362 | # Reject names that are not valid shell variable names. |
| 363 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then |
| 364 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } |
| 365 | fi |
| 366 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
| 367 | eval "with_${ac_package}=no" ;; |
| 368 | |
| 369 | --x) |
| 370 | # Obsolete; use --with-x. |
| 371 | with_x=yes ;; |
| 372 | |
| 373 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 374 | | --x-incl | --x-inc | --x-in | --x-i) |
| 375 | ac_prev=x_includes ;; |
| 376 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 377 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 378 | x_includes="$ac_optarg" ;; |
| 379 | |
| 380 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 381 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 382 | ac_prev=x_libraries ;; |
| 383 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 384 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 385 | x_libraries="$ac_optarg" ;; |
| 386 | |
| 387 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } |
| 388 | ;; |
| 389 | |
| 390 | *) |
| 391 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then |
| 392 | echo "configure: warning: $ac_option: invalid host type" 1>&2 |
| 393 | fi |
| 394 | if test "x$nonopt" != xNONE; then |
| 395 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } |
| 396 | fi |
| 397 | nonopt="$ac_option" |
| 398 | ;; |
| 399 | |
| 400 | esac |
| 401 | done |
| 402 | |
| 403 | if test -n "$ac_prev"; then |
| 404 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } |
| 405 | fi |
| 406 | |
| 407 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
| 408 | |
| 409 | # File descriptor usage: |
| 410 | # 0 standard input |
| 411 | # 1 file creation |
| 412 | # 2 errors and warnings |
| 413 | # 3 some systems may open it to /dev/tty |
| 414 | # 4 used on the Kubota Titan |
| 415 | # 6 checking for... messages and results |
| 416 | # 5 compiler messages saved in config.log |
| 417 | if test "$silent" = yes; then |
| 418 | exec 6>/dev/null |
| 419 | else |
| 420 | exec 6>&1 |
| 421 | fi |
| 422 | exec 5>./config.log |
| 423 | |
| 424 | echo "\ |
| 425 | This file contains any messages produced by compilers while |
| 426 | running configure, to aid debugging if configure makes a mistake. |
| 427 | " 1>&5 |
| 428 | |
| 429 | # Strip out --no-create and --no-recursion so they do not pile up. |
| 430 | # Also quote any args containing shell metacharacters. |
| 431 | ac_configure_args= |
| 432 | for ac_arg |
| 433 | do |
| 434 | case "$ac_arg" in |
| 435 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 436 | | --no-cr | --no-c) ;; |
| 437 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 438 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; |
| 439 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) |
| 440 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
| 441 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; |
| 442 | esac |
| 443 | done |
| 444 | |
| 445 | # NLS nuisances. |
| 446 | # Only set these to C if already set. These must not be set unconditionally |
| 447 | # because not all systems understand e.g. LANG=C (notably SCO). |
| 448 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! |
| 449 | # Non-C LC_CTYPE values break the ctype check. |
| 450 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi |
| 451 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi |
| 452 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi |
| 453 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi |
| 454 | |
| 455 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
| 456 | rm -rf conftest* confdefs.h |
| 457 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
| 458 | echo > confdefs.h |
| 459 | |
| 460 | # A filename unique to this package, relative to the directory that |
| 461 | # configure is in, which we can look for to find out if srcdir is correct. |
| 462 | ac_unique_file=rdr/InStream.h |
| 463 | |
| 464 | # Find the source files, if location was not specified. |
| 465 | if test -z "$srcdir"; then |
| 466 | ac_srcdir_defaulted=yes |
| 467 | # Try the directory containing this script, then its parent. |
| 468 | ac_prog=$0 |
| 469 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` |
| 470 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. |
| 471 | srcdir=$ac_confdir |
| 472 | if test ! -r $srcdir/$ac_unique_file; then |
| 473 | srcdir=.. |
| 474 | fi |
| 475 | else |
| 476 | ac_srcdir_defaulted=no |
| 477 | fi |
| 478 | if test ! -r $srcdir/$ac_unique_file; then |
| 479 | if test "$ac_srcdir_defaulted" = yes; then |
| 480 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } |
| 481 | else |
| 482 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } |
| 483 | fi |
| 484 | fi |
| 485 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` |
| 486 | |
| 487 | # Prefer explicitly selected file to automatically selected ones. |
| 488 | if test -z "$CONFIG_SITE"; then |
| 489 | if test "x$prefix" != xNONE; then |
| 490 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
| 491 | else |
| 492 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
| 493 | fi |
| 494 | fi |
| 495 | for ac_site_file in $CONFIG_SITE; do |
| 496 | if test -r "$ac_site_file"; then |
| 497 | echo "loading site script $ac_site_file" |
| 498 | . "$ac_site_file" |
| 499 | fi |
| 500 | done |
| 501 | |
| 502 | if test -r "$cache_file"; then |
| 503 | echo "loading cache $cache_file" |
| 504 | . $cache_file |
| 505 | else |
| 506 | echo "creating cache $cache_file" |
| 507 | > $cache_file |
| 508 | fi |
| 509 | |
| 510 | ac_ext=c |
| 511 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
| 512 | ac_cpp='$CPP $CPPFLAGS' |
| 513 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
| 514 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
| 515 | cross_compiling=$ac_cv_prog_cc_cross |
| 516 | |
| 517 | ac_exeext= |
| 518 | ac_objext=o |
| 519 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then |
| 520 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. |
| 521 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then |
| 522 | ac_n= ac_c=' |
| 523 | ' ac_t=' ' |
| 524 | else |
| 525 | ac_n=-n ac_c= ac_t= |
| 526 | fi |
| 527 | else |
| 528 | ac_n= ac_c='\c' ac_t= |
| 529 | fi |
| 530 | |
| 531 | |
| 532 | |
| 533 | ac_cv_prog_cc_g=no |
| 534 | ac_cv_prog_cxx_g=no |
| 535 | |
| 536 | # Extract the first word of "gcc", so it can be a program name with args. |
| 537 | set dummy gcc; ac_word=$2 |
| 538 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| 539 | echo "configure:540: checking for $ac_word" >&5 |
| 540 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
| 541 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 542 | else |
| 543 | if test -n "$CC"; then |
| 544 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 545 | else |
| 546 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 547 | ac_dummy="$PATH" |
| 548 | for ac_dir in $ac_dummy; do |
| 549 | test -z "$ac_dir" && ac_dir=. |
| 550 | if test -f $ac_dir/$ac_word; then |
| 551 | ac_cv_prog_CC="gcc" |
| 552 | break |
| 553 | fi |
| 554 | done |
| 555 | IFS="$ac_save_ifs" |
| 556 | fi |
| 557 | fi |
| 558 | CC="$ac_cv_prog_CC" |
| 559 | if test -n "$CC"; then |
| 560 | echo "$ac_t""$CC" 1>&6 |
| 561 | else |
| 562 | echo "$ac_t""no" 1>&6 |
| 563 | fi |
| 564 | |
| 565 | if test -z "$CC"; then |
| 566 | # Extract the first word of "cc", so it can be a program name with args. |
| 567 | set dummy cc; ac_word=$2 |
| 568 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| 569 | echo "configure:570: checking for $ac_word" >&5 |
| 570 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
| 571 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 572 | else |
| 573 | if test -n "$CC"; then |
| 574 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 575 | else |
| 576 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 577 | ac_prog_rejected=no |
| 578 | ac_dummy="$PATH" |
| 579 | for ac_dir in $ac_dummy; do |
| 580 | test -z "$ac_dir" && ac_dir=. |
| 581 | if test -f $ac_dir/$ac_word; then |
| 582 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then |
| 583 | ac_prog_rejected=yes |
| 584 | continue |
| 585 | fi |
| 586 | ac_cv_prog_CC="cc" |
| 587 | break |
| 588 | fi |
| 589 | done |
| 590 | IFS="$ac_save_ifs" |
| 591 | if test $ac_prog_rejected = yes; then |
| 592 | # We found a bogon in the path, so make sure we never use it. |
| 593 | set dummy $ac_cv_prog_CC |
| 594 | shift |
| 595 | if test $# -gt 0; then |
| 596 | # We chose a different compiler from the bogus one. |
| 597 | # However, it has the same basename, so the bogon will be chosen |
| 598 | # first if we set CC to just the basename; use the full file name. |
| 599 | shift |
| 600 | set dummy "$ac_dir/$ac_word" "$@" |
| 601 | shift |
| 602 | ac_cv_prog_CC="$@" |
| 603 | fi |
| 604 | fi |
| 605 | fi |
| 606 | fi |
| 607 | CC="$ac_cv_prog_CC" |
| 608 | if test -n "$CC"; then |
| 609 | echo "$ac_t""$CC" 1>&6 |
| 610 | else |
| 611 | echo "$ac_t""no" 1>&6 |
| 612 | fi |
| 613 | |
| 614 | if test -z "$CC"; then |
| 615 | case "`uname -s`" in |
| 616 | *win32* | *WIN32*) |
| 617 | # Extract the first word of "cl", so it can be a program name with args. |
| 618 | set dummy cl; ac_word=$2 |
| 619 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| 620 | echo "configure:621: checking for $ac_word" >&5 |
| 621 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
| 622 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 623 | else |
| 624 | if test -n "$CC"; then |
| 625 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 626 | else |
| 627 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 628 | ac_dummy="$PATH" |
| 629 | for ac_dir in $ac_dummy; do |
| 630 | test -z "$ac_dir" && ac_dir=. |
| 631 | if test -f $ac_dir/$ac_word; then |
| 632 | ac_cv_prog_CC="cl" |
| 633 | break |
| 634 | fi |
| 635 | done |
| 636 | IFS="$ac_save_ifs" |
| 637 | fi |
| 638 | fi |
| 639 | CC="$ac_cv_prog_CC" |
| 640 | if test -n "$CC"; then |
| 641 | echo "$ac_t""$CC" 1>&6 |
| 642 | else |
| 643 | echo "$ac_t""no" 1>&6 |
| 644 | fi |
| 645 | ;; |
| 646 | esac |
| 647 | fi |
| 648 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } |
| 649 | fi |
| 650 | |
| 651 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
| 652 | echo "configure:653: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
| 653 | |
| 654 | ac_ext=c |
| 655 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
| 656 | ac_cpp='$CPP $CPPFLAGS' |
| 657 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
| 658 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
| 659 | cross_compiling=$ac_cv_prog_cc_cross |
| 660 | |
| 661 | cat > conftest.$ac_ext << EOF |
| 662 | |
| 663 | #line 664 "configure" |
| 664 | #include "confdefs.h" |
| 665 | |
| 666 | main(){return(0);} |
| 667 | EOF |
| 668 | if { (eval echo configure:669: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 669 | ac_cv_prog_cc_works=yes |
| 670 | # If we can't run a trivial program, we are probably using a cross compiler. |
| 671 | if (./conftest; exit) 2>/dev/null; then |
| 672 | ac_cv_prog_cc_cross=no |
| 673 | else |
| 674 | ac_cv_prog_cc_cross=yes |
| 675 | fi |
| 676 | else |
| 677 | echo "configure: failed program was:" >&5 |
| 678 | cat conftest.$ac_ext >&5 |
| 679 | ac_cv_prog_cc_works=no |
| 680 | fi |
| 681 | rm -fr conftest* |
| 682 | ac_ext=c |
| 683 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
| 684 | ac_cpp='$CPP $CPPFLAGS' |
| 685 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
| 686 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
| 687 | cross_compiling=$ac_cv_prog_cc_cross |
| 688 | |
| 689 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 |
| 690 | if test $ac_cv_prog_cc_works = no; then |
| 691 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } |
| 692 | fi |
| 693 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 |
| 694 | echo "configure:695: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
| 695 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
| 696 | cross_compiling=$ac_cv_prog_cc_cross |
| 697 | |
| 698 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 |
| 699 | echo "configure:700: checking whether we are using GNU C" >&5 |
| 700 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
| 701 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 702 | else |
| 703 | cat > conftest.c <<EOF |
| 704 | #ifdef __GNUC__ |
| 705 | yes; |
| 706 | #endif |
| 707 | EOF |
| 708 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:709: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
| 709 | ac_cv_prog_gcc=yes |
| 710 | else |
| 711 | ac_cv_prog_gcc=no |
| 712 | fi |
| 713 | fi |
| 714 | |
| 715 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 |
| 716 | |
| 717 | if test $ac_cv_prog_gcc = yes; then |
| 718 | GCC=yes |
| 719 | else |
| 720 | GCC= |
| 721 | fi |
| 722 | |
| 723 | ac_test_CFLAGS="${CFLAGS+set}" |
| 724 | ac_save_CFLAGS="$CFLAGS" |
| 725 | CFLAGS= |
| 726 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 |
| 727 | echo "configure:728: checking whether ${CC-cc} accepts -g" >&5 |
| 728 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
| 729 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 730 | else |
| 731 | echo 'void f(){}' > conftest.c |
| 732 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then |
| 733 | ac_cv_prog_cc_g=yes |
| 734 | else |
| 735 | ac_cv_prog_cc_g=no |
| 736 | fi |
| 737 | rm -f conftest* |
| 738 | |
| 739 | fi |
| 740 | |
| 741 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 |
| 742 | if test "$ac_test_CFLAGS" = set; then |
| 743 | CFLAGS="$ac_save_CFLAGS" |
| 744 | elif test $ac_cv_prog_cc_g = yes; then |
| 745 | if test "$GCC" = yes; then |
| 746 | CFLAGS="-g -O2" |
| 747 | else |
| 748 | CFLAGS="-g" |
| 749 | fi |
| 750 | else |
| 751 | if test "$GCC" = yes; then |
| 752 | CFLAGS="-O2" |
| 753 | else |
| 754 | CFLAGS= |
| 755 | fi |
| 756 | fi |
| 757 | |
| 758 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl |
| 759 | do |
| 760 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 761 | set dummy $ac_prog; ac_word=$2 |
| 762 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| 763 | echo "configure:764: checking for $ac_word" >&5 |
| 764 | if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then |
| 765 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 766 | else |
| 767 | if test -n "$CXX"; then |
| 768 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 769 | else |
| 770 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 771 | ac_dummy="$PATH" |
| 772 | for ac_dir in $ac_dummy; do |
| 773 | test -z "$ac_dir" && ac_dir=. |
| 774 | if test -f $ac_dir/$ac_word; then |
| 775 | ac_cv_prog_CXX="$ac_prog" |
| 776 | break |
| 777 | fi |
| 778 | done |
| 779 | IFS="$ac_save_ifs" |
| 780 | fi |
| 781 | fi |
| 782 | CXX="$ac_cv_prog_CXX" |
| 783 | if test -n "$CXX"; then |
| 784 | echo "$ac_t""$CXX" 1>&6 |
| 785 | else |
| 786 | echo "$ac_t""no" 1>&6 |
| 787 | fi |
| 788 | |
| 789 | test -n "$CXX" && break |
| 790 | done |
| 791 | test -n "$CXX" || CXX="gcc" |
| 792 | |
| 793 | |
| 794 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
| 795 | echo "configure:796: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5 |
| 796 | |
| 797 | ac_ext=C |
| 798 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
| 799 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 800 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
| 801 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
| 802 | cross_compiling=$ac_cv_prog_cxx_cross |
| 803 | |
| 804 | cat > conftest.$ac_ext << EOF |
| 805 | |
| 806 | #line 807 "configure" |
| 807 | #include "confdefs.h" |
| 808 | |
| 809 | int main(){return(0);} |
| 810 | EOF |
| 811 | if { (eval echo configure:812: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 812 | ac_cv_prog_cxx_works=yes |
| 813 | # If we can't run a trivial program, we are probably using a cross compiler. |
| 814 | if (./conftest; exit) 2>/dev/null; then |
| 815 | ac_cv_prog_cxx_cross=no |
| 816 | else |
| 817 | ac_cv_prog_cxx_cross=yes |
| 818 | fi |
| 819 | else |
| 820 | echo "configure: failed program was:" >&5 |
| 821 | cat conftest.$ac_ext >&5 |
| 822 | ac_cv_prog_cxx_works=no |
| 823 | fi |
| 824 | rm -fr conftest* |
| 825 | ac_ext=c |
| 826 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
| 827 | ac_cpp='$CPP $CPPFLAGS' |
| 828 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
| 829 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
| 830 | cross_compiling=$ac_cv_prog_cc_cross |
| 831 | |
| 832 | echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6 |
| 833 | if test $ac_cv_prog_cxx_works = no; then |
| 834 | { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; } |
| 835 | fi |
| 836 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 |
| 837 | echo "configure:838: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5 |
| 838 | echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6 |
| 839 | cross_compiling=$ac_cv_prog_cxx_cross |
| 840 | |
| 841 | echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6 |
| 842 | echo "configure:843: checking whether we are using GNU C++" >&5 |
| 843 | if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then |
| 844 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 845 | else |
| 846 | cat > conftest.C <<EOF |
| 847 | #ifdef __GNUC__ |
| 848 | yes; |
| 849 | #endif |
| 850 | EOF |
| 851 | if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:852: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
| 852 | ac_cv_prog_gxx=yes |
| 853 | else |
| 854 | ac_cv_prog_gxx=no |
| 855 | fi |
| 856 | fi |
| 857 | |
| 858 | echo "$ac_t""$ac_cv_prog_gxx" 1>&6 |
| 859 | |
| 860 | if test $ac_cv_prog_gxx = yes; then |
| 861 | GXX=yes |
| 862 | else |
| 863 | GXX= |
| 864 | fi |
| 865 | |
| 866 | ac_test_CXXFLAGS="${CXXFLAGS+set}" |
| 867 | ac_save_CXXFLAGS="$CXXFLAGS" |
| 868 | CXXFLAGS= |
| 869 | echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6 |
| 870 | echo "configure:871: checking whether ${CXX-g++} accepts -g" >&5 |
| 871 | if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then |
| 872 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 873 | else |
| 874 | echo 'void f(){}' > conftest.cc |
| 875 | if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then |
| 876 | ac_cv_prog_cxx_g=yes |
| 877 | else |
| 878 | ac_cv_prog_cxx_g=no |
| 879 | fi |
| 880 | rm -f conftest* |
| 881 | |
| 882 | fi |
| 883 | |
| 884 | echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6 |
| 885 | if test "$ac_test_CXXFLAGS" = set; then |
| 886 | CXXFLAGS="$ac_save_CXXFLAGS" |
| 887 | elif test $ac_cv_prog_cxx_g = yes; then |
| 888 | if test "$GXX" = yes; then |
| 889 | CXXFLAGS="-g -O2" |
| 890 | else |
| 891 | CXXFLAGS="-g" |
| 892 | fi |
| 893 | else |
| 894 | if test "$GXX" = yes; then |
| 895 | CXXFLAGS="-O2" |
| 896 | else |
| 897 | CXXFLAGS= |
| 898 | fi |
| 899 | fi |
| 900 | |
| 901 | for ac_declaration in \ |
| 902 | ''\ |
| 903 | '#include <stdlib.h>' \ |
| 904 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
| 905 | 'extern "C" void std::exit (int); using std::exit;' \ |
| 906 | 'extern "C" void exit (int) throw ();' \ |
| 907 | 'extern "C" void exit (int);' \ |
| 908 | 'void exit (int);' |
| 909 | do |
| 910 | cat > conftest.$ac_ext <<EOF |
| 911 | #line 912 "configure" |
| 912 | #include "confdefs.h" |
| 913 | #include <stdlib.h> |
| 914 | $ac_declaration |
| 915 | int main() { |
| 916 | exit (42); |
| 917 | ; return 0; } |
| 918 | EOF |
| 919 | if { (eval echo configure:920: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| 920 | : |
| 921 | else |
| 922 | echo "configure: failed program was:" >&5 |
| 923 | cat conftest.$ac_ext >&5 |
| 924 | rm -rf conftest* |
| 925 | continue |
| 926 | fi |
| 927 | rm -f conftest* |
| 928 | cat > conftest.$ac_ext <<EOF |
| 929 | #line 930 "configure" |
| 930 | #include "confdefs.h" |
| 931 | $ac_declaration |
| 932 | int main() { |
| 933 | exit (42); |
| 934 | ; return 0; } |
| 935 | EOF |
| 936 | if { (eval echo configure:937: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| 937 | rm -rf conftest* |
| 938 | break |
| 939 | else |
| 940 | echo "configure: failed program was:" >&5 |
| 941 | cat conftest.$ac_ext >&5 |
| 942 | fi |
| 943 | rm -f conftest* |
| 944 | done |
| 945 | if test -n "$ac_declaration"; then |
| 946 | echo '#ifdef __cplusplus' >>confdefs.h |
| 947 | echo $ac_declaration >>confdefs.h |
| 948 | echo '#endif' >>confdefs.h |
| 949 | fi |
| 950 | |
| 951 | |
| 952 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 953 | set dummy ranlib; ac_word=$2 |
| 954 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| 955 | echo "configure:956: checking for $ac_word" >&5 |
| 956 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
| 957 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 958 | else |
| 959 | if test -n "$RANLIB"; then |
| 960 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 961 | else |
| 962 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 963 | ac_dummy="$PATH" |
| 964 | for ac_dir in $ac_dummy; do |
| 965 | test -z "$ac_dir" && ac_dir=. |
| 966 | if test -f $ac_dir/$ac_word; then |
| 967 | ac_cv_prog_RANLIB="ranlib" |
| 968 | break |
| 969 | fi |
| 970 | done |
| 971 | IFS="$ac_save_ifs" |
| 972 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" |
| 973 | fi |
| 974 | fi |
| 975 | RANLIB="$ac_cv_prog_RANLIB" |
| 976 | if test -n "$RANLIB"; then |
| 977 | echo "$ac_t""$RANLIB" 1>&6 |
| 978 | else |
| 979 | echo "$ac_t""no" 1>&6 |
| 980 | fi |
| 981 | |
| 982 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 |
| 983 | echo "configure:984: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
| 984 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` |
| 985 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then |
| 986 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 987 | else |
| 988 | cat > conftestmake <<\EOF |
| 989 | all: |
| 990 | @echo 'ac_maketemp="${MAKE}"' |
| 991 | EOF |
| 992 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
| 993 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` |
| 994 | if test -n "$ac_maketemp"; then |
| 995 | eval ac_cv_prog_make_${ac_make}_set=yes |
| 996 | else |
| 997 | eval ac_cv_prog_make_${ac_make}_set=no |
| 998 | fi |
| 999 | rm -f conftestmake |
| 1000 | fi |
| 1001 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
| 1002 | echo "$ac_t""yes" 1>&6 |
| 1003 | SET_MAKE= |
| 1004 | else |
| 1005 | echo "$ac_t""no" 1>&6 |
| 1006 | SET_MAKE="MAKE=${MAKE-make}" |
| 1007 | fi |
| 1008 | |
| 1009 | ac_ext=C |
| 1010 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
| 1011 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 1012 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
| 1013 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
| 1014 | cross_compiling=$ac_cv_prog_cxx_cross |
| 1015 | |
| 1016 | |
| 1017 | case "`(uname -sr) 2>/dev/null`" in |
| 1018 | "SunOS 5"*) |
| 1019 | SOLARIS=yes |
| 1020 | ;; |
| 1021 | "Linux"*) |
| 1022 | LINUX=yes |
| 1023 | ;; |
| 1024 | "IRIX 6"*) |
| 1025 | X_LIBS="-L/usr/lib32" |
| 1026 | ;; |
| 1027 | "LynxOS 2"*) |
| 1028 | SJLJ_EXCEPTIONS=yes |
| 1029 | ;; |
| 1030 | esac |
| 1031 | |
| 1032 | if test "$GCC" = yes; then |
| 1033 | CFLAGS="$CFLAGS -Wall" |
| 1034 | if test "$SOLARIS" = yes; then |
| 1035 | CFLAGS="$CFLAGS -Wno-unknown-pragmas -Wno-implicit-int" |
| 1036 | fi |
| 1037 | fi |
| 1038 | if test "$GXX" = yes; then |
| 1039 | CXXFLAGS="$CXXFLAGS -Wall" |
| 1040 | if test "$SOLARIS" = yes; then |
| 1041 | CXXFLAGS="$CXXFLAGS -Wno-unknown-pragmas -fpermissive" |
| 1042 | fi |
| 1043 | if test "$SJLJ_EXCEPTIONS" = yes; then |
| 1044 | CXXFLAGS="$CXXFLAGS -fsjlj-exceptions" |
| 1045 | fi |
| 1046 | fi |
| 1047 | |
| 1048 | echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6 |
| 1049 | echo "configure:1050: checking how to run the C++ preprocessor" >&5 |
| 1050 | if test -z "$CXXCPP"; then |
| 1051 | if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then |
| 1052 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1053 | else |
| 1054 | ac_ext=C |
| 1055 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
| 1056 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 1057 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
| 1058 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
| 1059 | cross_compiling=$ac_cv_prog_cxx_cross |
| 1060 | CXXCPP="${CXX-g++} -E" |
| 1061 | cat > conftest.$ac_ext <<EOF |
| 1062 | #line 1063 "configure" |
| 1063 | #include "confdefs.h" |
| 1064 | #include <stdlib.h> |
| 1065 | EOF |
| 1066 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 1067 | { (eval echo configure:1068: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 1068 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 1069 | if test -z "$ac_err"; then |
| 1070 | : |
| 1071 | else |
| 1072 | echo "$ac_err" >&5 |
| 1073 | echo "configure: failed program was:" >&5 |
| 1074 | cat conftest.$ac_ext >&5 |
| 1075 | rm -rf conftest* |
| 1076 | CXXCPP=/lib/cpp |
| 1077 | fi |
| 1078 | rm -f conftest* |
| 1079 | ac_cv_prog_CXXCPP="$CXXCPP" |
| 1080 | ac_ext=C |
| 1081 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
| 1082 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 1083 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
| 1084 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
| 1085 | cross_compiling=$ac_cv_prog_cxx_cross |
| 1086 | fi |
| 1087 | fi |
| 1088 | CXXCPP="$ac_cv_prog_CXXCPP" |
| 1089 | echo "$ac_t""$CXXCPP" 1>&6 |
| 1090 | |
| 1091 | # If we find X, set shell vars x_includes and x_libraries to the |
| 1092 | # paths, otherwise set no_x=yes. |
| 1093 | # Uses ac_ vars as temps to allow command line to override cache and checks. |
| 1094 | # --without-x overrides everything else, but does not touch the cache. |
| 1095 | echo $ac_n "checking for X""... $ac_c" 1>&6 |
| 1096 | echo "configure:1097: checking for X" >&5 |
| 1097 | |
| 1098 | # Check whether --with-x or --without-x was given. |
| 1099 | if test "${with_x+set}" = set; then |
| 1100 | withval="$with_x" |
| 1101 | : |
| 1102 | fi |
| 1103 | |
| 1104 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. |
| 1105 | if test "x$with_x" = xno; then |
| 1106 | # The user explicitly disabled X. |
| 1107 | have_x=disabled |
| 1108 | else |
| 1109 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then |
| 1110 | # Both variables are already set. |
| 1111 | have_x=yes |
| 1112 | else |
| 1113 | if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then |
| 1114 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1115 | else |
| 1116 | # One or both of the vars are not set, and there is no cached value. |
| 1117 | ac_x_includes=NO ac_x_libraries=NO |
| 1118 | rm -fr conftestdir |
| 1119 | if mkdir conftestdir; then |
| 1120 | cd conftestdir |
| 1121 | # Make sure to not put "make" in the Imakefile rules, since we grep it out. |
| 1122 | cat > Imakefile <<'EOF' |
| 1123 | acfindx: |
| 1124 | @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' |
| 1125 | EOF |
| 1126 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then |
| 1127 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
| 1128 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` |
| 1129 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. |
| 1130 | for ac_extension in a so sl; do |
| 1131 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && |
| 1132 | test -f $ac_im_libdir/libX11.$ac_extension; then |
| 1133 | ac_im_usrlibdir=$ac_im_libdir; break |
| 1134 | fi |
| 1135 | done |
| 1136 | # Screen out bogus values from the imake configuration. They are |
| 1137 | # bogus both because they are the default anyway, and because |
| 1138 | # using them would break gcc on systems where it needs fixed includes. |
| 1139 | case "$ac_im_incroot" in |
| 1140 | /usr/include) ;; |
| 1141 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;; |
| 1142 | esac |
| 1143 | case "$ac_im_usrlibdir" in |
| 1144 | /usr/lib | /lib) ;; |
| 1145 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;; |
| 1146 | esac |
| 1147 | fi |
| 1148 | cd .. |
| 1149 | rm -fr conftestdir |
| 1150 | fi |
| 1151 | |
| 1152 | if test "$ac_x_includes" = NO; then |
| 1153 | # Guess where to find include files, by looking for this one X11 .h file. |
| 1154 | test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h |
| 1155 | |
| 1156 | # First, try using that file with no special directory specified. |
| 1157 | cat > conftest.$ac_ext <<EOF |
| 1158 | #line 1159 "configure" |
| 1159 | #include "confdefs.h" |
| 1160 | #include <$x_direct_test_include> |
| 1161 | EOF |
| 1162 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 1163 | { (eval echo configure:1164: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 1164 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 1165 | if test -z "$ac_err"; then |
| 1166 | rm -rf conftest* |
| 1167 | # We can compile using X headers with no special include directory. |
| 1168 | ac_x_includes= |
| 1169 | else |
| 1170 | echo "$ac_err" >&5 |
| 1171 | echo "configure: failed program was:" >&5 |
| 1172 | cat conftest.$ac_ext >&5 |
| 1173 | rm -rf conftest* |
| 1174 | # Look for the header file in a standard set of common directories. |
| 1175 | # Check X11 before X11Rn because it is often a symlink to the current release. |
| 1176 | for ac_dir in \ |
| 1177 | /usr/X11/include \ |
| 1178 | /usr/X11R6/include \ |
| 1179 | /usr/X11R5/include \ |
| 1180 | /usr/X11R4/include \ |
| 1181 | \ |
| 1182 | /usr/include/X11 \ |
| 1183 | /usr/include/X11R6 \ |
| 1184 | /usr/include/X11R5 \ |
| 1185 | /usr/include/X11R4 \ |
| 1186 | \ |
| 1187 | /usr/local/X11/include \ |
| 1188 | /usr/local/X11R6/include \ |
| 1189 | /usr/local/X11R5/include \ |
| 1190 | /usr/local/X11R4/include \ |
| 1191 | \ |
| 1192 | /usr/local/include/X11 \ |
| 1193 | /usr/local/include/X11R6 \ |
| 1194 | /usr/local/include/X11R5 \ |
| 1195 | /usr/local/include/X11R4 \ |
| 1196 | \ |
| 1197 | /usr/X386/include \ |
| 1198 | /usr/x386/include \ |
| 1199 | /usr/XFree86/include/X11 \ |
| 1200 | \ |
| 1201 | /usr/include \ |
| 1202 | /usr/local/include \ |
| 1203 | /usr/unsupported/include \ |
| 1204 | /usr/athena/include \ |
| 1205 | /usr/local/x11r5/include \ |
| 1206 | /usr/lpp/Xamples/include \ |
| 1207 | \ |
| 1208 | /usr/openwin/include \ |
| 1209 | /usr/openwin/share/include \ |
| 1210 | ; \ |
| 1211 | do |
| 1212 | if test -r "$ac_dir/$x_direct_test_include"; then |
| 1213 | ac_x_includes=$ac_dir |
| 1214 | break |
| 1215 | fi |
| 1216 | done |
| 1217 | fi |
| 1218 | rm -f conftest* |
| 1219 | fi # $ac_x_includes = NO |
| 1220 | |
| 1221 | if test "$ac_x_libraries" = NO; then |
| 1222 | # Check for the libraries. |
| 1223 | |
| 1224 | test -z "$x_direct_test_library" && x_direct_test_library=Xt |
| 1225 | test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc |
| 1226 | |
| 1227 | # See if we find them without any special options. |
| 1228 | # Don't add to $LIBS permanently. |
| 1229 | ac_save_LIBS="$LIBS" |
| 1230 | LIBS="-l$x_direct_test_library $LIBS" |
| 1231 | cat > conftest.$ac_ext <<EOF |
| 1232 | #line 1233 "configure" |
| 1233 | #include "confdefs.h" |
| 1234 | |
| 1235 | int main() { |
| 1236 | ${x_direct_test_function}() |
| 1237 | ; return 0; } |
| 1238 | EOF |
| 1239 | if { (eval echo configure:1240: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 1240 | rm -rf conftest* |
| 1241 | LIBS="$ac_save_LIBS" |
| 1242 | # We can link X programs with no special library path. |
| 1243 | ac_x_libraries= |
| 1244 | else |
| 1245 | echo "configure: failed program was:" >&5 |
| 1246 | cat conftest.$ac_ext >&5 |
| 1247 | rm -rf conftest* |
| 1248 | LIBS="$ac_save_LIBS" |
| 1249 | # First see if replacing the include by lib works. |
| 1250 | # Check X11 before X11Rn because it is often a symlink to the current release. |
| 1251 | for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \ |
| 1252 | /usr/X11/lib \ |
| 1253 | /usr/X11R6/lib \ |
| 1254 | /usr/X11R5/lib \ |
| 1255 | /usr/X11R4/lib \ |
| 1256 | \ |
| 1257 | /usr/lib/X11 \ |
| 1258 | /usr/lib/X11R6 \ |
| 1259 | /usr/lib/X11R5 \ |
| 1260 | /usr/lib/X11R4 \ |
| 1261 | \ |
| 1262 | /usr/local/X11/lib \ |
| 1263 | /usr/local/X11R6/lib \ |
| 1264 | /usr/local/X11R5/lib \ |
| 1265 | /usr/local/X11R4/lib \ |
| 1266 | \ |
| 1267 | /usr/local/lib/X11 \ |
| 1268 | /usr/local/lib/X11R6 \ |
| 1269 | /usr/local/lib/X11R5 \ |
| 1270 | /usr/local/lib/X11R4 \ |
| 1271 | \ |
| 1272 | /usr/X386/lib \ |
| 1273 | /usr/x386/lib \ |
| 1274 | /usr/XFree86/lib/X11 \ |
| 1275 | \ |
| 1276 | /usr/lib \ |
| 1277 | /usr/local/lib \ |
| 1278 | /usr/unsupported/lib \ |
| 1279 | /usr/athena/lib \ |
| 1280 | /usr/local/x11r5/lib \ |
| 1281 | /usr/lpp/Xamples/lib \ |
| 1282 | /lib/usr/lib/X11 \ |
| 1283 | \ |
| 1284 | /usr/openwin/lib \ |
| 1285 | /usr/openwin/share/lib \ |
| 1286 | ; \ |
| 1287 | do |
| 1288 | for ac_extension in a so sl; do |
| 1289 | if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then |
| 1290 | ac_x_libraries=$ac_dir |
| 1291 | break 2 |
| 1292 | fi |
| 1293 | done |
| 1294 | done |
| 1295 | fi |
| 1296 | rm -f conftest* |
| 1297 | fi # $ac_x_libraries = NO |
| 1298 | |
| 1299 | if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then |
| 1300 | # Didn't find X anywhere. Cache the known absence of X. |
| 1301 | ac_cv_have_x="have_x=no" |
| 1302 | else |
| 1303 | # Record where we found X for the cache. |
| 1304 | ac_cv_have_x="have_x=yes \ |
| 1305 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" |
| 1306 | fi |
| 1307 | fi |
| 1308 | fi |
| 1309 | eval "$ac_cv_have_x" |
| 1310 | fi # $with_x != no |
| 1311 | |
| 1312 | if test "$have_x" != yes; then |
| 1313 | echo "$ac_t""$have_x" 1>&6 |
| 1314 | no_x=yes |
| 1315 | else |
| 1316 | # If each of the values was on the command line, it overrides each guess. |
| 1317 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes |
| 1318 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries |
| 1319 | # Update the cache value to reflect the command line values. |
| 1320 | ac_cv_have_x="have_x=yes \ |
| 1321 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" |
| 1322 | echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6 |
| 1323 | fi |
| 1324 | |
| 1325 | if test "$no_x" = yes; then |
| 1326 | # Not all programs may use this symbol, but it does not hurt to define it. |
| 1327 | cat >> confdefs.h <<\EOF |
| 1328 | #define X_DISPLAY_MISSING 1 |
| 1329 | EOF |
| 1330 | |
| 1331 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= |
| 1332 | else |
| 1333 | if test -n "$x_includes"; then |
| 1334 | X_CFLAGS="$X_CFLAGS -I$x_includes" |
| 1335 | fi |
| 1336 | |
| 1337 | # It would also be nice to do this for all -L options, not just this one. |
| 1338 | if test -n "$x_libraries"; then |
| 1339 | X_LIBS="$X_LIBS -L$x_libraries" |
| 1340 | # For Solaris; some versions of Sun CC require a space after -R and |
| 1341 | # others require no space. Words are not sufficient . . . . |
| 1342 | case "`(uname -sr) 2>/dev/null`" in |
| 1343 | "SunOS 5"*) |
| 1344 | echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6 |
| 1345 | echo "configure:1346: checking whether -R must be followed by a space" >&5 |
| 1346 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries" |
| 1347 | cat > conftest.$ac_ext <<EOF |
| 1348 | #line 1349 "configure" |
| 1349 | #include "confdefs.h" |
| 1350 | |
| 1351 | int main() { |
| 1352 | |
| 1353 | ; return 0; } |
| 1354 | EOF |
| 1355 | if { (eval echo configure:1356: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 1356 | rm -rf conftest* |
| 1357 | ac_R_nospace=yes |
| 1358 | else |
| 1359 | echo "configure: failed program was:" >&5 |
| 1360 | cat conftest.$ac_ext >&5 |
| 1361 | rm -rf conftest* |
| 1362 | ac_R_nospace=no |
| 1363 | fi |
| 1364 | rm -f conftest* |
| 1365 | if test $ac_R_nospace = yes; then |
| 1366 | echo "$ac_t""no" 1>&6 |
| 1367 | X_LIBS="$X_LIBS -R$x_libraries" |
| 1368 | else |
| 1369 | LIBS="$ac_xsave_LIBS -R $x_libraries" |
| 1370 | cat > conftest.$ac_ext <<EOF |
| 1371 | #line 1372 "configure" |
| 1372 | #include "confdefs.h" |
| 1373 | |
| 1374 | int main() { |
| 1375 | |
| 1376 | ; return 0; } |
| 1377 | EOF |
| 1378 | if { (eval echo configure:1379: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 1379 | rm -rf conftest* |
| 1380 | ac_R_space=yes |
| 1381 | else |
| 1382 | echo "configure: failed program was:" >&5 |
| 1383 | cat conftest.$ac_ext >&5 |
| 1384 | rm -rf conftest* |
| 1385 | ac_R_space=no |
| 1386 | fi |
| 1387 | rm -f conftest* |
| 1388 | if test $ac_R_space = yes; then |
| 1389 | echo "$ac_t""yes" 1>&6 |
| 1390 | X_LIBS="$X_LIBS -R $x_libraries" |
| 1391 | else |
| 1392 | echo "$ac_t""neither works" 1>&6 |
| 1393 | fi |
| 1394 | fi |
| 1395 | LIBS="$ac_xsave_LIBS" |
| 1396 | esac |
| 1397 | fi |
| 1398 | |
| 1399 | # Check for system-dependent libraries X programs must link with. |
| 1400 | # Do this before checking for the system-independent R6 libraries |
| 1401 | # (-lICE), since we may need -lsocket or whatever for X linking. |
| 1402 | |
| 1403 | if test "$ISC" = yes; then |
| 1404 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" |
| 1405 | else |
| 1406 | # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X |
| 1407 | # libraries were built with DECnet support. And karl@cs.umb.edu says |
| 1408 | # the Alpha needs dnet_stub (dnet does not exist). |
| 1409 | echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 |
| 1410 | echo "configure:1411: checking for dnet_ntoa in -ldnet" >&5 |
| 1411 | ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
| 1412 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 1413 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1414 | else |
| 1415 | ac_save_LIBS="$LIBS" |
| 1416 | LIBS="-ldnet $LIBS" |
| 1417 | cat > conftest.$ac_ext <<EOF |
| 1418 | #line 1419 "configure" |
| 1419 | #include "confdefs.h" |
| 1420 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 1421 | #ifdef __cplusplus |
| 1422 | extern "C" |
| 1423 | #endif |
| 1424 | /* We use char because int might match the return type of a gcc2 |
| 1425 | builtin and then its argument prototype would still apply. */ |
| 1426 | char dnet_ntoa(); |
| 1427 | |
| 1428 | int main() { |
| 1429 | dnet_ntoa() |
| 1430 | ; return 0; } |
| 1431 | EOF |
| 1432 | if { (eval echo configure:1433: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 1433 | rm -rf conftest* |
| 1434 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 1435 | else |
| 1436 | echo "configure: failed program was:" >&5 |
| 1437 | cat conftest.$ac_ext >&5 |
| 1438 | rm -rf conftest* |
| 1439 | eval "ac_cv_lib_$ac_lib_var=no" |
| 1440 | fi |
| 1441 | rm -f conftest* |
| 1442 | LIBS="$ac_save_LIBS" |
| 1443 | |
| 1444 | fi |
| 1445 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 1446 | echo "$ac_t""yes" 1>&6 |
| 1447 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" |
| 1448 | else |
| 1449 | echo "$ac_t""no" 1>&6 |
| 1450 | fi |
| 1451 | |
| 1452 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then |
| 1453 | echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6 |
| 1454 | echo "configure:1455: checking for dnet_ntoa in -ldnet_stub" >&5 |
| 1455 | ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'` |
| 1456 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 1457 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1458 | else |
| 1459 | ac_save_LIBS="$LIBS" |
| 1460 | LIBS="-ldnet_stub $LIBS" |
| 1461 | cat > conftest.$ac_ext <<EOF |
| 1462 | #line 1463 "configure" |
| 1463 | #include "confdefs.h" |
| 1464 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 1465 | #ifdef __cplusplus |
| 1466 | extern "C" |
| 1467 | #endif |
| 1468 | /* We use char because int might match the return type of a gcc2 |
| 1469 | builtin and then its argument prototype would still apply. */ |
| 1470 | char dnet_ntoa(); |
| 1471 | |
| 1472 | int main() { |
| 1473 | dnet_ntoa() |
| 1474 | ; return 0; } |
| 1475 | EOF |
| 1476 | if { (eval echo configure:1477: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 1477 | rm -rf conftest* |
| 1478 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 1479 | else |
| 1480 | echo "configure: failed program was:" >&5 |
| 1481 | cat conftest.$ac_ext >&5 |
| 1482 | rm -rf conftest* |
| 1483 | eval "ac_cv_lib_$ac_lib_var=no" |
| 1484 | fi |
| 1485 | rm -f conftest* |
| 1486 | LIBS="$ac_save_LIBS" |
| 1487 | |
| 1488 | fi |
| 1489 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 1490 | echo "$ac_t""yes" 1>&6 |
| 1491 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" |
| 1492 | else |
| 1493 | echo "$ac_t""no" 1>&6 |
| 1494 | fi |
| 1495 | |
| 1496 | fi |
| 1497 | |
| 1498 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, |
| 1499 | # to get the SysV transport functions. |
| 1500 | # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4) |
| 1501 | # needs -lnsl. |
| 1502 | # The nsl library prevents programs from opening the X display |
| 1503 | # on Irix 5.2, according to dickey@clark.net. |
| 1504 | echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 |
| 1505 | echo "configure:1506: checking for gethostbyname" >&5 |
| 1506 | if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then |
| 1507 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1508 | else |
| 1509 | cat > conftest.$ac_ext <<EOF |
| 1510 | #line 1511 "configure" |
| 1511 | #include "confdefs.h" |
| 1512 | /* System header to define __stub macros and hopefully few prototypes, |
| 1513 | which can conflict with char gethostbyname(); below. */ |
| 1514 | #include <assert.h> |
| 1515 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 1516 | #ifdef __cplusplus |
| 1517 | extern "C" |
| 1518 | #endif |
| 1519 | /* We use char because int might match the return type of a gcc2 |
| 1520 | builtin and then its argument prototype would still apply. */ |
| 1521 | char gethostbyname(); |
| 1522 | |
| 1523 | int main() { |
| 1524 | |
| 1525 | /* The GNU C library defines this for functions which it implements |
| 1526 | to always fail with ENOSYS. Some functions are actually named |
| 1527 | something starting with __ and the normal name is an alias. */ |
| 1528 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) |
| 1529 | choke me |
| 1530 | #else |
| 1531 | gethostbyname(); |
| 1532 | #endif |
| 1533 | |
| 1534 | ; return 0; } |
| 1535 | EOF |
| 1536 | if { (eval echo configure:1537: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 1537 | rm -rf conftest* |
| 1538 | eval "ac_cv_func_gethostbyname=yes" |
| 1539 | else |
| 1540 | echo "configure: failed program was:" >&5 |
| 1541 | cat conftest.$ac_ext >&5 |
| 1542 | rm -rf conftest* |
| 1543 | eval "ac_cv_func_gethostbyname=no" |
| 1544 | fi |
| 1545 | rm -f conftest* |
| 1546 | fi |
| 1547 | |
| 1548 | if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then |
| 1549 | echo "$ac_t""yes" 1>&6 |
| 1550 | : |
| 1551 | else |
| 1552 | echo "$ac_t""no" 1>&6 |
| 1553 | fi |
| 1554 | |
| 1555 | if test $ac_cv_func_gethostbyname = no; then |
| 1556 | echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 |
| 1557 | echo "configure:1558: checking for gethostbyname in -lnsl" >&5 |
| 1558 | ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` |
| 1559 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 1560 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1561 | else |
| 1562 | ac_save_LIBS="$LIBS" |
| 1563 | LIBS="-lnsl $LIBS" |
| 1564 | cat > conftest.$ac_ext <<EOF |
| 1565 | #line 1566 "configure" |
| 1566 | #include "confdefs.h" |
| 1567 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 1568 | #ifdef __cplusplus |
| 1569 | extern "C" |
| 1570 | #endif |
| 1571 | /* We use char because int might match the return type of a gcc2 |
| 1572 | builtin and then its argument prototype would still apply. */ |
| 1573 | char gethostbyname(); |
| 1574 | |
| 1575 | int main() { |
| 1576 | gethostbyname() |
| 1577 | ; return 0; } |
| 1578 | EOF |
| 1579 | if { (eval echo configure:1580: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 1580 | rm -rf conftest* |
| 1581 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 1582 | else |
| 1583 | echo "configure: failed program was:" >&5 |
| 1584 | cat conftest.$ac_ext >&5 |
| 1585 | rm -rf conftest* |
| 1586 | eval "ac_cv_lib_$ac_lib_var=no" |
| 1587 | fi |
| 1588 | rm -f conftest* |
| 1589 | LIBS="$ac_save_LIBS" |
| 1590 | |
| 1591 | fi |
| 1592 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 1593 | echo "$ac_t""yes" 1>&6 |
| 1594 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" |
| 1595 | else |
| 1596 | echo "$ac_t""no" 1>&6 |
| 1597 | fi |
| 1598 | |
| 1599 | fi |
| 1600 | |
| 1601 | # lieder@skyler.mavd.honeywell.com says without -lsocket, |
| 1602 | # socket/setsockopt and other routines are undefined under SCO ODT |
| 1603 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary |
| 1604 | # on later versions), says simon@lia.di.epfl.ch: it contains |
| 1605 | # gethostby* variants that don't use the nameserver (or something). |
| 1606 | # -lsocket must be given before -lnsl if both are needed. |
| 1607 | # We assume that if connect needs -lnsl, so does gethostbyname. |
| 1608 | echo $ac_n "checking for connect""... $ac_c" 1>&6 |
| 1609 | echo "configure:1610: checking for connect" >&5 |
| 1610 | if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then |
| 1611 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1612 | else |
| 1613 | cat > conftest.$ac_ext <<EOF |
| 1614 | #line 1615 "configure" |
| 1615 | #include "confdefs.h" |
| 1616 | /* System header to define __stub macros and hopefully few prototypes, |
| 1617 | which can conflict with char connect(); below. */ |
| 1618 | #include <assert.h> |
| 1619 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 1620 | #ifdef __cplusplus |
| 1621 | extern "C" |
| 1622 | #endif |
| 1623 | /* We use char because int might match the return type of a gcc2 |
| 1624 | builtin and then its argument prototype would still apply. */ |
| 1625 | char connect(); |
| 1626 | |
| 1627 | int main() { |
| 1628 | |
| 1629 | /* The GNU C library defines this for functions which it implements |
| 1630 | to always fail with ENOSYS. Some functions are actually named |
| 1631 | something starting with __ and the normal name is an alias. */ |
| 1632 | #if defined (__stub_connect) || defined (__stub___connect) |
| 1633 | choke me |
| 1634 | #else |
| 1635 | connect(); |
| 1636 | #endif |
| 1637 | |
| 1638 | ; return 0; } |
| 1639 | EOF |
| 1640 | if { (eval echo configure:1641: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 1641 | rm -rf conftest* |
| 1642 | eval "ac_cv_func_connect=yes" |
| 1643 | else |
| 1644 | echo "configure: failed program was:" >&5 |
| 1645 | cat conftest.$ac_ext >&5 |
| 1646 | rm -rf conftest* |
| 1647 | eval "ac_cv_func_connect=no" |
| 1648 | fi |
| 1649 | rm -f conftest* |
| 1650 | fi |
| 1651 | |
| 1652 | if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then |
| 1653 | echo "$ac_t""yes" 1>&6 |
| 1654 | : |
| 1655 | else |
| 1656 | echo "$ac_t""no" 1>&6 |
| 1657 | fi |
| 1658 | |
| 1659 | if test $ac_cv_func_connect = no; then |
| 1660 | echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6 |
| 1661 | echo "configure:1662: checking for connect in -lsocket" >&5 |
| 1662 | ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'` |
| 1663 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 1664 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1665 | else |
| 1666 | ac_save_LIBS="$LIBS" |
| 1667 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" |
| 1668 | cat > conftest.$ac_ext <<EOF |
| 1669 | #line 1670 "configure" |
| 1670 | #include "confdefs.h" |
| 1671 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 1672 | #ifdef __cplusplus |
| 1673 | extern "C" |
| 1674 | #endif |
| 1675 | /* We use char because int might match the return type of a gcc2 |
| 1676 | builtin and then its argument prototype would still apply. */ |
| 1677 | char connect(); |
| 1678 | |
| 1679 | int main() { |
| 1680 | connect() |
| 1681 | ; return 0; } |
| 1682 | EOF |
| 1683 | if { (eval echo configure:1684: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 1684 | rm -rf conftest* |
| 1685 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 1686 | else |
| 1687 | echo "configure: failed program was:" >&5 |
| 1688 | cat conftest.$ac_ext >&5 |
| 1689 | rm -rf conftest* |
| 1690 | eval "ac_cv_lib_$ac_lib_var=no" |
| 1691 | fi |
| 1692 | rm -f conftest* |
| 1693 | LIBS="$ac_save_LIBS" |
| 1694 | |
| 1695 | fi |
| 1696 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 1697 | echo "$ac_t""yes" 1>&6 |
| 1698 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" |
| 1699 | else |
| 1700 | echo "$ac_t""no" 1>&6 |
| 1701 | fi |
| 1702 | |
| 1703 | fi |
| 1704 | |
| 1705 | # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX. |
| 1706 | echo $ac_n "checking for remove""... $ac_c" 1>&6 |
| 1707 | echo "configure:1708: checking for remove" >&5 |
| 1708 | if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then |
| 1709 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1710 | else |
| 1711 | cat > conftest.$ac_ext <<EOF |
| 1712 | #line 1713 "configure" |
| 1713 | #include "confdefs.h" |
| 1714 | /* System header to define __stub macros and hopefully few prototypes, |
| 1715 | which can conflict with char remove(); below. */ |
| 1716 | #include <assert.h> |
| 1717 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 1718 | #ifdef __cplusplus |
| 1719 | extern "C" |
| 1720 | #endif |
| 1721 | /* We use char because int might match the return type of a gcc2 |
| 1722 | builtin and then its argument prototype would still apply. */ |
| 1723 | char remove(); |
| 1724 | |
| 1725 | int main() { |
| 1726 | |
| 1727 | /* The GNU C library defines this for functions which it implements |
| 1728 | to always fail with ENOSYS. Some functions are actually named |
| 1729 | something starting with __ and the normal name is an alias. */ |
| 1730 | #if defined (__stub_remove) || defined (__stub___remove) |
| 1731 | choke me |
| 1732 | #else |
| 1733 | remove(); |
| 1734 | #endif |
| 1735 | |
| 1736 | ; return 0; } |
| 1737 | EOF |
| 1738 | if { (eval echo configure:1739: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 1739 | rm -rf conftest* |
| 1740 | eval "ac_cv_func_remove=yes" |
| 1741 | else |
| 1742 | echo "configure: failed program was:" >&5 |
| 1743 | cat conftest.$ac_ext >&5 |
| 1744 | rm -rf conftest* |
| 1745 | eval "ac_cv_func_remove=no" |
| 1746 | fi |
| 1747 | rm -f conftest* |
| 1748 | fi |
| 1749 | |
| 1750 | if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then |
| 1751 | echo "$ac_t""yes" 1>&6 |
| 1752 | : |
| 1753 | else |
| 1754 | echo "$ac_t""no" 1>&6 |
| 1755 | fi |
| 1756 | |
| 1757 | if test $ac_cv_func_remove = no; then |
| 1758 | echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6 |
| 1759 | echo "configure:1760: checking for remove in -lposix" >&5 |
| 1760 | ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'` |
| 1761 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 1762 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1763 | else |
| 1764 | ac_save_LIBS="$LIBS" |
| 1765 | LIBS="-lposix $LIBS" |
| 1766 | cat > conftest.$ac_ext <<EOF |
| 1767 | #line 1768 "configure" |
| 1768 | #include "confdefs.h" |
| 1769 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 1770 | #ifdef __cplusplus |
| 1771 | extern "C" |
| 1772 | #endif |
| 1773 | /* We use char because int might match the return type of a gcc2 |
| 1774 | builtin and then its argument prototype would still apply. */ |
| 1775 | char remove(); |
| 1776 | |
| 1777 | int main() { |
| 1778 | remove() |
| 1779 | ; return 0; } |
| 1780 | EOF |
| 1781 | if { (eval echo configure:1782: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 1782 | rm -rf conftest* |
| 1783 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 1784 | else |
| 1785 | echo "configure: failed program was:" >&5 |
| 1786 | cat conftest.$ac_ext >&5 |
| 1787 | rm -rf conftest* |
| 1788 | eval "ac_cv_lib_$ac_lib_var=no" |
| 1789 | fi |
| 1790 | rm -f conftest* |
| 1791 | LIBS="$ac_save_LIBS" |
| 1792 | |
| 1793 | fi |
| 1794 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 1795 | echo "$ac_t""yes" 1>&6 |
| 1796 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" |
| 1797 | else |
| 1798 | echo "$ac_t""no" 1>&6 |
| 1799 | fi |
| 1800 | |
| 1801 | fi |
| 1802 | |
| 1803 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. |
| 1804 | echo $ac_n "checking for shmat""... $ac_c" 1>&6 |
| 1805 | echo "configure:1806: checking for shmat" >&5 |
| 1806 | if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then |
| 1807 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1808 | else |
| 1809 | cat > conftest.$ac_ext <<EOF |
| 1810 | #line 1811 "configure" |
| 1811 | #include "confdefs.h" |
| 1812 | /* System header to define __stub macros and hopefully few prototypes, |
| 1813 | which can conflict with char shmat(); below. */ |
| 1814 | #include <assert.h> |
| 1815 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 1816 | #ifdef __cplusplus |
| 1817 | extern "C" |
| 1818 | #endif |
| 1819 | /* We use char because int might match the return type of a gcc2 |
| 1820 | builtin and then its argument prototype would still apply. */ |
| 1821 | char shmat(); |
| 1822 | |
| 1823 | int main() { |
| 1824 | |
| 1825 | /* The GNU C library defines this for functions which it implements |
| 1826 | to always fail with ENOSYS. Some functions are actually named |
| 1827 | something starting with __ and the normal name is an alias. */ |
| 1828 | #if defined (__stub_shmat) || defined (__stub___shmat) |
| 1829 | choke me |
| 1830 | #else |
| 1831 | shmat(); |
| 1832 | #endif |
| 1833 | |
| 1834 | ; return 0; } |
| 1835 | EOF |
| 1836 | if { (eval echo configure:1837: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 1837 | rm -rf conftest* |
| 1838 | eval "ac_cv_func_shmat=yes" |
| 1839 | else |
| 1840 | echo "configure: failed program was:" >&5 |
| 1841 | cat conftest.$ac_ext >&5 |
| 1842 | rm -rf conftest* |
| 1843 | eval "ac_cv_func_shmat=no" |
| 1844 | fi |
| 1845 | rm -f conftest* |
| 1846 | fi |
| 1847 | |
| 1848 | if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then |
| 1849 | echo "$ac_t""yes" 1>&6 |
| 1850 | : |
| 1851 | else |
| 1852 | echo "$ac_t""no" 1>&6 |
| 1853 | fi |
| 1854 | |
| 1855 | if test $ac_cv_func_shmat = no; then |
| 1856 | echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6 |
| 1857 | echo "configure:1858: checking for shmat in -lipc" >&5 |
| 1858 | ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'` |
| 1859 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 1860 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1861 | else |
| 1862 | ac_save_LIBS="$LIBS" |
| 1863 | LIBS="-lipc $LIBS" |
| 1864 | cat > conftest.$ac_ext <<EOF |
| 1865 | #line 1866 "configure" |
| 1866 | #include "confdefs.h" |
| 1867 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 1868 | #ifdef __cplusplus |
| 1869 | extern "C" |
| 1870 | #endif |
| 1871 | /* We use char because int might match the return type of a gcc2 |
| 1872 | builtin and then its argument prototype would still apply. */ |
| 1873 | char shmat(); |
| 1874 | |
| 1875 | int main() { |
| 1876 | shmat() |
| 1877 | ; return 0; } |
| 1878 | EOF |
| 1879 | if { (eval echo configure:1880: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 1880 | rm -rf conftest* |
| 1881 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 1882 | else |
| 1883 | echo "configure: failed program was:" >&5 |
| 1884 | cat conftest.$ac_ext >&5 |
| 1885 | rm -rf conftest* |
| 1886 | eval "ac_cv_lib_$ac_lib_var=no" |
| 1887 | fi |
| 1888 | rm -f conftest* |
| 1889 | LIBS="$ac_save_LIBS" |
| 1890 | |
| 1891 | fi |
| 1892 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 1893 | echo "$ac_t""yes" 1>&6 |
| 1894 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" |
| 1895 | else |
| 1896 | echo "$ac_t""no" 1>&6 |
| 1897 | fi |
| 1898 | |
| 1899 | fi |
| 1900 | fi |
| 1901 | |
| 1902 | # Check for libraries that X11R6 Xt/Xaw programs need. |
| 1903 | ac_save_LDFLAGS="$LDFLAGS" |
| 1904 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" |
| 1905 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to |
| 1906 | # check for ICE first), but we must link in the order -lSM -lICE or |
| 1907 | # we get undefined symbols. So assume we have SM if we have ICE. |
| 1908 | # These have to be linked with before -lX11, unlike the other |
| 1909 | # libraries we check for below, so use a different variable. |
| 1910 | # --interran@uluru.Stanford.EDU, kb@cs.umb.edu. |
| 1911 | echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6 |
| 1912 | echo "configure:1913: checking for IceConnectionNumber in -lICE" >&5 |
| 1913 | ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'` |
| 1914 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 1915 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1916 | else |
| 1917 | ac_save_LIBS="$LIBS" |
| 1918 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" |
| 1919 | cat > conftest.$ac_ext <<EOF |
| 1920 | #line 1921 "configure" |
| 1921 | #include "confdefs.h" |
| 1922 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 1923 | #ifdef __cplusplus |
| 1924 | extern "C" |
| 1925 | #endif |
| 1926 | /* We use char because int might match the return type of a gcc2 |
| 1927 | builtin and then its argument prototype would still apply. */ |
| 1928 | char IceConnectionNumber(); |
| 1929 | |
| 1930 | int main() { |
| 1931 | IceConnectionNumber() |
| 1932 | ; return 0; } |
| 1933 | EOF |
| 1934 | if { (eval echo configure:1935: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 1935 | rm -rf conftest* |
| 1936 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 1937 | else |
| 1938 | echo "configure: failed program was:" >&5 |
| 1939 | cat conftest.$ac_ext >&5 |
| 1940 | rm -rf conftest* |
| 1941 | eval "ac_cv_lib_$ac_lib_var=no" |
| 1942 | fi |
| 1943 | rm -f conftest* |
| 1944 | LIBS="$ac_save_LIBS" |
| 1945 | |
| 1946 | fi |
| 1947 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 1948 | echo "$ac_t""yes" 1>&6 |
| 1949 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" |
| 1950 | else |
| 1951 | echo "$ac_t""no" 1>&6 |
| 1952 | fi |
| 1953 | |
| 1954 | LDFLAGS="$ac_save_LDFLAGS" |
| 1955 | |
| 1956 | fi |
| 1957 | |
| 1958 | |
| 1959 | # Check whether --with-installed-zlib or --without-installed-zlib was given. |
| 1960 | if test "${with_installed_zlib+set}" = set; then |
| 1961 | withval="$with_installed_zlib" |
| 1962 | : |
| 1963 | fi |
| 1964 | |
| 1965 | |
| 1966 | if test "$with_installed_zlib" = yes; then |
| 1967 | echo "using installed zlib" |
| 1968 | ZLIB_LIB=-lz |
| 1969 | else |
| 1970 | ZLIB_DIR=zlib |
| 1971 | ZLIB_INCLUDE='-I$(top_srcdir)/zlib' |
| 1972 | ZLIB_LIB='$(top_srcdir)/zlib/libz.a' |
| 1973 | echo "configuring zlib..." |
| 1974 | (cd zlib; ./configure) |
| 1975 | echo "...done configuring zlib" |
| 1976 | fi |
| 1977 | |
| 1978 | |
| 1979 | |
| 1980 | |
| 1981 | |
| 1982 | # Check whether --with-installed-jpeg or --without-installed-jpeg was given. |
| 1983 | if test "${with_installed_jpeg+set}" = set; then |
| 1984 | withval="$with_installed_jpeg" |
| 1985 | : |
| 1986 | fi |
| 1987 | |
| 1988 | |
| 1989 | if test "$with_installed_jpeg" = yes; then |
| 1990 | echo "using installed jpeg" |
| 1991 | JPEG_LIB=-ljpeg |
| 1992 | else |
| 1993 | JPEG_DIR=jpeg/build |
| 1994 | JPEG_INCLUDE='-I$(top_srcdir)/jpeg' |
| 1995 | JPEG_LIB='$(top_srcdir)/jpeg/build/libjpeg.a' |
| 1996 | echo "configuring jpeg..." |
| 1997 | (mkdir jpeg/build; cd jpeg/build; ../configure) |
| 1998 | echo "...done configuring jpeg" |
| 1999 | fi |
| 2000 | |
| 2001 | |
| 2002 | |
| 2003 | |
| 2004 | |
| 2005 | echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6 |
| 2006 | echo "configure:2007: checking for vsnprintf" >&5 |
| 2007 | if eval "test \"`echo '$''{'ac_cv_func_vsnprintf'+set}'`\" = set"; then |
| 2008 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2009 | else |
| 2010 | cat > conftest.$ac_ext <<EOF |
| 2011 | #line 2012 "configure" |
| 2012 | #include "confdefs.h" |
| 2013 | /* System header to define __stub macros and hopefully few prototypes, |
| 2014 | which can conflict with char vsnprintf(); below. */ |
| 2015 | #include <assert.h> |
| 2016 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 2017 | #ifdef __cplusplus |
| 2018 | extern "C" |
| 2019 | #endif |
| 2020 | /* We use char because int might match the return type of a gcc2 |
| 2021 | builtin and then its argument prototype would still apply. */ |
| 2022 | char vsnprintf(); |
| 2023 | |
| 2024 | int main() { |
| 2025 | |
| 2026 | /* The GNU C library defines this for functions which it implements |
| 2027 | to always fail with ENOSYS. Some functions are actually named |
| 2028 | something starting with __ and the normal name is an alias. */ |
| 2029 | #if defined (__stub_vsnprintf) || defined (__stub___vsnprintf) |
| 2030 | choke me |
| 2031 | #else |
| 2032 | vsnprintf(); |
| 2033 | #endif |
| 2034 | |
| 2035 | ; return 0; } |
| 2036 | EOF |
| 2037 | if { (eval echo configure:2038: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 2038 | rm -rf conftest* |
| 2039 | eval "ac_cv_func_vsnprintf=yes" |
| 2040 | else |
| 2041 | echo "configure: failed program was:" >&5 |
| 2042 | cat conftest.$ac_ext >&5 |
| 2043 | rm -rf conftest* |
| 2044 | eval "ac_cv_func_vsnprintf=no" |
| 2045 | fi |
| 2046 | rm -f conftest* |
| 2047 | fi |
| 2048 | |
| 2049 | if eval "test \"`echo '$ac_cv_func_'vsnprintf`\" = yes"; then |
| 2050 | echo "$ac_t""yes" 1>&6 |
| 2051 | VSNPRINTF_DEFINE='-DHAVE_VSNPRINTF' |
| 2052 | else |
| 2053 | echo "$ac_t""no" 1>&6 |
| 2054 | VSNPRINTF_DEFINE= |
| 2055 | fi |
| 2056 | |
| 2057 | |
| 2058 | |
| 2059 | echo $ac_n "checking for strcasecmp""... $ac_c" 1>&6 |
| 2060 | echo "configure:2061: checking for strcasecmp" >&5 |
| 2061 | if eval "test \"`echo '$''{'ac_cv_func_strcasecmp'+set}'`\" = set"; then |
| 2062 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2063 | else |
| 2064 | cat > conftest.$ac_ext <<EOF |
| 2065 | #line 2066 "configure" |
| 2066 | #include "confdefs.h" |
| 2067 | /* System header to define __stub macros and hopefully few prototypes, |
| 2068 | which can conflict with char strcasecmp(); below. */ |
| 2069 | #include <assert.h> |
| 2070 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 2071 | #ifdef __cplusplus |
| 2072 | extern "C" |
| 2073 | #endif |
| 2074 | /* We use char because int might match the return type of a gcc2 |
| 2075 | builtin and then its argument prototype would still apply. */ |
| 2076 | char strcasecmp(); |
| 2077 | |
| 2078 | int main() { |
| 2079 | |
| 2080 | /* The GNU C library defines this for functions which it implements |
| 2081 | to always fail with ENOSYS. Some functions are actually named |
| 2082 | something starting with __ and the normal name is an alias. */ |
| 2083 | #if defined (__stub_strcasecmp) || defined (__stub___strcasecmp) |
| 2084 | choke me |
| 2085 | #else |
| 2086 | strcasecmp(); |
| 2087 | #endif |
| 2088 | |
| 2089 | ; return 0; } |
| 2090 | EOF |
| 2091 | if { (eval echo configure:2092: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 2092 | rm -rf conftest* |
| 2093 | eval "ac_cv_func_strcasecmp=yes" |
| 2094 | else |
| 2095 | echo "configure: failed program was:" >&5 |
| 2096 | cat conftest.$ac_ext >&5 |
| 2097 | rm -rf conftest* |
| 2098 | eval "ac_cv_func_strcasecmp=no" |
| 2099 | fi |
| 2100 | rm -f conftest* |
| 2101 | fi |
| 2102 | |
| 2103 | if eval "test \"`echo '$ac_cv_func_'strcasecmp`\" = yes"; then |
| 2104 | echo "$ac_t""yes" 1>&6 |
| 2105 | STRCASECMP_DEFINE='-DHAVE_STRCASECMP' |
| 2106 | else |
| 2107 | echo "$ac_t""no" 1>&6 |
| 2108 | STRCASECMP_DEFINE= |
| 2109 | fi |
| 2110 | |
| 2111 | |
| 2112 | |
| 2113 | echo $ac_n "checking for strncasecmp""... $ac_c" 1>&6 |
| 2114 | echo "configure:2115: checking for strncasecmp" >&5 |
| 2115 | if eval "test \"`echo '$''{'ac_cv_func_strncasecmp'+set}'`\" = set"; then |
| 2116 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2117 | else |
| 2118 | cat > conftest.$ac_ext <<EOF |
| 2119 | #line 2120 "configure" |
| 2120 | #include "confdefs.h" |
| 2121 | /* System header to define __stub macros and hopefully few prototypes, |
| 2122 | which can conflict with char strncasecmp(); below. */ |
| 2123 | #include <assert.h> |
| 2124 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 2125 | #ifdef __cplusplus |
| 2126 | extern "C" |
| 2127 | #endif |
| 2128 | /* We use char because int might match the return type of a gcc2 |
| 2129 | builtin and then its argument prototype would still apply. */ |
| 2130 | char strncasecmp(); |
| 2131 | |
| 2132 | int main() { |
| 2133 | |
| 2134 | /* The GNU C library defines this for functions which it implements |
| 2135 | to always fail with ENOSYS. Some functions are actually named |
| 2136 | something starting with __ and the normal name is an alias. */ |
| 2137 | #if defined (__stub_strncasecmp) || defined (__stub___strncasecmp) |
| 2138 | choke me |
| 2139 | #else |
| 2140 | strncasecmp(); |
| 2141 | #endif |
| 2142 | |
| 2143 | ; return 0; } |
| 2144 | EOF |
| 2145 | if { (eval echo configure:2146: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 2146 | rm -rf conftest* |
| 2147 | eval "ac_cv_func_strncasecmp=yes" |
| 2148 | else |
| 2149 | echo "configure: failed program was:" >&5 |
| 2150 | cat conftest.$ac_ext >&5 |
| 2151 | rm -rf conftest* |
| 2152 | eval "ac_cv_func_strncasecmp=no" |
| 2153 | fi |
| 2154 | rm -f conftest* |
| 2155 | fi |
| 2156 | |
| 2157 | if eval "test \"`echo '$ac_cv_func_'strncasecmp`\" = yes"; then |
| 2158 | echo "$ac_t""yes" 1>&6 |
| 2159 | STRNCASECMP_DEFINE='-DHAVE_STRNCASECMP' |
| 2160 | else |
| 2161 | echo "$ac_t""no" 1>&6 |
| 2162 | STRNCASECMP_DEFINE= |
| 2163 | fi |
| 2164 | |
| 2165 | |
| 2166 | |
| 2167 | |
| 2168 | ac_ext=c |
| 2169 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
| 2170 | ac_cpp='$CPP $CPPFLAGS' |
| 2171 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
| 2172 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
| 2173 | cross_compiling=$ac_cv_prog_cc_cross |
| 2174 | |
| 2175 | echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 |
| 2176 | echo "configure:2177: checking for gethostbyname" >&5 |
| 2177 | if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then |
| 2178 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2179 | else |
| 2180 | cat > conftest.$ac_ext <<EOF |
| 2181 | #line 2182 "configure" |
| 2182 | #include "confdefs.h" |
| 2183 | /* System header to define __stub macros and hopefully few prototypes, |
| 2184 | which can conflict with char gethostbyname(); below. */ |
| 2185 | #include <assert.h> |
| 2186 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 2187 | /* We use char because int might match the return type of a gcc2 |
| 2188 | builtin and then its argument prototype would still apply. */ |
| 2189 | char gethostbyname(); |
| 2190 | |
| 2191 | int main() { |
| 2192 | |
| 2193 | /* The GNU C library defines this for functions which it implements |
| 2194 | to always fail with ENOSYS. Some functions are actually named |
| 2195 | something starting with __ and the normal name is an alias. */ |
| 2196 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) |
| 2197 | choke me |
| 2198 | #else |
| 2199 | gethostbyname(); |
| 2200 | #endif |
| 2201 | |
| 2202 | ; return 0; } |
| 2203 | EOF |
| 2204 | if { (eval echo configure:2205: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 2205 | rm -rf conftest* |
| 2206 | eval "ac_cv_func_gethostbyname=yes" |
| 2207 | else |
| 2208 | echo "configure: failed program was:" >&5 |
| 2209 | cat conftest.$ac_ext >&5 |
| 2210 | rm -rf conftest* |
| 2211 | eval "ac_cv_func_gethostbyname=no" |
| 2212 | fi |
| 2213 | rm -f conftest* |
| 2214 | fi |
| 2215 | |
| 2216 | if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then |
| 2217 | echo "$ac_t""yes" 1>&6 |
| 2218 | INET_LIB_REQ= |
| 2219 | else |
| 2220 | echo "$ac_t""no" 1>&6 |
| 2221 | INET_LIB_REQ=yes |
| 2222 | fi |
| 2223 | |
| 2224 | if test "$INET_LIB_REQ" = yes; then |
| 2225 | echo $ac_n "checking for gethostbyname in -lbsd""... $ac_c" 1>&6 |
| 2226 | echo "configure:2227: checking for gethostbyname in -lbsd" >&5 |
| 2227 | ac_lib_var=`echo bsd'_'gethostbyname | sed 'y%./+-%__p_%'` |
| 2228 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 2229 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2230 | else |
| 2231 | ac_save_LIBS="$LIBS" |
| 2232 | LIBS="-lbsd $LIBS" |
| 2233 | cat > conftest.$ac_ext <<EOF |
| 2234 | #line 2235 "configure" |
| 2235 | #include "confdefs.h" |
| 2236 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 2237 | /* We use char because int might match the return type of a gcc2 |
| 2238 | builtin and then its argument prototype would still apply. */ |
| 2239 | char gethostbyname(); |
| 2240 | |
| 2241 | int main() { |
| 2242 | gethostbyname() |
| 2243 | ; return 0; } |
| 2244 | EOF |
| 2245 | if { (eval echo configure:2246: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 2246 | rm -rf conftest* |
| 2247 | eval "ac_cv_lib_$ac_lib_var=yes" |
| 2248 | else |
| 2249 | echo "configure: failed program was:" >&5 |
| 2250 | cat conftest.$ac_ext >&5 |
| 2251 | rm -rf conftest* |
| 2252 | eval "ac_cv_lib_$ac_lib_var=no" |
| 2253 | fi |
| 2254 | rm -f conftest* |
| 2255 | LIBS="$ac_save_LIBS" |
| 2256 | |
| 2257 | fi |
| 2258 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 2259 | echo "$ac_t""yes" 1>&6 |
| 2260 | INET_LIB=-lbsd |
| 2261 | else |
| 2262 | echo "$ac_t""no" 1>&6 |
| 2263 | INET_LIB= |
| 2264 | fi |
| 2265 | |
| 2266 | fi |
| 2267 | ac_ext=C |
| 2268 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
| 2269 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 2270 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
| 2271 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
| 2272 | cross_compiling=$ac_cv_prog_cxx_cross |
| 2273 | |
| 2274 | |
| 2275 | |
| 2276 | echo $ac_n "checking for socklen_t""... $ac_c" 1>&6 |
| 2277 | echo "configure:2278: checking for socklen_t" >&5 |
| 2278 | cat > conftest.$ac_ext <<EOF |
| 2279 | #line 2280 "configure" |
| 2280 | #include "confdefs.h" |
| 2281 | #include <sys/types.h> |
| 2282 | #include <sys/socket.h> |
| 2283 | int main() { |
| 2284 | socklen_t x; |
| 2285 | accept(0, 0, &x); |
| 2286 | ; return 0; } |
| 2287 | EOF |
| 2288 | if { (eval echo configure:2289: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| 2289 | rm -rf conftest* |
| 2290 | echo "$ac_t""yes" 1>&6 |
| 2291 | SOCKLEN_T_DEFINE='-DVNC_SOCKLEN_T=socklen_t' |
| 2292 | else |
| 2293 | echo "configure: failed program was:" >&5 |
| 2294 | cat conftest.$ac_ext >&5 |
| 2295 | rm -rf conftest* |
| 2296 | echo "$ac_t""using int" 1>&6 |
| 2297 | SOCKLEN_T_DEFINE='-DVNC_SOCKLEN_T=int' |
| 2298 | fi |
| 2299 | rm -f conftest* |
| 2300 | |
| 2301 | |
| 2302 | BOILERPLATE=boilerplate.mk |
| 2303 | |
| 2304 | if (sh -c "make --version" 2>/dev/null | grep GNU 2>&1 >/dev/null); then |
| 2305 | if sh -c "vncmkdepend" >/dev/null 2>&1; then |
| 2306 | BOILERPLATE="$BOILERPLATE:depend.mk" |
| 2307 | fi |
| 2308 | fi |
| 2309 | |
| 2310 | trap '' 1 2 15 |
| 2311 | cat > confcache <<\EOF |
| 2312 | # This file is a shell script that caches the results of configure |
| 2313 | # tests run on this system so they can be shared between configure |
| 2314 | # scripts and configure runs. It is not useful on other systems. |
| 2315 | # If it contains results you don't want to keep, you may remove or edit it. |
| 2316 | # |
| 2317 | # By default, configure uses ./config.cache as the cache file, |
| 2318 | # creating it if it does not exist already. You can give configure |
| 2319 | # the --cache-file=FILE option to use a different cache file; that is |
| 2320 | # what configure does when it calls configure scripts in |
| 2321 | # subdirectories, so they share the cache. |
| 2322 | # Giving --cache-file=/dev/null disables caching, for debugging configure. |
| 2323 | # config.status only pays attention to the cache file if you give it the |
| 2324 | # --recheck option to rerun configure. |
| 2325 | # |
| 2326 | EOF |
| 2327 | # The following way of writing the cache mishandles newlines in values, |
| 2328 | # but we know of no workaround that is simple, portable, and efficient. |
| 2329 | # So, don't put newlines in cache variables' values. |
| 2330 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 2331 | # and sets the high bit in the cache file unless we assign to the vars. |
| 2332 | (set) 2>&1 | |
| 2333 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
| 2334 | *ac_space=\ *) |
| 2335 | # `set' does not quote correctly, so add quotes (double-quote substitution |
| 2336 | # turns \\\\ into \\, and sed turns \\ into \). |
| 2337 | sed -n \ |
| 2338 | -e "s/'/'\\\\''/g" \ |
| 2339 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" |
| 2340 | ;; |
| 2341 | *) |
| 2342 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
| 2343 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' |
| 2344 | ;; |
| 2345 | esac >> confcache |
| 2346 | if cmp -s $cache_file confcache; then |
| 2347 | : |
| 2348 | else |
| 2349 | if test -w $cache_file; then |
| 2350 | echo "updating cache $cache_file" |
| 2351 | cat confcache > $cache_file |
| 2352 | else |
| 2353 | echo "not updating unwritable cache $cache_file" |
| 2354 | fi |
| 2355 | fi |
| 2356 | rm -f confcache |
| 2357 | |
| 2358 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
| 2359 | |
| 2360 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 2361 | # Let make expand exec_prefix. |
| 2362 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 2363 | |
| 2364 | # Any assignment to VPATH causes Sun make to only execute |
| 2365 | # the first set of double-colon rules, so remove it if not needed. |
| 2366 | # If there is a colon in the path, we need to keep it. |
| 2367 | if test "x$srcdir" = x.; then |
| 2368 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' |
| 2369 | fi |
| 2370 | |
| 2371 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 |
| 2372 | |
| 2373 | # Transform confdefs.h into DEFS. |
| 2374 | # Protect against shell expansion while executing Makefile rules. |
| 2375 | # Protect against Makefile macro expansion. |
| 2376 | cat > conftest.defs <<\EOF |
| 2377 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g |
| 2378 | s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g |
| 2379 | s%\[%\\&%g |
| 2380 | s%\]%\\&%g |
| 2381 | s%\$%$$%g |
| 2382 | EOF |
| 2383 | DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '` |
| 2384 | rm -f conftest.defs |
| 2385 | |
| 2386 | |
| 2387 | # Without the "./", some shells look in PATH for config.status. |
| 2388 | : ${CONFIG_STATUS=./config.status} |
| 2389 | |
| 2390 | echo creating $CONFIG_STATUS |
| 2391 | rm -f $CONFIG_STATUS |
| 2392 | cat > $CONFIG_STATUS <<EOF |
| 2393 | #! /bin/sh |
| 2394 | # Generated automatically by configure. |
| 2395 | # Run this file to recreate the current configuration. |
| 2396 | # This directory was configured as follows, |
| 2397 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 2398 | # |
| 2399 | # $0 $ac_configure_args |
| 2400 | # |
| 2401 | # Compiler output produced by configure, useful for debugging |
| 2402 | # configure, is in ./config.log if it exists. |
| 2403 | |
| 2404 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" |
| 2405 | for ac_option |
| 2406 | do |
| 2407 | case "\$ac_option" in |
| 2408 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 2409 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" |
| 2410 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; |
| 2411 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) |
| 2412 | echo "$CONFIG_STATUS generated by autoconf version 2.13" |
| 2413 | exit 0 ;; |
| 2414 | -help | --help | --hel | --he | --h) |
| 2415 | echo "\$ac_cs_usage"; exit 0 ;; |
| 2416 | *) echo "\$ac_cs_usage"; exit 1 ;; |
| 2417 | esac |
| 2418 | done |
| 2419 | |
| 2420 | ac_given_srcdir=$srcdir |
| 2421 | |
| 2422 | trap 'rm -fr `echo "Makefile:Makefile.in:$BOILERPLATE \ |
| 2423 | rdr/Makefile:rdr/Makefile.in:$BOILERPLATE \ |
| 2424 | network/Makefile:network/Makefile.in:$BOILERPLATE \ |
| 2425 | Xregion/Makefile:Xregion/Makefile.in:$BOILERPLATE \ |
| 2426 | rfb/Makefile:rfb/Makefile.in:$BOILERPLATE \ |
| 2427 | " | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 |
| 2428 | EOF |
| 2429 | cat >> $CONFIG_STATUS <<EOF |
| 2430 | |
| 2431 | # Protect against being on the right side of a sed subst in config.status. |
| 2432 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; |
| 2433 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF |
| 2434 | $ac_vpsub |
| 2435 | $extrasub |
| 2436 | s%@SHELL@%$SHELL%g |
| 2437 | s%@CFLAGS@%$CFLAGS%g |
| 2438 | s%@CPPFLAGS@%$CPPFLAGS%g |
| 2439 | s%@CXXFLAGS@%$CXXFLAGS%g |
| 2440 | s%@FFLAGS@%$FFLAGS%g |
| 2441 | s%@DEFS@%$DEFS%g |
| 2442 | s%@LDFLAGS@%$LDFLAGS%g |
| 2443 | s%@LIBS@%$LIBS%g |
| 2444 | s%@exec_prefix@%$exec_prefix%g |
| 2445 | s%@prefix@%$prefix%g |
| 2446 | s%@program_transform_name@%$program_transform_name%g |
| 2447 | s%@bindir@%$bindir%g |
| 2448 | s%@sbindir@%$sbindir%g |
| 2449 | s%@libexecdir@%$libexecdir%g |
| 2450 | s%@datadir@%$datadir%g |
| 2451 | s%@sysconfdir@%$sysconfdir%g |
| 2452 | s%@sharedstatedir@%$sharedstatedir%g |
| 2453 | s%@localstatedir@%$localstatedir%g |
| 2454 | s%@libdir@%$libdir%g |
| 2455 | s%@includedir@%$includedir%g |
| 2456 | s%@oldincludedir@%$oldincludedir%g |
| 2457 | s%@infodir@%$infodir%g |
| 2458 | s%@mandir@%$mandir%g |
| 2459 | s%@CC@%$CC%g |
| 2460 | s%@CXX@%$CXX%g |
| 2461 | s%@RANLIB@%$RANLIB%g |
| 2462 | s%@SET_MAKE@%$SET_MAKE%g |
| 2463 | s%@CXXCPP@%$CXXCPP%g |
| 2464 | s%@X_CFLAGS@%$X_CFLAGS%g |
| 2465 | s%@X_PRE_LIBS@%$X_PRE_LIBS%g |
| 2466 | s%@X_LIBS@%$X_LIBS%g |
| 2467 | s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g |
| 2468 | s%@ZLIB_DIR@%$ZLIB_DIR%g |
| 2469 | s%@ZLIB_INCLUDE@%$ZLIB_INCLUDE%g |
| 2470 | s%@ZLIB_LIB@%$ZLIB_LIB%g |
| 2471 | s%@JPEG_DIR@%$JPEG_DIR%g |
| 2472 | s%@JPEG_INCLUDE@%$JPEG_INCLUDE%g |
| 2473 | s%@JPEG_LIB@%$JPEG_LIB%g |
| 2474 | s%@VSNPRINTF_DEFINE@%$VSNPRINTF_DEFINE%g |
| 2475 | s%@STRCASECMP_DEFINE@%$STRCASECMP_DEFINE%g |
| 2476 | s%@STRNCASECMP_DEFINE@%$STRNCASECMP_DEFINE%g |
| 2477 | s%@INET_LIB@%$INET_LIB%g |
| 2478 | s%@SOCKLEN_T_DEFINE@%$SOCKLEN_T_DEFINE%g |
| 2479 | |
| 2480 | CEOF |
| 2481 | EOF |
| 2482 | |
| 2483 | cat >> $CONFIG_STATUS <<\EOF |
| 2484 | |
| 2485 | # Split the substitutions into bite-sized pieces for seds with |
| 2486 | # small command number limits, like on Digital OSF/1 and HP-UX. |
| 2487 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. |
| 2488 | ac_file=1 # Number of current file. |
| 2489 | ac_beg=1 # First line for current file. |
| 2490 | ac_end=$ac_max_sed_cmds # Line after last line for current file. |
| 2491 | ac_more_lines=: |
| 2492 | ac_sed_cmds="" |
| 2493 | while $ac_more_lines; do |
| 2494 | if test $ac_beg -gt 1; then |
| 2495 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file |
| 2496 | else |
| 2497 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file |
| 2498 | fi |
| 2499 | if test ! -s conftest.s$ac_file; then |
| 2500 | ac_more_lines=false |
| 2501 | rm -f conftest.s$ac_file |
| 2502 | else |
| 2503 | if test -z "$ac_sed_cmds"; then |
| 2504 | ac_sed_cmds="sed -f conftest.s$ac_file" |
| 2505 | else |
| 2506 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" |
| 2507 | fi |
| 2508 | ac_file=`expr $ac_file + 1` |
| 2509 | ac_beg=$ac_end |
| 2510 | ac_end=`expr $ac_end + $ac_max_sed_cmds` |
| 2511 | fi |
| 2512 | done |
| 2513 | if test -z "$ac_sed_cmds"; then |
| 2514 | ac_sed_cmds=cat |
| 2515 | fi |
| 2516 | EOF |
| 2517 | |
| 2518 | cat >> $CONFIG_STATUS <<EOF |
| 2519 | |
| 2520 | CONFIG_FILES=\${CONFIG_FILES-"Makefile:Makefile.in:$BOILERPLATE \ |
| 2521 | rdr/Makefile:rdr/Makefile.in:$BOILERPLATE \ |
| 2522 | network/Makefile:network/Makefile.in:$BOILERPLATE \ |
| 2523 | Xregion/Makefile:Xregion/Makefile.in:$BOILERPLATE \ |
| 2524 | rfb/Makefile:rfb/Makefile.in:$BOILERPLATE \ |
| 2525 | "} |
| 2526 | EOF |
| 2527 | cat >> $CONFIG_STATUS <<\EOF |
| 2528 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then |
| 2529 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
| 2530 | case "$ac_file" in |
| 2531 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` |
| 2532 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
| 2533 | *) ac_file_in="${ac_file}.in" ;; |
| 2534 | esac |
| 2535 | |
| 2536 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. |
| 2537 | |
| 2538 | # Remove last slash and all that follows it. Not all systems have dirname. |
| 2539 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` |
| 2540 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
| 2541 | # The file is in a subdirectory. |
| 2542 | test ! -d "$ac_dir" && mkdir "$ac_dir" |
| 2543 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" |
| 2544 | # A "../" for each directory in $ac_dir_suffix. |
| 2545 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` |
| 2546 | else |
| 2547 | ac_dir_suffix= ac_dots= |
| 2548 | fi |
| 2549 | |
| 2550 | case "$ac_given_srcdir" in |
| 2551 | .) srcdir=. |
| 2552 | if test -z "$ac_dots"; then top_srcdir=. |
| 2553 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; |
| 2554 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; |
| 2555 | *) # Relative path. |
| 2556 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" |
| 2557 | top_srcdir="$ac_dots$ac_given_srcdir" ;; |
| 2558 | esac |
| 2559 | |
| 2560 | |
| 2561 | echo creating "$ac_file" |
| 2562 | rm -f "$ac_file" |
| 2563 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." |
| 2564 | case "$ac_file" in |
| 2565 | *Makefile*) ac_comsub="1i\\ |
| 2566 | # $configure_input" ;; |
| 2567 | *) ac_comsub= ;; |
| 2568 | esac |
| 2569 | |
| 2570 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` |
| 2571 | sed -e "$ac_comsub |
| 2572 | s%@configure_input@%$configure_input%g |
| 2573 | s%@srcdir@%$srcdir%g |
| 2574 | s%@top_srcdir@%$top_srcdir%g |
| 2575 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file |
| 2576 | fi; done |
| 2577 | rm -f conftest.s* |
| 2578 | |
| 2579 | EOF |
| 2580 | cat >> $CONFIG_STATUS <<EOF |
| 2581 | |
| 2582 | EOF |
| 2583 | cat >> $CONFIG_STATUS <<\EOF |
| 2584 | |
| 2585 | exit 0 |
| 2586 | EOF |
| 2587 | chmod +x $CONFIG_STATUS |
| 2588 | rm -fr confdefs* $ac_clean_files |
| 2589 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 |
| 2590 | |