[15270] | 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 | --enable-shared[=PKGS] build shared libraries [default=yes]" |
---|
| 16 | ac_help="$ac_help |
---|
| 17 | --enable-static[=PKGS] build static libraries [default=yes]" |
---|
| 18 | ac_help="$ac_help |
---|
| 19 | --enable-fast-install[=PKGS] optimize for fast installation [default=yes]" |
---|
| 20 | ac_help="$ac_help |
---|
| 21 | --with-gnu-ld assume the C compiler uses GNU ld [default=no]" |
---|
| 22 | ac_help="$ac_help |
---|
| 23 | --disable-libtool-lock avoid locking (might break parallel builds)" |
---|
| 24 | ac_help="$ac_help |
---|
| 25 | --enable-maintainer-mode enable make rules and dependencies not useful |
---|
| 26 | (and sometimes confusing) to the casual installer" |
---|
| 27 | ac_help="$ac_help |
---|
| 28 | --disable-indent do not indent output code" |
---|
| 29 | ac_help="$ac_help |
---|
| 30 | --with-glib-prefix=PFX Prefix where GLIB is installed (optional)" |
---|
| 31 | ac_help="$ac_help |
---|
| 32 | --with-glib-exec-prefix=PFX Exec prefix where GLIB is installed (optional)" |
---|
| 33 | ac_help="$ac_help |
---|
| 34 | --disable-glibtest Do not try to compile and run a test GLIB program" |
---|
| 35 | |
---|
| 36 | # Initialize some variables set by options. |
---|
| 37 | # The variables have the same names as the options, with |
---|
| 38 | # dashes changed to underlines. |
---|
| 39 | build=NONE |
---|
| 40 | cache_file=./config.cache |
---|
| 41 | exec_prefix=NONE |
---|
| 42 | host=NONE |
---|
| 43 | no_create= |
---|
| 44 | nonopt=NONE |
---|
| 45 | no_recursion= |
---|
| 46 | prefix=NONE |
---|
| 47 | program_prefix=NONE |
---|
| 48 | program_suffix=NONE |
---|
| 49 | program_transform_name=s,x,x, |
---|
| 50 | silent= |
---|
| 51 | site= |
---|
| 52 | srcdir= |
---|
| 53 | target=NONE |
---|
| 54 | verbose= |
---|
| 55 | x_includes=NONE |
---|
| 56 | x_libraries=NONE |
---|
| 57 | bindir='${exec_prefix}/bin' |
---|
| 58 | sbindir='${exec_prefix}/sbin' |
---|
| 59 | libexecdir='${exec_prefix}/libexec' |
---|
| 60 | datadir='${prefix}/share' |
---|
| 61 | sysconfdir='${prefix}/etc' |
---|
| 62 | sharedstatedir='${prefix}/com' |
---|
| 63 | localstatedir='${prefix}/var' |
---|
| 64 | libdir='${exec_prefix}/lib' |
---|
| 65 | includedir='${prefix}/include' |
---|
| 66 | oldincludedir='/usr/include' |
---|
| 67 | infodir='${prefix}/info' |
---|
| 68 | mandir='${prefix}/man' |
---|
| 69 | |
---|
| 70 | # Initialize some other variables. |
---|
| 71 | subdirs= |
---|
| 72 | MFLAGS= MAKEFLAGS= |
---|
| 73 | SHELL=${CONFIG_SHELL-/bin/sh} |
---|
| 74 | # Maximum number of lines to put in a shell here document. |
---|
| 75 | ac_max_here_lines=12 |
---|
| 76 | |
---|
| 77 | ac_prev= |
---|
| 78 | for ac_option |
---|
| 79 | do |
---|
| 80 | |
---|
| 81 | # If the previous option needs an argument, assign it. |
---|
| 82 | if test -n "$ac_prev"; then |
---|
| 83 | eval "$ac_prev=\$ac_option" |
---|
| 84 | ac_prev= |
---|
| 85 | continue |
---|
| 86 | fi |
---|
| 87 | |
---|
| 88 | case "$ac_option" in |
---|
| 89 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; |
---|
| 90 | *) ac_optarg= ;; |
---|
| 91 | esac |
---|
| 92 | |
---|
| 93 | # Accept the important Cygnus configure options, so we can diagnose typos. |
---|
| 94 | |
---|
| 95 | case "$ac_option" in |
---|
| 96 | |
---|
| 97 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
---|
| 98 | ac_prev=bindir ;; |
---|
| 99 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
---|
| 100 | bindir="$ac_optarg" ;; |
---|
| 101 | |
---|
| 102 | -build | --build | --buil | --bui | --bu) |
---|
| 103 | ac_prev=build ;; |
---|
| 104 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
---|
| 105 | build="$ac_optarg" ;; |
---|
| 106 | |
---|
| 107 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
---|
| 108 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
---|
| 109 | ac_prev=cache_file ;; |
---|
| 110 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
---|
| 111 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
---|
| 112 | cache_file="$ac_optarg" ;; |
---|
| 113 | |
---|
| 114 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
---|
| 115 | ac_prev=datadir ;; |
---|
| 116 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
---|
| 117 | | --da=*) |
---|
| 118 | datadir="$ac_optarg" ;; |
---|
| 119 | |
---|
| 120 | -disable-* | --disable-*) |
---|
| 121 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` |
---|
| 122 | # Reject names that are not valid shell variable names. |
---|
| 123 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then |
---|
| 124 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } |
---|
| 125 | fi |
---|
| 126 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` |
---|
| 127 | eval "enable_${ac_feature}=no" ;; |
---|
| 128 | |
---|
| 129 | -enable-* | --enable-*) |
---|
| 130 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` |
---|
| 131 | # Reject names that are not valid shell variable names. |
---|
| 132 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then |
---|
| 133 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } |
---|
| 134 | fi |
---|
| 135 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` |
---|
| 136 | case "$ac_option" in |
---|
| 137 | *=*) ;; |
---|
| 138 | *) ac_optarg=yes ;; |
---|
| 139 | esac |
---|
| 140 | eval "enable_${ac_feature}='$ac_optarg'" ;; |
---|
| 141 | |
---|
| 142 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
---|
| 143 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
---|
| 144 | | --exec | --exe | --ex) |
---|
| 145 | ac_prev=exec_prefix ;; |
---|
| 146 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
---|
| 147 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
---|
| 148 | | --exec=* | --exe=* | --ex=*) |
---|
| 149 | exec_prefix="$ac_optarg" ;; |
---|
| 150 | |
---|
| 151 | -gas | --gas | --ga | --g) |
---|
| 152 | # Obsolete; use --with-gas. |
---|
| 153 | with_gas=yes ;; |
---|
| 154 | |
---|
| 155 | -help | --help | --hel | --he) |
---|
| 156 | # Omit some internal or obsolete options to make the list less imposing. |
---|
| 157 | # This message is too long to be a string in the A/UX 3.1 sh. |
---|
| 158 | cat << EOF |
---|
| 159 | Usage: configure [options] [host] |
---|
| 160 | Options: [defaults in brackets after descriptions] |
---|
| 161 | Configuration: |
---|
| 162 | --cache-file=FILE cache test results in FILE |
---|
| 163 | --help print this message |
---|
| 164 | --no-create do not create output files |
---|
| 165 | --quiet, --silent do not print \`checking...' messages |
---|
| 166 | --version print the version of autoconf that created configure |
---|
| 167 | Directory and file names: |
---|
| 168 | --prefix=PREFIX install architecture-independent files in PREFIX |
---|
| 169 | [$ac_default_prefix] |
---|
| 170 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
---|
| 171 | [same as prefix] |
---|
| 172 | --bindir=DIR user executables in DIR [EPREFIX/bin] |
---|
| 173 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] |
---|
| 174 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec] |
---|
| 175 | --datadir=DIR read-only architecture-independent data in DIR |
---|
| 176 | [PREFIX/share] |
---|
| 177 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] |
---|
| 178 | --sharedstatedir=DIR modifiable architecture-independent data in DIR |
---|
| 179 | [PREFIX/com] |
---|
| 180 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] |
---|
| 181 | --libdir=DIR object code libraries in DIR [EPREFIX/lib] |
---|
| 182 | --includedir=DIR C header files in DIR [PREFIX/include] |
---|
| 183 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] |
---|
| 184 | --infodir=DIR info documentation in DIR [PREFIX/info] |
---|
| 185 | --mandir=DIR man documentation in DIR [PREFIX/man] |
---|
| 186 | --srcdir=DIR find the sources in DIR [configure dir or ..] |
---|
| 187 | --program-prefix=PREFIX prepend PREFIX to installed program names |
---|
| 188 | --program-suffix=SUFFIX append SUFFIX to installed program names |
---|
| 189 | --program-transform-name=PROGRAM |
---|
| 190 | run sed PROGRAM on installed program names |
---|
| 191 | EOF |
---|
| 192 | cat << EOF |
---|
| 193 | Host type: |
---|
| 194 | --build=BUILD configure for building on BUILD [BUILD=HOST] |
---|
| 195 | --host=HOST configure for HOST [guessed] |
---|
| 196 | --target=TARGET configure for TARGET [TARGET=HOST] |
---|
| 197 | Features and packages: |
---|
| 198 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
---|
| 199 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
---|
| 200 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
---|
| 201 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
---|
| 202 | --x-includes=DIR X include files are in DIR |
---|
| 203 | --x-libraries=DIR X library files are in DIR |
---|
| 204 | EOF |
---|
| 205 | if test -n "$ac_help"; then |
---|
| 206 | echo "--enable and --with options recognized:$ac_help" |
---|
| 207 | fi |
---|
| 208 | exit 0 ;; |
---|
| 209 | |
---|
| 210 | -host | --host | --hos | --ho) |
---|
| 211 | ac_prev=host ;; |
---|
| 212 | -host=* | --host=* | --hos=* | --ho=*) |
---|
| 213 | host="$ac_optarg" ;; |
---|
| 214 | |
---|
| 215 | -includedir | --includedir | --includedi | --included | --include \ |
---|
| 216 | | --includ | --inclu | --incl | --inc) |
---|
| 217 | ac_prev=includedir ;; |
---|
| 218 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
---|
| 219 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
---|
| 220 | includedir="$ac_optarg" ;; |
---|
| 221 | |
---|
| 222 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
---|
| 223 | ac_prev=infodir ;; |
---|
| 224 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
---|
| 225 | infodir="$ac_optarg" ;; |
---|
| 226 | |
---|
| 227 | -libdir | --libdir | --libdi | --libd) |
---|
| 228 | ac_prev=libdir ;; |
---|
| 229 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
---|
| 230 | libdir="$ac_optarg" ;; |
---|
| 231 | |
---|
| 232 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
---|
| 233 | | --libexe | --libex | --libe) |
---|
| 234 | ac_prev=libexecdir ;; |
---|
| 235 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
---|
| 236 | | --libexe=* | --libex=* | --libe=*) |
---|
| 237 | libexecdir="$ac_optarg" ;; |
---|
| 238 | |
---|
| 239 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
---|
| 240 | | --localstate | --localstat | --localsta | --localst \ |
---|
| 241 | | --locals | --local | --loca | --loc | --lo) |
---|
| 242 | ac_prev=localstatedir ;; |
---|
| 243 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
---|
| 244 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
---|
| 245 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
---|
| 246 | localstatedir="$ac_optarg" ;; |
---|
| 247 | |
---|
| 248 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
---|
| 249 | ac_prev=mandir ;; |
---|
| 250 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
---|
| 251 | mandir="$ac_optarg" ;; |
---|
| 252 | |
---|
| 253 | -nfp | --nfp | --nf) |
---|
| 254 | # Obsolete; use --without-fp. |
---|
| 255 | with_fp=no ;; |
---|
| 256 | |
---|
| 257 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
---|
| 258 | | --no-cr | --no-c) |
---|
| 259 | no_create=yes ;; |
---|
| 260 | |
---|
| 261 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
---|
| 262 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
---|
| 263 | no_recursion=yes ;; |
---|
| 264 | |
---|
| 265 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
---|
| 266 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
---|
| 267 | | --oldin | --oldi | --old | --ol | --o) |
---|
| 268 | ac_prev=oldincludedir ;; |
---|
| 269 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
---|
| 270 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
---|
| 271 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
---|
| 272 | oldincludedir="$ac_optarg" ;; |
---|
| 273 | |
---|
| 274 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
---|
| 275 | ac_prev=prefix ;; |
---|
| 276 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
---|
| 277 | prefix="$ac_optarg" ;; |
---|
| 278 | |
---|
| 279 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
---|
| 280 | | --program-pre | --program-pr | --program-p) |
---|
| 281 | ac_prev=program_prefix ;; |
---|
| 282 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
---|
| 283 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
---|
| 284 | program_prefix="$ac_optarg" ;; |
---|
| 285 | |
---|
| 286 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
---|
| 287 | | --program-suf | --program-su | --program-s) |
---|
| 288 | ac_prev=program_suffix ;; |
---|
| 289 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
---|
| 290 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
---|
| 291 | program_suffix="$ac_optarg" ;; |
---|
| 292 | |
---|
| 293 | -program-transform-name | --program-transform-name \ |
---|
| 294 | | --program-transform-nam | --program-transform-na \ |
---|
| 295 | | --program-transform-n | --program-transform- \ |
---|
| 296 | | --program-transform | --program-transfor \ |
---|
| 297 | | --program-transfo | --program-transf \ |
---|
| 298 | | --program-trans | --program-tran \ |
---|
| 299 | | --progr-tra | --program-tr | --program-t) |
---|
| 300 | ac_prev=program_transform_name ;; |
---|
| 301 | -program-transform-name=* | --program-transform-name=* \ |
---|
| 302 | | --program-transform-nam=* | --program-transform-na=* \ |
---|
| 303 | | --program-transform-n=* | --program-transform-=* \ |
---|
| 304 | | --program-transform=* | --program-transfor=* \ |
---|
| 305 | | --program-transfo=* | --program-transf=* \ |
---|
| 306 | | --program-trans=* | --program-tran=* \ |
---|
| 307 | | --progr-tra=* | --program-tr=* | --program-t=*) |
---|
| 308 | program_transform_name="$ac_optarg" ;; |
---|
| 309 | |
---|
| 310 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
| 311 | | -silent | --silent | --silen | --sile | --sil) |
---|
| 312 | silent=yes ;; |
---|
| 313 | |
---|
| 314 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
---|
| 315 | ac_prev=sbindir ;; |
---|
| 316 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
---|
| 317 | | --sbi=* | --sb=*) |
---|
| 318 | sbindir="$ac_optarg" ;; |
---|
| 319 | |
---|
| 320 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
---|
| 321 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
---|
| 322 | | --sharedst | --shareds | --shared | --share | --shar \ |
---|
| 323 | | --sha | --sh) |
---|
| 324 | ac_prev=sharedstatedir ;; |
---|
| 325 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
---|
| 326 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
---|
| 327 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
---|
| 328 | | --sha=* | --sh=*) |
---|
| 329 | sharedstatedir="$ac_optarg" ;; |
---|
| 330 | |
---|
| 331 | -site | --site | --sit) |
---|
| 332 | ac_prev=site ;; |
---|
| 333 | -site=* | --site=* | --sit=*) |
---|
| 334 | site="$ac_optarg" ;; |
---|
| 335 | |
---|
| 336 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
---|
| 337 | ac_prev=srcdir ;; |
---|
| 338 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
---|
| 339 | srcdir="$ac_optarg" ;; |
---|
| 340 | |
---|
| 341 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
---|
| 342 | | --syscon | --sysco | --sysc | --sys | --sy) |
---|
| 343 | ac_prev=sysconfdir ;; |
---|
| 344 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
---|
| 345 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
---|
| 346 | sysconfdir="$ac_optarg" ;; |
---|
| 347 | |
---|
| 348 | -target | --target | --targe | --targ | --tar | --ta | --t) |
---|
| 349 | ac_prev=target ;; |
---|
| 350 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
---|
| 351 | target="$ac_optarg" ;; |
---|
| 352 | |
---|
| 353 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
---|
| 354 | verbose=yes ;; |
---|
| 355 | |
---|
| 356 | -version | --version | --versio | --versi | --vers) |
---|
| 357 | echo "configure generated by autoconf version 2.13" |
---|
| 358 | exit 0 ;; |
---|
| 359 | |
---|
| 360 | -with-* | --with-*) |
---|
| 361 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` |
---|
| 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 | case "$ac_option" in |
---|
| 368 | *=*) ;; |
---|
| 369 | *) ac_optarg=yes ;; |
---|
| 370 | esac |
---|
| 371 | eval "with_${ac_package}='$ac_optarg'" ;; |
---|
| 372 | |
---|
| 373 | -without-* | --without-*) |
---|
| 374 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` |
---|
| 375 | # Reject names that are not valid shell variable names. |
---|
| 376 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then |
---|
| 377 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } |
---|
| 378 | fi |
---|
| 379 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
---|
| 380 | eval "with_${ac_package}=no" ;; |
---|
| 381 | |
---|
| 382 | --x) |
---|
| 383 | # Obsolete; use --with-x. |
---|
| 384 | with_x=yes ;; |
---|
| 385 | |
---|
| 386 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
---|
| 387 | | --x-incl | --x-inc | --x-in | --x-i) |
---|
| 388 | ac_prev=x_includes ;; |
---|
| 389 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
---|
| 390 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
---|
| 391 | x_includes="$ac_optarg" ;; |
---|
| 392 | |
---|
| 393 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
---|
| 394 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
---|
| 395 | ac_prev=x_libraries ;; |
---|
| 396 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
---|
| 397 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
---|
| 398 | x_libraries="$ac_optarg" ;; |
---|
| 399 | |
---|
| 400 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } |
---|
| 401 | ;; |
---|
| 402 | |
---|
| 403 | *) |
---|
| 404 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then |
---|
| 405 | echo "configure: warning: $ac_option: invalid host type" 1>&2 |
---|
| 406 | fi |
---|
| 407 | if test "x$nonopt" != xNONE; then |
---|
| 408 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } |
---|
| 409 | fi |
---|
| 410 | nonopt="$ac_option" |
---|
| 411 | ;; |
---|
| 412 | |
---|
| 413 | esac |
---|
| 414 | done |
---|
| 415 | |
---|
| 416 | if test -n "$ac_prev"; then |
---|
| 417 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } |
---|
| 418 | fi |
---|
| 419 | |
---|
| 420 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
---|
| 421 | |
---|
| 422 | # File descriptor usage: |
---|
| 423 | # 0 standard input |
---|
| 424 | # 1 file creation |
---|
| 425 | # 2 errors and warnings |
---|
| 426 | # 3 some systems may open it to /dev/tty |
---|
| 427 | # 4 used on the Kubota Titan |
---|
| 428 | # 6 checking for... messages and results |
---|
| 429 | # 5 compiler messages saved in config.log |
---|
| 430 | if test "$silent" = yes; then |
---|
| 431 | exec 6>/dev/null |
---|
| 432 | else |
---|
| 433 | exec 6>&1 |
---|
| 434 | fi |
---|
| 435 | exec 5>./config.log |
---|
| 436 | |
---|
| 437 | echo "\ |
---|
| 438 | This file contains any messages produced by compilers while |
---|
| 439 | running configure, to aid debugging if configure makes a mistake. |
---|
| 440 | " 1>&5 |
---|
| 441 | |
---|
| 442 | # Strip out --no-create and --no-recursion so they do not pile up. |
---|
| 443 | # Also quote any args containing shell metacharacters. |
---|
| 444 | ac_configure_args= |
---|
| 445 | for ac_arg |
---|
| 446 | do |
---|
| 447 | case "$ac_arg" in |
---|
| 448 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
---|
| 449 | | --no-cr | --no-c) ;; |
---|
| 450 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
---|
| 451 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; |
---|
| 452 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) |
---|
| 453 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
---|
| 454 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; |
---|
| 455 | esac |
---|
| 456 | done |
---|
| 457 | |
---|
| 458 | # NLS nuisances. |
---|
| 459 | # Only set these to C if already set. These must not be set unconditionally |
---|
| 460 | # because not all systems understand e.g. LANG=C (notably SCO). |
---|
| 461 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! |
---|
| 462 | # Non-C LC_CTYPE values break the ctype check. |
---|
| 463 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi |
---|
| 464 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi |
---|
| 465 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi |
---|
| 466 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi |
---|
| 467 | |
---|
| 468 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
---|
| 469 | rm -rf conftest* confdefs.h |
---|
| 470 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
---|
| 471 | echo > confdefs.h |
---|
| 472 | |
---|
| 473 | # A filename unique to this package, relative to the directory that |
---|
| 474 | # configure is in, which we can look for to find out if srcdir is correct. |
---|
| 475 | ac_unique_file=src/orb/orbit_types.h |
---|
| 476 | |
---|
| 477 | # Find the source files, if location was not specified. |
---|
| 478 | if test -z "$srcdir"; then |
---|
| 479 | ac_srcdir_defaulted=yes |
---|
| 480 | # Try the directory containing this script, then its parent. |
---|
| 481 | ac_prog=$0 |
---|
| 482 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` |
---|
| 483 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. |
---|
| 484 | srcdir=$ac_confdir |
---|
| 485 | if test ! -r $srcdir/$ac_unique_file; then |
---|
| 486 | srcdir=.. |
---|
| 487 | fi |
---|
| 488 | else |
---|
| 489 | ac_srcdir_defaulted=no |
---|
| 490 | fi |
---|
| 491 | if test ! -r $srcdir/$ac_unique_file; then |
---|
| 492 | if test "$ac_srcdir_defaulted" = yes; then |
---|
| 493 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } |
---|
| 494 | else |
---|
| 495 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } |
---|
| 496 | fi |
---|
| 497 | fi |
---|
| 498 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` |
---|
| 499 | |
---|
| 500 | # Prefer explicitly selected file to automatically selected ones. |
---|
| 501 | if test -z "$CONFIG_SITE"; then |
---|
| 502 | if test "x$prefix" != xNONE; then |
---|
| 503 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
---|
| 504 | else |
---|
| 505 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
---|
| 506 | fi |
---|
| 507 | fi |
---|
| 508 | for ac_site_file in $CONFIG_SITE; do |
---|
| 509 | if test -r "$ac_site_file"; then |
---|
| 510 | echo "loading site script $ac_site_file" |
---|
| 511 | . "$ac_site_file" |
---|
| 512 | fi |
---|
| 513 | done |
---|
| 514 | |
---|
| 515 | if test -r "$cache_file"; then |
---|
| 516 | echo "loading cache $cache_file" |
---|
| 517 | . $cache_file |
---|
| 518 | else |
---|
| 519 | echo "creating cache $cache_file" |
---|
| 520 | > $cache_file |
---|
| 521 | fi |
---|
| 522 | |
---|
| 523 | ac_ext=c |
---|
| 524 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
---|
| 525 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 526 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
---|
| 527 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
---|
| 528 | cross_compiling=$ac_cv_prog_cc_cross |
---|
| 529 | |
---|
| 530 | ac_exeext= |
---|
| 531 | ac_objext=o |
---|
| 532 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then |
---|
| 533 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. |
---|
| 534 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then |
---|
| 535 | ac_n= ac_c=' |
---|
| 536 | ' ac_t=' ' |
---|
| 537 | else |
---|
| 538 | ac_n=-n ac_c= ac_t= |
---|
| 539 | fi |
---|
| 540 | else |
---|
| 541 | ac_n= ac_c='\c' ac_t= |
---|
| 542 | fi |
---|
| 543 | |
---|
| 544 | |
---|
| 545 | |
---|
| 546 | # required version of autoconf |
---|
| 547 | |
---|
| 548 | # (From GTK+) |
---|
| 549 | # Making releases: |
---|
| 550 | # ORBIT_MICRO_VERSION += 1; |
---|
| 551 | # ORBIT_INTERFACE_AGE += 1; |
---|
| 552 | # ORBIT_BINARY_AGE += 1; |
---|
| 553 | # if any functions have been added, set ORBIT_INTERFACE_AGE to 0. |
---|
| 554 | # if backwards compatibility has been broken, |
---|
| 555 | # set ORBIT_BINARY_AGE and ORBIT_INTERFACE_AGE to 0. |
---|
| 556 | # |
---|
| 557 | ########## |
---|
| 558 | # Screw the above, just play with the numbers until they match the |
---|
| 559 | # package version number. As soon as libtool lets us specify |
---|
| 560 | # sonames we'll start using that for binary compat, but until then |
---|
| 561 | # caveat user :) |
---|
| 562 | |
---|
| 563 | ORBIT_MAJOR_VERSION=0 |
---|
| 564 | ORBIT_MINOR_VERSION=5 |
---|
| 565 | ORBIT_MICRO_VERSION=4 |
---|
| 566 | ORBIT_INTERFACE_AGE=0 |
---|
| 567 | ORBIT_BINARY_AGE=0 |
---|
| 568 | ORBIT_VERSION=$ORBIT_MAJOR_VERSION.$ORBIT_MINOR_VERSION.$ORBIT_MICRO_VERSION |
---|
| 569 | |
---|
| 570 | |
---|
| 571 | |
---|
| 572 | |
---|
| 573 | |
---|
| 574 | # libtool versioning |
---|
| 575 | #LT_RELEASE=$ORBIT_MAJOR_VERSION.$ORBIT_MINOR_VERSION |
---|
| 576 | #LT_CURRENT=`expr $ORBIT_MICRO_VERSION - $ORBIT_INTERFACE_AGE` |
---|
| 577 | #LT_REVISION=$ORBIT_INTERFACE_AGE |
---|
| 578 | #LT_AGE=`expr $ORBIT_BINARY_AGE - $ORBIT_INTERFACE_AGE` |
---|
| 579 | LT_RELEASE=$ORBIT_VERSION |
---|
| 580 | LT_CURRENT=$ORBIT_MINOR_VERSION |
---|
| 581 | LT_REVISION=$ORBIT_MICRO_VERSION |
---|
| 582 | LT_AGE=$ORBIT_MINOR_VERSION |
---|
| 583 | |
---|
| 584 | |
---|
| 585 | |
---|
| 586 | |
---|
| 587 | |
---|
| 588 | # Increment this every time a feature is added in the .idl compiler |
---|
| 589 | # that needs help from the main libraries. |
---|
| 590 | ORBIT_SERIAL=9 |
---|
| 591 | |
---|
| 592 | |
---|
| 593 | # For automake. |
---|
| 594 | VERSION=$ORBIT_VERSION |
---|
| 595 | PACKAGE=ORBit |
---|
| 596 | |
---|
| 597 | |
---|
| 598 | |
---|
| 599 | |
---|
| 600 | |
---|
| 601 | ac_aux_dir= |
---|
| 602 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
---|
| 603 | if test -f $ac_dir/install-sh; then |
---|
| 604 | ac_aux_dir=$ac_dir |
---|
| 605 | ac_install_sh="$ac_aux_dir/install-sh -c" |
---|
| 606 | break |
---|
| 607 | elif test -f $ac_dir/install.sh; then |
---|
| 608 | ac_aux_dir=$ac_dir |
---|
| 609 | ac_install_sh="$ac_aux_dir/install.sh -c" |
---|
| 610 | break |
---|
| 611 | fi |
---|
| 612 | done |
---|
| 613 | if test -z "$ac_aux_dir"; then |
---|
| 614 | { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } |
---|
| 615 | fi |
---|
| 616 | ac_config_guess=$ac_aux_dir/config.guess |
---|
| 617 | ac_config_sub=$ac_aux_dir/config.sub |
---|
| 618 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. |
---|
| 619 | |
---|
| 620 | # Find a good install program. We prefer a C program (faster), |
---|
| 621 | # so one script is as good as another. But avoid the broken or |
---|
| 622 | # incompatible versions: |
---|
| 623 | # SysV /etc/install, /usr/sbin/install |
---|
| 624 | # SunOS /usr/etc/install |
---|
| 625 | # IRIX /sbin/install |
---|
| 626 | # AIX /bin/install |
---|
| 627 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
---|
| 628 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
---|
| 629 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
---|
| 630 | # ./install, which can be erroneously created by make from ./install.sh. |
---|
| 631 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 |
---|
| 632 | echo "configure:633: checking for a BSD compatible install" >&5 |
---|
| 633 | if test -z "$INSTALL"; then |
---|
| 634 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then |
---|
| 635 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 636 | else |
---|
| 637 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" |
---|
| 638 | for ac_dir in $PATH; do |
---|
| 639 | # Account for people who put trailing slashes in PATH elements. |
---|
| 640 | case "$ac_dir/" in |
---|
| 641 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; |
---|
| 642 | *) |
---|
| 643 | # OSF1 and SCO ODT 3.0 have their own names for install. |
---|
| 644 | # Don't use installbsd from OSF since it installs stuff as root |
---|
| 645 | # by default. |
---|
| 646 | for ac_prog in ginstall scoinst install; do |
---|
| 647 | if test -f $ac_dir/$ac_prog; then |
---|
| 648 | if test $ac_prog = install && |
---|
| 649 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then |
---|
| 650 | # AIX install. It has an incompatible calling convention. |
---|
| 651 | : |
---|
| 652 | else |
---|
| 653 | ac_cv_path_install="$ac_dir/$ac_prog -c" |
---|
| 654 | break 2 |
---|
| 655 | fi |
---|
| 656 | fi |
---|
| 657 | done |
---|
| 658 | ;; |
---|
| 659 | esac |
---|
| 660 | done |
---|
| 661 | IFS="$ac_save_IFS" |
---|
| 662 | |
---|
| 663 | fi |
---|
| 664 | if test "${ac_cv_path_install+set}" = set; then |
---|
| 665 | INSTALL="$ac_cv_path_install" |
---|
| 666 | else |
---|
| 667 | # As a last resort, use the slow shell script. We don't cache a |
---|
| 668 | # path for INSTALL within a source directory, because that will |
---|
| 669 | # break other packages using the cache if that directory is |
---|
| 670 | # removed, or if the path is relative. |
---|
| 671 | INSTALL="$ac_install_sh" |
---|
| 672 | fi |
---|
| 673 | fi |
---|
| 674 | echo "$ac_t""$INSTALL" 1>&6 |
---|
| 675 | |
---|
| 676 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
---|
| 677 | # It thinks the first close brace ends the variable substitution. |
---|
| 678 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
---|
| 679 | |
---|
| 680 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' |
---|
| 681 | |
---|
| 682 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
---|
| 683 | |
---|
| 684 | echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6 |
---|
| 685 | echo "configure:686: checking whether build environment is sane" >&5 |
---|
| 686 | # Just in case |
---|
| 687 | sleep 1 |
---|
| 688 | echo timestamp > conftestfile |
---|
| 689 | # Do `set' in a subshell so we don't clobber the current shell's |
---|
| 690 | # arguments. Must try -L first in case configure is actually a |
---|
| 691 | # symlink; some systems play weird games with the mod time of symlinks |
---|
| 692 | # (eg FreeBSD returns the mod time of the symlink's containing |
---|
| 693 | # directory). |
---|
| 694 | if ( |
---|
| 695 | set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null` |
---|
| 696 | if test "$*" = "X"; then |
---|
| 697 | # -L didn't work. |
---|
| 698 | set X `ls -t $srcdir/configure conftestfile` |
---|
| 699 | fi |
---|
| 700 | if test "$*" != "X $srcdir/configure conftestfile" \ |
---|
| 701 | && test "$*" != "X conftestfile $srcdir/configure"; then |
---|
| 702 | |
---|
| 703 | # If neither matched, then we have a broken ls. This can happen |
---|
| 704 | # if, for instance, CONFIG_SHELL is bash and it inherits a |
---|
| 705 | # broken ls alias from the environment. This has actually |
---|
| 706 | # happened. Such a system could not be considered "sane". |
---|
| 707 | { echo "configure: error: ls -t appears to fail. Make sure there is not a broken |
---|
| 708 | alias in your environment" 1>&2; exit 1; } |
---|
| 709 | fi |
---|
| 710 | |
---|
| 711 | test "$2" = conftestfile |
---|
| 712 | ) |
---|
| 713 | then |
---|
| 714 | # Ok. |
---|
| 715 | : |
---|
| 716 | else |
---|
| 717 | { echo "configure: error: newly created file is older than distributed files! |
---|
| 718 | Check your system clock" 1>&2; exit 1; } |
---|
| 719 | fi |
---|
| 720 | rm -f conftest* |
---|
| 721 | echo "$ac_t""yes" 1>&6 |
---|
| 722 | if test "$program_transform_name" = s,x,x,; then |
---|
| 723 | program_transform_name= |
---|
| 724 | else |
---|
| 725 | # Double any \ or $. echo might interpret backslashes. |
---|
| 726 | cat <<\EOF_SED > conftestsed |
---|
| 727 | s,\\,\\\\,g; s,\$,$$,g |
---|
| 728 | EOF_SED |
---|
| 729 | program_transform_name="`echo $program_transform_name|sed -f conftestsed`" |
---|
| 730 | rm -f conftestsed |
---|
| 731 | fi |
---|
| 732 | test "$program_prefix" != NONE && |
---|
| 733 | program_transform_name="s,^,${program_prefix},; $program_transform_name" |
---|
| 734 | # Use a double $ so make ignores it. |
---|
| 735 | test "$program_suffix" != NONE && |
---|
| 736 | program_transform_name="s,\$\$,${program_suffix},; $program_transform_name" |
---|
| 737 | |
---|
| 738 | # sed with no file args requires a program. |
---|
| 739 | test "$program_transform_name" = "" && program_transform_name="s,x,x," |
---|
| 740 | |
---|
| 741 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 |
---|
| 742 | echo "configure:743: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
---|
| 743 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` |
---|
| 744 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then |
---|
| 745 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 746 | else |
---|
| 747 | cat > conftestmake <<\EOF |
---|
| 748 | all: |
---|
| 749 | @echo 'ac_maketemp="${MAKE}"' |
---|
| 750 | EOF |
---|
| 751 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
---|
| 752 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` |
---|
| 753 | if test -n "$ac_maketemp"; then |
---|
| 754 | eval ac_cv_prog_make_${ac_make}_set=yes |
---|
| 755 | else |
---|
| 756 | eval ac_cv_prog_make_${ac_make}_set=no |
---|
| 757 | fi |
---|
| 758 | rm -f conftestmake |
---|
| 759 | fi |
---|
| 760 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
---|
| 761 | echo "$ac_t""yes" 1>&6 |
---|
| 762 | SET_MAKE= |
---|
| 763 | else |
---|
| 764 | echo "$ac_t""no" 1>&6 |
---|
| 765 | SET_MAKE="MAKE=${MAKE-make}" |
---|
| 766 | fi |
---|
| 767 | |
---|
| 768 | |
---|
| 769 | PACKAGE=$PACKAGE |
---|
| 770 | |
---|
| 771 | VERSION=$VERSION |
---|
| 772 | |
---|
| 773 | if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then |
---|
| 774 | { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; } |
---|
| 775 | fi |
---|
| 776 | |
---|
| 777 | |
---|
| 778 | |
---|
| 779 | missing_dir=`cd $ac_aux_dir && pwd` |
---|
| 780 | echo $ac_n "checking for working aclocal""... $ac_c" 1>&6 |
---|
| 781 | echo "configure:782: checking for working aclocal" >&5 |
---|
| 782 | # Run test in a subshell; some versions of sh will print an error if |
---|
| 783 | # an executable is not found, even if stderr is redirected. |
---|
| 784 | # Redirect stdin to placate older versions of autoconf. Sigh. |
---|
| 785 | if (aclocal --version) < /dev/null > /dev/null 2>&1; then |
---|
| 786 | ACLOCAL=aclocal |
---|
| 787 | echo "$ac_t""found" 1>&6 |
---|
| 788 | else |
---|
| 789 | ACLOCAL="$missing_dir/missing aclocal" |
---|
| 790 | echo "$ac_t""missing" 1>&6 |
---|
| 791 | fi |
---|
| 792 | |
---|
| 793 | echo $ac_n "checking for working autoconf""... $ac_c" 1>&6 |
---|
| 794 | echo "configure:795: checking for working autoconf" >&5 |
---|
| 795 | # Run test in a subshell; some versions of sh will print an error if |
---|
| 796 | # an executable is not found, even if stderr is redirected. |
---|
| 797 | # Redirect stdin to placate older versions of autoconf. Sigh. |
---|
| 798 | if (autoconf --version) < /dev/null > /dev/null 2>&1; then |
---|
| 799 | AUTOCONF=autoconf |
---|
| 800 | echo "$ac_t""found" 1>&6 |
---|
| 801 | else |
---|
| 802 | AUTOCONF="$missing_dir/missing autoconf" |
---|
| 803 | echo "$ac_t""missing" 1>&6 |
---|
| 804 | fi |
---|
| 805 | |
---|
| 806 | echo $ac_n "checking for working automake""... $ac_c" 1>&6 |
---|
| 807 | echo "configure:808: checking for working automake" >&5 |
---|
| 808 | # Run test in a subshell; some versions of sh will print an error if |
---|
| 809 | # an executable is not found, even if stderr is redirected. |
---|
| 810 | # Redirect stdin to placate older versions of autoconf. Sigh. |
---|
| 811 | if (automake --version) < /dev/null > /dev/null 2>&1; then |
---|
| 812 | AUTOMAKE=automake |
---|
| 813 | echo "$ac_t""found" 1>&6 |
---|
| 814 | else |
---|
| 815 | AUTOMAKE="$missing_dir/missing automake" |
---|
| 816 | echo "$ac_t""missing" 1>&6 |
---|
| 817 | fi |
---|
| 818 | |
---|
| 819 | echo $ac_n "checking for working autoheader""... $ac_c" 1>&6 |
---|
| 820 | echo "configure:821: checking for working autoheader" >&5 |
---|
| 821 | # Run test in a subshell; some versions of sh will print an error if |
---|
| 822 | # an executable is not found, even if stderr is redirected. |
---|
| 823 | # Redirect stdin to placate older versions of autoconf. Sigh. |
---|
| 824 | if (autoheader --version) < /dev/null > /dev/null 2>&1; then |
---|
| 825 | AUTOHEADER=autoheader |
---|
| 826 | echo "$ac_t""found" 1>&6 |
---|
| 827 | else |
---|
| 828 | AUTOHEADER="$missing_dir/missing autoheader" |
---|
| 829 | echo "$ac_t""missing" 1>&6 |
---|
| 830 | fi |
---|
| 831 | |
---|
| 832 | echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6 |
---|
| 833 | echo "configure:834: checking for working makeinfo" >&5 |
---|
| 834 | # Run test in a subshell; some versions of sh will print an error if |
---|
| 835 | # an executable is not found, even if stderr is redirected. |
---|
| 836 | # Redirect stdin to placate older versions of autoconf. Sigh. |
---|
| 837 | if (makeinfo --version) < /dev/null > /dev/null 2>&1; then |
---|
| 838 | MAKEINFO=makeinfo |
---|
| 839 | echo "$ac_t""found" 1>&6 |
---|
| 840 | else |
---|
| 841 | MAKEINFO="$missing_dir/missing makeinfo" |
---|
| 842 | echo "$ac_t""missing" 1>&6 |
---|
| 843 | fi |
---|
| 844 | |
---|
| 845 | |
---|
| 846 | |
---|
| 847 | # Check whether --enable-shared or --disable-shared was given. |
---|
| 848 | if test "${enable_shared+set}" = set; then |
---|
| 849 | enableval="$enable_shared" |
---|
| 850 | p=${PACKAGE-default} |
---|
| 851 | case "$enableval" in |
---|
| 852 | yes) enable_shared=yes ;; |
---|
| 853 | no) enable_shared=no ;; |
---|
| 854 | *) |
---|
| 855 | enable_shared=no |
---|
| 856 | # Look at the argument we got. We use all the common list separators. |
---|
| 857 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," |
---|
| 858 | for pkg in $enableval; do |
---|
| 859 | if test "X$pkg" = "X$p"; then |
---|
| 860 | enable_shared=yes |
---|
| 861 | fi |
---|
| 862 | done |
---|
| 863 | IFS="$ac_save_ifs" |
---|
| 864 | ;; |
---|
| 865 | esac |
---|
| 866 | else |
---|
| 867 | enable_shared=yes |
---|
| 868 | fi |
---|
| 869 | |
---|
| 870 | # Check whether --enable-static or --disable-static was given. |
---|
| 871 | if test "${enable_static+set}" = set; then |
---|
| 872 | enableval="$enable_static" |
---|
| 873 | p=${PACKAGE-default} |
---|
| 874 | case "$enableval" in |
---|
| 875 | yes) enable_static=yes ;; |
---|
| 876 | no) enable_static=no ;; |
---|
| 877 | *) |
---|
| 878 | enable_static=no |
---|
| 879 | # Look at the argument we got. We use all the common list separators. |
---|
| 880 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," |
---|
| 881 | for pkg in $enableval; do |
---|
| 882 | if test "X$pkg" = "X$p"; then |
---|
| 883 | enable_static=yes |
---|
| 884 | fi |
---|
| 885 | done |
---|
| 886 | IFS="$ac_save_ifs" |
---|
| 887 | ;; |
---|
| 888 | esac |
---|
| 889 | else |
---|
| 890 | enable_static=yes |
---|
| 891 | fi |
---|
| 892 | |
---|
| 893 | # Check whether --enable-fast-install or --disable-fast-install was given. |
---|
| 894 | if test "${enable_fast_install+set}" = set; then |
---|
| 895 | enableval="$enable_fast_install" |
---|
| 896 | p=${PACKAGE-default} |
---|
| 897 | case "$enableval" in |
---|
| 898 | yes) enable_fast_install=yes ;; |
---|
| 899 | no) enable_fast_install=no ;; |
---|
| 900 | *) |
---|
| 901 | enable_fast_install=no |
---|
| 902 | # Look at the argument we got. We use all the common list separators. |
---|
| 903 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," |
---|
| 904 | for pkg in $enableval; do |
---|
| 905 | if test "X$pkg" = "X$p"; then |
---|
| 906 | enable_fast_install=yes |
---|
| 907 | fi |
---|
| 908 | done |
---|
| 909 | IFS="$ac_save_ifs" |
---|
| 910 | ;; |
---|
| 911 | esac |
---|
| 912 | else |
---|
| 913 | enable_fast_install=yes |
---|
| 914 | fi |
---|
| 915 | |
---|
| 916 | |
---|
| 917 | # Make sure we can run config.sub. |
---|
| 918 | if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : |
---|
| 919 | else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } |
---|
| 920 | fi |
---|
| 921 | |
---|
| 922 | echo $ac_n "checking host system type""... $ac_c" 1>&6 |
---|
| 923 | echo "configure:924: checking host system type" >&5 |
---|
| 924 | |
---|
| 925 | host_alias=$host |
---|
| 926 | case "$host_alias" in |
---|
| 927 | NONE) |
---|
| 928 | case $nonopt in |
---|
| 929 | NONE) |
---|
| 930 | if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : |
---|
| 931 | else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } |
---|
| 932 | fi ;; |
---|
| 933 | *) host_alias=$nonopt ;; |
---|
| 934 | esac ;; |
---|
| 935 | esac |
---|
| 936 | |
---|
| 937 | host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` |
---|
| 938 | host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
---|
| 939 | host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
---|
| 940 | host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
---|
| 941 | echo "$ac_t""$host" 1>&6 |
---|
| 942 | |
---|
| 943 | echo $ac_n "checking build system type""... $ac_c" 1>&6 |
---|
| 944 | echo "configure:945: checking build system type" >&5 |
---|
| 945 | |
---|
| 946 | build_alias=$build |
---|
| 947 | case "$build_alias" in |
---|
| 948 | NONE) |
---|
| 949 | case $nonopt in |
---|
| 950 | NONE) build_alias=$host_alias ;; |
---|
| 951 | *) build_alias=$nonopt ;; |
---|
| 952 | esac ;; |
---|
| 953 | esac |
---|
| 954 | |
---|
| 955 | build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` |
---|
| 956 | build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
---|
| 957 | build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
---|
| 958 | build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
---|
| 959 | echo "$ac_t""$build" 1>&6 |
---|
| 960 | |
---|
| 961 | # Extract the first word of "ranlib", so it can be a program name with args. |
---|
| 962 | set dummy ranlib; ac_word=$2 |
---|
| 963 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
| 964 | echo "configure:965: checking for $ac_word" >&5 |
---|
| 965 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
---|
| 966 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 967 | else |
---|
| 968 | if test -n "$RANLIB"; then |
---|
| 969 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
---|
| 970 | else |
---|
| 971 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
| 972 | ac_dummy="$PATH" |
---|
| 973 | for ac_dir in $ac_dummy; do |
---|
| 974 | test -z "$ac_dir" && ac_dir=. |
---|
| 975 | if test -f $ac_dir/$ac_word; then |
---|
| 976 | ac_cv_prog_RANLIB="ranlib" |
---|
| 977 | break |
---|
| 978 | fi |
---|
| 979 | done |
---|
| 980 | IFS="$ac_save_ifs" |
---|
| 981 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" |
---|
| 982 | fi |
---|
| 983 | fi |
---|
| 984 | RANLIB="$ac_cv_prog_RANLIB" |
---|
| 985 | if test -n "$RANLIB"; then |
---|
| 986 | echo "$ac_t""$RANLIB" 1>&6 |
---|
| 987 | else |
---|
| 988 | echo "$ac_t""no" 1>&6 |
---|
| 989 | fi |
---|
| 990 | |
---|
| 991 | # Extract the first word of "gcc", so it can be a program name with args. |
---|
| 992 | set dummy gcc; ac_word=$2 |
---|
| 993 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
| 994 | echo "configure:995: checking for $ac_word" >&5 |
---|
| 995 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
---|
| 996 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 997 | else |
---|
| 998 | if test -n "$CC"; then |
---|
| 999 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
| 1000 | else |
---|
| 1001 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
| 1002 | ac_dummy="$PATH" |
---|
| 1003 | for ac_dir in $ac_dummy; do |
---|
| 1004 | test -z "$ac_dir" && ac_dir=. |
---|
| 1005 | if test -f $ac_dir/$ac_word; then |
---|
| 1006 | ac_cv_prog_CC="gcc" |
---|
| 1007 | break |
---|
| 1008 | fi |
---|
| 1009 | done |
---|
| 1010 | IFS="$ac_save_ifs" |
---|
| 1011 | fi |
---|
| 1012 | fi |
---|
| 1013 | CC="$ac_cv_prog_CC" |
---|
| 1014 | if test -n "$CC"; then |
---|
| 1015 | echo "$ac_t""$CC" 1>&6 |
---|
| 1016 | else |
---|
| 1017 | echo "$ac_t""no" 1>&6 |
---|
| 1018 | fi |
---|
| 1019 | |
---|
| 1020 | if test -z "$CC"; then |
---|
| 1021 | # Extract the first word of "cc", so it can be a program name with args. |
---|
| 1022 | set dummy cc; ac_word=$2 |
---|
| 1023 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
| 1024 | echo "configure:1025: checking for $ac_word" >&5 |
---|
| 1025 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
---|
| 1026 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 1027 | else |
---|
| 1028 | if test -n "$CC"; then |
---|
| 1029 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
| 1030 | else |
---|
| 1031 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
| 1032 | ac_prog_rejected=no |
---|
| 1033 | ac_dummy="$PATH" |
---|
| 1034 | for ac_dir in $ac_dummy; do |
---|
| 1035 | test -z "$ac_dir" && ac_dir=. |
---|
| 1036 | if test -f $ac_dir/$ac_word; then |
---|
| 1037 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then |
---|
| 1038 | ac_prog_rejected=yes |
---|
| 1039 | continue |
---|
| 1040 | fi |
---|
| 1041 | ac_cv_prog_CC="cc" |
---|
| 1042 | break |
---|
| 1043 | fi |
---|
| 1044 | done |
---|
| 1045 | IFS="$ac_save_ifs" |
---|
| 1046 | if test $ac_prog_rejected = yes; then |
---|
| 1047 | # We found a bogon in the path, so make sure we never use it. |
---|
| 1048 | set dummy $ac_cv_prog_CC |
---|
| 1049 | shift |
---|
| 1050 | if test $# -gt 0; then |
---|
| 1051 | # We chose a different compiler from the bogus one. |
---|
| 1052 | # However, it has the same basename, so the bogon will be chosen |
---|
| 1053 | # first if we set CC to just the basename; use the full file name. |
---|
| 1054 | shift |
---|
| 1055 | set dummy "$ac_dir/$ac_word" "$@" |
---|
| 1056 | shift |
---|
| 1057 | ac_cv_prog_CC="$@" |
---|
| 1058 | fi |
---|
| 1059 | fi |
---|
| 1060 | fi |
---|
| 1061 | fi |
---|
| 1062 | CC="$ac_cv_prog_CC" |
---|
| 1063 | if test -n "$CC"; then |
---|
| 1064 | echo "$ac_t""$CC" 1>&6 |
---|
| 1065 | else |
---|
| 1066 | echo "$ac_t""no" 1>&6 |
---|
| 1067 | fi |
---|
| 1068 | |
---|
| 1069 | if test -z "$CC"; then |
---|
| 1070 | case "`uname -s`" in |
---|
| 1071 | *win32* | *WIN32*) |
---|
| 1072 | # Extract the first word of "cl", so it can be a program name with args. |
---|
| 1073 | set dummy cl; ac_word=$2 |
---|
| 1074 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
| 1075 | echo "configure:1076: checking for $ac_word" >&5 |
---|
| 1076 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
---|
| 1077 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 1078 | else |
---|
| 1079 | if test -n "$CC"; then |
---|
| 1080 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
| 1081 | else |
---|
| 1082 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
| 1083 | ac_dummy="$PATH" |
---|
| 1084 | for ac_dir in $ac_dummy; do |
---|
| 1085 | test -z "$ac_dir" && ac_dir=. |
---|
| 1086 | if test -f $ac_dir/$ac_word; then |
---|
| 1087 | ac_cv_prog_CC="cl" |
---|
| 1088 | break |
---|
| 1089 | fi |
---|
| 1090 | done |
---|
| 1091 | IFS="$ac_save_ifs" |
---|
| 1092 | fi |
---|
| 1093 | fi |
---|
| 1094 | CC="$ac_cv_prog_CC" |
---|
| 1095 | if test -n "$CC"; then |
---|
| 1096 | echo "$ac_t""$CC" 1>&6 |
---|
| 1097 | else |
---|
| 1098 | echo "$ac_t""no" 1>&6 |
---|
| 1099 | fi |
---|
| 1100 | ;; |
---|
| 1101 | esac |
---|
| 1102 | fi |
---|
| 1103 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } |
---|
| 1104 | fi |
---|
| 1105 | |
---|
| 1106 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
---|
| 1107 | echo "configure:1108: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
---|
| 1108 | |
---|
| 1109 | ac_ext=c |
---|
| 1110 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
---|
| 1111 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 1112 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
---|
| 1113 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
---|
| 1114 | cross_compiling=$ac_cv_prog_cc_cross |
---|
| 1115 | |
---|
| 1116 | cat > conftest.$ac_ext << EOF |
---|
| 1117 | |
---|
| 1118 | #line 1119 "configure" |
---|
| 1119 | #include "confdefs.h" |
---|
| 1120 | |
---|
| 1121 | main(){return(0);} |
---|
| 1122 | EOF |
---|
| 1123 | if { (eval echo configure:1124: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
| 1124 | ac_cv_prog_cc_works=yes |
---|
| 1125 | # If we can't run a trivial program, we are probably using a cross compiler. |
---|
| 1126 | if (./conftest; exit) 2>/dev/null; then |
---|
| 1127 | ac_cv_prog_cc_cross=no |
---|
| 1128 | else |
---|
| 1129 | ac_cv_prog_cc_cross=yes |
---|
| 1130 | fi |
---|
| 1131 | else |
---|
| 1132 | echo "configure: failed program was:" >&5 |
---|
| 1133 | cat conftest.$ac_ext >&5 |
---|
| 1134 | ac_cv_prog_cc_works=no |
---|
| 1135 | fi |
---|
| 1136 | rm -fr conftest* |
---|
| 1137 | ac_ext=c |
---|
| 1138 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
---|
| 1139 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 1140 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
---|
| 1141 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
---|
| 1142 | cross_compiling=$ac_cv_prog_cc_cross |
---|
| 1143 | |
---|
| 1144 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 |
---|
| 1145 | if test $ac_cv_prog_cc_works = no; then |
---|
| 1146 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } |
---|
| 1147 | fi |
---|
| 1148 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 |
---|
| 1149 | echo "configure:1150: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
---|
| 1150 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
---|
| 1151 | cross_compiling=$ac_cv_prog_cc_cross |
---|
| 1152 | |
---|
| 1153 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 |
---|
| 1154 | echo "configure:1155: checking whether we are using GNU C" >&5 |
---|
| 1155 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
---|
| 1156 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 1157 | else |
---|
| 1158 | cat > conftest.c <<EOF |
---|
| 1159 | #ifdef __GNUC__ |
---|
| 1160 | yes; |
---|
| 1161 | #endif |
---|
| 1162 | EOF |
---|
| 1163 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1164: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
---|
| 1164 | ac_cv_prog_gcc=yes |
---|
| 1165 | else |
---|
| 1166 | ac_cv_prog_gcc=no |
---|
| 1167 | fi |
---|
| 1168 | fi |
---|
| 1169 | |
---|
| 1170 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 |
---|
| 1171 | |
---|
| 1172 | if test $ac_cv_prog_gcc = yes; then |
---|
| 1173 | GCC=yes |
---|
| 1174 | else |
---|
| 1175 | GCC= |
---|
| 1176 | fi |
---|
| 1177 | |
---|
| 1178 | ac_test_CFLAGS="${CFLAGS+set}" |
---|
| 1179 | ac_save_CFLAGS="$CFLAGS" |
---|
| 1180 | CFLAGS= |
---|
| 1181 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 |
---|
| 1182 | echo "configure:1183: checking whether ${CC-cc} accepts -g" >&5 |
---|
| 1183 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
---|
| 1184 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 1185 | else |
---|
| 1186 | echo 'void f(){}' > conftest.c |
---|
| 1187 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then |
---|
| 1188 | ac_cv_prog_cc_g=yes |
---|
| 1189 | else |
---|
| 1190 | ac_cv_prog_cc_g=no |
---|
| 1191 | fi |
---|
| 1192 | rm -f conftest* |
---|
| 1193 | |
---|
| 1194 | fi |
---|
| 1195 | |
---|
| 1196 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 |
---|
| 1197 | if test "$ac_test_CFLAGS" = set; then |
---|
| 1198 | CFLAGS="$ac_save_CFLAGS" |
---|
| 1199 | elif test $ac_cv_prog_cc_g = yes; then |
---|
| 1200 | if test "$GCC" = yes; then |
---|
| 1201 | CFLAGS="-g -O2" |
---|
| 1202 | else |
---|
| 1203 | CFLAGS="-g" |
---|
| 1204 | fi |
---|
| 1205 | else |
---|
| 1206 | if test "$GCC" = yes; then |
---|
| 1207 | CFLAGS="-O2" |
---|
| 1208 | else |
---|
| 1209 | CFLAGS= |
---|
| 1210 | fi |
---|
| 1211 | fi |
---|
| 1212 | |
---|
| 1213 | # Check whether --with-gnu-ld or --without-gnu-ld was given. |
---|
| 1214 | if test "${with_gnu_ld+set}" = set; then |
---|
| 1215 | withval="$with_gnu_ld" |
---|
| 1216 | test "$withval" = no || with_gnu_ld=yes |
---|
| 1217 | else |
---|
| 1218 | with_gnu_ld=no |
---|
| 1219 | fi |
---|
| 1220 | |
---|
| 1221 | ac_prog=ld |
---|
| 1222 | if test "$ac_cv_prog_gcc" = yes; then |
---|
| 1223 | # Check if gcc -print-prog-name=ld gives a path. |
---|
| 1224 | echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6 |
---|
| 1225 | echo "configure:1226: checking for ld used by GCC" >&5 |
---|
| 1226 | ac_prog=`($CC -print-prog-name=ld) 2>&5` |
---|
| 1227 | case "$ac_prog" in |
---|
| 1228 | # Accept absolute paths. |
---|
| 1229 | [\\/]* | [A-Za-z]:[\\/]*) |
---|
| 1230 | re_direlt='/[^/][^/]*/\.\./' |
---|
| 1231 | # Canonicalize the path of ld |
---|
| 1232 | ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` |
---|
| 1233 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
---|
| 1234 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` |
---|
| 1235 | done |
---|
| 1236 | test -z "$LD" && LD="$ac_prog" |
---|
| 1237 | ;; |
---|
| 1238 | "") |
---|
| 1239 | # If it fails, then pretend we aren't using GCC. |
---|
| 1240 | ac_prog=ld |
---|
| 1241 | ;; |
---|
| 1242 | *) |
---|
| 1243 | # If it is relative, then search for the first ld in PATH. |
---|
| 1244 | with_gnu_ld=unknown |
---|
| 1245 | ;; |
---|
| 1246 | esac |
---|
| 1247 | elif test "$with_gnu_ld" = yes; then |
---|
| 1248 | echo $ac_n "checking for GNU ld""... $ac_c" 1>&6 |
---|
| 1249 | echo "configure:1250: checking for GNU ld" >&5 |
---|
| 1250 | else |
---|
| 1251 | echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6 |
---|
| 1252 | echo "configure:1253: checking for non-GNU ld" >&5 |
---|
| 1253 | fi |
---|
| 1254 | if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then |
---|
| 1255 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 1256 | else |
---|
| 1257 | if test -z "$LD"; then |
---|
| 1258 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" |
---|
| 1259 | for ac_dir in $PATH; do |
---|
| 1260 | test -z "$ac_dir" && ac_dir=. |
---|
| 1261 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
---|
| 1262 | ac_cv_path_LD="$ac_dir/$ac_prog" |
---|
| 1263 | # Check to see if the program is GNU ld. I'd rather use --version, |
---|
| 1264 | # but apparently some GNU ld's only accept -v. |
---|
| 1265 | # Break only if it was the GNU/non-GNU ld that we prefer. |
---|
| 1266 | if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then |
---|
| 1267 | test "$with_gnu_ld" != no && break |
---|
| 1268 | else |
---|
| 1269 | test "$with_gnu_ld" != yes && break |
---|
| 1270 | fi |
---|
| 1271 | fi |
---|
| 1272 | done |
---|
| 1273 | IFS="$ac_save_ifs" |
---|
| 1274 | else |
---|
| 1275 | ac_cv_path_LD="$LD" # Let the user override the test with a path. |
---|
| 1276 | fi |
---|
| 1277 | fi |
---|
| 1278 | |
---|
| 1279 | LD="$ac_cv_path_LD" |
---|
| 1280 | if test -n "$LD"; then |
---|
| 1281 | echo "$ac_t""$LD" 1>&6 |
---|
| 1282 | else |
---|
| 1283 | echo "$ac_t""no" 1>&6 |
---|
| 1284 | fi |
---|
| 1285 | test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; } |
---|
| 1286 | echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6 |
---|
| 1287 | echo "configure:1288: checking if the linker ($LD) is GNU ld" >&5 |
---|
| 1288 | if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then |
---|
| 1289 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 1290 | else |
---|
| 1291 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. |
---|
| 1292 | if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then |
---|
| 1293 | ac_cv_prog_gnu_ld=yes |
---|
| 1294 | else |
---|
| 1295 | ac_cv_prog_gnu_ld=no |
---|
| 1296 | fi |
---|
| 1297 | fi |
---|
| 1298 | |
---|
| 1299 | echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6 |
---|
| 1300 | |
---|
| 1301 | |
---|
| 1302 | echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6 |
---|
| 1303 | echo "configure:1304: checking for BSD-compatible nm" >&5 |
---|
| 1304 | if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then |
---|
| 1305 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 1306 | else |
---|
| 1307 | if test -n "$NM"; then |
---|
| 1308 | # Let the user override the test. |
---|
| 1309 | ac_cv_path_NM="$NM" |
---|
| 1310 | else |
---|
| 1311 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" |
---|
| 1312 | for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do |
---|
| 1313 | test -z "$ac_dir" && ac_dir=. |
---|
| 1314 | if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then |
---|
| 1315 | # Check to see if the nm accepts a BSD-compat flag. |
---|
| 1316 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: |
---|
| 1317 | # nm: unknown option "B" ignored |
---|
| 1318 | if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then |
---|
| 1319 | ac_cv_path_NM="$ac_dir/nm -B" |
---|
| 1320 | break |
---|
| 1321 | elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then |
---|
| 1322 | ac_cv_path_NM="$ac_dir/nm -p" |
---|
| 1323 | break |
---|
| 1324 | else |
---|
| 1325 | ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but |
---|
| 1326 | continue # so that we can try to find one that supports BSD flags |
---|
| 1327 | fi |
---|
| 1328 | fi |
---|
| 1329 | done |
---|
| 1330 | IFS="$ac_save_ifs" |
---|
| 1331 | test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm |
---|
| 1332 | fi |
---|
| 1333 | fi |
---|
| 1334 | |
---|
| 1335 | NM="$ac_cv_path_NM" |
---|
| 1336 | echo "$ac_t""$NM" 1>&6 |
---|
| 1337 | |
---|
| 1338 | echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 |
---|
| 1339 | echo "configure:1340: checking whether ln -s works" >&5 |
---|
| 1340 | if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then |
---|
| 1341 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 1342 | else |
---|
| 1343 | rm -f conftestdata |
---|
| 1344 | if ln -s X conftestdata 2>/dev/null |
---|
| 1345 | then |
---|
| 1346 | rm -f conftestdata |
---|
| 1347 | ac_cv_prog_LN_S="ln -s" |
---|
| 1348 | else |
---|
| 1349 | ac_cv_prog_LN_S=ln |
---|
| 1350 | fi |
---|
| 1351 | fi |
---|
| 1352 | LN_S="$ac_cv_prog_LN_S" |
---|
| 1353 | if test "$ac_cv_prog_LN_S" = "ln -s"; then |
---|
| 1354 | echo "$ac_t""yes" 1>&6 |
---|
| 1355 | else |
---|
| 1356 | echo "$ac_t""no" 1>&6 |
---|
| 1357 | fi |
---|
| 1358 | |
---|
| 1359 | |
---|
| 1360 | case "$target" in |
---|
| 1361 | NONE) lt_target="$host" ;; |
---|
| 1362 | *) lt_target="$target" ;; |
---|
| 1363 | esac |
---|
| 1364 | |
---|
| 1365 | # Check for any special flags to pass to ltconfig. |
---|
| 1366 | # |
---|
| 1367 | # the following will cause an existing older ltconfig to fail, so |
---|
| 1368 | # we ignore this at the expense of the cache file... Checking this |
---|
| 1369 | # will just take longer ... bummer! |
---|
| 1370 | #libtool_flags="--cache-file=$cache_file" |
---|
| 1371 | # |
---|
| 1372 | test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared" |
---|
| 1373 | test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static" |
---|
| 1374 | test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install" |
---|
| 1375 | test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc" |
---|
| 1376 | test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld" |
---|
| 1377 | |
---|
| 1378 | |
---|
| 1379 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given. |
---|
| 1380 | if test "${enable_libtool_lock+set}" = set; then |
---|
| 1381 | enableval="$enable_libtool_lock" |
---|
| 1382 | : |
---|
| 1383 | fi |
---|
| 1384 | |
---|
| 1385 | test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock" |
---|
| 1386 | test x"$silent" = xyes && libtool_flags="$libtool_flags --silent" |
---|
| 1387 | |
---|
| 1388 | # Some flags need to be propagated to the compiler or linker for good |
---|
| 1389 | # libtool support. |
---|
| 1390 | case "$lt_target" in |
---|
| 1391 | *-*-irix6*) |
---|
| 1392 | # Find out which ABI we are using. |
---|
| 1393 | echo '#line 1394 "configure"' > conftest.$ac_ext |
---|
| 1394 | if { (eval echo configure:1395: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
---|
| 1395 | case "`/usr/bin/file conftest.o`" in |
---|
| 1396 | *32-bit*) |
---|
| 1397 | LD="${LD-ld} -32" |
---|
| 1398 | ;; |
---|
| 1399 | *N32*) |
---|
| 1400 | LD="${LD-ld} -n32" |
---|
| 1401 | ;; |
---|
| 1402 | *64-bit*) |
---|
| 1403 | LD="${LD-ld} -64" |
---|
| 1404 | ;; |
---|
| 1405 | esac |
---|
| 1406 | fi |
---|
| 1407 | rm -rf conftest* |
---|
| 1408 | ;; |
---|
| 1409 | |
---|
| 1410 | *-*-sco3.2v5*) |
---|
| 1411 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. |
---|
| 1412 | SAVE_CFLAGS="$CFLAGS" |
---|
| 1413 | CFLAGS="$CFLAGS -belf" |
---|
| 1414 | echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6 |
---|
| 1415 | echo "configure:1416: checking whether the C compiler needs -belf" >&5 |
---|
| 1416 | if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then |
---|
| 1417 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 1418 | else |
---|
| 1419 | cat > conftest.$ac_ext <<EOF |
---|
| 1420 | #line 1421 "configure" |
---|
| 1421 | #include "confdefs.h" |
---|
| 1422 | |
---|
| 1423 | int main() { |
---|
| 1424 | |
---|
| 1425 | ; return 0; } |
---|
| 1426 | EOF |
---|
| 1427 | if { (eval echo configure:1428: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
| 1428 | rm -rf conftest* |
---|
| 1429 | lt_cv_cc_needs_belf=yes |
---|
| 1430 | else |
---|
| 1431 | echo "configure: failed program was:" >&5 |
---|
| 1432 | cat conftest.$ac_ext >&5 |
---|
| 1433 | rm -rf conftest* |
---|
| 1434 | lt_cv_cc_needs_belf=no |
---|
| 1435 | fi |
---|
| 1436 | rm -f conftest* |
---|
| 1437 | fi |
---|
| 1438 | |
---|
| 1439 | echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6 |
---|
| 1440 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
---|
| 1441 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
---|
| 1442 | CFLAGS="$SAVE_CFLAGS" |
---|
| 1443 | fi |
---|
| 1444 | ;; |
---|
| 1445 | |
---|
| 1446 | |
---|
| 1447 | esac |
---|
| 1448 | |
---|
| 1449 | |
---|
| 1450 | # Save cache, so that ltconfig can load it |
---|
| 1451 | cat > confcache <<\EOF |
---|
| 1452 | # This file is a shell script that caches the results of configure |
---|
| 1453 | # tests run on this system so they can be shared between configure |
---|
| 1454 | # scripts and configure runs. It is not useful on other systems. |
---|
| 1455 | # If it contains results you don't want to keep, you may remove or edit it. |
---|
| 1456 | # |
---|
| 1457 | # By default, configure uses ./config.cache as the cache file, |
---|
| 1458 | # creating it if it does not exist already. You can give configure |
---|
| 1459 | # the --cache-file=FILE option to use a different cache file; that is |
---|
| 1460 | # what configure does when it calls configure scripts in |
---|
| 1461 | # subdirectories, so they share the cache. |
---|
| 1462 | # Giving --cache-file=/dev/null disables caching, for debugging configure. |
---|
| 1463 | # config.status only pays attention to the cache file if you give it the |
---|
| 1464 | # --recheck option to rerun configure. |
---|
| 1465 | # |
---|
| 1466 | EOF |
---|
| 1467 | # The following way of writing the cache mishandles newlines in values, |
---|
| 1468 | # but we know of no workaround that is simple, portable, and efficient. |
---|
| 1469 | # So, don't put newlines in cache variables' values. |
---|
| 1470 | # Ultrix sh set writes to stderr and can't be redirected directly, |
---|
| 1471 | # and sets the high bit in the cache file unless we assign to the vars. |
---|
| 1472 | (set) 2>&1 | |
---|
| 1473 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
---|
| 1474 | *ac_space=\ *) |
---|
| 1475 | # `set' does not quote correctly, so add quotes (double-quote substitution |
---|
| 1476 | # turns \\\\ into \\, and sed turns \\ into \). |
---|
| 1477 | sed -n \ |
---|
| 1478 | -e "s/'/'\\\\''/g" \ |
---|
| 1479 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" |
---|
| 1480 | ;; |
---|
| 1481 | *) |
---|
| 1482 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
---|
| 1483 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' |
---|
| 1484 | ;; |
---|
| 1485 | esac >> confcache |
---|
| 1486 | if cmp -s $cache_file confcache; then |
---|
| 1487 | : |
---|
| 1488 | else |
---|
| 1489 | if test -w $cache_file; then |
---|
| 1490 | echo "updating cache $cache_file" |
---|
| 1491 | cat confcache > $cache_file |
---|
| 1492 | else |
---|
| 1493 | echo "not updating unwritable cache $cache_file" |
---|
| 1494 | fi |
---|
| 1495 | fi |
---|
| 1496 | rm -f confcache |
---|
| 1497 | |
---|
| 1498 | |
---|
| 1499 | # Actually configure libtool. ac_aux_dir is where install-sh is found. |
---|
| 1500 | CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \ |
---|
| 1501 | LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \ |
---|
| 1502 | LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \ |
---|
| 1503 | DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \ |
---|
| 1504 | ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \ |
---|
| 1505 | $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $lt_target \ |
---|
| 1506 | || { echo "configure: error: libtool configure failed" 1>&2; exit 1; } |
---|
| 1507 | |
---|
| 1508 | # Reload cache, that may have been modified by ltconfig |
---|
| 1509 | if test -r "$cache_file"; then |
---|
| 1510 | echo "loading cache $cache_file" |
---|
| 1511 | . $cache_file |
---|
| 1512 | else |
---|
| 1513 | echo "creating cache $cache_file" |
---|
| 1514 | > $cache_file |
---|
| 1515 | fi |
---|
| 1516 | |
---|
| 1517 | |
---|
| 1518 | # This can be used to rebuild libtool when needed |
---|
| 1519 | LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh" |
---|
| 1520 | |
---|
| 1521 | # Always use our own libtool. |
---|
| 1522 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' |
---|
| 1523 | |
---|
| 1524 | # Redirect the config.log output again, so that the ltconfig log is not |
---|
| 1525 | # clobbered by the next message. |
---|
| 1526 | exec 5>>./config.log |
---|
| 1527 | |
---|
| 1528 | echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6 |
---|
| 1529 | echo "configure:1530: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
---|
| 1530 | # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. |
---|
| 1531 | if test "${enable_maintainer_mode+set}" = set; then |
---|
| 1532 | enableval="$enable_maintainer_mode" |
---|
| 1533 | USE_MAINTAINER_MODE=$enableval |
---|
| 1534 | else |
---|
| 1535 | USE_MAINTAINER_MODE=no |
---|
| 1536 | fi |
---|
| 1537 | |
---|
| 1538 | echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6 |
---|
| 1539 | |
---|
| 1540 | |
---|
| 1541 | if test $USE_MAINTAINER_MODE = yes; then |
---|
| 1542 | MAINTAINER_MODE_TRUE= |
---|
| 1543 | MAINTAINER_MODE_FALSE='#' |
---|
| 1544 | else |
---|
| 1545 | MAINTAINER_MODE_TRUE='#' |
---|
| 1546 | MAINTAINER_MODE_FALSE= |
---|
| 1547 | fi |
---|
| 1548 | MAINT=$MAINTAINER_MODE_TRUE |
---|
| 1549 | |
---|
| 1550 | |
---|
| 1551 | |
---|
| 1552 | if test x$enable_static != xyes ; then |
---|
| 1553 | { echo "configure: error: Static linking is required for a working ORBit." 1>&2; exit 1; } |
---|
| 1554 | exit 1 |
---|
| 1555 | fi |
---|
| 1556 | |
---|
| 1557 | # Extract the first word of "gcc", so it can be a program name with args. |
---|
| 1558 | set dummy gcc; ac_word=$2 |
---|
| 1559 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
| 1560 | echo "configure:1561: checking for $ac_word" >&5 |
---|
| 1561 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
---|
| 1562 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 1563 | else |
---|
| 1564 | if test -n "$CC"; then |
---|
| 1565 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
| 1566 | else |
---|
| 1567 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
| 1568 | ac_dummy="$PATH" |
---|
| 1569 | for ac_dir in $ac_dummy; do |
---|
| 1570 | test -z "$ac_dir" && ac_dir=. |
---|
| 1571 | if test -f $ac_dir/$ac_word; then |
---|
| 1572 | ac_cv_prog_CC="gcc" |
---|
| 1573 | break |
---|
| 1574 | fi |
---|
| 1575 | done |
---|
| 1576 | IFS="$ac_save_ifs" |
---|
| 1577 | fi |
---|
| 1578 | fi |
---|
| 1579 | CC="$ac_cv_prog_CC" |
---|
| 1580 | if test -n "$CC"; then |
---|
| 1581 | echo "$ac_t""$CC" 1>&6 |
---|
| 1582 | else |
---|
| 1583 | echo "$ac_t""no" 1>&6 |
---|
| 1584 | fi |
---|
| 1585 | |
---|
| 1586 | if test -z "$CC"; then |
---|
| 1587 | # Extract the first word of "cc", so it can be a program name with args. |
---|
| 1588 | set dummy cc; ac_word=$2 |
---|
| 1589 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
| 1590 | echo "configure:1591: checking for $ac_word" >&5 |
---|
| 1591 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
---|
| 1592 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 1593 | else |
---|
| 1594 | if test -n "$CC"; then |
---|
| 1595 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
| 1596 | else |
---|
| 1597 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
| 1598 | ac_prog_rejected=no |
---|
| 1599 | ac_dummy="$PATH" |
---|
| 1600 | for ac_dir in $ac_dummy; do |
---|
| 1601 | test -z "$ac_dir" && ac_dir=. |
---|
| 1602 | if test -f $ac_dir/$ac_word; then |
---|
| 1603 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then |
---|
| 1604 | ac_prog_rejected=yes |
---|
| 1605 | continue |
---|
| 1606 | fi |
---|
| 1607 | ac_cv_prog_CC="cc" |
---|
| 1608 | break |
---|
| 1609 | fi |
---|
| 1610 | done |
---|
| 1611 | IFS="$ac_save_ifs" |
---|
| 1612 | if test $ac_prog_rejected = yes; then |
---|
| 1613 | # We found a bogon in the path, so make sure we never use it. |
---|
| 1614 | set dummy $ac_cv_prog_CC |
---|
| 1615 | shift |
---|
| 1616 | if test $# -gt 0; then |
---|
| 1617 | # We chose a different compiler from the bogus one. |
---|
| 1618 | # However, it has the same basename, so the bogon will be chosen |
---|
| 1619 | # first if we set CC to just the basename; use the full file name. |
---|
| 1620 | shift |
---|
| 1621 | set dummy "$ac_dir/$ac_word" "$@" |
---|
| 1622 | shift |
---|
| 1623 | ac_cv_prog_CC="$@" |
---|
| 1624 | fi |
---|
| 1625 | fi |
---|
| 1626 | fi |
---|
| 1627 | fi |
---|
| 1628 | CC="$ac_cv_prog_CC" |
---|
| 1629 | if test -n "$CC"; then |
---|
| 1630 | echo "$ac_t""$CC" 1>&6 |
---|
| 1631 | else |
---|
| 1632 | echo "$ac_t""no" 1>&6 |
---|
| 1633 | fi |
---|
| 1634 | |
---|
| 1635 | if test -z "$CC"; then |
---|
| 1636 | case "`uname -s`" in |
---|
| 1637 | *win32* | *WIN32*) |
---|
| 1638 | # Extract the first word of "cl", so it can be a program name with args. |
---|
| 1639 | set dummy cl; ac_word=$2 |
---|
| 1640 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
| 1641 | echo "configure:1642: checking for $ac_word" >&5 |
---|
| 1642 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
---|
| 1643 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 1644 | else |
---|
| 1645 | if test -n "$CC"; then |
---|
| 1646 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
| 1647 | else |
---|
| 1648 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
| 1649 | ac_dummy="$PATH" |
---|
| 1650 | for ac_dir in $ac_dummy; do |
---|
| 1651 | test -z "$ac_dir" && ac_dir=. |
---|
| 1652 | if test -f $ac_dir/$ac_word; then |
---|
| 1653 | ac_cv_prog_CC="cl" |
---|
| 1654 | break |
---|
| 1655 | fi |
---|
| 1656 | done |
---|
| 1657 | IFS="$ac_save_ifs" |
---|
| 1658 | fi |
---|
| 1659 | fi |
---|
| 1660 | CC="$ac_cv_prog_CC" |
---|
| 1661 | if test -n "$CC"; then |
---|
| 1662 | echo "$ac_t""$CC" 1>&6 |
---|
| 1663 | else |
---|
| 1664 | echo "$ac_t""no" 1>&6 |
---|
| 1665 | fi |
---|
| 1666 | ;; |
---|
| 1667 | esac |
---|
| 1668 | fi |
---|
| 1669 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } |
---|
| 1670 | fi |
---|
| 1671 | |
---|
| 1672 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
---|
| 1673 | echo "configure:1674: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
---|
| 1674 | |
---|
| 1675 | ac_ext=c |
---|
| 1676 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
---|
| 1677 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 1678 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
---|
| 1679 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
---|
| 1680 | cross_compiling=$ac_cv_prog_cc_cross |
---|
| 1681 | |
---|
| 1682 | cat > conftest.$ac_ext << EOF |
---|
| 1683 | |
---|
| 1684 | #line 1685 "configure" |
---|
| 1685 | #include "confdefs.h" |
---|
| 1686 | |
---|
| 1687 | main(){return(0);} |
---|
| 1688 | EOF |
---|
| 1689 | if { (eval echo configure:1690: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
| 1690 | ac_cv_prog_cc_works=yes |
---|
| 1691 | # If we can't run a trivial program, we are probably using a cross compiler. |
---|
| 1692 | if (./conftest; exit) 2>/dev/null; then |
---|
| 1693 | ac_cv_prog_cc_cross=no |
---|
| 1694 | else |
---|
| 1695 | ac_cv_prog_cc_cross=yes |
---|
| 1696 | fi |
---|
| 1697 | else |
---|
| 1698 | echo "configure: failed program was:" >&5 |
---|
| 1699 | cat conftest.$ac_ext >&5 |
---|
| 1700 | ac_cv_prog_cc_works=no |
---|
| 1701 | fi |
---|
| 1702 | rm -fr conftest* |
---|
| 1703 | ac_ext=c |
---|
| 1704 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
---|
| 1705 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 1706 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
---|
| 1707 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
---|
| 1708 | cross_compiling=$ac_cv_prog_cc_cross |
---|
| 1709 | |
---|
| 1710 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 |
---|
| 1711 | if test $ac_cv_prog_cc_works = no; then |
---|
| 1712 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } |
---|
| 1713 | fi |
---|
| 1714 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 |
---|
| 1715 | echo "configure:1716: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
---|
| 1716 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
---|
| 1717 | cross_compiling=$ac_cv_prog_cc_cross |
---|
| 1718 | |
---|
| 1719 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 |
---|
| 1720 | echo "configure:1721: checking whether we are using GNU C" >&5 |
---|
| 1721 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
---|
| 1722 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 1723 | else |
---|
| 1724 | cat > conftest.c <<EOF |
---|
| 1725 | #ifdef __GNUC__ |
---|
| 1726 | yes; |
---|
| 1727 | #endif |
---|
| 1728 | EOF |
---|
| 1729 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1730: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
---|
| 1730 | ac_cv_prog_gcc=yes |
---|
| 1731 | else |
---|
| 1732 | ac_cv_prog_gcc=no |
---|
| 1733 | fi |
---|
| 1734 | fi |
---|
| 1735 | |
---|
| 1736 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 |
---|
| 1737 | |
---|
| 1738 | if test $ac_cv_prog_gcc = yes; then |
---|
| 1739 | GCC=yes |
---|
| 1740 | else |
---|
| 1741 | GCC= |
---|
| 1742 | fi |
---|
| 1743 | |
---|
| 1744 | ac_test_CFLAGS="${CFLAGS+set}" |
---|
| 1745 | ac_save_CFLAGS="$CFLAGS" |
---|
| 1746 | CFLAGS= |
---|
| 1747 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 |
---|
| 1748 | echo "configure:1749: checking whether ${CC-cc} accepts -g" >&5 |
---|
| 1749 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
---|
| 1750 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 1751 | else |
---|
| 1752 | echo 'void f(){}' > conftest.c |
---|
| 1753 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then |
---|
| 1754 | ac_cv_prog_cc_g=yes |
---|
| 1755 | else |
---|
| 1756 | ac_cv_prog_cc_g=no |
---|
| 1757 | fi |
---|
| 1758 | rm -f conftest* |
---|
| 1759 | |
---|
| 1760 | fi |
---|
| 1761 | |
---|
| 1762 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 |
---|
| 1763 | if test "$ac_test_CFLAGS" = set; then |
---|
| 1764 | CFLAGS="$ac_save_CFLAGS" |
---|
| 1765 | elif test $ac_cv_prog_cc_g = yes; then |
---|
| 1766 | if test "$GCC" = yes; then |
---|
| 1767 | CFLAGS="-g -O2" |
---|
| 1768 | else |
---|
| 1769 | CFLAGS="-g" |
---|
| 1770 | fi |
---|
| 1771 | else |
---|
| 1772 | if test "$GCC" = yes; then |
---|
| 1773 | CFLAGS="-O2" |
---|
| 1774 | else |
---|
| 1775 | CFLAGS= |
---|
| 1776 | fi |
---|
| 1777 | fi |
---|
| 1778 | |
---|
| 1779 | # Find a good install program. We prefer a C program (faster), |
---|
| 1780 | # so one script is as good as another. But avoid the broken or |
---|
| 1781 | # incompatible versions: |
---|
| 1782 | # SysV /etc/install, /usr/sbin/install |
---|
| 1783 | # SunOS /usr/etc/install |
---|
| 1784 | # IRIX /sbin/install |
---|
| 1785 | # AIX /bin/install |
---|
| 1786 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
---|
| 1787 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
---|
| 1788 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
---|
| 1789 | # ./install, which can be erroneously created by make from ./install.sh. |
---|
| 1790 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 |
---|
| 1791 | echo "configure:1792: checking for a BSD compatible install" >&5 |
---|
| 1792 | if test -z "$INSTALL"; then |
---|
| 1793 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then |
---|
| 1794 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 1795 | else |
---|
| 1796 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" |
---|
| 1797 | for ac_dir in $PATH; do |
---|
| 1798 | # Account for people who put trailing slashes in PATH elements. |
---|
| 1799 | case "$ac_dir/" in |
---|
| 1800 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; |
---|
| 1801 | *) |
---|
| 1802 | # OSF1 and SCO ODT 3.0 have their own names for install. |
---|
| 1803 | # Don't use installbsd from OSF since it installs stuff as root |
---|
| 1804 | # by default. |
---|
| 1805 | for ac_prog in ginstall scoinst install; do |
---|
| 1806 | if test -f $ac_dir/$ac_prog; then |
---|
| 1807 | if test $ac_prog = install && |
---|
| 1808 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then |
---|
| 1809 | # AIX install. It has an incompatible calling convention. |
---|
| 1810 | : |
---|
| 1811 | else |
---|
| 1812 | ac_cv_path_install="$ac_dir/$ac_prog -c" |
---|
| 1813 | break 2 |
---|
| 1814 | fi |
---|
| 1815 | fi |
---|
| 1816 | done |
---|
| 1817 | ;; |
---|
| 1818 | esac |
---|
| 1819 | done |
---|
| 1820 | IFS="$ac_save_IFS" |
---|
| 1821 | |
---|
| 1822 | fi |
---|
| 1823 | if test "${ac_cv_path_install+set}" = set; then |
---|
| 1824 | INSTALL="$ac_cv_path_install" |
---|
| 1825 | else |
---|
| 1826 | # As a last resort, use the slow shell script. We don't cache a |
---|
| 1827 | # path for INSTALL within a source directory, because that will |
---|
| 1828 | # break other packages using the cache if that directory is |
---|
| 1829 | # removed, or if the path is relative. |
---|
| 1830 | INSTALL="$ac_install_sh" |
---|
| 1831 | fi |
---|
| 1832 | fi |
---|
| 1833 | echo "$ac_t""$INSTALL" 1>&6 |
---|
| 1834 | |
---|
| 1835 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
---|
| 1836 | # It thinks the first close brace ends the variable substitution. |
---|
| 1837 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
---|
| 1838 | |
---|
| 1839 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' |
---|
| 1840 | |
---|
| 1841 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
---|
| 1842 | |
---|
| 1843 | |
---|
| 1844 | # Check whether --enable-indent or --disable-indent was given. |
---|
| 1845 | if test "${enable_indent+set}" = set; then |
---|
| 1846 | enableval="$enable_indent" |
---|
| 1847 | use_indent=$enableval |
---|
| 1848 | else |
---|
| 1849 | use_indent=yes |
---|
| 1850 | fi |
---|
| 1851 | |
---|
| 1852 | |
---|
| 1853 | echo $ac_n "checking for indentation command to pipe generated c-files through""... $ac_c" 1>&6 |
---|
| 1854 | echo "configure:1855: checking for indentation command to pipe generated c-files through" >&5 |
---|
| 1855 | for test_indent in "$use_indent" "indent -" cat; do |
---|
| 1856 | case "$test_indent" in |
---|
| 1857 | yes) |
---|
| 1858 | INDENT_COMMAND="indent -npro -bad -bap -bc -sob -br -ce -cli2 -npcs -di1 -psl -i3 -lp -st" |
---|
| 1859 | ;; |
---|
| 1860 | no) |
---|
| 1861 | INDENT_COMMAND=cat |
---|
| 1862 | ;; |
---|
| 1863 | kr) |
---|
| 1864 | INDENT_COMMAND="indent -npro -kr -i8 -bad -fca -sc -sob -psl" |
---|
| 1865 | ;; |
---|
| 1866 | *) |
---|
| 1867 | INDENT_COMMAND="$test_indent" |
---|
| 1868 | esac |
---|
| 1869 | |
---|
| 1870 | if echo 2>/dev/null | $INDENT_COMMAND 2>/dev/null 1>&2 ; then |
---|
| 1871 | break |
---|
| 1872 | fi |
---|
| 1873 | done |
---|
| 1874 | echo "$ac_t""$INDENT_COMMAND" 1>&6 |
---|
| 1875 | cat >> confdefs.h <<EOF |
---|
| 1876 | #define INDENT_COMMAND "$INDENT_COMMAND" |
---|
| 1877 | EOF |
---|
| 1878 | |
---|
| 1879 | |
---|
| 1880 | |
---|
| 1881 | # Make sure that we have glib>=1.1.16 |
---|
| 1882 | # Check whether --with-glib-prefix or --without-glib-prefix was given. |
---|
| 1883 | if test "${with_glib_prefix+set}" = set; then |
---|
| 1884 | withval="$with_glib_prefix" |
---|
| 1885 | glib_config_prefix="$withval" |
---|
| 1886 | else |
---|
| 1887 | glib_config_prefix="" |
---|
| 1888 | fi |
---|
| 1889 | |
---|
| 1890 | # Check whether --with-glib-exec-prefix or --without-glib-exec-prefix was given. |
---|
| 1891 | if test "${with_glib_exec_prefix+set}" = set; then |
---|
| 1892 | withval="$with_glib_exec_prefix" |
---|
| 1893 | glib_config_exec_prefix="$withval" |
---|
| 1894 | else |
---|
| 1895 | glib_config_exec_prefix="" |
---|
| 1896 | fi |
---|
| 1897 | |
---|
| 1898 | # Check whether --enable-glibtest or --disable-glibtest was given. |
---|
| 1899 | if test "${enable_glibtest+set}" = set; then |
---|
| 1900 | enableval="$enable_glibtest" |
---|
| 1901 | : |
---|
| 1902 | else |
---|
| 1903 | enable_glibtest=yes |
---|
| 1904 | fi |
---|
| 1905 | |
---|
| 1906 | |
---|
| 1907 | if test x$glib_config_exec_prefix != x ; then |
---|
| 1908 | glib_config_args="$glib_config_args --exec-prefix=$glib_config_exec_prefix" |
---|
| 1909 | if test x${GLIB_CONFIG+set} != xset ; then |
---|
| 1910 | GLIB_CONFIG=$glib_config_exec_prefix/bin/glib-config |
---|
| 1911 | fi |
---|
| 1912 | fi |
---|
| 1913 | if test x$glib_config_prefix != x ; then |
---|
| 1914 | glib_config_args="$glib_config_args --prefix=$glib_config_prefix" |
---|
| 1915 | if test x${GLIB_CONFIG+set} != xset ; then |
---|
| 1916 | GLIB_CONFIG=$glib_config_prefix/bin/glib-config |
---|
| 1917 | fi |
---|
| 1918 | fi |
---|
| 1919 | |
---|
| 1920 | for module in . |
---|
| 1921 | do |
---|
| 1922 | case "$module" in |
---|
| 1923 | gmodule) |
---|
| 1924 | glib_config_args="$glib_config_args gmodule" |
---|
| 1925 | ;; |
---|
| 1926 | gthread) |
---|
| 1927 | glib_config_args="$glib_config_args gthread" |
---|
| 1928 | ;; |
---|
| 1929 | esac |
---|
| 1930 | done |
---|
| 1931 | |
---|
| 1932 | # Extract the first word of "glib-config", so it can be a program name with args. |
---|
| 1933 | set dummy glib-config; ac_word=$2 |
---|
| 1934 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
| 1935 | echo "configure:1936: checking for $ac_word" >&5 |
---|
| 1936 | if eval "test \"`echo '$''{'ac_cv_path_GLIB_CONFIG'+set}'`\" = set"; then |
---|
| 1937 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 1938 | else |
---|
| 1939 | case "$GLIB_CONFIG" in |
---|
| 1940 | /*) |
---|
| 1941 | ac_cv_path_GLIB_CONFIG="$GLIB_CONFIG" # Let the user override the test with a path. |
---|
| 1942 | ;; |
---|
| 1943 | ?:/*) |
---|
| 1944 | ac_cv_path_GLIB_CONFIG="$GLIB_CONFIG" # Let the user override the test with a dos path. |
---|
| 1945 | ;; |
---|
| 1946 | *) |
---|
| 1947 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
| 1948 | ac_dummy="$PATH" |
---|
| 1949 | for ac_dir in $ac_dummy; do |
---|
| 1950 | test -z "$ac_dir" && ac_dir=. |
---|
| 1951 | if test -f $ac_dir/$ac_word; then |
---|
| 1952 | ac_cv_path_GLIB_CONFIG="$ac_dir/$ac_word" |
---|
| 1953 | break |
---|
| 1954 | fi |
---|
| 1955 | done |
---|
| 1956 | IFS="$ac_save_ifs" |
---|
| 1957 | test -z "$ac_cv_path_GLIB_CONFIG" && ac_cv_path_GLIB_CONFIG="no" |
---|
| 1958 | ;; |
---|
| 1959 | esac |
---|
| 1960 | fi |
---|
| 1961 | GLIB_CONFIG="$ac_cv_path_GLIB_CONFIG" |
---|
| 1962 | if test -n "$GLIB_CONFIG"; then |
---|
| 1963 | echo "$ac_t""$GLIB_CONFIG" 1>&6 |
---|
| 1964 | else |
---|
| 1965 | echo "$ac_t""no" 1>&6 |
---|
| 1966 | fi |
---|
| 1967 | |
---|
| 1968 | min_glib_version=1.2.1 |
---|
| 1969 | echo $ac_n "checking for GLIB - version >= $min_glib_version""... $ac_c" 1>&6 |
---|
| 1970 | echo "configure:1971: checking for GLIB - version >= $min_glib_version" >&5 |
---|
| 1971 | no_glib="" |
---|
| 1972 | if test "$GLIB_CONFIG" = "no" ; then |
---|
| 1973 | no_glib=yes |
---|
| 1974 | else |
---|
| 1975 | GLIB_CFLAGS=`$GLIB_CONFIG $glib_config_args --cflags` |
---|
| 1976 | GLIB_LIBS=`$GLIB_CONFIG $glib_config_args --libs` |
---|
| 1977 | glib_config_major_version=`$GLIB_CONFIG $glib_config_args --version | \ |
---|
| 1978 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` |
---|
| 1979 | glib_config_minor_version=`$GLIB_CONFIG $glib_config_args --version | \ |
---|
| 1980 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` |
---|
| 1981 | glib_config_micro_version=`$GLIB_CONFIG $glib_config_args --version | \ |
---|
| 1982 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` |
---|
| 1983 | if test "x$enable_glibtest" = "xyes" ; then |
---|
| 1984 | ac_save_CFLAGS="$CFLAGS" |
---|
| 1985 | ac_save_LIBS="$LIBS" |
---|
| 1986 | CFLAGS="$CFLAGS $GLIB_CFLAGS" |
---|
| 1987 | LIBS="$GLIB_LIBS $LIBS" |
---|
| 1988 | rm -f conf.glibtest |
---|
| 1989 | if test "$cross_compiling" = yes; then |
---|
| 1990 | echo $ac_n "cross compiling; assumed OK... $ac_c" |
---|
| 1991 | else |
---|
| 1992 | cat > conftest.$ac_ext <<EOF |
---|
| 1993 | #line 1994 "configure" |
---|
| 1994 | #include "confdefs.h" |
---|
| 1995 | |
---|
| 1996 | #include <glib.h> |
---|
| 1997 | #include <stdio.h> |
---|
| 1998 | #include <stdlib.h> |
---|
| 1999 | |
---|
| 2000 | int |
---|
| 2001 | main () |
---|
| 2002 | { |
---|
| 2003 | int major, minor, micro; |
---|
| 2004 | char *tmp_version; |
---|
| 2005 | |
---|
| 2006 | system ("touch conf.glibtest"); |
---|
| 2007 | |
---|
| 2008 | /* HP/UX 9 (%@#!) writes to sscanf strings */ |
---|
| 2009 | tmp_version = g_strdup("$min_glib_version"); |
---|
| 2010 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { |
---|
| 2011 | printf("%s, bad version string\n", "$min_glib_version"); |
---|
| 2012 | exit(1); |
---|
| 2013 | } |
---|
| 2014 | |
---|
| 2015 | if ((glib_major_version != $glib_config_major_version) || |
---|
| 2016 | (glib_minor_version != $glib_config_minor_version) || |
---|
| 2017 | (glib_micro_version != $glib_config_micro_version)) |
---|
| 2018 | { |
---|
| 2019 | printf("\n*** 'glib-config --version' returned %d.%d.%d, but GLIB (%d.%d.%d)\n", |
---|
| 2020 | $glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version, |
---|
| 2021 | glib_major_version, glib_minor_version, glib_micro_version); |
---|
| 2022 | printf ("*** was found! If glib-config was correct, then it is best\n"); |
---|
| 2023 | printf ("*** to remove the old version of GLIB. You may also be able to fix the error\n"); |
---|
| 2024 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); |
---|
| 2025 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); |
---|
| 2026 | printf("*** required on your system.\n"); |
---|
| 2027 | printf("*** If glib-config was wrong, set the environment variable GLIB_CONFIG\n"); |
---|
| 2028 | printf("*** to point to the correct copy of glib-config, and remove the file config.cache\n"); |
---|
| 2029 | printf("*** before re-running configure\n"); |
---|
| 2030 | } |
---|
| 2031 | else if ((glib_major_version != GLIB_MAJOR_VERSION) || |
---|
| 2032 | (glib_minor_version != GLIB_MINOR_VERSION) || |
---|
| 2033 | (glib_micro_version != GLIB_MICRO_VERSION)) |
---|
| 2034 | { |
---|
| 2035 | printf("*** GLIB header files (version %d.%d.%d) do not match\n", |
---|
| 2036 | GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION); |
---|
| 2037 | printf("*** library (version %d.%d.%d)\n", |
---|
| 2038 | glib_major_version, glib_minor_version, glib_micro_version); |
---|
| 2039 | } |
---|
| 2040 | else |
---|
| 2041 | { |
---|
| 2042 | if ((glib_major_version > major) || |
---|
| 2043 | ((glib_major_version == major) && (glib_minor_version > minor)) || |
---|
| 2044 | ((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro))) |
---|
| 2045 | { |
---|
| 2046 | return 0; |
---|
| 2047 | } |
---|
| 2048 | else |
---|
| 2049 | { |
---|
| 2050 | printf("\n*** An old version of GLIB (%d.%d.%d) was found.\n", |
---|
| 2051 | glib_major_version, glib_minor_version, glib_micro_version); |
---|
| 2052 | printf("*** You need a version of GLIB newer than %d.%d.%d. The latest version of\n", |
---|
| 2053 | major, minor, micro); |
---|
| 2054 | printf("*** GLIB is always available from ftp://ftp.gtk.org.\n"); |
---|
| 2055 | printf("***\n"); |
---|
| 2056 | printf("*** If you have already installed a sufficiently new version, this error\n"); |
---|
| 2057 | printf("*** probably means that the wrong copy of the glib-config shell script is\n"); |
---|
| 2058 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); |
---|
| 2059 | printf("*** of GLIB, but you can also set the GLIB_CONFIG environment to point to the\n"); |
---|
| 2060 | printf("*** correct copy of glib-config. (In this case, you will have to\n"); |
---|
| 2061 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); |
---|
| 2062 | printf("*** so that the correct libraries are found at run-time))\n"); |
---|
| 2063 | } |
---|
| 2064 | } |
---|
| 2065 | return 1; |
---|
| 2066 | } |
---|
| 2067 | |
---|
| 2068 | EOF |
---|
| 2069 | if { (eval echo configure:2070: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
---|
| 2070 | then |
---|
| 2071 | : |
---|
| 2072 | else |
---|
| 2073 | echo "configure: failed program was:" >&5 |
---|
| 2074 | cat conftest.$ac_ext >&5 |
---|
| 2075 | rm -fr conftest* |
---|
| 2076 | no_glib=yes |
---|
| 2077 | fi |
---|
| 2078 | rm -fr conftest* |
---|
| 2079 | fi |
---|
| 2080 | |
---|
| 2081 | CFLAGS="$ac_save_CFLAGS" |
---|
| 2082 | LIBS="$ac_save_LIBS" |
---|
| 2083 | fi |
---|
| 2084 | fi |
---|
| 2085 | if test "x$no_glib" = x ; then |
---|
| 2086 | echo "$ac_t""yes" 1>&6 |
---|
| 2087 | : |
---|
| 2088 | else |
---|
| 2089 | echo "$ac_t""no" 1>&6 |
---|
| 2090 | if test "$GLIB_CONFIG" = "no" ; then |
---|
| 2091 | echo "*** The glib-config script installed by GLIB could not be found" |
---|
| 2092 | echo "*** If GLIB was installed in PREFIX, make sure PREFIX/bin is in" |
---|
| 2093 | echo "*** your path, or set the GLIB_CONFIG environment variable to the" |
---|
| 2094 | echo "*** full path to glib-config." |
---|
| 2095 | else |
---|
| 2096 | if test -f conf.glibtest ; then |
---|
| 2097 | : |
---|
| 2098 | else |
---|
| 2099 | echo "*** Could not run GLIB test program, checking why..." |
---|
| 2100 | CFLAGS="$CFLAGS $GLIB_CFLAGS" |
---|
| 2101 | LIBS="$LIBS $GLIB_LIBS" |
---|
| 2102 | cat > conftest.$ac_ext <<EOF |
---|
| 2103 | #line 2104 "configure" |
---|
| 2104 | #include "confdefs.h" |
---|
| 2105 | |
---|
| 2106 | #include <glib.h> |
---|
| 2107 | #include <stdio.h> |
---|
| 2108 | |
---|
| 2109 | int main() { |
---|
| 2110 | return ((glib_major_version) || (glib_minor_version) || (glib_micro_version)); |
---|
| 2111 | ; return 0; } |
---|
| 2112 | EOF |
---|
| 2113 | if { (eval echo configure:2114: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
| 2114 | rm -rf conftest* |
---|
| 2115 | echo "*** The test program compiled, but did not run. This usually means" |
---|
| 2116 | echo "*** that the run-time linker is not finding GLIB or finding the wrong" |
---|
| 2117 | echo "*** version of GLIB. If it is not finding GLIB, you'll need to set your" |
---|
| 2118 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" |
---|
| 2119 | echo "*** to the installed location Also, make sure you have run ldconfig if that" |
---|
| 2120 | echo "*** is required on your system" |
---|
| 2121 | echo "***" |
---|
| 2122 | echo "*** If you have an old version installed, it is best to remove it, although" |
---|
| 2123 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" |
---|
| 2124 | echo "***" |
---|
| 2125 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" |
---|
| 2126 | echo "*** came with the system with the command" |
---|
| 2127 | echo "***" |
---|
| 2128 | echo "*** rpm --erase --nodeps gtk gtk-devel" |
---|
| 2129 | else |
---|
| 2130 | echo "configure: failed program was:" >&5 |
---|
| 2131 | cat conftest.$ac_ext >&5 |
---|
| 2132 | rm -rf conftest* |
---|
| 2133 | echo "*** The test program failed to compile or link. See the file config.log for the" |
---|
| 2134 | echo "*** exact error that occured. This usually means GLIB was incorrectly installed" |
---|
| 2135 | echo "*** or that you have moved GLIB since it was installed. In the latter case, you" |
---|
| 2136 | echo "*** may want to edit the glib-config script: $GLIB_CONFIG" |
---|
| 2137 | fi |
---|
| 2138 | rm -f conftest* |
---|
| 2139 | CFLAGS="$ac_save_CFLAGS" |
---|
| 2140 | LIBS="$ac_save_LIBS" |
---|
| 2141 | fi |
---|
| 2142 | fi |
---|
| 2143 | GLIB_CFLAGS="" |
---|
| 2144 | GLIB_LIBS="" |
---|
| 2145 | { echo "configure: error: |
---|
| 2146 | *** GLIB 1.2.1 or better is required. The latest version of GLIB |
---|
| 2147 | *** is always available from ftp://ftp.gtk.org/." 1>&2; exit 1; } |
---|
| 2148 | fi |
---|
| 2149 | |
---|
| 2150 | |
---|
| 2151 | rm -f conf.glibtest |
---|
| 2152 | |
---|
| 2153 | |
---|
| 2154 | GMODULE_CFLAGS=`glib-config --cflags gmodule` |
---|
| 2155 | |
---|
| 2156 | GMODULE_LIBS=`glib-config --libs gmodule` |
---|
| 2157 | |
---|
| 2158 | |
---|
| 2159 | for ac_prog in 'bison -y' byacc |
---|
| 2160 | do |
---|
| 2161 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
| 2162 | set dummy $ac_prog; ac_word=$2 |
---|
| 2163 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
| 2164 | echo "configure:2165: checking for $ac_word" >&5 |
---|
| 2165 | if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then |
---|
| 2166 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 2167 | else |
---|
| 2168 | if test -n "$YACC"; then |
---|
| 2169 | ac_cv_prog_YACC="$YACC" # Let the user override the test. |
---|
| 2170 | else |
---|
| 2171 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
| 2172 | ac_dummy="$PATH" |
---|
| 2173 | for ac_dir in $ac_dummy; do |
---|
| 2174 | test -z "$ac_dir" && ac_dir=. |
---|
| 2175 | if test -f $ac_dir/$ac_word; then |
---|
| 2176 | ac_cv_prog_YACC="$ac_prog" |
---|
| 2177 | break |
---|
| 2178 | fi |
---|
| 2179 | done |
---|
| 2180 | IFS="$ac_save_ifs" |
---|
| 2181 | fi |
---|
| 2182 | fi |
---|
| 2183 | YACC="$ac_cv_prog_YACC" |
---|
| 2184 | if test -n "$YACC"; then |
---|
| 2185 | echo "$ac_t""$YACC" 1>&6 |
---|
| 2186 | else |
---|
| 2187 | echo "$ac_t""no" 1>&6 |
---|
| 2188 | fi |
---|
| 2189 | |
---|
| 2190 | test -n "$YACC" && break |
---|
| 2191 | done |
---|
| 2192 | test -n "$YACC" || YACC="yacc" |
---|
| 2193 | |
---|
| 2194 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 |
---|
| 2195 | echo "configure:2196: checking how to run the C preprocessor" >&5 |
---|
| 2196 | # On Suns, sometimes $CPP names a directory. |
---|
| 2197 | if test -n "$CPP" && test -d "$CPP"; then |
---|
| 2198 | CPP= |
---|
| 2199 | fi |
---|
| 2200 | if test -z "$CPP"; then |
---|
| 2201 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then |
---|
| 2202 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 2203 | else |
---|
| 2204 | # This must be in double quotes, not single quotes, because CPP may get |
---|
| 2205 | # substituted into the Makefile and "${CC-cc}" will confuse make. |
---|
| 2206 | CPP="${CC-cc} -E" |
---|
| 2207 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
| 2208 | # not just through cpp. |
---|
| 2209 | cat > conftest.$ac_ext <<EOF |
---|
| 2210 | #line 2211 "configure" |
---|
| 2211 | #include "confdefs.h" |
---|
| 2212 | #include <assert.h> |
---|
| 2213 | Syntax Error |
---|
| 2214 | EOF |
---|
| 2215 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
---|
| 2216 | { (eval echo configure:2217: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
---|
| 2217 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
---|
| 2218 | if test -z "$ac_err"; then |
---|
| 2219 | : |
---|
| 2220 | else |
---|
| 2221 | echo "$ac_err" >&5 |
---|
| 2222 | echo "configure: failed program was:" >&5 |
---|
| 2223 | cat conftest.$ac_ext >&5 |
---|
| 2224 | rm -rf conftest* |
---|
| 2225 | CPP="${CC-cc} -E -traditional-cpp" |
---|
| 2226 | cat > conftest.$ac_ext <<EOF |
---|
| 2227 | #line 2228 "configure" |
---|
| 2228 | #include "confdefs.h" |
---|
| 2229 | #include <assert.h> |
---|
| 2230 | Syntax Error |
---|
| 2231 | EOF |
---|
| 2232 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
---|
| 2233 | { (eval echo configure:2234: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
---|
| 2234 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
---|
| 2235 | if test -z "$ac_err"; then |
---|
| 2236 | : |
---|
| 2237 | else |
---|
| 2238 | echo "$ac_err" >&5 |
---|
| 2239 | echo "configure: failed program was:" >&5 |
---|
| 2240 | cat conftest.$ac_ext >&5 |
---|
| 2241 | rm -rf conftest* |
---|
| 2242 | CPP="${CC-cc} -nologo -E" |
---|
| 2243 | cat > conftest.$ac_ext <<EOF |
---|
| 2244 | #line 2245 "configure" |
---|
| 2245 | #include "confdefs.h" |
---|
| 2246 | #include <assert.h> |
---|
| 2247 | Syntax Error |
---|
| 2248 | EOF |
---|
| 2249 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
---|
| 2250 | { (eval echo configure:2251: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
---|
| 2251 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
---|
| 2252 | if test -z "$ac_err"; then |
---|
| 2253 | : |
---|
| 2254 | else |
---|
| 2255 | echo "$ac_err" >&5 |
---|
| 2256 | echo "configure: failed program was:" >&5 |
---|
| 2257 | cat conftest.$ac_ext >&5 |
---|
| 2258 | rm -rf conftest* |
---|
| 2259 | CPP=/lib/cpp |
---|
| 2260 | fi |
---|
| 2261 | rm -f conftest* |
---|
| 2262 | fi |
---|
| 2263 | rm -f conftest* |
---|
| 2264 | fi |
---|
| 2265 | rm -f conftest* |
---|
| 2266 | ac_cv_prog_CPP="$CPP" |
---|
| 2267 | fi |
---|
| 2268 | CPP="$ac_cv_prog_CPP" |
---|
| 2269 | else |
---|
| 2270 | ac_cv_prog_CPP="$CPP" |
---|
| 2271 | fi |
---|
| 2272 | echo "$ac_t""$CPP" 1>&6 |
---|
| 2273 | |
---|
| 2274 | missing_dir=`cd $ac_aux_dir && pwd` |
---|
| 2275 | for ac_prog in flex lex |
---|
| 2276 | do |
---|
| 2277 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
| 2278 | set dummy $ac_prog; ac_word=$2 |
---|
| 2279 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
| 2280 | echo "configure:2281: checking for $ac_word" >&5 |
---|
| 2281 | if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then |
---|
| 2282 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 2283 | else |
---|
| 2284 | if test -n "$LEX"; then |
---|
| 2285 | ac_cv_prog_LEX="$LEX" # Let the user override the test. |
---|
| 2286 | else |
---|
| 2287 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
| 2288 | ac_dummy="$PATH" |
---|
| 2289 | for ac_dir in $ac_dummy; do |
---|
| 2290 | test -z "$ac_dir" && ac_dir=. |
---|
| 2291 | if test -f $ac_dir/$ac_word; then |
---|
| 2292 | ac_cv_prog_LEX="$ac_prog" |
---|
| 2293 | break |
---|
| 2294 | fi |
---|
| 2295 | done |
---|
| 2296 | IFS="$ac_save_ifs" |
---|
| 2297 | fi |
---|
| 2298 | fi |
---|
| 2299 | LEX="$ac_cv_prog_LEX" |
---|
| 2300 | if test -n "$LEX"; then |
---|
| 2301 | echo "$ac_t""$LEX" 1>&6 |
---|
| 2302 | else |
---|
| 2303 | echo "$ac_t""no" 1>&6 |
---|
| 2304 | fi |
---|
| 2305 | |
---|
| 2306 | test -n "$LEX" && break |
---|
| 2307 | done |
---|
| 2308 | test -n "$LEX" || LEX=""$missing_dir/missing flex"" |
---|
| 2309 | |
---|
| 2310 | # Extract the first word of "flex", so it can be a program name with args. |
---|
| 2311 | set dummy flex; ac_word=$2 |
---|
| 2312 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
| 2313 | echo "configure:2314: checking for $ac_word" >&5 |
---|
| 2314 | if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then |
---|
| 2315 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 2316 | else |
---|
| 2317 | if test -n "$LEX"; then |
---|
| 2318 | ac_cv_prog_LEX="$LEX" # Let the user override the test. |
---|
| 2319 | else |
---|
| 2320 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
| 2321 | ac_dummy="$PATH" |
---|
| 2322 | for ac_dir in $ac_dummy; do |
---|
| 2323 | test -z "$ac_dir" && ac_dir=. |
---|
| 2324 | if test -f $ac_dir/$ac_word; then |
---|
| 2325 | ac_cv_prog_LEX="flex" |
---|
| 2326 | break |
---|
| 2327 | fi |
---|
| 2328 | done |
---|
| 2329 | IFS="$ac_save_ifs" |
---|
| 2330 | test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex" |
---|
| 2331 | fi |
---|
| 2332 | fi |
---|
| 2333 | LEX="$ac_cv_prog_LEX" |
---|
| 2334 | if test -n "$LEX"; then |
---|
| 2335 | echo "$ac_t""$LEX" 1>&6 |
---|
| 2336 | else |
---|
| 2337 | echo "$ac_t""no" 1>&6 |
---|
| 2338 | fi |
---|
| 2339 | |
---|
| 2340 | if test -z "$LEXLIB" |
---|
| 2341 | then |
---|
| 2342 | case "$LEX" in |
---|
| 2343 | flex*) ac_lib=fl ;; |
---|
| 2344 | *) ac_lib=l ;; |
---|
| 2345 | esac |
---|
| 2346 | echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6 |
---|
| 2347 | echo "configure:2348: checking for yywrap in -l$ac_lib" >&5 |
---|
| 2348 | ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'` |
---|
| 2349 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
| 2350 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 2351 | else |
---|
| 2352 | ac_save_LIBS="$LIBS" |
---|
| 2353 | LIBS="-l$ac_lib $LIBS" |
---|
| 2354 | cat > conftest.$ac_ext <<EOF |
---|
| 2355 | #line 2356 "configure" |
---|
| 2356 | #include "confdefs.h" |
---|
| 2357 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
| 2358 | /* We use char because int might match the return type of a gcc2 |
---|
| 2359 | builtin and then its argument prototype would still apply. */ |
---|
| 2360 | char yywrap(); |
---|
| 2361 | |
---|
| 2362 | int main() { |
---|
| 2363 | yywrap() |
---|
| 2364 | ; return 0; } |
---|
| 2365 | EOF |
---|
| 2366 | if { (eval echo configure:2367: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
| 2367 | rm -rf conftest* |
---|
| 2368 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
| 2369 | else |
---|
| 2370 | echo "configure: failed program was:" >&5 |
---|
| 2371 | cat conftest.$ac_ext >&5 |
---|
| 2372 | rm -rf conftest* |
---|
| 2373 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
| 2374 | fi |
---|
| 2375 | rm -f conftest* |
---|
| 2376 | LIBS="$ac_save_LIBS" |
---|
| 2377 | |
---|
| 2378 | fi |
---|
| 2379 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
| 2380 | echo "$ac_t""yes" 1>&6 |
---|
| 2381 | LEXLIB="-l$ac_lib" |
---|
| 2382 | else |
---|
| 2383 | echo "$ac_t""no" 1>&6 |
---|
| 2384 | fi |
---|
| 2385 | |
---|
| 2386 | fi |
---|
| 2387 | |
---|
| 2388 | echo $ac_n "checking lex output file root""... $ac_c" 1>&6 |
---|
| 2389 | echo "configure:2390: checking lex output file root" >&5 |
---|
| 2390 | if eval "test \"`echo '$''{'ac_cv_prog_lex_root'+set}'`\" = set"; then |
---|
| 2391 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 2392 | else |
---|
| 2393 | # The minimal lex program is just a single line: %%. But some broken lexes |
---|
| 2394 | # (Solaris, I think it was) want two %% lines, so accommodate them. |
---|
| 2395 | echo '%% |
---|
| 2396 | %%' | $LEX |
---|
| 2397 | if test -f lex.yy.c; then |
---|
| 2398 | ac_cv_prog_lex_root=lex.yy |
---|
| 2399 | elif test -f lexyy.c; then |
---|
| 2400 | ac_cv_prog_lex_root=lexyy |
---|
| 2401 | else |
---|
| 2402 | { echo "configure: error: cannot find output from $LEX; giving up" 1>&2; exit 1; } |
---|
| 2403 | fi |
---|
| 2404 | fi |
---|
| 2405 | |
---|
| 2406 | echo "$ac_t""$ac_cv_prog_lex_root" 1>&6 |
---|
| 2407 | LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root |
---|
| 2408 | |
---|
| 2409 | echo $ac_n "checking whether yytext is a pointer""... $ac_c" 1>&6 |
---|
| 2410 | echo "configure:2411: checking whether yytext is a pointer" >&5 |
---|
| 2411 | if eval "test \"`echo '$''{'ac_cv_prog_lex_yytext_pointer'+set}'`\" = set"; then |
---|
| 2412 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 2413 | else |
---|
| 2414 | # POSIX says lex can declare yytext either as a pointer or an array; the |
---|
| 2415 | # default is implementation-dependent. Figure out which it is, since |
---|
| 2416 | # not all implementations provide the %pointer and %array declarations. |
---|
| 2417 | ac_cv_prog_lex_yytext_pointer=no |
---|
| 2418 | echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c |
---|
| 2419 | ac_save_LIBS="$LIBS" |
---|
| 2420 | LIBS="$LIBS $LEXLIB" |
---|
| 2421 | cat > conftest.$ac_ext <<EOF |
---|
| 2422 | #line 2423 "configure" |
---|
| 2423 | #include "confdefs.h" |
---|
| 2424 | `cat $LEX_OUTPUT_ROOT.c` |
---|
| 2425 | int main() { |
---|
| 2426 | |
---|
| 2427 | ; return 0; } |
---|
| 2428 | EOF |
---|
| 2429 | if { (eval echo configure:2430: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
| 2430 | rm -rf conftest* |
---|
| 2431 | ac_cv_prog_lex_yytext_pointer=yes |
---|
| 2432 | else |
---|
| 2433 | echo "configure: failed program was:" >&5 |
---|
| 2434 | cat conftest.$ac_ext >&5 |
---|
| 2435 | fi |
---|
| 2436 | rm -f conftest* |
---|
| 2437 | LIBS="$ac_save_LIBS" |
---|
| 2438 | rm -f "${LEX_OUTPUT_ROOT}.c" |
---|
| 2439 | |
---|
| 2440 | fi |
---|
| 2441 | |
---|
| 2442 | echo "$ac_t""$ac_cv_prog_lex_yytext_pointer" 1>&6 |
---|
| 2443 | if test $ac_cv_prog_lex_yytext_pointer = yes; then |
---|
| 2444 | cat >> confdefs.h <<\EOF |
---|
| 2445 | #define YYTEXT_POINTER 1 |
---|
| 2446 | EOF |
---|
| 2447 | |
---|
| 2448 | fi |
---|
| 2449 | |
---|
| 2450 | for ac_prog in gawk mawk nawk awk |
---|
| 2451 | do |
---|
| 2452 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
| 2453 | set dummy $ac_prog; ac_word=$2 |
---|
| 2454 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
---|
| 2455 | echo "configure:2456: checking for $ac_word" >&5 |
---|
| 2456 | if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then |
---|
| 2457 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 2458 | else |
---|
| 2459 | if test -n "$AWK"; then |
---|
| 2460 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
---|
| 2461 | else |
---|
| 2462 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
---|
| 2463 | ac_dummy="$PATH" |
---|
| 2464 | for ac_dir in $ac_dummy; do |
---|
| 2465 | test -z "$ac_dir" && ac_dir=. |
---|
| 2466 | if test -f $ac_dir/$ac_word; then |
---|
| 2467 | ac_cv_prog_AWK="$ac_prog" |
---|
| 2468 | break |
---|
| 2469 | fi |
---|
| 2470 | done |
---|
| 2471 | IFS="$ac_save_ifs" |
---|
| 2472 | fi |
---|
| 2473 | fi |
---|
| 2474 | AWK="$ac_cv_prog_AWK" |
---|
| 2475 | if test -n "$AWK"; then |
---|
| 2476 | echo "$ac_t""$AWK" 1>&6 |
---|
| 2477 | else |
---|
| 2478 | echo "$ac_t""no" 1>&6 |
---|
| 2479 | fi |
---|
| 2480 | |
---|
| 2481 | test -n "$AWK" && break |
---|
| 2482 | done |
---|
| 2483 | |
---|
| 2484 | |
---|
| 2485 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 |
---|
| 2486 | echo "configure:2487: checking for ANSI C header files" >&5 |
---|
| 2487 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then |
---|
| 2488 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 2489 | else |
---|
| 2490 | cat > conftest.$ac_ext <<EOF |
---|
| 2491 | #line 2492 "configure" |
---|
| 2492 | #include "confdefs.h" |
---|
| 2493 | #include <stdlib.h> |
---|
| 2494 | #include <stdarg.h> |
---|
| 2495 | #include <string.h> |
---|
| 2496 | #include <float.h> |
---|
| 2497 | EOF |
---|
| 2498 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
---|
| 2499 | { (eval echo configure:2500: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
---|
| 2500 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
---|
| 2501 | if test -z "$ac_err"; then |
---|
| 2502 | rm -rf conftest* |
---|
| 2503 | ac_cv_header_stdc=yes |
---|
| 2504 | else |
---|
| 2505 | echo "$ac_err" >&5 |
---|
| 2506 | echo "configure: failed program was:" >&5 |
---|
| 2507 | cat conftest.$ac_ext >&5 |
---|
| 2508 | rm -rf conftest* |
---|
| 2509 | ac_cv_header_stdc=no |
---|
| 2510 | fi |
---|
| 2511 | rm -f conftest* |
---|
| 2512 | |
---|
| 2513 | if test $ac_cv_header_stdc = yes; then |
---|
| 2514 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
---|
| 2515 | cat > conftest.$ac_ext <<EOF |
---|
| 2516 | #line 2517 "configure" |
---|
| 2517 | #include "confdefs.h" |
---|
| 2518 | #include <string.h> |
---|
| 2519 | EOF |
---|
| 2520 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
| 2521 | egrep "memchr" >/dev/null 2>&1; then |
---|
| 2522 | : |
---|
| 2523 | else |
---|
| 2524 | rm -rf conftest* |
---|
| 2525 | ac_cv_header_stdc=no |
---|
| 2526 | fi |
---|
| 2527 | rm -f conftest* |
---|
| 2528 | |
---|
| 2529 | fi |
---|
| 2530 | |
---|
| 2531 | if test $ac_cv_header_stdc = yes; then |
---|
| 2532 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
---|
| 2533 | cat > conftest.$ac_ext <<EOF |
---|
| 2534 | #line 2535 "configure" |
---|
| 2535 | #include "confdefs.h" |
---|
| 2536 | #include <stdlib.h> |
---|
| 2537 | EOF |
---|
| 2538 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
| 2539 | egrep "free" >/dev/null 2>&1; then |
---|
| 2540 | : |
---|
| 2541 | else |
---|
| 2542 | rm -rf conftest* |
---|
| 2543 | ac_cv_header_stdc=no |
---|
| 2544 | fi |
---|
| 2545 | rm -f conftest* |
---|
| 2546 | |
---|
| 2547 | fi |
---|
| 2548 | |
---|
| 2549 | if test $ac_cv_header_stdc = yes; then |
---|
| 2550 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
---|
| 2551 | if test "$cross_compiling" = yes; then |
---|
| 2552 | : |
---|
| 2553 | else |
---|
| 2554 | cat > conftest.$ac_ext <<EOF |
---|
| 2555 | #line 2556 "configure" |
---|
| 2556 | #include "confdefs.h" |
---|
| 2557 | #include <ctype.h> |
---|
| 2558 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
---|
| 2559 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
---|
| 2560 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
---|
| 2561 | int main () { int i; for (i = 0; i < 256; i++) |
---|
| 2562 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); |
---|
| 2563 | exit (0); } |
---|
| 2564 | |
---|
| 2565 | EOF |
---|
| 2566 | if { (eval echo configure:2567: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
---|
| 2567 | then |
---|
| 2568 | : |
---|
| 2569 | else |
---|
| 2570 | echo "configure: failed program was:" >&5 |
---|
| 2571 | cat conftest.$ac_ext >&5 |
---|
| 2572 | rm -fr conftest* |
---|
| 2573 | ac_cv_header_stdc=no |
---|
| 2574 | fi |
---|
| 2575 | rm -fr conftest* |
---|
| 2576 | fi |
---|
| 2577 | |
---|
| 2578 | fi |
---|
| 2579 | fi |
---|
| 2580 | |
---|
| 2581 | echo "$ac_t""$ac_cv_header_stdc" 1>&6 |
---|
| 2582 | if test $ac_cv_header_stdc = yes; then |
---|
| 2583 | cat >> confdefs.h <<\EOF |
---|
| 2584 | #define STDC_HEADERS 1 |
---|
| 2585 | EOF |
---|
| 2586 | |
---|
| 2587 | fi |
---|
| 2588 | |
---|
| 2589 | for ac_hdr in fcntl.h unistd.h sys/endian.h endian.h machine/endian.h sys/machine.h sys/isa_defs.h sys/poll.h |
---|
| 2590 | do |
---|
| 2591 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
---|
| 2592 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
---|
| 2593 | echo "configure:2594: checking for $ac_hdr" >&5 |
---|
| 2594 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
---|
| 2595 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 2596 | else |
---|
| 2597 | cat > conftest.$ac_ext <<EOF |
---|
| 2598 | #line 2599 "configure" |
---|
| 2599 | #include "confdefs.h" |
---|
| 2600 | #include <$ac_hdr> |
---|
| 2601 | EOF |
---|
| 2602 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
---|
| 2603 | { (eval echo configure:2604: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
---|
| 2604 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
---|
| 2605 | if test -z "$ac_err"; then |
---|
| 2606 | rm -rf conftest* |
---|
| 2607 | eval "ac_cv_header_$ac_safe=yes" |
---|
| 2608 | else |
---|
| 2609 | echo "$ac_err" >&5 |
---|
| 2610 | echo "configure: failed program was:" >&5 |
---|
| 2611 | cat conftest.$ac_ext >&5 |
---|
| 2612 | rm -rf conftest* |
---|
| 2613 | eval "ac_cv_header_$ac_safe=no" |
---|
| 2614 | fi |
---|
| 2615 | rm -f conftest* |
---|
| 2616 | fi |
---|
| 2617 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
---|
| 2618 | echo "$ac_t""yes" 1>&6 |
---|
| 2619 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
---|
| 2620 | cat >> confdefs.h <<EOF |
---|
| 2621 | #define $ac_tr_hdr 1 |
---|
| 2622 | EOF |
---|
| 2623 | |
---|
| 2624 | else |
---|
| 2625 | echo "$ac_t""no" 1>&6 |
---|
| 2626 | fi |
---|
| 2627 | done |
---|
| 2628 | |
---|
| 2629 | for ac_hdr in stddef.h wchar.h wcstr.h wctype.h machine/types.h tcpd.h |
---|
| 2630 | do |
---|
| 2631 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
---|
| 2632 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
---|
| 2633 | echo "configure:2634: checking for $ac_hdr" >&5 |
---|
| 2634 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
---|
| 2635 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 2636 | else |
---|
| 2637 | cat > conftest.$ac_ext <<EOF |
---|
| 2638 | #line 2639 "configure" |
---|
| 2639 | #include "confdefs.h" |
---|
| 2640 | #include <$ac_hdr> |
---|
| 2641 | EOF |
---|
| 2642 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
---|
| 2643 | { (eval echo configure:2644: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
---|
| 2644 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
---|
| 2645 | if test -z "$ac_err"; then |
---|
| 2646 | rm -rf conftest* |
---|
| 2647 | eval "ac_cv_header_$ac_safe=yes" |
---|
| 2648 | else |
---|
| 2649 | echo "$ac_err" >&5 |
---|
| 2650 | echo "configure: failed program was:" >&5 |
---|
| 2651 | cat conftest.$ac_ext >&5 |
---|
| 2652 | rm -rf conftest* |
---|
| 2653 | eval "ac_cv_header_$ac_safe=no" |
---|
| 2654 | fi |
---|
| 2655 | rm -f conftest* |
---|
| 2656 | fi |
---|
| 2657 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
---|
| 2658 | echo "$ac_t""yes" 1>&6 |
---|
| 2659 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
---|
| 2660 | cat >> confdefs.h <<EOF |
---|
| 2661 | #define $ac_tr_hdr 1 |
---|
| 2662 | EOF |
---|
| 2663 | |
---|
| 2664 | else |
---|
| 2665 | echo "$ac_t""no" 1>&6 |
---|
| 2666 | fi |
---|
| 2667 | done |
---|
| 2668 | |
---|
| 2669 | |
---|
| 2670 | echo $ac_n "checking for working const""... $ac_c" 1>&6 |
---|
| 2671 | echo "configure:2672: checking for working const" >&5 |
---|
| 2672 | if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then |
---|
| 2673 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 2674 | else |
---|
| 2675 | cat > conftest.$ac_ext <<EOF |
---|
| 2676 | #line 2677 "configure" |
---|
| 2677 | #include "confdefs.h" |
---|
| 2678 | |
---|
| 2679 | int main() { |
---|
| 2680 | |
---|
| 2681 | /* Ultrix mips cc rejects this. */ |
---|
| 2682 | typedef int charset[2]; const charset x; |
---|
| 2683 | /* SunOS 4.1.1 cc rejects this. */ |
---|
| 2684 | char const *const *ccp; |
---|
| 2685 | char **p; |
---|
| 2686 | /* NEC SVR4.0.2 mips cc rejects this. */ |
---|
| 2687 | struct point {int x, y;}; |
---|
| 2688 | static struct point const zero = {0,0}; |
---|
| 2689 | /* AIX XL C 1.02.0.0 rejects this. |
---|
| 2690 | It does not let you subtract one const X* pointer from another in an arm |
---|
| 2691 | of an if-expression whose if-part is not a constant expression */ |
---|
| 2692 | const char *g = "string"; |
---|
| 2693 | ccp = &g + (g ? g-g : 0); |
---|
| 2694 | /* HPUX 7.0 cc rejects these. */ |
---|
| 2695 | ++ccp; |
---|
| 2696 | p = (char**) ccp; |
---|
| 2697 | ccp = (char const *const *) p; |
---|
| 2698 | { /* SCO 3.2v4 cc rejects this. */ |
---|
| 2699 | char *t; |
---|
| 2700 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
---|
| 2701 | |
---|
| 2702 | *t++ = 0; |
---|
| 2703 | } |
---|
| 2704 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
---|
| 2705 | int x[] = {25, 17}; |
---|
| 2706 | const int *foo = &x[0]; |
---|
| 2707 | ++foo; |
---|
| 2708 | } |
---|
| 2709 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
---|
| 2710 | typedef const int *iptr; |
---|
| 2711 | iptr p = 0; |
---|
| 2712 | ++p; |
---|
| 2713 | } |
---|
| 2714 | { /* AIX XL C 1.02.0.0 rejects this saying |
---|
| 2715 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
---|
| 2716 | struct s { int j; const int *ap[3]; }; |
---|
| 2717 | struct s *b; b->j = 5; |
---|
| 2718 | } |
---|
| 2719 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
---|
| 2720 | const int foo = 10; |
---|
| 2721 | } |
---|
| 2722 | |
---|
| 2723 | ; return 0; } |
---|
| 2724 | EOF |
---|
| 2725 | if { (eval echo configure:2726: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
---|
| 2726 | rm -rf conftest* |
---|
| 2727 | ac_cv_c_const=yes |
---|
| 2728 | else |
---|
| 2729 | echo "configure: failed program was:" >&5 |
---|
| 2730 | cat conftest.$ac_ext >&5 |
---|
| 2731 | rm -rf conftest* |
---|
| 2732 | ac_cv_c_const=no |
---|
| 2733 | fi |
---|
| 2734 | rm -f conftest* |
---|
| 2735 | fi |
---|
| 2736 | |
---|
| 2737 | echo "$ac_t""$ac_cv_c_const" 1>&6 |
---|
| 2738 | if test $ac_cv_c_const = no; then |
---|
| 2739 | cat >> confdefs.h <<\EOF |
---|
| 2740 | #define const |
---|
| 2741 | EOF |
---|
| 2742 | |
---|
| 2743 | fi |
---|
| 2744 | |
---|
| 2745 | echo $ac_n "checking for inline""... $ac_c" 1>&6 |
---|
| 2746 | echo "configure:2747: checking for inline" >&5 |
---|
| 2747 | if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then |
---|
| 2748 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 2749 | else |
---|
| 2750 | ac_cv_c_inline=no |
---|
| 2751 | for ac_kw in inline __inline__ __inline; do |
---|
| 2752 | cat > conftest.$ac_ext <<EOF |
---|
| 2753 | #line 2754 "configure" |
---|
| 2754 | #include "confdefs.h" |
---|
| 2755 | |
---|
| 2756 | int main() { |
---|
| 2757 | } $ac_kw foo() { |
---|
| 2758 | ; return 0; } |
---|
| 2759 | EOF |
---|
| 2760 | if { (eval echo configure:2761: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
---|
| 2761 | rm -rf conftest* |
---|
| 2762 | ac_cv_c_inline=$ac_kw; break |
---|
| 2763 | else |
---|
| 2764 | echo "configure: failed program was:" >&5 |
---|
| 2765 | cat conftest.$ac_ext >&5 |
---|
| 2766 | fi |
---|
| 2767 | rm -f conftest* |
---|
| 2768 | done |
---|
| 2769 | |
---|
| 2770 | fi |
---|
| 2771 | |
---|
| 2772 | echo "$ac_t""$ac_cv_c_inline" 1>&6 |
---|
| 2773 | case "$ac_cv_c_inline" in |
---|
| 2774 | inline | yes) ;; |
---|
| 2775 | no) cat >> confdefs.h <<\EOF |
---|
| 2776 | #define inline |
---|
| 2777 | EOF |
---|
| 2778 | ;; |
---|
| 2779 | *) cat >> confdefs.h <<EOF |
---|
| 2780 | #define inline $ac_cv_c_inline |
---|
| 2781 | EOF |
---|
| 2782 | ;; |
---|
| 2783 | esac |
---|
| 2784 | |
---|
| 2785 | echo $ac_n "checking for size_t""... $ac_c" 1>&6 |
---|
| 2786 | echo "configure:2787: checking for size_t" >&5 |
---|
| 2787 | if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then |
---|
| 2788 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 2789 | else |
---|
| 2790 | cat > conftest.$ac_ext <<EOF |
---|
| 2791 | #line 2792 "configure" |
---|
| 2792 | #include "confdefs.h" |
---|
| 2793 | #include <sys/types.h> |
---|
| 2794 | #if STDC_HEADERS |
---|
| 2795 | #include <stdlib.h> |
---|
| 2796 | #include <stddef.h> |
---|
| 2797 | #endif |
---|
| 2798 | EOF |
---|
| 2799 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
| 2800 | egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then |
---|
| 2801 | rm -rf conftest* |
---|
| 2802 | ac_cv_type_size_t=yes |
---|
| 2803 | else |
---|
| 2804 | rm -rf conftest* |
---|
| 2805 | ac_cv_type_size_t=no |
---|
| 2806 | fi |
---|
| 2807 | rm -f conftest* |
---|
| 2808 | |
---|
| 2809 | fi |
---|
| 2810 | echo "$ac_t""$ac_cv_type_size_t" 1>&6 |
---|
| 2811 | if test $ac_cv_type_size_t = no; then |
---|
| 2812 | cat >> confdefs.h <<\EOF |
---|
| 2813 | #define size_t unsigned |
---|
| 2814 | EOF |
---|
| 2815 | |
---|
| 2816 | fi |
---|
| 2817 | |
---|
| 2818 | |
---|
| 2819 | echo $ac_n "checking for vprintf""... $ac_c" 1>&6 |
---|
| 2820 | echo "configure:2821: checking for vprintf" >&5 |
---|
| 2821 | if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then |
---|
| 2822 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 2823 | else |
---|
| 2824 | cat > conftest.$ac_ext <<EOF |
---|
| 2825 | #line 2826 "configure" |
---|
| 2826 | #include "confdefs.h" |
---|
| 2827 | /* System header to define __stub macros and hopefully few prototypes, |
---|
| 2828 | which can conflict with char vprintf(); below. */ |
---|
| 2829 | #include <assert.h> |
---|
| 2830 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
| 2831 | /* We use char because int might match the return type of a gcc2 |
---|
| 2832 | builtin and then its argument prototype would still apply. */ |
---|
| 2833 | char vprintf(); |
---|
| 2834 | |
---|
| 2835 | int main() { |
---|
| 2836 | |
---|
| 2837 | /* The GNU C library defines this for functions which it implements |
---|
| 2838 | to always fail with ENOSYS. Some functions are actually named |
---|
| 2839 | something starting with __ and the normal name is an alias. */ |
---|
| 2840 | #if defined (__stub_vprintf) || defined (__stub___vprintf) |
---|
| 2841 | choke me |
---|
| 2842 | #else |
---|
| 2843 | vprintf(); |
---|
| 2844 | #endif |
---|
| 2845 | |
---|
| 2846 | ; return 0; } |
---|
| 2847 | EOF |
---|
| 2848 | if { (eval echo configure:2849: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
| 2849 | rm -rf conftest* |
---|
| 2850 | eval "ac_cv_func_vprintf=yes" |
---|
| 2851 | else |
---|
| 2852 | echo "configure: failed program was:" >&5 |
---|
| 2853 | cat conftest.$ac_ext >&5 |
---|
| 2854 | rm -rf conftest* |
---|
| 2855 | eval "ac_cv_func_vprintf=no" |
---|
| 2856 | fi |
---|
| 2857 | rm -f conftest* |
---|
| 2858 | fi |
---|
| 2859 | |
---|
| 2860 | if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then |
---|
| 2861 | echo "$ac_t""yes" 1>&6 |
---|
| 2862 | cat >> confdefs.h <<\EOF |
---|
| 2863 | #define HAVE_VPRINTF 1 |
---|
| 2864 | EOF |
---|
| 2865 | |
---|
| 2866 | else |
---|
| 2867 | echo "$ac_t""no" 1>&6 |
---|
| 2868 | fi |
---|
| 2869 | |
---|
| 2870 | if test "$ac_cv_func_vprintf" != yes; then |
---|
| 2871 | echo $ac_n "checking for _doprnt""... $ac_c" 1>&6 |
---|
| 2872 | echo "configure:2873: checking for _doprnt" >&5 |
---|
| 2873 | if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then |
---|
| 2874 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 2875 | else |
---|
| 2876 | cat > conftest.$ac_ext <<EOF |
---|
| 2877 | #line 2878 "configure" |
---|
| 2878 | #include "confdefs.h" |
---|
| 2879 | /* System header to define __stub macros and hopefully few prototypes, |
---|
| 2880 | which can conflict with char _doprnt(); below. */ |
---|
| 2881 | #include <assert.h> |
---|
| 2882 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
| 2883 | /* We use char because int might match the return type of a gcc2 |
---|
| 2884 | builtin and then its argument prototype would still apply. */ |
---|
| 2885 | char _doprnt(); |
---|
| 2886 | |
---|
| 2887 | int main() { |
---|
| 2888 | |
---|
| 2889 | /* The GNU C library defines this for functions which it implements |
---|
| 2890 | to always fail with ENOSYS. Some functions are actually named |
---|
| 2891 | something starting with __ and the normal name is an alias. */ |
---|
| 2892 | #if defined (__stub__doprnt) || defined (__stub____doprnt) |
---|
| 2893 | choke me |
---|
| 2894 | #else |
---|
| 2895 | _doprnt(); |
---|
| 2896 | #endif |
---|
| 2897 | |
---|
| 2898 | ; return 0; } |
---|
| 2899 | EOF |
---|
| 2900 | if { (eval echo configure:2901: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
| 2901 | rm -rf conftest* |
---|
| 2902 | eval "ac_cv_func__doprnt=yes" |
---|
| 2903 | else |
---|
| 2904 | echo "configure: failed program was:" >&5 |
---|
| 2905 | cat conftest.$ac_ext >&5 |
---|
| 2906 | rm -rf conftest* |
---|
| 2907 | eval "ac_cv_func__doprnt=no" |
---|
| 2908 | fi |
---|
| 2909 | rm -f conftest* |
---|
| 2910 | fi |
---|
| 2911 | |
---|
| 2912 | if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then |
---|
| 2913 | echo "$ac_t""yes" 1>&6 |
---|
| 2914 | cat >> confdefs.h <<\EOF |
---|
| 2915 | #define HAVE_DOPRNT 1 |
---|
| 2916 | EOF |
---|
| 2917 | |
---|
| 2918 | else |
---|
| 2919 | echo "$ac_t""no" 1>&6 |
---|
| 2920 | fi |
---|
| 2921 | |
---|
| 2922 | fi |
---|
| 2923 | |
---|
| 2924 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
---|
| 2925 | # for constant arguments. Useless! |
---|
| 2926 | echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6 |
---|
| 2927 | echo "configure:2928: checking for working alloca.h" >&5 |
---|
| 2928 | if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then |
---|
| 2929 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 2930 | else |
---|
| 2931 | cat > conftest.$ac_ext <<EOF |
---|
| 2932 | #line 2933 "configure" |
---|
| 2933 | #include "confdefs.h" |
---|
| 2934 | #include <alloca.h> |
---|
| 2935 | int main() { |
---|
| 2936 | char *p = alloca(2 * sizeof(int)); |
---|
| 2937 | ; return 0; } |
---|
| 2938 | EOF |
---|
| 2939 | if { (eval echo configure:2940: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
| 2940 | rm -rf conftest* |
---|
| 2941 | ac_cv_header_alloca_h=yes |
---|
| 2942 | else |
---|
| 2943 | echo "configure: failed program was:" >&5 |
---|
| 2944 | cat conftest.$ac_ext >&5 |
---|
| 2945 | rm -rf conftest* |
---|
| 2946 | ac_cv_header_alloca_h=no |
---|
| 2947 | fi |
---|
| 2948 | rm -f conftest* |
---|
| 2949 | fi |
---|
| 2950 | |
---|
| 2951 | echo "$ac_t""$ac_cv_header_alloca_h" 1>&6 |
---|
| 2952 | if test $ac_cv_header_alloca_h = yes; then |
---|
| 2953 | cat >> confdefs.h <<\EOF |
---|
| 2954 | #define HAVE_ALLOCA_H 1 |
---|
| 2955 | EOF |
---|
| 2956 | |
---|
| 2957 | fi |
---|
| 2958 | |
---|
| 2959 | echo $ac_n "checking for alloca""... $ac_c" 1>&6 |
---|
| 2960 | echo "configure:2961: checking for alloca" >&5 |
---|
| 2961 | if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then |
---|
| 2962 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 2963 | else |
---|
| 2964 | cat > conftest.$ac_ext <<EOF |
---|
| 2965 | #line 2966 "configure" |
---|
| 2966 | #include "confdefs.h" |
---|
| 2967 | |
---|
| 2968 | #ifdef __GNUC__ |
---|
| 2969 | # define alloca __builtin_alloca |
---|
| 2970 | #else |
---|
| 2971 | # ifdef _MSC_VER |
---|
| 2972 | # include <malloc.h> |
---|
| 2973 | # define alloca _alloca |
---|
| 2974 | # else |
---|
| 2975 | # if HAVE_ALLOCA_H |
---|
| 2976 | # include <alloca.h> |
---|
| 2977 | # else |
---|
| 2978 | # ifdef _AIX |
---|
| 2979 | #pragma alloca |
---|
| 2980 | # else |
---|
| 2981 | # ifndef alloca /* predefined by HP cc +Olibcalls */ |
---|
| 2982 | char *alloca (); |
---|
| 2983 | # endif |
---|
| 2984 | # endif |
---|
| 2985 | # endif |
---|
| 2986 | # endif |
---|
| 2987 | #endif |
---|
| 2988 | |
---|
| 2989 | int main() { |
---|
| 2990 | char *p = (char *) alloca(1); |
---|
| 2991 | ; return 0; } |
---|
| 2992 | EOF |
---|
| 2993 | if { (eval echo configure:2994: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
| 2994 | rm -rf conftest* |
---|
| 2995 | ac_cv_func_alloca_works=yes |
---|
| 2996 | else |
---|
| 2997 | echo "configure: failed program was:" >&5 |
---|
| 2998 | cat conftest.$ac_ext >&5 |
---|
| 2999 | rm -rf conftest* |
---|
| 3000 | ac_cv_func_alloca_works=no |
---|
| 3001 | fi |
---|
| 3002 | rm -f conftest* |
---|
| 3003 | fi |
---|
| 3004 | |
---|
| 3005 | echo "$ac_t""$ac_cv_func_alloca_works" 1>&6 |
---|
| 3006 | if test $ac_cv_func_alloca_works = yes; then |
---|
| 3007 | cat >> confdefs.h <<\EOF |
---|
| 3008 | #define HAVE_ALLOCA 1 |
---|
| 3009 | EOF |
---|
| 3010 | |
---|
| 3011 | fi |
---|
| 3012 | |
---|
| 3013 | if test $ac_cv_func_alloca_works = no; then |
---|
| 3014 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions |
---|
| 3015 | # that cause trouble. Some versions do not even contain alloca or |
---|
| 3016 | # contain a buggy version. If you still want to use their alloca, |
---|
| 3017 | # use ar to extract alloca.o from them instead of compiling alloca.c. |
---|
| 3018 | ALLOCA=alloca.${ac_objext} |
---|
| 3019 | cat >> confdefs.h <<\EOF |
---|
| 3020 | #define C_ALLOCA 1 |
---|
| 3021 | EOF |
---|
| 3022 | |
---|
| 3023 | |
---|
| 3024 | echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 |
---|
| 3025 | echo "configure:3026: checking whether alloca needs Cray hooks" >&5 |
---|
| 3026 | if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then |
---|
| 3027 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 3028 | else |
---|
| 3029 | cat > conftest.$ac_ext <<EOF |
---|
| 3030 | #line 3031 "configure" |
---|
| 3031 | #include "confdefs.h" |
---|
| 3032 | #if defined(CRAY) && ! defined(CRAY2) |
---|
| 3033 | webecray |
---|
| 3034 | #else |
---|
| 3035 | wenotbecray |
---|
| 3036 | #endif |
---|
| 3037 | |
---|
| 3038 | EOF |
---|
| 3039 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
| 3040 | egrep "webecray" >/dev/null 2>&1; then |
---|
| 3041 | rm -rf conftest* |
---|
| 3042 | ac_cv_os_cray=yes |
---|
| 3043 | else |
---|
| 3044 | rm -rf conftest* |
---|
| 3045 | ac_cv_os_cray=no |
---|
| 3046 | fi |
---|
| 3047 | rm -f conftest* |
---|
| 3048 | |
---|
| 3049 | fi |
---|
| 3050 | |
---|
| 3051 | echo "$ac_t""$ac_cv_os_cray" 1>&6 |
---|
| 3052 | if test $ac_cv_os_cray = yes; then |
---|
| 3053 | for ac_func in _getb67 GETB67 getb67; do |
---|
| 3054 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
---|
| 3055 | echo "configure:3056: checking for $ac_func" >&5 |
---|
| 3056 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
---|
| 3057 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 3058 | else |
---|
| 3059 | cat > conftest.$ac_ext <<EOF |
---|
| 3060 | #line 3061 "configure" |
---|
| 3061 | #include "confdefs.h" |
---|
| 3062 | /* System header to define __stub macros and hopefully few prototypes, |
---|
| 3063 | which can conflict with char $ac_func(); below. */ |
---|
| 3064 | #include <assert.h> |
---|
| 3065 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
| 3066 | /* We use char because int might match the return type of a gcc2 |
---|
| 3067 | builtin and then its argument prototype would still apply. */ |
---|
| 3068 | char $ac_func(); |
---|
| 3069 | |
---|
| 3070 | int main() { |
---|
| 3071 | |
---|
| 3072 | /* The GNU C library defines this for functions which it implements |
---|
| 3073 | to always fail with ENOSYS. Some functions are actually named |
---|
| 3074 | something starting with __ and the normal name is an alias. */ |
---|
| 3075 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
---|
| 3076 | choke me |
---|
| 3077 | #else |
---|
| 3078 | $ac_func(); |
---|
| 3079 | #endif |
---|
| 3080 | |
---|
| 3081 | ; return 0; } |
---|
| 3082 | EOF |
---|
| 3083 | if { (eval echo configure:3084: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
| 3084 | rm -rf conftest* |
---|
| 3085 | eval "ac_cv_func_$ac_func=yes" |
---|
| 3086 | else |
---|
| 3087 | echo "configure: failed program was:" >&5 |
---|
| 3088 | cat conftest.$ac_ext >&5 |
---|
| 3089 | rm -rf conftest* |
---|
| 3090 | eval "ac_cv_func_$ac_func=no" |
---|
| 3091 | fi |
---|
| 3092 | rm -f conftest* |
---|
| 3093 | fi |
---|
| 3094 | |
---|
| 3095 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
---|
| 3096 | echo "$ac_t""yes" 1>&6 |
---|
| 3097 | cat >> confdefs.h <<EOF |
---|
| 3098 | #define CRAY_STACKSEG_END $ac_func |
---|
| 3099 | EOF |
---|
| 3100 | |
---|
| 3101 | break |
---|
| 3102 | else |
---|
| 3103 | echo "$ac_t""no" 1>&6 |
---|
| 3104 | fi |
---|
| 3105 | |
---|
| 3106 | done |
---|
| 3107 | fi |
---|
| 3108 | |
---|
| 3109 | echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 |
---|
| 3110 | echo "configure:3111: checking stack direction for C alloca" >&5 |
---|
| 3111 | if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then |
---|
| 3112 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 3113 | else |
---|
| 3114 | if test "$cross_compiling" = yes; then |
---|
| 3115 | ac_cv_c_stack_direction=0 |
---|
| 3116 | else |
---|
| 3117 | cat > conftest.$ac_ext <<EOF |
---|
| 3118 | #line 3119 "configure" |
---|
| 3119 | #include "confdefs.h" |
---|
| 3120 | find_stack_direction () |
---|
| 3121 | { |
---|
| 3122 | static char *addr = 0; |
---|
| 3123 | auto char dummy; |
---|
| 3124 | if (addr == 0) |
---|
| 3125 | { |
---|
| 3126 | addr = &dummy; |
---|
| 3127 | return find_stack_direction (); |
---|
| 3128 | } |
---|
| 3129 | else |
---|
| 3130 | return (&dummy > addr) ? 1 : -1; |
---|
| 3131 | } |
---|
| 3132 | main () |
---|
| 3133 | { |
---|
| 3134 | exit (find_stack_direction() < 0); |
---|
| 3135 | } |
---|
| 3136 | EOF |
---|
| 3137 | if { (eval echo configure:3138: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
---|
| 3138 | then |
---|
| 3139 | ac_cv_c_stack_direction=1 |
---|
| 3140 | else |
---|
| 3141 | echo "configure: failed program was:" >&5 |
---|
| 3142 | cat conftest.$ac_ext >&5 |
---|
| 3143 | rm -fr conftest* |
---|
| 3144 | ac_cv_c_stack_direction=-1 |
---|
| 3145 | fi |
---|
| 3146 | rm -fr conftest* |
---|
| 3147 | fi |
---|
| 3148 | |
---|
| 3149 | fi |
---|
| 3150 | |
---|
| 3151 | echo "$ac_t""$ac_cv_c_stack_direction" 1>&6 |
---|
| 3152 | cat >> confdefs.h <<EOF |
---|
| 3153 | #define STACK_DIRECTION $ac_cv_c_stack_direction |
---|
| 3154 | EOF |
---|
| 3155 | |
---|
| 3156 | fi |
---|
| 3157 | |
---|
| 3158 | if test $ac_cv_header_alloca_h = yes; then |
---|
| 3159 | ORBIT_HAVE_ALLOCA_H=1 |
---|
| 3160 | else |
---|
| 3161 | ORBIT_HAVE_ALLOCA_H=0 |
---|
| 3162 | fi |
---|
| 3163 | |
---|
| 3164 | |
---|
| 3165 | for ac_func in poll basename |
---|
| 3166 | do |
---|
| 3167 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
---|
| 3168 | echo "configure:3169: checking for $ac_func" >&5 |
---|
| 3169 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
---|
| 3170 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 3171 | else |
---|
| 3172 | cat > conftest.$ac_ext <<EOF |
---|
| 3173 | #line 3174 "configure" |
---|
| 3174 | #include "confdefs.h" |
---|
| 3175 | /* System header to define __stub macros and hopefully few prototypes, |
---|
| 3176 | which can conflict with char $ac_func(); below. */ |
---|
| 3177 | #include <assert.h> |
---|
| 3178 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
| 3179 | /* We use char because int might match the return type of a gcc2 |
---|
| 3180 | builtin and then its argument prototype would still apply. */ |
---|
| 3181 | char $ac_func(); |
---|
| 3182 | |
---|
| 3183 | int main() { |
---|
| 3184 | |
---|
| 3185 | /* The GNU C library defines this for functions which it implements |
---|
| 3186 | to always fail with ENOSYS. Some functions are actually named |
---|
| 3187 | something starting with __ and the normal name is an alias. */ |
---|
| 3188 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
---|
| 3189 | choke me |
---|
| 3190 | #else |
---|
| 3191 | $ac_func(); |
---|
| 3192 | #endif |
---|
| 3193 | |
---|
| 3194 | ; return 0; } |
---|
| 3195 | EOF |
---|
| 3196 | if { (eval echo configure:3197: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
| 3197 | rm -rf conftest* |
---|
| 3198 | eval "ac_cv_func_$ac_func=yes" |
---|
| 3199 | else |
---|
| 3200 | echo "configure: failed program was:" >&5 |
---|
| 3201 | cat conftest.$ac_ext >&5 |
---|
| 3202 | rm -rf conftest* |
---|
| 3203 | eval "ac_cv_func_$ac_func=no" |
---|
| 3204 | fi |
---|
| 3205 | rm -f conftest* |
---|
| 3206 | fi |
---|
| 3207 | |
---|
| 3208 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
---|
| 3209 | echo "$ac_t""yes" 1>&6 |
---|
| 3210 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
---|
| 3211 | cat >> confdefs.h <<EOF |
---|
| 3212 | #define $ac_tr_func 1 |
---|
| 3213 | EOF |
---|
| 3214 | |
---|
| 3215 | else |
---|
| 3216 | echo "$ac_t""no" 1>&6 |
---|
| 3217 | fi |
---|
| 3218 | done |
---|
| 3219 | |
---|
| 3220 | echo $ac_n "checking for socket""... $ac_c" 1>&6 |
---|
| 3221 | echo "configure:3222: checking for socket" >&5 |
---|
| 3222 | if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then |
---|
| 3223 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 3224 | else |
---|
| 3225 | cat > conftest.$ac_ext <<EOF |
---|
| 3226 | #line 3227 "configure" |
---|
| 3227 | #include "confdefs.h" |
---|
| 3228 | /* System header to define __stub macros and hopefully few prototypes, |
---|
| 3229 | which can conflict with char socket(); below. */ |
---|
| 3230 | #include <assert.h> |
---|
| 3231 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
| 3232 | /* We use char because int might match the return type of a gcc2 |
---|
| 3233 | builtin and then its argument prototype would still apply. */ |
---|
| 3234 | char socket(); |
---|
| 3235 | |
---|
| 3236 | int main() { |
---|
| 3237 | |
---|
| 3238 | /* The GNU C library defines this for functions which it implements |
---|
| 3239 | to always fail with ENOSYS. Some functions are actually named |
---|
| 3240 | something starting with __ and the normal name is an alias. */ |
---|
| 3241 | #if defined (__stub_socket) || defined (__stub___socket) |
---|
| 3242 | choke me |
---|
| 3243 | #else |
---|
| 3244 | socket(); |
---|
| 3245 | #endif |
---|
| 3246 | |
---|
| 3247 | ; return 0; } |
---|
| 3248 | EOF |
---|
| 3249 | if { (eval echo configure:3250: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
| 3250 | rm -rf conftest* |
---|
| 3251 | eval "ac_cv_func_socket=yes" |
---|
| 3252 | else |
---|
| 3253 | echo "configure: failed program was:" >&5 |
---|
| 3254 | cat conftest.$ac_ext >&5 |
---|
| 3255 | rm -rf conftest* |
---|
| 3256 | eval "ac_cv_func_socket=no" |
---|
| 3257 | fi |
---|
| 3258 | rm -f conftest* |
---|
| 3259 | fi |
---|
| 3260 | |
---|
| 3261 | if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then |
---|
| 3262 | echo "$ac_t""yes" 1>&6 |
---|
| 3263 | : |
---|
| 3264 | else |
---|
| 3265 | echo "$ac_t""no" 1>&6 |
---|
| 3266 | echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6 |
---|
| 3267 | echo "configure:3268: checking for socket in -lsocket" >&5 |
---|
| 3268 | ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'` |
---|
| 3269 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
| 3270 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 3271 | else |
---|
| 3272 | ac_save_LIBS="$LIBS" |
---|
| 3273 | LIBS="-lsocket $LIBS" |
---|
| 3274 | cat > conftest.$ac_ext <<EOF |
---|
| 3275 | #line 3276 "configure" |
---|
| 3276 | #include "confdefs.h" |
---|
| 3277 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
| 3278 | /* We use char because int might match the return type of a gcc2 |
---|
| 3279 | builtin and then its argument prototype would still apply. */ |
---|
| 3280 | char socket(); |
---|
| 3281 | |
---|
| 3282 | int main() { |
---|
| 3283 | socket() |
---|
| 3284 | ; return 0; } |
---|
| 3285 | EOF |
---|
| 3286 | if { (eval echo configure:3287: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
| 3287 | rm -rf conftest* |
---|
| 3288 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
| 3289 | else |
---|
| 3290 | echo "configure: failed program was:" >&5 |
---|
| 3291 | cat conftest.$ac_ext >&5 |
---|
| 3292 | rm -rf conftest* |
---|
| 3293 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
| 3294 | fi |
---|
| 3295 | rm -f conftest* |
---|
| 3296 | LIBS="$ac_save_LIBS" |
---|
| 3297 | |
---|
| 3298 | fi |
---|
| 3299 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
| 3300 | echo "$ac_t""yes" 1>&6 |
---|
| 3301 | ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
---|
| 3302 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
---|
| 3303 | cat >> confdefs.h <<EOF |
---|
| 3304 | #define $ac_tr_lib 1 |
---|
| 3305 | EOF |
---|
| 3306 | |
---|
| 3307 | LIBS="-lsocket $LIBS" |
---|
| 3308 | |
---|
| 3309 | else |
---|
| 3310 | echo "$ac_t""no" 1>&6 |
---|
| 3311 | fi |
---|
| 3312 | |
---|
| 3313 | fi |
---|
| 3314 | |
---|
| 3315 | echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 |
---|
| 3316 | echo "configure:3317: checking for gethostbyname" >&5 |
---|
| 3317 | if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then |
---|
| 3318 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 3319 | else |
---|
| 3320 | cat > conftest.$ac_ext <<EOF |
---|
| 3321 | #line 3322 "configure" |
---|
| 3322 | #include "confdefs.h" |
---|
| 3323 | /* System header to define __stub macros and hopefully few prototypes, |
---|
| 3324 | which can conflict with char gethostbyname(); below. */ |
---|
| 3325 | #include <assert.h> |
---|
| 3326 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
| 3327 | /* We use char because int might match the return type of a gcc2 |
---|
| 3328 | builtin and then its argument prototype would still apply. */ |
---|
| 3329 | char gethostbyname(); |
---|
| 3330 | |
---|
| 3331 | int main() { |
---|
| 3332 | |
---|
| 3333 | /* The GNU C library defines this for functions which it implements |
---|
| 3334 | to always fail with ENOSYS. Some functions are actually named |
---|
| 3335 | something starting with __ and the normal name is an alias. */ |
---|
| 3336 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) |
---|
| 3337 | choke me |
---|
| 3338 | #else |
---|
| 3339 | gethostbyname(); |
---|
| 3340 | #endif |
---|
| 3341 | |
---|
| 3342 | ; return 0; } |
---|
| 3343 | EOF |
---|
| 3344 | if { (eval echo configure:3345: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
| 3345 | rm -rf conftest* |
---|
| 3346 | eval "ac_cv_func_gethostbyname=yes" |
---|
| 3347 | else |
---|
| 3348 | echo "configure: failed program was:" >&5 |
---|
| 3349 | cat conftest.$ac_ext >&5 |
---|
| 3350 | rm -rf conftest* |
---|
| 3351 | eval "ac_cv_func_gethostbyname=no" |
---|
| 3352 | fi |
---|
| 3353 | rm -f conftest* |
---|
| 3354 | fi |
---|
| 3355 | |
---|
| 3356 | if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then |
---|
| 3357 | echo "$ac_t""yes" 1>&6 |
---|
| 3358 | : |
---|
| 3359 | else |
---|
| 3360 | echo "$ac_t""no" 1>&6 |
---|
| 3361 | echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 |
---|
| 3362 | echo "configure:3363: checking for gethostbyname in -lnsl" >&5 |
---|
| 3363 | ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` |
---|
| 3364 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
| 3365 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 3366 | else |
---|
| 3367 | ac_save_LIBS="$LIBS" |
---|
| 3368 | LIBS="-lnsl $LIBS" |
---|
| 3369 | cat > conftest.$ac_ext <<EOF |
---|
| 3370 | #line 3371 "configure" |
---|
| 3371 | #include "confdefs.h" |
---|
| 3372 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
| 3373 | /* We use char because int might match the return type of a gcc2 |
---|
| 3374 | builtin and then its argument prototype would still apply. */ |
---|
| 3375 | char gethostbyname(); |
---|
| 3376 | |
---|
| 3377 | int main() { |
---|
| 3378 | gethostbyname() |
---|
| 3379 | ; return 0; } |
---|
| 3380 | EOF |
---|
| 3381 | if { (eval echo configure:3382: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
| 3382 | rm -rf conftest* |
---|
| 3383 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
| 3384 | else |
---|
| 3385 | echo "configure: failed program was:" >&5 |
---|
| 3386 | cat conftest.$ac_ext >&5 |
---|
| 3387 | rm -rf conftest* |
---|
| 3388 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
| 3389 | fi |
---|
| 3390 | rm -f conftest* |
---|
| 3391 | LIBS="$ac_save_LIBS" |
---|
| 3392 | |
---|
| 3393 | fi |
---|
| 3394 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
| 3395 | echo "$ac_t""yes" 1>&6 |
---|
| 3396 | ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
---|
| 3397 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
---|
| 3398 | cat >> confdefs.h <<EOF |
---|
| 3399 | #define $ac_tr_lib 1 |
---|
| 3400 | EOF |
---|
| 3401 | |
---|
| 3402 | LIBS="-lnsl $LIBS" |
---|
| 3403 | |
---|
| 3404 | else |
---|
| 3405 | echo "$ac_t""no" 1>&6 |
---|
| 3406 | fi |
---|
| 3407 | |
---|
| 3408 | fi |
---|
| 3409 | |
---|
| 3410 | |
---|
| 3411 | # AC_CHECK_TYPE doesn't work here. |
---|
| 3412 | echo $ac_n "checking for socklen_t""... $ac_c" 1>&6 |
---|
| 3413 | echo "configure:3414: checking for socklen_t" >&5 |
---|
| 3414 | cat > conftest.$ac_ext <<EOF |
---|
| 3415 | #line 3416 "configure" |
---|
| 3416 | #include "confdefs.h" |
---|
| 3417 | #include <sys/types.h> |
---|
| 3418 | #include <sys/socket.h> |
---|
| 3419 | int main() { |
---|
| 3420 | socklen_t len; |
---|
| 3421 | ; return 0; } |
---|
| 3422 | EOF |
---|
| 3423 | if { (eval echo configure:3424: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
---|
| 3424 | rm -rf conftest* |
---|
| 3425 | echo "$ac_t""yes" 1>&6 |
---|
| 3426 | else |
---|
| 3427 | echo "configure: failed program was:" >&5 |
---|
| 3428 | cat conftest.$ac_ext >&5 |
---|
| 3429 | rm -rf conftest* |
---|
| 3430 | cat >> confdefs.h <<\EOF |
---|
| 3431 | #define socklen_t size_t |
---|
| 3432 | EOF |
---|
| 3433 | |
---|
| 3434 | echo "$ac_t""no" 1>&6 |
---|
| 3435 | fi |
---|
| 3436 | rm -f conftest* |
---|
| 3437 | |
---|
| 3438 | # This is a hack. This is a bad hack in order to work around libtool not letting us |
---|
| 3439 | # link a .a (libwrap.a) into a libtool library (libIIOP.la) for internal use by that |
---|
| 3440 | # libtool library. |
---|
| 3441 | |
---|
| 3442 | # Modified to prefer shared libwrap by Adam Powell |
---|
| 3443 | |
---|
| 3444 | echo $ac_n "checking "whether to use TCP wrappers"""... $ac_c" 1>&6 |
---|
| 3445 | echo "configure:3446: checking "whether to use TCP wrappers"" >&5 |
---|
| 3446 | LIBWRAP_PATH="" |
---|
| 3447 | LIB_WRAP="" |
---|
| 3448 | for I in $LDFLAGS $LIBS -L/usr/lib; do |
---|
| 3449 | case "$I" in |
---|
| 3450 | -L*) |
---|
| 3451 | THEFILE="`echo $I | sed -e 's,^-L,,'`" |
---|
| 3452 | echo "From $I, checking in dir $THEFILE for libwrap.so" 1>&5 |
---|
| 3453 | if test -f $THEFILE/libwrap.so; then |
---|
| 3454 | LIB_WRAP=-lwrap |
---|
| 3455 | echo "Found $THEFILE/libwrap.so" 1>&5 |
---|
| 3456 | break |
---|
| 3457 | else |
---|
| 3458 | echo "From $I, checking in dir $THEFILE for libwrap.a" 1>&5 |
---|
| 3459 | if test -f $THEFILE/libwrap.a; then |
---|
| 3460 | LIBWRAP_PATH=$THEFILE/libwrap.a |
---|
| 3461 | echo "Found $LIBWRAP_PATH" 1>&5 |
---|
| 3462 | break |
---|
| 3463 | fi |
---|
| 3464 | fi |
---|
| 3465 | esac |
---|
| 3466 | done |
---|
| 3467 | if test -n "$LIBWRAP_PATH" || test -n "$LIB_WRAP"; then |
---|
| 3468 | echo "$ac_t""yes" 1>&6 |
---|
| 3469 | else |
---|
| 3470 | echo "$ac_t""no" 1>&6 |
---|
| 3471 | fi |
---|
| 3472 | |
---|
| 3473 | if test -n "$LIBWRAP_PATH"; then |
---|
| 3474 | nm $LIBWRAP_PATH | grep 'T setenv' && LIBWRAP_PATH="" |
---|
| 3475 | if test -z "$LIBWRAP_PATH"; then |
---|
| 3476 | echo "*********************************************************" |
---|
| 3477 | echo " You have a broken TCP wrappers library (setenv included)" |
---|
| 3478 | echo " Please get the latest TCP wrappers package from your OS" |
---|
| 3479 | echo " vendor, or recompile TCP wrappers to not include a" |
---|
| 3480 | echo " setenv() implementation." |
---|
| 3481 | echo |
---|
| 3482 | echo "Not using TCP wrappers after all." |
---|
| 3483 | echo "*********************************************************" |
---|
| 3484 | fi |
---|
| 3485 | fi |
---|
| 3486 | |
---|
| 3487 | LIB_NSL= |
---|
| 3488 | if test -n "$LIBWRAP_PATH"; then |
---|
| 3489 | echo $ac_n "checking whether -lwrap requires -lnsl""... $ac_c" 1>&6 |
---|
| 3490 | echo "configure:3491: checking whether -lwrap requires -lnsl" >&5 |
---|
| 3491 | ORIG_LIBS="$LIBS" |
---|
| 3492 | LIBS="$LIBWRAP_PATH $LIB_WRAP $LIBS" |
---|
| 3493 | cat > conftest.$ac_ext <<EOF |
---|
| 3494 | #line 3495 "configure" |
---|
| 3495 | #include "confdefs.h" |
---|
| 3496 | |
---|
| 3497 | extern int hosts_access; |
---|
| 3498 | int allow_severity, deny_severity; |
---|
| 3499 | |
---|
| 3500 | int main() { |
---|
| 3501 | return hosts_access; |
---|
| 3502 | ; return 0; } |
---|
| 3503 | EOF |
---|
| 3504 | if { (eval echo configure:3505: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
| 3505 | : |
---|
| 3506 | else |
---|
| 3507 | echo "configure: failed program was:" >&5 |
---|
| 3508 | cat conftest.$ac_ext >&5 |
---|
| 3509 | rm -rf conftest* |
---|
| 3510 | |
---|
| 3511 | OLD_LIBS="$LIBS" |
---|
| 3512 | LIBS="$LIBS -lnsl" |
---|
| 3513 | cat > conftest.$ac_ext <<EOF |
---|
| 3514 | #line 3515 "configure" |
---|
| 3515 | #include "confdefs.h" |
---|
| 3516 | |
---|
| 3517 | extern int hosts_access; |
---|
| 3518 | int allow_severity, deny_severity; |
---|
| 3519 | |
---|
| 3520 | int main() { |
---|
| 3521 | return hosts_access; |
---|
| 3522 | ; return 0; } |
---|
| 3523 | EOF |
---|
| 3524 | if { (eval echo configure:3525: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
| 3525 | rm -rf conftest* |
---|
| 3526 | LIB_NSL="-lnsl" |
---|
| 3527 | else |
---|
| 3528 | echo "configure: failed program was:" >&5 |
---|
| 3529 | cat conftest.$ac_ext >&5 |
---|
| 3530 | rm -rf conftest* |
---|
| 3531 | LIBWRAP_PATH="" |
---|
| 3532 | fi |
---|
| 3533 | rm -f conftest* |
---|
| 3534 | LIBS="$OLD_LIBS" |
---|
| 3535 | |
---|
| 3536 | fi |
---|
| 3537 | rm -f conftest* |
---|
| 3538 | LIBS="$ORIG_LIBS" |
---|
| 3539 | if test -n "$LIB_NSL"; then |
---|
| 3540 | echo "$ac_t""yes" 1>&6 |
---|
| 3541 | LIBS="$LIBS $LIB_NSL" |
---|
| 3542 | else |
---|
| 3543 | echo "$ac_t""no" 1>&6 |
---|
| 3544 | fi |
---|
| 3545 | fi |
---|
| 3546 | |
---|
| 3547 | |
---|
| 3548 | |
---|
| 3549 | |
---|
| 3550 | |
---|
| 3551 | if test -n "$LIBWRAP_PATH"; then |
---|
| 3552 | HAVE_HOSTS_ACCESS_TRUE= |
---|
| 3553 | HAVE_HOSTS_ACCESS_FALSE='#' |
---|
| 3554 | else |
---|
| 3555 | HAVE_HOSTS_ACCESS_TRUE='#' |
---|
| 3556 | HAVE_HOSTS_ACCESS_FALSE= |
---|
| 3557 | fi |
---|
| 3558 | if test -n "$LIBWRAP_PATH"; then |
---|
| 3559 | cat >> confdefs.h <<\EOF |
---|
| 3560 | #define HAVE_HOSTS_ACCESS 1 |
---|
| 3561 | EOF |
---|
| 3562 | |
---|
| 3563 | fi |
---|
| 3564 | |
---|
| 3565 | echo $ac_n "checking for inet_aton""... $ac_c" 1>&6 |
---|
| 3566 | echo "configure:3567: checking for inet_aton" >&5 |
---|
| 3567 | if eval "test \"`echo '$''{'ac_cv_func_inet_aton'+set}'`\" = set"; then |
---|
| 3568 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 3569 | else |
---|
| 3570 | cat > conftest.$ac_ext <<EOF |
---|
| 3571 | #line 3572 "configure" |
---|
| 3572 | #include "confdefs.h" |
---|
| 3573 | /* System header to define __stub macros and hopefully few prototypes, |
---|
| 3574 | which can conflict with char inet_aton(); below. */ |
---|
| 3575 | #include <assert.h> |
---|
| 3576 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
| 3577 | /* We use char because int might match the return type of a gcc2 |
---|
| 3578 | builtin and then its argument prototype would still apply. */ |
---|
| 3579 | char inet_aton(); |
---|
| 3580 | |
---|
| 3581 | int main() { |
---|
| 3582 | |
---|
| 3583 | /* The GNU C library defines this for functions which it implements |
---|
| 3584 | to always fail with ENOSYS. Some functions are actually named |
---|
| 3585 | something starting with __ and the normal name is an alias. */ |
---|
| 3586 | #if defined (__stub_inet_aton) || defined (__stub___inet_aton) |
---|
| 3587 | choke me |
---|
| 3588 | #else |
---|
| 3589 | inet_aton(); |
---|
| 3590 | #endif |
---|
| 3591 | |
---|
| 3592 | ; return 0; } |
---|
| 3593 | EOF |
---|
| 3594 | if { (eval echo configure:3595: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
| 3595 | rm -rf conftest* |
---|
| 3596 | eval "ac_cv_func_inet_aton=yes" |
---|
| 3597 | else |
---|
| 3598 | echo "configure: failed program was:" >&5 |
---|
| 3599 | cat conftest.$ac_ext >&5 |
---|
| 3600 | rm -rf conftest* |
---|
| 3601 | eval "ac_cv_func_inet_aton=no" |
---|
| 3602 | fi |
---|
| 3603 | rm -f conftest* |
---|
| 3604 | fi |
---|
| 3605 | |
---|
| 3606 | if eval "test \"`echo '$ac_cv_func_'inet_aton`\" = yes"; then |
---|
| 3607 | echo "$ac_t""yes" 1>&6 |
---|
| 3608 | : |
---|
| 3609 | else |
---|
| 3610 | echo "$ac_t""no" 1>&6 |
---|
| 3611 | echo $ac_n "checking for inet_aton in -lresolv""... $ac_c" 1>&6 |
---|
| 3612 | echo "configure:3613: checking for inet_aton in -lresolv" >&5 |
---|
| 3613 | ac_lib_var=`echo resolv'_'inet_aton | sed 'y%./+-%__p_%'` |
---|
| 3614 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
---|
| 3615 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 3616 | else |
---|
| 3617 | ac_save_LIBS="$LIBS" |
---|
| 3618 | LIBS="-lresolv $LIBS" |
---|
| 3619 | cat > conftest.$ac_ext <<EOF |
---|
| 3620 | #line 3621 "configure" |
---|
| 3621 | #include "confdefs.h" |
---|
| 3622 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
| 3623 | /* We use char because int might match the return type of a gcc2 |
---|
| 3624 | builtin and then its argument prototype would still apply. */ |
---|
| 3625 | char inet_aton(); |
---|
| 3626 | |
---|
| 3627 | int main() { |
---|
| 3628 | inet_aton() |
---|
| 3629 | ; return 0; } |
---|
| 3630 | EOF |
---|
| 3631 | if { (eval echo configure:3632: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
---|
| 3632 | rm -rf conftest* |
---|
| 3633 | eval "ac_cv_lib_$ac_lib_var=yes" |
---|
| 3634 | else |
---|
| 3635 | echo "configure: failed program was:" >&5 |
---|
| 3636 | cat conftest.$ac_ext >&5 |
---|
| 3637 | rm -rf conftest* |
---|
| 3638 | eval "ac_cv_lib_$ac_lib_var=no" |
---|
| 3639 | fi |
---|
| 3640 | rm -f conftest* |
---|
| 3641 | LIBS="$ac_save_LIBS" |
---|
| 3642 | |
---|
| 3643 | fi |
---|
| 3644 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
---|
| 3645 | echo "$ac_t""yes" 1>&6 |
---|
| 3646 | ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
---|
| 3647 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
---|
| 3648 | cat >> confdefs.h <<EOF |
---|
| 3649 | #define $ac_tr_lib 1 |
---|
| 3650 | EOF |
---|
| 3651 | |
---|
| 3652 | LIBS="-lresolv $LIBS" |
---|
| 3653 | |
---|
| 3654 | else |
---|
| 3655 | echo "$ac_t""no" 1>&6 |
---|
| 3656 | fi |
---|
| 3657 | |
---|
| 3658 | fi |
---|
| 3659 | |
---|
| 3660 | if test x$ac_cv_func_inet_aton = xno && test x$ac_cv_lib_resolv_inet_aton = xno |
---|
| 3661 | then : |
---|
| 3662 | else |
---|
| 3663 | cat >> confdefs.h <<\EOF |
---|
| 3664 | #define HAVE_INET_ATON 1 |
---|
| 3665 | EOF |
---|
| 3666 | |
---|
| 3667 | fi |
---|
| 3668 | |
---|
| 3669 | echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6 |
---|
| 3670 | echo "configure:3671: checking whether byte ordering is bigendian" >&5 |
---|
| 3671 | if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then |
---|
| 3672 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 3673 | else |
---|
| 3674 | ac_cv_c_bigendian=unknown |
---|
| 3675 | # See if sys/param.h defines the BYTE_ORDER macro. |
---|
| 3676 | cat > conftest.$ac_ext <<EOF |
---|
| 3677 | #line 3678 "configure" |
---|
| 3678 | #include "confdefs.h" |
---|
| 3679 | #include <sys/types.h> |
---|
| 3680 | #include <sys/param.h> |
---|
| 3681 | int main() { |
---|
| 3682 | |
---|
| 3683 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN |
---|
| 3684 | bogus endian macros |
---|
| 3685 | #endif |
---|
| 3686 | ; return 0; } |
---|
| 3687 | EOF |
---|
| 3688 | if { (eval echo configure:3689: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
---|
| 3689 | rm -rf conftest* |
---|
| 3690 | # It does; now see whether it defined to BIG_ENDIAN or not. |
---|
| 3691 | cat > conftest.$ac_ext <<EOF |
---|
| 3692 | #line 3693 "configure" |
---|
| 3693 | #include "confdefs.h" |
---|
| 3694 | #include <sys/types.h> |
---|
| 3695 | #include <sys/param.h> |
---|
| 3696 | int main() { |
---|
| 3697 | |
---|
| 3698 | #if BYTE_ORDER != BIG_ENDIAN |
---|
| 3699 | not big endian |
---|
| 3700 | #endif |
---|
| 3701 | ; return 0; } |
---|
| 3702 | EOF |
---|
| 3703 | if { (eval echo configure:3704: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
---|
| 3704 | rm -rf conftest* |
---|
| 3705 | ac_cv_c_bigendian=yes |
---|
| 3706 | else |
---|
| 3707 | echo "configure: failed program was:" >&5 |
---|
| 3708 | cat conftest.$ac_ext >&5 |
---|
| 3709 | rm -rf conftest* |
---|
| 3710 | ac_cv_c_bigendian=no |
---|
| 3711 | fi |
---|
| 3712 | rm -f conftest* |
---|
| 3713 | else |
---|
| 3714 | echo "configure: failed program was:" >&5 |
---|
| 3715 | cat conftest.$ac_ext >&5 |
---|
| 3716 | fi |
---|
| 3717 | rm -f conftest* |
---|
| 3718 | if test $ac_cv_c_bigendian = unknown; then |
---|
| 3719 | if test "$cross_compiling" = yes; then |
---|
| 3720 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
---|
| 3721 | else |
---|
| 3722 | cat > conftest.$ac_ext <<EOF |
---|
| 3723 | #line 3724 "configure" |
---|
| 3724 | #include "confdefs.h" |
---|
| 3725 | main () { |
---|
| 3726 | /* Are we little or big endian? From Harbison&Steele. */ |
---|
| 3727 | union |
---|
| 3728 | { |
---|
| 3729 | long l; |
---|
| 3730 | char c[sizeof (long)]; |
---|
| 3731 | } u; |
---|
| 3732 | u.l = 1; |
---|
| 3733 | exit (u.c[sizeof (long) - 1] == 1); |
---|
| 3734 | } |
---|
| 3735 | EOF |
---|
| 3736 | if { (eval echo configure:3737: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
---|
| 3737 | then |
---|
| 3738 | ac_cv_c_bigendian=no |
---|
| 3739 | else |
---|
| 3740 | echo "configure: failed program was:" >&5 |
---|
| 3741 | cat conftest.$ac_ext >&5 |
---|
| 3742 | rm -fr conftest* |
---|
| 3743 | ac_cv_c_bigendian=yes |
---|
| 3744 | fi |
---|
| 3745 | rm -fr conftest* |
---|
| 3746 | fi |
---|
| 3747 | |
---|
| 3748 | fi |
---|
| 3749 | fi |
---|
| 3750 | |
---|
| 3751 | echo "$ac_t""$ac_cv_c_bigendian" 1>&6 |
---|
| 3752 | if test $ac_cv_c_bigendian = yes; then |
---|
| 3753 | cat >> confdefs.h <<\EOF |
---|
| 3754 | #define WORDS_BIGENDIAN 1 |
---|
| 3755 | EOF |
---|
| 3756 | |
---|
| 3757 | fi |
---|
| 3758 | |
---|
| 3759 | |
---|
| 3760 | if test "$cross_compiling" = yes; then |
---|
| 3761 | cat >> confdefs.h <<\EOF |
---|
| 3762 | #define HAVE_LIMITED_WRITEV 1 |
---|
| 3763 | EOF |
---|
| 3764 | |
---|
| 3765 | else |
---|
| 3766 | cat > conftest.$ac_ext <<EOF |
---|
| 3767 | #line 3768 "configure" |
---|
| 3768 | #include "confdefs.h" |
---|
| 3769 | |
---|
| 3770 | #include <fcntl.h> |
---|
| 3771 | #include <sys/uio.h> |
---|
| 3772 | #define NIOVECS 50 |
---|
| 3773 | int main(int argc, char *argv[]) |
---|
| 3774 | { |
---|
| 3775 | char dumbuf[20] = "\n"; |
---|
| 3776 | struct iovec iovecs[NIOVECS]; |
---|
| 3777 | int i,fd; |
---|
| 3778 | |
---|
| 3779 | for(i = 0; i < NIOVECS; i++) { |
---|
| 3780 | iovecs[i].iov_base = dumbuf; |
---|
| 3781 | iovecs[i].iov_len = 1; |
---|
| 3782 | } |
---|
| 3783 | |
---|
| 3784 | fd=open("/dev/null", O_WRONLY); |
---|
| 3785 | if(fd==-1) |
---|
| 3786 | return(1); |
---|
| 3787 | |
---|
| 3788 | if(writev(fd, iovecs, NIOVECS) < 0) |
---|
| 3789 | return 1; |
---|
| 3790 | |
---|
| 3791 | close(fd); |
---|
| 3792 | return 0; |
---|
| 3793 | } |
---|
| 3794 | |
---|
| 3795 | EOF |
---|
| 3796 | if { (eval echo configure:3797: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
---|
| 3797 | then |
---|
| 3798 | : |
---|
| 3799 | else |
---|
| 3800 | echo "configure: failed program was:" >&5 |
---|
| 3801 | cat conftest.$ac_ext >&5 |
---|
| 3802 | rm -fr conftest* |
---|
| 3803 | cat >> confdefs.h <<\EOF |
---|
| 3804 | #define HAVE_LIMITED_WRITEV 1 |
---|
| 3805 | EOF |
---|
| 3806 | |
---|
| 3807 | fi |
---|
| 3808 | rm -fr conftest* |
---|
| 3809 | fi |
---|
| 3810 | |
---|
| 3811 | |
---|
| 3812 | |
---|
| 3813 | ####################### |
---|
| 3814 | # type alignment test # |
---|
| 3815 | ####################### |
---|
| 3816 | |
---|
| 3817 | |
---|
| 3818 | |
---|
| 3819 | orig_CPPFLAGS=$CPPFLAGS |
---|
| 3820 | CPPFLAGS="$CPPFLAGS $GLIB_CFLAGS" |
---|
| 3821 | echo $ac_n "checking alignment of CORBA_short""... $ac_c" 1>&6 |
---|
| 3822 | echo "configure:3823: checking alignment of CORBA_short" >&5 |
---|
| 3823 | align_save_libs="$LIBS" |
---|
| 3824 | LIBS="$GLIB_LIBS $LIBS" |
---|
| 3825 | if eval "test \"`echo '$''{'ac_cv_alignof_CORBA_short'+set}'`\" = set"; then |
---|
| 3826 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 3827 | else |
---|
| 3828 | if test "$cross_compiling" = yes; then |
---|
| 3829 | ac_cv_alignof_CORBA_short=0 |
---|
| 3830 | else |
---|
| 3831 | cat > conftest.$ac_ext <<EOF |
---|
| 3832 | #line 3833 "configure" |
---|
| 3833 | #include "confdefs.h" |
---|
| 3834 | |
---|
| 3835 | #include <stdio.h> |
---|
| 3836 | #include "$srcdir/src/ORBitutil/basic_types.h" |
---|
| 3837 | typedef struct {char s1;} CORBA_struct; |
---|
| 3838 | typedef void *CORBA_pointer; |
---|
| 3839 | struct test {char s1; CORBA_short s2;}; |
---|
| 3840 | main() |
---|
| 3841 | { |
---|
| 3842 | FILE *f=fopen("conftestval", "w"); |
---|
| 3843 | if (!f) exit(1); |
---|
| 3844 | fprintf(f, "%d\n", &(((struct test*)0)->s2)); |
---|
| 3845 | exit(0); |
---|
| 3846 | } |
---|
| 3847 | EOF |
---|
| 3848 | if { (eval echo configure:3849: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
---|
| 3849 | then |
---|
| 3850 | ac_cv_alignof_CORBA_short=`cat conftestval` |
---|
| 3851 | else |
---|
| 3852 | echo "configure: failed program was:" >&5 |
---|
| 3853 | cat conftest.$ac_ext >&5 |
---|
| 3854 | rm -fr conftest* |
---|
| 3855 | ac_cv_alignof_CORBA_short=0 |
---|
| 3856 | fi |
---|
| 3857 | rm -fr conftest* |
---|
| 3858 | fi |
---|
| 3859 | |
---|
| 3860 | fi |
---|
| 3861 | echo "$ac_t""$ac_cv_alignof_CORBA_short" 1>&6 |
---|
| 3862 | LIBS="$align_save_libs" |
---|
| 3863 | cat >> confdefs.h <<EOF |
---|
| 3864 | #define ALIGNOF_CORBA_SHORT $ac_cv_alignof_CORBA_short |
---|
| 3865 | EOF |
---|
| 3866 | |
---|
| 3867 | |
---|
| 3868 | echo $ac_n "checking alignment of CORBA_long""... $ac_c" 1>&6 |
---|
| 3869 | echo "configure:3870: checking alignment of CORBA_long" >&5 |
---|
| 3870 | align_save_libs="$LIBS" |
---|
| 3871 | LIBS="$GLIB_LIBS $LIBS" |
---|
| 3872 | if eval "test \"`echo '$''{'ac_cv_alignof_CORBA_long'+set}'`\" = set"; then |
---|
| 3873 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 3874 | else |
---|
| 3875 | if test "$cross_compiling" = yes; then |
---|
| 3876 | ac_cv_alignof_CORBA_long=0 |
---|
| 3877 | else |
---|
| 3878 | cat > conftest.$ac_ext <<EOF |
---|
| 3879 | #line 3880 "configure" |
---|
| 3880 | #include "confdefs.h" |
---|
| 3881 | |
---|
| 3882 | #include <stdio.h> |
---|
| 3883 | #include "$srcdir/src/ORBitutil/basic_types.h" |
---|
| 3884 | typedef struct {char s1;} CORBA_struct; |
---|
| 3885 | typedef void *CORBA_pointer; |
---|
| 3886 | struct test {char s1; CORBA_long s2;}; |
---|
| 3887 | main() |
---|
| 3888 | { |
---|
| 3889 | FILE *f=fopen("conftestval", "w"); |
---|
| 3890 | if (!f) exit(1); |
---|
| 3891 | fprintf(f, "%d\n", &(((struct test*)0)->s2)); |
---|
| 3892 | exit(0); |
---|
| 3893 | } |
---|
| 3894 | EOF |
---|
| 3895 | if { (eval echo configure:3896: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
---|
| 3896 | then |
---|
| 3897 | ac_cv_alignof_CORBA_long=`cat conftestval` |
---|
| 3898 | else |
---|
| 3899 | echo "configure: failed program was:" >&5 |
---|
| 3900 | cat conftest.$ac_ext >&5 |
---|
| 3901 | rm -fr conftest* |
---|
| 3902 | ac_cv_alignof_CORBA_long=0 |
---|
| 3903 | fi |
---|
| 3904 | rm -fr conftest* |
---|
| 3905 | fi |
---|
| 3906 | |
---|
| 3907 | fi |
---|
| 3908 | echo "$ac_t""$ac_cv_alignof_CORBA_long" 1>&6 |
---|
| 3909 | LIBS="$align_save_libs" |
---|
| 3910 | cat >> confdefs.h <<EOF |
---|
| 3911 | #define ALIGNOF_CORBA_LONG $ac_cv_alignof_CORBA_long |
---|
| 3912 | EOF |
---|
| 3913 | |
---|
| 3914 | |
---|
| 3915 | echo $ac_n "checking alignment of CORBA_unsigned_short""... $ac_c" 1>&6 |
---|
| 3916 | echo "configure:3917: checking alignment of CORBA_unsigned_short" >&5 |
---|
| 3917 | align_save_libs="$LIBS" |
---|
| 3918 | LIBS="$GLIB_LIBS $LIBS" |
---|
| 3919 | if eval "test \"`echo '$''{'ac_cv_alignof_CORBA_unsigned_short'+set}'`\" = set"; then |
---|
| 3920 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 3921 | else |
---|
| 3922 | if test "$cross_compiling" = yes; then |
---|
| 3923 | ac_cv_alignof_CORBA_unsigned_short=0 |
---|
| 3924 | else |
---|
| 3925 | cat > conftest.$ac_ext <<EOF |
---|
| 3926 | #line 3927 "configure" |
---|
| 3927 | #include "confdefs.h" |
---|
| 3928 | |
---|
| 3929 | #include <stdio.h> |
---|
| 3930 | #include "$srcdir/src/ORBitutil/basic_types.h" |
---|
| 3931 | typedef struct {char s1;} CORBA_struct; |
---|
| 3932 | typedef void *CORBA_pointer; |
---|
| 3933 | struct test {char s1; CORBA_unsigned_short s2;}; |
---|
| 3934 | main() |
---|
| 3935 | { |
---|
| 3936 | FILE *f=fopen("conftestval", "w"); |
---|
| 3937 | if (!f) exit(1); |
---|
| 3938 | fprintf(f, "%d\n", &(((struct test*)0)->s2)); |
---|
| 3939 | exit(0); |
---|
| 3940 | } |
---|
| 3941 | EOF |
---|
| 3942 | if { (eval echo configure:3943: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
---|
| 3943 | then |
---|
| 3944 | ac_cv_alignof_CORBA_unsigned_short=`cat conftestval` |
---|
| 3945 | else |
---|
| 3946 | echo "configure: failed program was:" >&5 |
---|
| 3947 | cat conftest.$ac_ext >&5 |
---|
| 3948 | rm -fr conftest* |
---|
| 3949 | ac_cv_alignof_CORBA_unsigned_short=0 |
---|
| 3950 | fi |
---|
| 3951 | rm -fr conftest* |
---|
| 3952 | fi |
---|
| 3953 | |
---|
| 3954 | fi |
---|
| 3955 | echo "$ac_t""$ac_cv_alignof_CORBA_unsigned_short" 1>&6 |
---|
| 3956 | LIBS="$align_save_libs" |
---|
| 3957 | cat >> confdefs.h <<EOF |
---|
| 3958 | #define ALIGNOF_CORBA_UNSIGNED_SHORT $ac_cv_alignof_CORBA_unsigned_short |
---|
| 3959 | EOF |
---|
| 3960 | |
---|
| 3961 | |
---|
| 3962 | echo $ac_n "checking alignment of CORBA_unsigned_long""... $ac_c" 1>&6 |
---|
| 3963 | echo "configure:3964: checking alignment of CORBA_unsigned_long" >&5 |
---|
| 3964 | align_save_libs="$LIBS" |
---|
| 3965 | LIBS="$GLIB_LIBS $LIBS" |
---|
| 3966 | if eval "test \"`echo '$''{'ac_cv_alignof_CORBA_unsigned_long'+set}'`\" = set"; then |
---|
| 3967 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 3968 | else |
---|
| 3969 | if test "$cross_compiling" = yes; then |
---|
| 3970 | ac_cv_alignof_CORBA_unsigned_long=0 |
---|
| 3971 | else |
---|
| 3972 | cat > conftest.$ac_ext <<EOF |
---|
| 3973 | #line 3974 "configure" |
---|
| 3974 | #include "confdefs.h" |
---|
| 3975 | |
---|
| 3976 | #include <stdio.h> |
---|
| 3977 | #include "$srcdir/src/ORBitutil/basic_types.h" |
---|
| 3978 | typedef struct {char s1;} CORBA_struct; |
---|
| 3979 | typedef void *CORBA_pointer; |
---|
| 3980 | struct test {char s1; CORBA_unsigned_long s2;}; |
---|
| 3981 | main() |
---|
| 3982 | { |
---|
| 3983 | FILE *f=fopen("conftestval", "w"); |
---|
| 3984 | if (!f) exit(1); |
---|
| 3985 | fprintf(f, "%d\n", &(((struct test*)0)->s2)); |
---|
| 3986 | exit(0); |
---|
| 3987 | } |
---|
| 3988 | EOF |
---|
| 3989 | if { (eval echo configure:3990: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
---|
| 3990 | then |
---|
| 3991 | ac_cv_alignof_CORBA_unsigned_long=`cat conftestval` |
---|
| 3992 | else |
---|
| 3993 | echo "configure: failed program was:" >&5 |
---|
| 3994 | cat conftest.$ac_ext >&5 |
---|
| 3995 | rm -fr conftest* |
---|
| 3996 | ac_cv_alignof_CORBA_unsigned_long=0 |
---|
| 3997 | fi |
---|
| 3998 | rm -fr conftest* |
---|
| 3999 | fi |
---|
| 4000 | |
---|
| 4001 | fi |
---|
| 4002 | echo "$ac_t""$ac_cv_alignof_CORBA_unsigned_long" 1>&6 |
---|
| 4003 | LIBS="$align_save_libs" |
---|
| 4004 | cat >> confdefs.h <<EOF |
---|
| 4005 | #define ALIGNOF_CORBA_UNSIGNED_LONG $ac_cv_alignof_CORBA_unsigned_long |
---|
| 4006 | EOF |
---|
| 4007 | |
---|
| 4008 | |
---|
| 4009 | echo $ac_n "checking alignment of CORBA_float""... $ac_c" 1>&6 |
---|
| 4010 | echo "configure:4011: checking alignment of CORBA_float" >&5 |
---|
| 4011 | align_save_libs="$LIBS" |
---|
| 4012 | LIBS="$GLIB_LIBS $LIBS" |
---|
| 4013 | if eval "test \"`echo '$''{'ac_cv_alignof_CORBA_float'+set}'`\" = set"; then |
---|
| 4014 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 4015 | else |
---|
| 4016 | if test "$cross_compiling" = yes; then |
---|
| 4017 | ac_cv_alignof_CORBA_float=0 |
---|
| 4018 | else |
---|
| 4019 | cat > conftest.$ac_ext <<EOF |
---|
| 4020 | #line 4021 "configure" |
---|
| 4021 | #include "confdefs.h" |
---|
| 4022 | |
---|
| 4023 | #include <stdio.h> |
---|
| 4024 | #include "$srcdir/src/ORBitutil/basic_types.h" |
---|
| 4025 | typedef struct {char s1;} CORBA_struct; |
---|
| 4026 | typedef void *CORBA_pointer; |
---|
| 4027 | struct test {char s1; CORBA_float s2;}; |
---|
| 4028 | main() |
---|
| 4029 | { |
---|
| 4030 | FILE *f=fopen("conftestval", "w"); |
---|
| 4031 | if (!f) exit(1); |
---|
| 4032 | fprintf(f, "%d\n", &(((struct test*)0)->s2)); |
---|
| 4033 | exit(0); |
---|
| 4034 | } |
---|
| 4035 | EOF |
---|
| 4036 | if { (eval echo configure:4037: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
---|
| 4037 | then |
---|
| 4038 | ac_cv_alignof_CORBA_float=`cat conftestval` |
---|
| 4039 | else |
---|
| 4040 | echo "configure: failed program was:" >&5 |
---|
| 4041 | cat conftest.$ac_ext >&5 |
---|
| 4042 | rm -fr conftest* |
---|
| 4043 | ac_cv_alignof_CORBA_float=0 |
---|
| 4044 | fi |
---|
| 4045 | rm -fr conftest* |
---|
| 4046 | fi |
---|
| 4047 | |
---|
| 4048 | fi |
---|
| 4049 | echo "$ac_t""$ac_cv_alignof_CORBA_float" 1>&6 |
---|
| 4050 | LIBS="$align_save_libs" |
---|
| 4051 | cat >> confdefs.h <<EOF |
---|
| 4052 | #define ALIGNOF_CORBA_FLOAT $ac_cv_alignof_CORBA_float |
---|
| 4053 | EOF |
---|
| 4054 | |
---|
| 4055 | |
---|
| 4056 | echo $ac_n "checking alignment of CORBA_double""... $ac_c" 1>&6 |
---|
| 4057 | echo "configure:4058: checking alignment of CORBA_double" >&5 |
---|
| 4058 | align_save_libs="$LIBS" |
---|
| 4059 | LIBS="$GLIB_LIBS $LIBS" |
---|
| 4060 | if eval "test \"`echo '$''{'ac_cv_alignof_CORBA_double'+set}'`\" = set"; then |
---|
| 4061 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 4062 | else |
---|
| 4063 | if test "$cross_compiling" = yes; then |
---|
| 4064 | ac_cv_alignof_CORBA_double=0 |
---|
| 4065 | else |
---|
| 4066 | cat > conftest.$ac_ext <<EOF |
---|
| 4067 | #line 4068 "configure" |
---|
| 4068 | #include "confdefs.h" |
---|
| 4069 | |
---|
| 4070 | #include <stdio.h> |
---|
| 4071 | #include "$srcdir/src/ORBitutil/basic_types.h" |
---|
| 4072 | typedef struct {char s1;} CORBA_struct; |
---|
| 4073 | typedef void *CORBA_pointer; |
---|
| 4074 | struct test {char s1; CORBA_double s2;}; |
---|
| 4075 | main() |
---|
| 4076 | { |
---|
| 4077 | FILE *f=fopen("conftestval", "w"); |
---|
| 4078 | if (!f) exit(1); |
---|
| 4079 | fprintf(f, "%d\n", &(((struct test*)0)->s2)); |
---|
| 4080 | exit(0); |
---|
| 4081 | } |
---|
| 4082 | EOF |
---|
| 4083 | if { (eval echo configure:4084: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
---|
| 4084 | then |
---|
| 4085 | ac_cv_alignof_CORBA_double=`cat conftestval` |
---|
| 4086 | else |
---|
| 4087 | echo "configure: failed program was:" >&5 |
---|
| 4088 | cat conftest.$ac_ext >&5 |
---|
| 4089 | rm -fr conftest* |
---|
| 4090 | ac_cv_alignof_CORBA_double=0 |
---|
| 4091 | fi |
---|
| 4092 | rm -fr conftest* |
---|
| 4093 | fi |
---|
| 4094 | |
---|
| 4095 | fi |
---|
| 4096 | echo "$ac_t""$ac_cv_alignof_CORBA_double" 1>&6 |
---|
| 4097 | LIBS="$align_save_libs" |
---|
| 4098 | cat >> confdefs.h <<EOF |
---|
| 4099 | #define ALIGNOF_CORBA_DOUBLE $ac_cv_alignof_CORBA_double |
---|
| 4100 | EOF |
---|
| 4101 | |
---|
| 4102 | |
---|
| 4103 | echo $ac_n "checking alignment of CORBA_char""... $ac_c" 1>&6 |
---|
| 4104 | echo "configure:4105: checking alignment of CORBA_char" >&5 |
---|
| 4105 | align_save_libs="$LIBS" |
---|
| 4106 | LIBS="$GLIB_LIBS $LIBS" |
---|
| 4107 | if eval "test \"`echo '$''{'ac_cv_alignof_CORBA_char'+set}'`\" = set"; then |
---|
| 4108 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 4109 | else |
---|
| 4110 | if test "$cross_compiling" = yes; then |
---|
| 4111 | ac_cv_alignof_CORBA_char=0 |
---|
| 4112 | else |
---|
| 4113 | cat > conftest.$ac_ext <<EOF |
---|
| 4114 | #line 4115 "configure" |
---|
| 4115 | #include "confdefs.h" |
---|
| 4116 | |
---|
| 4117 | #include <stdio.h> |
---|
| 4118 | #include "$srcdir/src/ORBitutil/basic_types.h" |
---|
| 4119 | typedef struct {char s1;} CORBA_struct; |
---|
| 4120 | typedef void *CORBA_pointer; |
---|
| 4121 | struct test {char s1; CORBA_char s2;}; |
---|
| 4122 | main() |
---|
| 4123 | { |
---|
| 4124 | FILE *f=fopen("conftestval", "w"); |
---|
| 4125 | if (!f) exit(1); |
---|
| 4126 | fprintf(f, "%d\n", &(((struct test*)0)->s2)); |
---|
| 4127 | exit(0); |
---|
| 4128 | } |
---|
| 4129 | EOF |
---|
| 4130 | if { (eval echo configure:4131: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
---|
| 4131 | then |
---|
| 4132 | ac_cv_alignof_CORBA_char=`cat conftestval` |
---|
| 4133 | else |
---|
| 4134 | echo "configure: failed program was:" >&5 |
---|
| 4135 | cat conftest.$ac_ext >&5 |
---|
| 4136 | rm -fr conftest* |
---|
| 4137 | ac_cv_alignof_CORBA_char=0 |
---|
| 4138 | fi |
---|
| 4139 | rm -fr conftest* |
---|
| 4140 | fi |
---|
| 4141 | |
---|
| 4142 | fi |
---|
| 4143 | echo "$ac_t""$ac_cv_alignof_CORBA_char" 1>&6 |
---|
| 4144 | LIBS="$align_save_libs" |
---|
| 4145 | cat >> confdefs.h <<EOF |
---|
| 4146 | #define ALIGNOF_CORBA_CHAR $ac_cv_alignof_CORBA_char |
---|
| 4147 | EOF |
---|
| 4148 | |
---|
| 4149 | |
---|
| 4150 | echo $ac_n "checking alignment of CORBA_boolean""... $ac_c" 1>&6 |
---|
| 4151 | echo "configure:4152: checking alignment of CORBA_boolean" >&5 |
---|
| 4152 | align_save_libs="$LIBS" |
---|
| 4153 | LIBS="$GLIB_LIBS $LIBS" |
---|
| 4154 | if eval "test \"`echo '$''{'ac_cv_alignof_CORBA_boolean'+set}'`\" = set"; then |
---|
| 4155 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 4156 | else |
---|
| 4157 | if test "$cross_compiling" = yes; then |
---|
| 4158 | ac_cv_alignof_CORBA_boolean=0 |
---|
| 4159 | else |
---|
| 4160 | cat > conftest.$ac_ext <<EOF |
---|
| 4161 | #line 4162 "configure" |
---|
| 4162 | #include "confdefs.h" |
---|
| 4163 | |
---|
| 4164 | #include <stdio.h> |
---|
| 4165 | #include "$srcdir/src/ORBitutil/basic_types.h" |
---|
| 4166 | typedef struct {char s1;} CORBA_struct; |
---|
| 4167 | typedef void *CORBA_pointer; |
---|
| 4168 | struct test {char s1; CORBA_boolean s2;}; |
---|
| 4169 | main() |
---|
| 4170 | { |
---|
| 4171 | FILE *f=fopen("conftestval", "w"); |
---|
| 4172 | if (!f) exit(1); |
---|
| 4173 | fprintf(f, "%d\n", &(((struct test*)0)->s2)); |
---|
| 4174 | exit(0); |
---|
| 4175 | } |
---|
| 4176 | EOF |
---|
| 4177 | if { (eval echo configure:4178: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
---|
| 4178 | then |
---|
| 4179 | ac_cv_alignof_CORBA_boolean=`cat conftestval` |
---|
| 4180 | else |
---|
| 4181 | echo "configure: failed program was:" >&5 |
---|
| 4182 | cat conftest.$ac_ext >&5 |
---|
| 4183 | rm -fr conftest* |
---|
| 4184 | ac_cv_alignof_CORBA_boolean=0 |
---|
| 4185 | fi |
---|
| 4186 | rm -fr conftest* |
---|
| 4187 | fi |
---|
| 4188 | |
---|
| 4189 | fi |
---|
| 4190 | echo "$ac_t""$ac_cv_alignof_CORBA_boolean" 1>&6 |
---|
| 4191 | LIBS="$align_save_libs" |
---|
| 4192 | cat >> confdefs.h <<EOF |
---|
| 4193 | #define ALIGNOF_CORBA_BOOLEAN $ac_cv_alignof_CORBA_boolean |
---|
| 4194 | EOF |
---|
| 4195 | |
---|
| 4196 | |
---|
| 4197 | echo $ac_n "checking alignment of CORBA_octet""... $ac_c" 1>&6 |
---|
| 4198 | echo "configure:4199: checking alignment of CORBA_octet" >&5 |
---|
| 4199 | align_save_libs="$LIBS" |
---|
| 4200 | LIBS="$GLIB_LIBS $LIBS" |
---|
| 4201 | if eval "test \"`echo '$''{'ac_cv_alignof_CORBA_octet'+set}'`\" = set"; then |
---|
| 4202 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 4203 | else |
---|
| 4204 | if test "$cross_compiling" = yes; then |
---|
| 4205 | ac_cv_alignof_CORBA_octet=0 |
---|
| 4206 | else |
---|
| 4207 | cat > conftest.$ac_ext <<EOF |
---|
| 4208 | #line 4209 "configure" |
---|
| 4209 | #include "confdefs.h" |
---|
| 4210 | |
---|
| 4211 | #include <stdio.h> |
---|
| 4212 | #include "$srcdir/src/ORBitutil/basic_types.h" |
---|
| 4213 | typedef struct {char s1;} CORBA_struct; |
---|
| 4214 | typedef void *CORBA_pointer; |
---|
| 4215 | struct test {char s1; CORBA_octet s2;}; |
---|
| 4216 | main() |
---|
| 4217 | { |
---|
| 4218 | FILE *f=fopen("conftestval", "w"); |
---|
| 4219 | if (!f) exit(1); |
---|
| 4220 | fprintf(f, "%d\n", &(((struct test*)0)->s2)); |
---|
| 4221 | exit(0); |
---|
| 4222 | } |
---|
| 4223 | EOF |
---|
| 4224 | if { (eval echo configure:4225: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
---|
| 4225 | then |
---|
| 4226 | ac_cv_alignof_CORBA_octet=`cat conftestval` |
---|
| 4227 | else |
---|
| 4228 | echo "configure: failed program was:" >&5 |
---|
| 4229 | cat conftest.$ac_ext >&5 |
---|
| 4230 | rm -fr conftest* |
---|
| 4231 | ac_cv_alignof_CORBA_octet=0 |
---|
| 4232 | fi |
---|
| 4233 | rm -fr conftest* |
---|
| 4234 | fi |
---|
| 4235 | |
---|
| 4236 | fi |
---|
| 4237 | echo "$ac_t""$ac_cv_alignof_CORBA_octet" 1>&6 |
---|
| 4238 | LIBS="$align_save_libs" |
---|
| 4239 | cat >> confdefs.h <<EOF |
---|
| 4240 | #define ALIGNOF_CORBA_OCTET $ac_cv_alignof_CORBA_octet |
---|
| 4241 | EOF |
---|
| 4242 | |
---|
| 4243 | |
---|
| 4244 | echo $ac_n "checking alignment of CORBA_long_double""... $ac_c" 1>&6 |
---|
| 4245 | echo "configure:4246: checking alignment of CORBA_long_double" >&5 |
---|
| 4246 | align_save_libs="$LIBS" |
---|
| 4247 | LIBS="$GLIB_LIBS $LIBS" |
---|
| 4248 | if eval "test \"`echo '$''{'ac_cv_alignof_CORBA_long_double'+set}'`\" = set"; then |
---|
| 4249 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 4250 | else |
---|
| 4251 | if test "$cross_compiling" = yes; then |
---|
| 4252 | ac_cv_alignof_CORBA_long_double=0 |
---|
| 4253 | else |
---|
| 4254 | cat > conftest.$ac_ext <<EOF |
---|
| 4255 | #line 4256 "configure" |
---|
| 4256 | #include "confdefs.h" |
---|
| 4257 | |
---|
| 4258 | #include <stdio.h> |
---|
| 4259 | #include "$srcdir/src/ORBitutil/basic_types.h" |
---|
| 4260 | typedef struct {char s1;} CORBA_struct; |
---|
| 4261 | typedef void *CORBA_pointer; |
---|
| 4262 | struct test {char s1; CORBA_long_double s2;}; |
---|
| 4263 | main() |
---|
| 4264 | { |
---|
| 4265 | FILE *f=fopen("conftestval", "w"); |
---|
| 4266 | if (!f) exit(1); |
---|
| 4267 | fprintf(f, "%d\n", &(((struct test*)0)->s2)); |
---|
| 4268 | exit(0); |
---|
| 4269 | } |
---|
| 4270 | EOF |
---|
| 4271 | if { (eval echo configure:4272: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
---|
| 4272 | then |
---|
| 4273 | ac_cv_alignof_CORBA_long_double=`cat conftestval` |
---|
| 4274 | else |
---|
| 4275 | echo "configure: failed program was:" >&5 |
---|
| 4276 | cat conftest.$ac_ext >&5 |
---|
| 4277 | rm -fr conftest* |
---|
| 4278 | ac_cv_alignof_CORBA_long_double=0 |
---|
| 4279 | fi |
---|
| 4280 | rm -fr conftest* |
---|
| 4281 | fi |
---|
| 4282 | |
---|
| 4283 | fi |
---|
| 4284 | echo "$ac_t""$ac_cv_alignof_CORBA_long_double" 1>&6 |
---|
| 4285 | LIBS="$align_save_libs" |
---|
| 4286 | cat >> confdefs.h <<EOF |
---|
| 4287 | #define ALIGNOF_CORBA_LONG_DOUBLE $ac_cv_alignof_CORBA_long_double |
---|
| 4288 | EOF |
---|
| 4289 | |
---|
| 4290 | |
---|
| 4291 | echo $ac_n "checking alignment of CORBA_wchar""... $ac_c" 1>&6 |
---|
| 4292 | echo "configure:4293: checking alignment of CORBA_wchar" >&5 |
---|
| 4293 | align_save_libs="$LIBS" |
---|
| 4294 | LIBS="$GLIB_LIBS $LIBS" |
---|
| 4295 | if eval "test \"`echo '$''{'ac_cv_alignof_CORBA_wchar'+set}'`\" = set"; then |
---|
| 4296 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 4297 | else |
---|
| 4298 | if test "$cross_compiling" = yes; then |
---|
| 4299 | ac_cv_alignof_CORBA_wchar=0 |
---|
| 4300 | else |
---|
| 4301 | cat > conftest.$ac_ext <<EOF |
---|
| 4302 | #line 4303 "configure" |
---|
| 4303 | #include "confdefs.h" |
---|
| 4304 | |
---|
| 4305 | #include <stdio.h> |
---|
| 4306 | #include "$srcdir/src/ORBitutil/basic_types.h" |
---|
| 4307 | typedef struct {char s1;} CORBA_struct; |
---|
| 4308 | typedef void *CORBA_pointer; |
---|
| 4309 | struct test {char s1; CORBA_wchar s2;}; |
---|
| 4310 | main() |
---|
| 4311 | { |
---|
| 4312 | FILE *f=fopen("conftestval", "w"); |
---|
| 4313 | if (!f) exit(1); |
---|
| 4314 | fprintf(f, "%d\n", &(((struct test*)0)->s2)); |
---|
| 4315 | exit(0); |
---|
| 4316 | } |
---|
| 4317 | EOF |
---|
| 4318 | if { (eval echo configure:4319: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
---|
| 4319 | then |
---|
| 4320 | ac_cv_alignof_CORBA_wchar=`cat conftestval` |
---|
| 4321 | else |
---|
| 4322 | echo "configure: failed program was:" >&5 |
---|
| 4323 | cat conftest.$ac_ext >&5 |
---|
| 4324 | rm -fr conftest* |
---|
| 4325 | ac_cv_alignof_CORBA_wchar=0 |
---|
| 4326 | fi |
---|
| 4327 | rm -fr conftest* |
---|
| 4328 | fi |
---|
| 4329 | |
---|
| 4330 | fi |
---|
| 4331 | echo "$ac_t""$ac_cv_alignof_CORBA_wchar" 1>&6 |
---|
| 4332 | LIBS="$align_save_libs" |
---|
| 4333 | cat >> confdefs.h <<EOF |
---|
| 4334 | #define ALIGNOF_CORBA_WCHAR $ac_cv_alignof_CORBA_wchar |
---|
| 4335 | EOF |
---|
| 4336 | |
---|
| 4337 | |
---|
| 4338 | echo $ac_n "checking alignment of CORBA_long_long""... $ac_c" 1>&6 |
---|
| 4339 | echo "configure:4340: checking alignment of CORBA_long_long" >&5 |
---|
| 4340 | align_save_libs="$LIBS" |
---|
| 4341 | LIBS="$GLIB_LIBS $LIBS" |
---|
| 4342 | if eval "test \"`echo '$''{'ac_cv_alignof_CORBA_long_long'+set}'`\" = set"; then |
---|
| 4343 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 4344 | else |
---|
| 4345 | if test "$cross_compiling" = yes; then |
---|
| 4346 | ac_cv_alignof_CORBA_long_long=0 |
---|
| 4347 | else |
---|
| 4348 | cat > conftest.$ac_ext <<EOF |
---|
| 4349 | #line 4350 "configure" |
---|
| 4350 | #include "confdefs.h" |
---|
| 4351 | |
---|
| 4352 | #include <stdio.h> |
---|
| 4353 | #include "$srcdir/src/ORBitutil/basic_types.h" |
---|
| 4354 | typedef struct {char s1;} CORBA_struct; |
---|
| 4355 | typedef void *CORBA_pointer; |
---|
| 4356 | struct test {char s1; CORBA_long_long s2;}; |
---|
| 4357 | main() |
---|
| 4358 | { |
---|
| 4359 | FILE *f=fopen("conftestval", "w"); |
---|
| 4360 | if (!f) exit(1); |
---|
| 4361 | fprintf(f, "%d\n", &(((struct test*)0)->s2)); |
---|
| 4362 | exit(0); |
---|
| 4363 | } |
---|
| 4364 | EOF |
---|
| 4365 | if { (eval echo configure:4366: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
---|
| 4366 | then |
---|
| 4367 | ac_cv_alignof_CORBA_long_long=`cat conftestval` |
---|
| 4368 | else |
---|
| 4369 | echo "configure: failed program was:" >&5 |
---|
| 4370 | cat conftest.$ac_ext >&5 |
---|
| 4371 | rm -fr conftest* |
---|
| 4372 | ac_cv_alignof_CORBA_long_long=0 |
---|
| 4373 | fi |
---|
| 4374 | rm -fr conftest* |
---|
| 4375 | fi |
---|
| 4376 | |
---|
| 4377 | fi |
---|
| 4378 | echo "$ac_t""$ac_cv_alignof_CORBA_long_long" 1>&6 |
---|
| 4379 | LIBS="$align_save_libs" |
---|
| 4380 | cat >> confdefs.h <<EOF |
---|
| 4381 | #define ALIGNOF_CORBA_LONG_LONG $ac_cv_alignof_CORBA_long_long |
---|
| 4382 | EOF |
---|
| 4383 | |
---|
| 4384 | |
---|
| 4385 | echo $ac_n "checking alignment of CORBA_unsigned_long_long""... $ac_c" 1>&6 |
---|
| 4386 | echo "configure:4387: checking alignment of CORBA_unsigned_long_long" >&5 |
---|
| 4387 | align_save_libs="$LIBS" |
---|
| 4388 | LIBS="$GLIB_LIBS $LIBS" |
---|
| 4389 | if eval "test \"`echo '$''{'ac_cv_alignof_CORBA_unsigned_long_long'+set}'`\" = set"; then |
---|
| 4390 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 4391 | else |
---|
| 4392 | if test "$cross_compiling" = yes; then |
---|
| 4393 | ac_cv_alignof_CORBA_unsigned_long_long=0 |
---|
| 4394 | else |
---|
| 4395 | cat > conftest.$ac_ext <<EOF |
---|
| 4396 | #line 4397 "configure" |
---|
| 4397 | #include "confdefs.h" |
---|
| 4398 | |
---|
| 4399 | #include <stdio.h> |
---|
| 4400 | #include "$srcdir/src/ORBitutil/basic_types.h" |
---|
| 4401 | typedef struct {char s1;} CORBA_struct; |
---|
| 4402 | typedef void *CORBA_pointer; |
---|
| 4403 | struct test {char s1; CORBA_unsigned_long_long s2;}; |
---|
| 4404 | main() |
---|
| 4405 | { |
---|
| 4406 | FILE *f=fopen("conftestval", "w"); |
---|
| 4407 | if (!f) exit(1); |
---|
| 4408 | fprintf(f, "%d\n", &(((struct test*)0)->s2)); |
---|
| 4409 | exit(0); |
---|
| 4410 | } |
---|
| 4411 | EOF |
---|
| 4412 | if { (eval echo configure:4413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
---|
| 4413 | then |
---|
| 4414 | ac_cv_alignof_CORBA_unsigned_long_long=`cat conftestval` |
---|
| 4415 | else |
---|
| 4416 | echo "configure: failed program was:" >&5 |
---|
| 4417 | cat conftest.$ac_ext >&5 |
---|
| 4418 | rm -fr conftest* |
---|
| 4419 | ac_cv_alignof_CORBA_unsigned_long_long=0 |
---|
| 4420 | fi |
---|
| 4421 | rm -fr conftest* |
---|
| 4422 | fi |
---|
| 4423 | |
---|
| 4424 | fi |
---|
| 4425 | echo "$ac_t""$ac_cv_alignof_CORBA_unsigned_long_long" 1>&6 |
---|
| 4426 | LIBS="$align_save_libs" |
---|
| 4427 | cat >> confdefs.h <<EOF |
---|
| 4428 | #define ALIGNOF_CORBA_UNSIGNED_LONG_LONG $ac_cv_alignof_CORBA_unsigned_long_long |
---|
| 4429 | EOF |
---|
| 4430 | |
---|
| 4431 | |
---|
| 4432 | echo $ac_n "checking alignment of CORBA_struct""... $ac_c" 1>&6 |
---|
| 4433 | echo "configure:4434: checking alignment of CORBA_struct" >&5 |
---|
| 4434 | align_save_libs="$LIBS" |
---|
| 4435 | LIBS="$GLIB_LIBS $LIBS" |
---|
| 4436 | if eval "test \"`echo '$''{'ac_cv_alignof_CORBA_struct'+set}'`\" = set"; then |
---|
| 4437 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 4438 | else |
---|
| 4439 | if test "$cross_compiling" = yes; then |
---|
| 4440 | ac_cv_alignof_CORBA_struct=0 |
---|
| 4441 | else |
---|
| 4442 | cat > conftest.$ac_ext <<EOF |
---|
| 4443 | #line 4444 "configure" |
---|
| 4444 | #include "confdefs.h" |
---|
| 4445 | |
---|
| 4446 | #include <stdio.h> |
---|
| 4447 | #include "$srcdir/src/ORBitutil/basic_types.h" |
---|
| 4448 | typedef struct {char s1;} CORBA_struct; |
---|
| 4449 | typedef void *CORBA_pointer; |
---|
| 4450 | struct test {char s1; CORBA_struct s2;}; |
---|
| 4451 | main() |
---|
| 4452 | { |
---|
| 4453 | FILE *f=fopen("conftestval", "w"); |
---|
| 4454 | if (!f) exit(1); |
---|
| 4455 | fprintf(f, "%d\n", &(((struct test*)0)->s2)); |
---|
| 4456 | exit(0); |
---|
| 4457 | } |
---|
| 4458 | EOF |
---|
| 4459 | if { (eval echo configure:4460: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
---|
| 4460 | then |
---|
| 4461 | ac_cv_alignof_CORBA_struct=`cat conftestval` |
---|
| 4462 | else |
---|
| 4463 | echo "configure: failed program was:" >&5 |
---|
| 4464 | cat conftest.$ac_ext >&5 |
---|
| 4465 | rm -fr conftest* |
---|
| 4466 | ac_cv_alignof_CORBA_struct=0 |
---|
| 4467 | fi |
---|
| 4468 | rm -fr conftest* |
---|
| 4469 | fi |
---|
| 4470 | |
---|
| 4471 | fi |
---|
| 4472 | echo "$ac_t""$ac_cv_alignof_CORBA_struct" 1>&6 |
---|
| 4473 | LIBS="$align_save_libs" |
---|
| 4474 | cat >> confdefs.h <<EOF |
---|
| 4475 | #define ALIGNOF_CORBA_STRUCT $ac_cv_alignof_CORBA_struct |
---|
| 4476 | EOF |
---|
| 4477 | |
---|
| 4478 | |
---|
| 4479 | echo $ac_n "checking alignment of CORBA_pointer""... $ac_c" 1>&6 |
---|
| 4480 | echo "configure:4481: checking alignment of CORBA_pointer" >&5 |
---|
| 4481 | align_save_libs="$LIBS" |
---|
| 4482 | LIBS="$GLIB_LIBS $LIBS" |
---|
| 4483 | if eval "test \"`echo '$''{'ac_cv_alignof_CORBA_pointer'+set}'`\" = set"; then |
---|
| 4484 | echo $ac_n "(cached) $ac_c" 1>&6 |
---|
| 4485 | else |
---|
| 4486 | if test "$cross_compiling" = yes; then |
---|
| 4487 | ac_cv_alignof_CORBA_pointer=0 |
---|
| 4488 | else |
---|
| 4489 | cat > conftest.$ac_ext <<EOF |
---|
| 4490 | #line 4491 "configure" |
---|
| 4491 | #include "confdefs.h" |
---|
| 4492 | |
---|
| 4493 | #include <stdio.h> |
---|
| 4494 | #include "$srcdir/src/ORBitutil/basic_types.h" |
---|
| 4495 | typedef struct {char s1;} CORBA_struct; |
---|
| 4496 | typedef void *CORBA_pointer; |
---|
| 4497 | struct test {char s1; CORBA_pointer s2;}; |
---|
| 4498 | main() |
---|
| 4499 | { |
---|
| 4500 | FILE *f=fopen("conftestval", "w"); |
---|
| 4501 | if (!f) exit(1); |
---|
| 4502 | fprintf(f, "%d\n", &(((struct test*)0)->s2)); |
---|
| 4503 | exit(0); |
---|
| 4504 | } |
---|
| 4505 | EOF |
---|
| 4506 | if { (eval echo configure:4507: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
---|
| 4507 | then |
---|
| 4508 | ac_cv_alignof_CORBA_pointer=`cat conftestval` |
---|
| 4509 | else |
---|
| 4510 | echo "configure: failed program was:" >&5 |
---|
| 4511 | cat conftest.$ac_ext >&5 |
---|
| 4512 | rm -fr conftest* |
---|
| 4513 | ac_cv_alignof_CORBA_pointer=0 |
---|
| 4514 | fi |
---|
| 4515 | rm -fr conftest* |
---|
| 4516 | fi |
---|
| 4517 | |
---|
| 4518 | fi |
---|
| 4519 | echo "$ac_t""$ac_cv_alignof_CORBA_pointer" 1>&6 |
---|
| 4520 | LIBS="$align_save_libs" |
---|
| 4521 | cat >> confdefs.h <<EOF |
---|
| 4522 | #define ALIGNOF_CORBA_POINTER $ac_cv_alignof_CORBA_pointer |
---|
| 4523 | EOF |
---|
| 4524 | |
---|
| 4525 | |
---|
| 4526 | CPPFLAGS=$orig_CPPFLAGS |
---|
| 4527 | |
---|
| 4528 | subdirs="libIDL" |
---|
| 4529 | |
---|
| 4530 | subdirs="libIDL popt" |
---|
| 4531 | |
---|
| 4532 | |
---|
| 4533 | |
---|
| 4534 | |
---|
| 4535 | trap '' 1 2 15 |
---|
| 4536 | cat > confcache <<\EOF |
---|
| 4537 | # This file is a shell script that caches the results of configure |
---|
| 4538 | # tests run on this system so they can be shared between configure |
---|
| 4539 | # scripts and configure runs. It is not useful on other systems. |
---|
| 4540 | # If it contains results you don't want to keep, you may remove or edit it. |
---|
| 4541 | # |
---|
| 4542 | # By default, configure uses ./config.cache as the cache file, |
---|
| 4543 | # creating it if it does not exist already. You can give configure |
---|
| 4544 | # the --cache-file=FILE option to use a different cache file; that is |
---|
| 4545 | # what configure does when it calls configure scripts in |
---|
| 4546 | # subdirectories, so they share the cache. |
---|
| 4547 | # Giving --cache-file=/dev/null disables caching, for debugging configure. |
---|
| 4548 | # config.status only pays attention to the cache file if you give it the |
---|
| 4549 | # --recheck option to rerun configure. |
---|
| 4550 | # |
---|
| 4551 | EOF |
---|
| 4552 | # The following way of writing the cache mishandles newlines in values, |
---|
| 4553 | # but we know of no workaround that is simple, portable, and efficient. |
---|
| 4554 | # So, don't put newlines in cache variables' values. |
---|
| 4555 | # Ultrix sh set writes to stderr and can't be redirected directly, |
---|
| 4556 | # and sets the high bit in the cache file unless we assign to the vars. |
---|
| 4557 | (set) 2>&1 | |
---|
| 4558 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
---|
| 4559 | *ac_space=\ *) |
---|
| 4560 | # `set' does not quote correctly, so add quotes (double-quote substitution |
---|
| 4561 | # turns \\\\ into \\, and sed turns \\ into \). |
---|
| 4562 | sed -n \ |
---|
| 4563 | -e "s/'/'\\\\''/g" \ |
---|
| 4564 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" |
---|
| 4565 | ;; |
---|
| 4566 | *) |
---|
| 4567 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
---|
| 4568 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' |
---|
| 4569 | ;; |
---|
| 4570 | esac >> confcache |
---|
| 4571 | if cmp -s $cache_file confcache; then |
---|
| 4572 | : |
---|
| 4573 | else |
---|
| 4574 | if test -w $cache_file; then |
---|
| 4575 | echo "updating cache $cache_file" |
---|
| 4576 | cat confcache > $cache_file |
---|
| 4577 | else |
---|
| 4578 | echo "not updating unwritable cache $cache_file" |
---|
| 4579 | fi |
---|
| 4580 | fi |
---|
| 4581 | rm -f confcache |
---|
| 4582 | |
---|
| 4583 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
---|
| 4584 | |
---|
| 4585 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
---|
| 4586 | # Let make expand exec_prefix. |
---|
| 4587 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
---|
| 4588 | |
---|
| 4589 | # Any assignment to VPATH causes Sun make to only execute |
---|
| 4590 | # the first set of double-colon rules, so remove it if not needed. |
---|
| 4591 | # If there is a colon in the path, we need to keep it. |
---|
| 4592 | if test "x$srcdir" = x.; then |
---|
| 4593 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' |
---|
| 4594 | fi |
---|
| 4595 | |
---|
| 4596 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 |
---|
| 4597 | |
---|
| 4598 | DEFS=-DHAVE_CONFIG_H |
---|
| 4599 | |
---|
| 4600 | # Without the "./", some shells look in PATH for config.status. |
---|
| 4601 | : ${CONFIG_STATUS=./config.status} |
---|
| 4602 | |
---|
| 4603 | echo creating $CONFIG_STATUS |
---|
| 4604 | rm -f $CONFIG_STATUS |
---|
| 4605 | cat > $CONFIG_STATUS <<EOF |
---|
| 4606 | #! /bin/sh |
---|
| 4607 | # Generated automatically by configure. |
---|
| 4608 | # Run this file to recreate the current configuration. |
---|
| 4609 | # This directory was configured as follows, |
---|
| 4610 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
---|
| 4611 | # |
---|
| 4612 | # $0 $ac_configure_args |
---|
| 4613 | # |
---|
| 4614 | # Compiler output produced by configure, useful for debugging |
---|
| 4615 | # configure, is in ./config.log if it exists. |
---|
| 4616 | |
---|
| 4617 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" |
---|
| 4618 | for ac_option |
---|
| 4619 | do |
---|
| 4620 | case "\$ac_option" in |
---|
| 4621 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
---|
| 4622 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" |
---|
| 4623 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; |
---|
| 4624 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) |
---|
| 4625 | echo "$CONFIG_STATUS generated by autoconf version 2.13" |
---|
| 4626 | exit 0 ;; |
---|
| 4627 | -help | --help | --hel | --he | --h) |
---|
| 4628 | echo "\$ac_cs_usage"; exit 0 ;; |
---|
| 4629 | *) echo "\$ac_cs_usage"; exit 1 ;; |
---|
| 4630 | esac |
---|
| 4631 | done |
---|
| 4632 | |
---|
| 4633 | ac_given_srcdir=$srcdir |
---|
| 4634 | ac_given_INSTALL="$INSTALL" |
---|
| 4635 | |
---|
| 4636 | trap 'rm -fr `echo "Makefile |
---|
| 4637 | orbit-config |
---|
| 4638 | src/Makefile |
---|
| 4639 | src/ORBitutil/Makefile |
---|
| 4640 | src/ORBitutil/orbit-os-config.h |
---|
| 4641 | src/IIOP/Makefile |
---|
| 4642 | src/orb/orbit.h |
---|
| 4643 | src/orb/Makefile |
---|
| 4644 | src/orbit-idl-compiler/Makefile |
---|
| 4645 | src/orbit-idl-compiler/backends/Makefile |
---|
| 4646 | src/orbit-idl-compiler/backends/c/Makefile |
---|
| 4647 | src/services/Makefile |
---|
| 4648 | src/services/name/Makefile |
---|
| 4649 | src/services/event/Makefile |
---|
| 4650 | src/daemons/Makefile |
---|
| 4651 | src/daemons/interface_repository/Makefile |
---|
| 4652 | test/Makefile |
---|
| 4653 | test/idl/Makefile |
---|
| 4654 | test/test-poa/Makefile |
---|
| 4655 | ORBit.pc |
---|
| 4656 | ORBit.spec config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 |
---|
| 4657 | EOF |
---|
| 4658 | cat >> $CONFIG_STATUS <<EOF |
---|
| 4659 | |
---|
| 4660 | # Protect against being on the right side of a sed subst in config.status. |
---|
| 4661 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; |
---|
| 4662 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF |
---|
| 4663 | $ac_vpsub |
---|
| 4664 | $extrasub |
---|
| 4665 | s%@SHELL@%$SHELL%g |
---|
| 4666 | s%@CFLAGS@%$CFLAGS%g |
---|
| 4667 | s%@CPPFLAGS@%$CPPFLAGS%g |
---|
| 4668 | s%@CXXFLAGS@%$CXXFLAGS%g |
---|
| 4669 | s%@FFLAGS@%$FFLAGS%g |
---|
| 4670 | s%@DEFS@%$DEFS%g |
---|
| 4671 | s%@LDFLAGS@%$LDFLAGS%g |
---|
| 4672 | s%@LIBS@%$LIBS%g |
---|
| 4673 | s%@exec_prefix@%$exec_prefix%g |
---|
| 4674 | s%@prefix@%$prefix%g |
---|
| 4675 | s%@program_transform_name@%$program_transform_name%g |
---|
| 4676 | s%@bindir@%$bindir%g |
---|
| 4677 | s%@sbindir@%$sbindir%g |
---|
| 4678 | s%@libexecdir@%$libexecdir%g |
---|
| 4679 | s%@datadir@%$datadir%g |
---|
| 4680 | s%@sysconfdir@%$sysconfdir%g |
---|
| 4681 | s%@sharedstatedir@%$sharedstatedir%g |
---|
| 4682 | s%@localstatedir@%$localstatedir%g |
---|
| 4683 | s%@libdir@%$libdir%g |
---|
| 4684 | s%@includedir@%$includedir%g |
---|
| 4685 | s%@oldincludedir@%$oldincludedir%g |
---|
| 4686 | s%@infodir@%$infodir%g |
---|
| 4687 | s%@mandir@%$mandir%g |
---|
| 4688 | s%@ORBIT_MAJOR_VERSION@%$ORBIT_MAJOR_VERSION%g |
---|
| 4689 | s%@ORBIT_MINOR_VERSION@%$ORBIT_MINOR_VERSION%g |
---|
| 4690 | s%@ORBIT_MICRO_VERSION@%$ORBIT_MICRO_VERSION%g |
---|
| 4691 | s%@ORBIT_VERSION@%$ORBIT_VERSION%g |
---|
| 4692 | s%@LT_RELEASE@%$LT_RELEASE%g |
---|
| 4693 | s%@LT_CURRENT@%$LT_CURRENT%g |
---|
| 4694 | s%@LT_REVISION@%$LT_REVISION%g |
---|
| 4695 | s%@LT_AGE@%$LT_AGE%g |
---|
| 4696 | s%@ORBIT_SERIAL@%$ORBIT_SERIAL%g |
---|
| 4697 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g |
---|
| 4698 | s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g |
---|
| 4699 | s%@INSTALL_DATA@%$INSTALL_DATA%g |
---|
| 4700 | s%@PACKAGE@%$PACKAGE%g |
---|
| 4701 | s%@VERSION@%$VERSION%g |
---|
| 4702 | s%@ACLOCAL@%$ACLOCAL%g |
---|
| 4703 | s%@AUTOCONF@%$AUTOCONF%g |
---|
| 4704 | s%@AUTOMAKE@%$AUTOMAKE%g |
---|
| 4705 | s%@AUTOHEADER@%$AUTOHEADER%g |
---|
| 4706 | s%@MAKEINFO@%$MAKEINFO%g |
---|
| 4707 | s%@SET_MAKE@%$SET_MAKE%g |
---|
| 4708 | s%@host@%$host%g |
---|
| 4709 | s%@host_alias@%$host_alias%g |
---|
| 4710 | s%@host_cpu@%$host_cpu%g |
---|
| 4711 | s%@host_vendor@%$host_vendor%g |
---|
| 4712 | s%@host_os@%$host_os%g |
---|
| 4713 | s%@build@%$build%g |
---|
| 4714 | s%@build_alias@%$build_alias%g |
---|
| 4715 | s%@build_cpu@%$build_cpu%g |
---|
| 4716 | s%@build_vendor@%$build_vendor%g |
---|
| 4717 | s%@build_os@%$build_os%g |
---|
| 4718 | s%@RANLIB@%$RANLIB%g |
---|
| 4719 | s%@CC@%$CC%g |
---|
| 4720 | s%@LN_S@%$LN_S%g |
---|
| 4721 | s%@LIBTOOL@%$LIBTOOL%g |
---|
| 4722 | s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g |
---|
| 4723 | s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g |
---|
| 4724 | s%@MAINT@%$MAINT%g |
---|
| 4725 | s%@GLIB_CONFIG@%$GLIB_CONFIG%g |
---|
| 4726 | s%@GLIB_CFLAGS@%$GLIB_CFLAGS%g |
---|
| 4727 | s%@GLIB_LIBS@%$GLIB_LIBS%g |
---|
| 4728 | s%@GMODULE_CFLAGS@%$GMODULE_CFLAGS%g |
---|
| 4729 | s%@GMODULE_LIBS@%$GMODULE_LIBS%g |
---|
| 4730 | s%@YACC@%$YACC%g |
---|
| 4731 | s%@LEX@%$LEX%g |
---|
| 4732 | s%@LEXLIB@%$LEXLIB%g |
---|
| 4733 | s%@CPP@%$CPP%g |
---|
| 4734 | s%@LEX_OUTPUT_ROOT@%$LEX_OUTPUT_ROOT%g |
---|
| 4735 | s%@AWK@%$AWK%g |
---|
| 4736 | s%@ALLOCA@%$ALLOCA%g |
---|
| 4737 | s%@ORBIT_HAVE_ALLOCA_H@%$ORBIT_HAVE_ALLOCA_H%g |
---|
| 4738 | s%@LIBWRAP_PATH@%$LIBWRAP_PATH%g |
---|
| 4739 | s%@LIB_WRAP@%$LIB_WRAP%g |
---|
| 4740 | s%@HAVE_HOSTS_ACCESS_TRUE@%$HAVE_HOSTS_ACCESS_TRUE%g |
---|
| 4741 | s%@HAVE_HOSTS_ACCESS_FALSE@%$HAVE_HOSTS_ACCESS_FALSE%g |
---|
| 4742 | s%@HAVE_LIMITED_WRITEV@%$HAVE_LIMITED_WRITEV%g |
---|
| 4743 | s%@subdirs@%$subdirs%g |
---|
| 4744 | s%@pkglibdir@%$pkglibdir%g |
---|
| 4745 | |
---|
| 4746 | CEOF |
---|
| 4747 | EOF |
---|
| 4748 | |
---|
| 4749 | cat >> $CONFIG_STATUS <<\EOF |
---|
| 4750 | |
---|
| 4751 | # Split the substitutions into bite-sized pieces for seds with |
---|
| 4752 | # small command number limits, like on Digital OSF/1 and HP-UX. |
---|
| 4753 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. |
---|
| 4754 | ac_file=1 # Number of current file. |
---|
| 4755 | ac_beg=1 # First line for current file. |
---|
| 4756 | ac_end=$ac_max_sed_cmds # Line after last line for current file. |
---|
| 4757 | ac_more_lines=: |
---|
| 4758 | ac_sed_cmds="" |
---|
| 4759 | while $ac_more_lines; do |
---|
| 4760 | if test $ac_beg -gt 1; then |
---|
| 4761 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file |
---|
| 4762 | else |
---|
| 4763 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file |
---|
| 4764 | fi |
---|
| 4765 | if test ! -s conftest.s$ac_file; then |
---|
| 4766 | ac_more_lines=false |
---|
| 4767 | rm -f conftest.s$ac_file |
---|
| 4768 | else |
---|
| 4769 | if test -z "$ac_sed_cmds"; then |
---|
| 4770 | ac_sed_cmds="sed -f conftest.s$ac_file" |
---|
| 4771 | else |
---|
| 4772 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" |
---|
| 4773 | fi |
---|
| 4774 | ac_file=`expr $ac_file + 1` |
---|
| 4775 | ac_beg=$ac_end |
---|
| 4776 | ac_end=`expr $ac_end + $ac_max_sed_cmds` |
---|
| 4777 | fi |
---|
| 4778 | done |
---|
| 4779 | if test -z "$ac_sed_cmds"; then |
---|
| 4780 | ac_sed_cmds=cat |
---|
| 4781 | fi |
---|
| 4782 | EOF |
---|
| 4783 | |
---|
| 4784 | cat >> $CONFIG_STATUS <<EOF |
---|
| 4785 | |
---|
| 4786 | CONFIG_FILES=\${CONFIG_FILES-"Makefile |
---|
| 4787 | orbit-config |
---|
| 4788 | src/Makefile |
---|
| 4789 | src/ORBitutil/Makefile |
---|
| 4790 | src/ORBitutil/orbit-os-config.h |
---|
| 4791 | src/IIOP/Makefile |
---|
| 4792 | src/orb/orbit.h |
---|
| 4793 | src/orb/Makefile |
---|
| 4794 | src/orbit-idl-compiler/Makefile |
---|
| 4795 | src/orbit-idl-compiler/backends/Makefile |
---|
| 4796 | src/orbit-idl-compiler/backends/c/Makefile |
---|
| 4797 | src/services/Makefile |
---|
| 4798 | src/services/name/Makefile |
---|
| 4799 | src/services/event/Makefile |
---|
| 4800 | src/daemons/Makefile |
---|
| 4801 | src/daemons/interface_repository/Makefile |
---|
| 4802 | test/Makefile |
---|
| 4803 | test/idl/Makefile |
---|
| 4804 | test/test-poa/Makefile |
---|
| 4805 | ORBit.pc |
---|
| 4806 | ORBit.spec"} |
---|
| 4807 | EOF |
---|
| 4808 | cat >> $CONFIG_STATUS <<\EOF |
---|
| 4809 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then |
---|
| 4810 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
---|
| 4811 | case "$ac_file" in |
---|
| 4812 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` |
---|
| 4813 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
---|
| 4814 | *) ac_file_in="${ac_file}.in" ;; |
---|
| 4815 | esac |
---|
| 4816 | |
---|
| 4817 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. |
---|
| 4818 | |
---|
| 4819 | # Remove last slash and all that follows it. Not all systems have dirname. |
---|
| 4820 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` |
---|
| 4821 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
---|
| 4822 | # The file is in a subdirectory. |
---|
| 4823 | test ! -d "$ac_dir" && mkdir "$ac_dir" |
---|
| 4824 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" |
---|
| 4825 | # A "../" for each directory in $ac_dir_suffix. |
---|
| 4826 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` |
---|
| 4827 | else |
---|
| 4828 | ac_dir_suffix= ac_dots= |
---|
| 4829 | fi |
---|
| 4830 | |
---|
| 4831 | case "$ac_given_srcdir" in |
---|
| 4832 | .) srcdir=. |
---|
| 4833 | if test -z "$ac_dots"; then top_srcdir=. |
---|
| 4834 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; |
---|
| 4835 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; |
---|
| 4836 | *) # Relative path. |
---|
| 4837 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" |
---|
| 4838 | top_srcdir="$ac_dots$ac_given_srcdir" ;; |
---|
| 4839 | esac |
---|
| 4840 | |
---|
| 4841 | case "$ac_given_INSTALL" in |
---|
| 4842 | [/$]*) INSTALL="$ac_given_INSTALL" ;; |
---|
| 4843 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; |
---|
| 4844 | esac |
---|
| 4845 | |
---|
| 4846 | echo creating "$ac_file" |
---|
| 4847 | rm -f "$ac_file" |
---|
| 4848 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." |
---|
| 4849 | case "$ac_file" in |
---|
| 4850 | *Makefile*) ac_comsub="1i\\ |
---|
| 4851 | # $configure_input" ;; |
---|
| 4852 | *) ac_comsub= ;; |
---|
| 4853 | esac |
---|
| 4854 | |
---|
| 4855 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` |
---|
| 4856 | sed -e "$ac_comsub |
---|
| 4857 | s%@configure_input@%$configure_input%g |
---|
| 4858 | s%@srcdir@%$srcdir%g |
---|
| 4859 | s%@top_srcdir@%$top_srcdir%g |
---|
| 4860 | s%@INSTALL@%$INSTALL%g |
---|
| 4861 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file |
---|
| 4862 | fi; done |
---|
| 4863 | rm -f conftest.s* |
---|
| 4864 | |
---|
| 4865 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
---|
| 4866 | # NAME is the cpp macro being defined and VALUE is the value it is being given. |
---|
| 4867 | # |
---|
| 4868 | # ac_d sets the value in "#define NAME VALUE" lines. |
---|
| 4869 | ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
---|
| 4870 | ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' |
---|
| 4871 | ac_dC='\3' |
---|
| 4872 | ac_dD='%g' |
---|
| 4873 | # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". |
---|
| 4874 | ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
---|
| 4875 | ac_uB='\([ ]\)%\1#\2define\3' |
---|
| 4876 | ac_uC=' ' |
---|
| 4877 | ac_uD='\4%g' |
---|
| 4878 | # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
---|
| 4879 | ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
---|
| 4880 | ac_eB='$%\1#\2define\3' |
---|
| 4881 | ac_eC=' ' |
---|
| 4882 | ac_eD='%g' |
---|
| 4883 | |
---|
| 4884 | if test "${CONFIG_HEADERS+set}" != set; then |
---|
| 4885 | EOF |
---|
| 4886 | cat >> $CONFIG_STATUS <<EOF |
---|
| 4887 | CONFIG_HEADERS="config.h" |
---|
| 4888 | EOF |
---|
| 4889 | cat >> $CONFIG_STATUS <<\EOF |
---|
| 4890 | fi |
---|
| 4891 | for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then |
---|
| 4892 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
---|
| 4893 | case "$ac_file" in |
---|
| 4894 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` |
---|
| 4895 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
---|
| 4896 | *) ac_file_in="${ac_file}.in" ;; |
---|
| 4897 | esac |
---|
| 4898 | |
---|
| 4899 | echo creating $ac_file |
---|
| 4900 | |
---|
| 4901 | rm -f conftest.frag conftest.in conftest.out |
---|
| 4902 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` |
---|
| 4903 | cat $ac_file_inputs > conftest.in |
---|
| 4904 | |
---|
| 4905 | EOF |
---|
| 4906 | |
---|
| 4907 | # Transform confdefs.h into a sed script conftest.vals that substitutes |
---|
| 4908 | # the proper values into config.h.in to produce config.h. And first: |
---|
| 4909 | # Protect against being on the right side of a sed subst in config.status. |
---|
| 4910 | # Protect against being in an unquoted here document in config.status. |
---|
| 4911 | rm -f conftest.vals |
---|
| 4912 | cat > conftest.hdr <<\EOF |
---|
| 4913 | s/[\\&%]/\\&/g |
---|
| 4914 | s%[\\$`]%\\&%g |
---|
| 4915 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp |
---|
| 4916 | s%ac_d%ac_u%gp |
---|
| 4917 | s%ac_u%ac_e%gp |
---|
| 4918 | EOF |
---|
| 4919 | sed -n -f conftest.hdr confdefs.h > conftest.vals |
---|
| 4920 | rm -f conftest.hdr |
---|
| 4921 | |
---|
| 4922 | # This sed command replaces #undef with comments. This is necessary, for |
---|
| 4923 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
---|
| 4924 | # on some systems where configure will not decide to define it. |
---|
| 4925 | cat >> conftest.vals <<\EOF |
---|
| 4926 | s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% |
---|
| 4927 | EOF |
---|
| 4928 | |
---|
| 4929 | # Break up conftest.vals because some shells have a limit on |
---|
| 4930 | # the size of here documents, and old seds have small limits too. |
---|
| 4931 | |
---|
| 4932 | rm -f conftest.tail |
---|
| 4933 | while : |
---|
| 4934 | do |
---|
| 4935 | ac_lines=`grep -c . conftest.vals` |
---|
| 4936 | # grep -c gives empty output for an empty file on some AIX systems. |
---|
| 4937 | if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi |
---|
| 4938 | # Write a limited-size here document to conftest.frag. |
---|
| 4939 | echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS |
---|
| 4940 | sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS |
---|
| 4941 | echo 'CEOF |
---|
| 4942 | sed -f conftest.frag conftest.in > conftest.out |
---|
| 4943 | rm -f conftest.in |
---|
| 4944 | mv conftest.out conftest.in |
---|
| 4945 | ' >> $CONFIG_STATUS |
---|
| 4946 | sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail |
---|
| 4947 | rm -f conftest.vals |
---|
| 4948 | mv conftest.tail conftest.vals |
---|
| 4949 | done |
---|
| 4950 | rm -f conftest.vals |
---|
| 4951 | |
---|
| 4952 | cat >> $CONFIG_STATUS <<\EOF |
---|
| 4953 | rm -f conftest.frag conftest.h |
---|
| 4954 | echo "/* $ac_file. Generated automatically by configure. */" > conftest.h |
---|
| 4955 | cat conftest.in >> conftest.h |
---|
| 4956 | rm -f conftest.in |
---|
| 4957 | if cmp -s $ac_file conftest.h 2>/dev/null; then |
---|
| 4958 | echo "$ac_file is unchanged" |
---|
| 4959 | rm -f conftest.h |
---|
| 4960 | else |
---|
| 4961 | # Remove last slash and all that follows it. Not all systems have dirname. |
---|
| 4962 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` |
---|
| 4963 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
---|
| 4964 | # The file is in a subdirectory. |
---|
| 4965 | test ! -d "$ac_dir" && mkdir "$ac_dir" |
---|
| 4966 | fi |
---|
| 4967 | rm -f $ac_file |
---|
| 4968 | mv conftest.h $ac_file |
---|
| 4969 | fi |
---|
| 4970 | fi; done |
---|
| 4971 | |
---|
| 4972 | EOF |
---|
| 4973 | cat >> $CONFIG_STATUS <<EOF |
---|
| 4974 | |
---|
| 4975 | |
---|
| 4976 | EOF |
---|
| 4977 | cat >> $CONFIG_STATUS <<\EOF |
---|
| 4978 | test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h |
---|
| 4979 | |
---|
| 4980 | exit 0 |
---|
| 4981 | EOF |
---|
| 4982 | chmod +x $CONFIG_STATUS |
---|
| 4983 | rm -fr confdefs* $ac_clean_files |
---|
| 4984 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 |
---|
| 4985 | |
---|
| 4986 | if test "$no_recursion" != yes; then |
---|
| 4987 | |
---|
| 4988 | # Remove --cache-file and --srcdir arguments so they do not pile up. |
---|
| 4989 | ac_sub_configure_args= |
---|
| 4990 | ac_prev= |
---|
| 4991 | for ac_arg in $ac_configure_args; do |
---|
| 4992 | if test -n "$ac_prev"; then |
---|
| 4993 | ac_prev= |
---|
| 4994 | continue |
---|
| 4995 | fi |
---|
| 4996 | case "$ac_arg" in |
---|
| 4997 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
---|
| 4998 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
---|
| 4999 | ac_prev=cache_file ;; |
---|
| 5000 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
---|
| 5001 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
---|
| 5002 | ;; |
---|
| 5003 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
---|
| 5004 | ac_prev=srcdir ;; |
---|
| 5005 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
---|
| 5006 | ;; |
---|
| 5007 | *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; |
---|
| 5008 | esac |
---|
| 5009 | done |
---|
| 5010 | |
---|
| 5011 | for ac_config_dir in libIDL popt; do |
---|
| 5012 | |
---|
| 5013 | # Do not complain, so a configure script can configure whichever |
---|
| 5014 | # parts of a large source tree are present. |
---|
| 5015 | if test ! -d $srcdir/$ac_config_dir; then |
---|
| 5016 | continue |
---|
| 5017 | fi |
---|
| 5018 | |
---|
| 5019 | echo configuring in $ac_config_dir |
---|
| 5020 | |
---|
| 5021 | case "$srcdir" in |
---|
| 5022 | .) ;; |
---|
| 5023 | *) |
---|
| 5024 | if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :; |
---|
| 5025 | else |
---|
| 5026 | { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; } |
---|
| 5027 | fi |
---|
| 5028 | ;; |
---|
| 5029 | esac |
---|
| 5030 | |
---|
| 5031 | ac_popdir=`pwd` |
---|
| 5032 | cd $ac_config_dir |
---|
| 5033 | |
---|
| 5034 | # A "../" for each directory in /$ac_config_dir. |
---|
| 5035 | ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'` |
---|
| 5036 | |
---|
| 5037 | case "$srcdir" in |
---|
| 5038 | .) # No --srcdir option. We are building in place. |
---|
| 5039 | ac_sub_srcdir=$srcdir ;; |
---|
| 5040 | /*) # Absolute path. |
---|
| 5041 | ac_sub_srcdir=$srcdir/$ac_config_dir ;; |
---|
| 5042 | *) # Relative path. |
---|
| 5043 | ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;; |
---|
| 5044 | esac |
---|
| 5045 | |
---|
| 5046 | # Check for guested configure; otherwise get Cygnus style configure. |
---|
| 5047 | if test -f $ac_sub_srcdir/configure; then |
---|
| 5048 | ac_sub_configure=$ac_sub_srcdir/configure |
---|
| 5049 | elif test -f $ac_sub_srcdir/configure.in; then |
---|
| 5050 | ac_sub_configure=$ac_configure |
---|
| 5051 | else |
---|
| 5052 | echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2 |
---|
| 5053 | ac_sub_configure= |
---|
| 5054 | fi |
---|
| 5055 | |
---|
| 5056 | # The recursion is here. |
---|
| 5057 | if test -n "$ac_sub_configure"; then |
---|
| 5058 | |
---|
| 5059 | # Make the cache file name correct relative to the subdirectory. |
---|
| 5060 | case "$cache_file" in |
---|
| 5061 | /*) ac_sub_cache_file=$cache_file ;; |
---|
| 5062 | *) # Relative path. |
---|
| 5063 | ac_sub_cache_file="$ac_dots$cache_file" ;; |
---|
| 5064 | esac |
---|
| 5065 | case "$ac_given_INSTALL" in |
---|
| 5066 | [/$]*) INSTALL="$ac_given_INSTALL" ;; |
---|
| 5067 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; |
---|
| 5068 | esac |
---|
| 5069 | |
---|
| 5070 | echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir" |
---|
| 5071 | # The eval makes quoting arguments work. |
---|
| 5072 | if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir |
---|