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