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