| 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-maintainer-mode enable make rules and dependencies not useful |
|---|
| 16 | (and sometimes confusing) to the casual installer" |
|---|
| 17 | ac_help="$ac_help |
|---|
| 18 | --enable-shared build shared libraries [default=yes] |
|---|
| 19 | --enable-shared=PKGS only build shared libraries if the current package |
|---|
| 20 | appears as an element in the PKGS list" |
|---|
| 21 | ac_help="$ac_help |
|---|
| 22 | --enable-static build static libraries [default=yes] |
|---|
| 23 | --enable-static=PKGS only build shared libraries if the current package |
|---|
| 24 | appears as an element in the PKGS list" |
|---|
| 25 | ac_help="$ac_help |
|---|
| 26 | --with-gnu-ld assume the C compiler uses GNU ld [default=no]" |
|---|
| 27 | |
|---|
| 28 | # Initialize some variables set by options. |
|---|
| 29 | # The variables have the same names as the options, with |
|---|
| 30 | # dashes changed to underlines. |
|---|
| 31 | build=NONE |
|---|
| 32 | cache_file=./config.cache |
|---|
| 33 | exec_prefix=NONE |
|---|
| 34 | host=NONE |
|---|
| 35 | no_create= |
|---|
| 36 | nonopt=NONE |
|---|
| 37 | no_recursion= |
|---|
| 38 | prefix=NONE |
|---|
| 39 | program_prefix=NONE |
|---|
| 40 | program_suffix=NONE |
|---|
| 41 | program_transform_name=s,x,x, |
|---|
| 42 | silent= |
|---|
| 43 | site= |
|---|
| 44 | srcdir= |
|---|
| 45 | target=NONE |
|---|
| 46 | verbose= |
|---|
| 47 | x_includes=NONE |
|---|
| 48 | x_libraries=NONE |
|---|
| 49 | bindir='${exec_prefix}/bin' |
|---|
| 50 | sbindir='${exec_prefix}/sbin' |
|---|
| 51 | libexecdir='${exec_prefix}/libexec' |
|---|
| 52 | datadir='${prefix}/share' |
|---|
| 53 | sysconfdir='${prefix}/etc' |
|---|
| 54 | sharedstatedir='${prefix}/com' |
|---|
| 55 | localstatedir='${prefix}/var' |
|---|
| 56 | libdir='${exec_prefix}/lib' |
|---|
| 57 | includedir='${prefix}/include' |
|---|
| 58 | oldincludedir='/usr/include' |
|---|
| 59 | infodir='${prefix}/info' |
|---|
| 60 | mandir='${prefix}/man' |
|---|
| 61 | |
|---|
| 62 | # Initialize some other variables. |
|---|
| 63 | subdirs= |
|---|
| 64 | MFLAGS= MAKEFLAGS= |
|---|
| 65 | SHELL=${CONFIG_SHELL-/bin/sh} |
|---|
| 66 | # Maximum number of lines to put in a shell here document. |
|---|
| 67 | ac_max_here_lines=12 |
|---|
| 68 | |
|---|
| 69 | ac_prev= |
|---|
| 70 | for ac_option |
|---|
| 71 | do |
|---|
| 72 | |
|---|
| 73 | # If the previous option needs an argument, assign it. |
|---|
| 74 | if test -n "$ac_prev"; then |
|---|
| 75 | eval "$ac_prev=\$ac_option" |
|---|
| 76 | ac_prev= |
|---|
| 77 | continue |
|---|
| 78 | fi |
|---|
| 79 | |
|---|
| 80 | case "$ac_option" in |
|---|
| 81 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; |
|---|
| 82 | *) ac_optarg= ;; |
|---|
| 83 | esac |
|---|
| 84 | |
|---|
| 85 | # Accept the important Cygnus configure options, so we can diagnose typos. |
|---|
| 86 | |
|---|
| 87 | case "$ac_option" in |
|---|
| 88 | |
|---|
| 89 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
|---|
| 90 | ac_prev=bindir ;; |
|---|
| 91 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
|---|
| 92 | bindir="$ac_optarg" ;; |
|---|
| 93 | |
|---|
| 94 | -build | --build | --buil | --bui | --bu) |
|---|
| 95 | ac_prev=build ;; |
|---|
| 96 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
|---|
| 97 | build="$ac_optarg" ;; |
|---|
| 98 | |
|---|
| 99 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
|---|
| 100 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
|---|
| 101 | ac_prev=cache_file ;; |
|---|
| 102 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
|---|
| 103 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
|---|
| 104 | cache_file="$ac_optarg" ;; |
|---|
| 105 | |
|---|
| 106 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
|---|
| 107 | ac_prev=datadir ;; |
|---|
| 108 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
|---|
| 109 | | --da=*) |
|---|
| 110 | datadir="$ac_optarg" ;; |
|---|
| 111 | |
|---|
| 112 | -disable-* | --disable-*) |
|---|
| 113 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` |
|---|
| 114 | # Reject names that are not valid shell variable names. |
|---|
| 115 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then |
|---|
| 116 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } |
|---|
| 117 | fi |
|---|
| 118 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` |
|---|
| 119 | eval "enable_${ac_feature}=no" ;; |
|---|
| 120 | |
|---|
| 121 | -enable-* | --enable-*) |
|---|
| 122 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` |
|---|
| 123 | # Reject names that are not valid shell variable names. |
|---|
| 124 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then |
|---|
| 125 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } |
|---|
| 126 | fi |
|---|
| 127 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` |
|---|
| 128 | case "$ac_option" in |
|---|
| 129 | *=*) ;; |
|---|
| 130 | *) ac_optarg=yes ;; |
|---|
| 131 | esac |
|---|
| 132 | eval "enable_${ac_feature}='$ac_optarg'" ;; |
|---|
| 133 | |
|---|
| 134 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
|---|
| 135 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
|---|
| 136 | | --exec | --exe | --ex) |
|---|
| 137 | ac_prev=exec_prefix ;; |
|---|
| 138 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
|---|
| 139 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
|---|
| 140 | | --exec=* | --exe=* | --ex=*) |
|---|
| 141 | exec_prefix="$ac_optarg" ;; |
|---|
| 142 | |
|---|
| 143 | -gas | --gas | --ga | --g) |
|---|
| 144 | # Obsolete; use --with-gas. |
|---|
| 145 | with_gas=yes ;; |
|---|
| 146 | |
|---|
| 147 | -help | --help | --hel | --he) |
|---|
| 148 | # Omit some internal or obsolete options to make the list less imposing. |
|---|
| 149 | # This message is too long to be a string in the A/UX 3.1 sh. |
|---|
| 150 | cat << EOF |
|---|
| 151 | Usage: configure [options] [host] |
|---|
| 152 | Options: [defaults in brackets after descriptions] |
|---|
| 153 | Configuration: |
|---|
| 154 | --cache-file=FILE cache test results in FILE |
|---|
| 155 | --help print this message |
|---|
| 156 | --no-create do not create output files |
|---|
| 157 | --quiet, --silent do not print \`checking...' messages |
|---|
| 158 | --version print the version of autoconf that created configure |
|---|
| 159 | Directory and file names: |
|---|
| 160 | --prefix=PREFIX install architecture-independent files in PREFIX |
|---|
| 161 | [$ac_default_prefix] |
|---|
| 162 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
|---|
| 163 | [same as prefix] |
|---|
| 164 | --bindir=DIR user executables in DIR [EPREFIX/bin] |
|---|
| 165 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] |
|---|
| 166 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec] |
|---|
| 167 | --datadir=DIR read-only architecture-independent data in DIR |
|---|
| 168 | [PREFIX/share] |
|---|
| 169 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] |
|---|
| 170 | --sharedstatedir=DIR modifiable architecture-independent data in DIR |
|---|
| 171 | [PREFIX/com] |
|---|
| 172 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] |
|---|
| 173 | --libdir=DIR object code libraries in DIR [EPREFIX/lib] |
|---|
| 174 | --includedir=DIR C header files in DIR [PREFIX/include] |
|---|
| 175 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] |
|---|
| 176 | --infodir=DIR info documentation in DIR [PREFIX/info] |
|---|
| 177 | --mandir=DIR man documentation in DIR [PREFIX/man] |
|---|
| 178 | --srcdir=DIR find the sources in DIR [configure dir or ..] |
|---|
| 179 | --program-prefix=PREFIX prepend PREFIX to installed program names |
|---|
| 180 | --program-suffix=SUFFIX append SUFFIX to installed program names |
|---|
| 181 | --program-transform-name=PROGRAM |
|---|
| 182 | run sed PROGRAM on installed program names |
|---|
| 183 | EOF |
|---|
| 184 | cat << EOF |
|---|
| 185 | Host type: |
|---|
| 186 | --build=BUILD configure for building on BUILD [BUILD=HOST] |
|---|
| 187 | --host=HOST configure for HOST [guessed] |
|---|
| 188 | --target=TARGET configure for TARGET [TARGET=HOST] |
|---|
| 189 | Features and packages: |
|---|
| 190 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
|---|
| 191 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
|---|
| 192 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
|---|
| 193 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
|---|
| 194 | --x-includes=DIR X include files are in DIR |
|---|
| 195 | --x-libraries=DIR X library files are in DIR |
|---|
| 196 | EOF |
|---|
| 197 | if test -n "$ac_help"; then |
|---|
| 198 | echo "--enable and --with options recognized:$ac_help" |
|---|
| 199 | fi |
|---|
| 200 | exit 0 ;; |
|---|
| 201 | |
|---|
| 202 | -host | --host | --hos | --ho) |
|---|
| 203 | ac_prev=host ;; |
|---|
| 204 | -host=* | --host=* | --hos=* | --ho=*) |
|---|
| 205 | host="$ac_optarg" ;; |
|---|
| 206 | |
|---|
| 207 | -includedir | --includedir | --includedi | --included | --include \ |
|---|
| 208 | | --includ | --inclu | --incl | --inc) |
|---|
| 209 | ac_prev=includedir ;; |
|---|
| 210 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
|---|
| 211 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
|---|
| 212 | includedir="$ac_optarg" ;; |
|---|
| 213 | |
|---|
| 214 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
|---|
| 215 | ac_prev=infodir ;; |
|---|
| 216 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
|---|
| 217 | infodir="$ac_optarg" ;; |
|---|
| 218 | |
|---|
| 219 | -libdir | --libdir | --libdi | --libd) |
|---|
| 220 | ac_prev=libdir ;; |
|---|
| 221 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
|---|
| 222 | libdir="$ac_optarg" ;; |
|---|
| 223 | |
|---|
| 224 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
|---|
| 225 | | --libexe | --libex | --libe) |
|---|
| 226 | ac_prev=libexecdir ;; |
|---|
| 227 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
|---|
| 228 | | --libexe=* | --libex=* | --libe=*) |
|---|
| 229 | libexecdir="$ac_optarg" ;; |
|---|
| 230 | |
|---|
| 231 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
|---|
| 232 | | --localstate | --localstat | --localsta | --localst \ |
|---|
| 233 | | --locals | --local | --loca | --loc | --lo) |
|---|
| 234 | ac_prev=localstatedir ;; |
|---|
| 235 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
|---|
| 236 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
|---|
| 237 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
|---|
| 238 | localstatedir="$ac_optarg" ;; |
|---|
| 239 | |
|---|
| 240 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
|---|
| 241 | ac_prev=mandir ;; |
|---|
| 242 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
|---|
| 243 | mandir="$ac_optarg" ;; |
|---|
| 244 | |
|---|
| 245 | -nfp | --nfp | --nf) |
|---|
| 246 | # Obsolete; use --without-fp. |
|---|
| 247 | with_fp=no ;; |
|---|
| 248 | |
|---|
| 249 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
|---|
| 250 | | --no-cr | --no-c) |
|---|
| 251 | no_create=yes ;; |
|---|
| 252 | |
|---|
| 253 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
|---|
| 254 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
|---|
| 255 | no_recursion=yes ;; |
|---|
| 256 | |
|---|
| 257 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
|---|
| 258 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
|---|
| 259 | | --oldin | --oldi | --old | --ol | --o) |
|---|
| 260 | ac_prev=oldincludedir ;; |
|---|
| 261 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
|---|
| 262 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
|---|
| 263 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
|---|
| 264 | oldincludedir="$ac_optarg" ;; |
|---|
| 265 | |
|---|
| 266 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
|---|
| 267 | ac_prev=prefix ;; |
|---|
| 268 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
|---|
| 269 | prefix="$ac_optarg" ;; |
|---|
| 270 | |
|---|
| 271 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
|---|
| 272 | | --program-pre | --program-pr | --program-p) |
|---|
| 273 | ac_prev=program_prefix ;; |
|---|
| 274 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
|---|
| 275 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
|---|
| 276 | program_prefix="$ac_optarg" ;; |
|---|
| 277 | |
|---|
| 278 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
|---|
| 279 | | --program-suf | --program-su | --program-s) |
|---|
| 280 | ac_prev=program_suffix ;; |
|---|
| 281 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
|---|
| 282 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
|---|
| 283 | program_suffix="$ac_optarg" ;; |
|---|
| 284 | |
|---|
| 285 | -program-transform-name | --program-transform-name \ |
|---|
| 286 | | --program-transform-nam | --program-transform-na \ |
|---|
| 287 | | --program-transform-n | --program-transform- \ |
|---|
| 288 | | --program-transform | --program-transfor \ |
|---|
| 289 | | --program-transfo | --program-transf \ |
|---|
| 290 | | --program-trans | --program-tran \ |
|---|
| 291 | | --progr-tra | --program-tr | --program-t) |
|---|
| 292 | ac_prev=program_transform_name ;; |
|---|
| 293 | -program-transform-name=* | --program-transform-name=* \ |
|---|
| 294 | | --program-transform-nam=* | --program-transform-na=* \ |
|---|
| 295 | | --program-transform-n=* | --program-transform-=* \ |
|---|
| 296 | | --program-transform=* | --program-transfor=* \ |
|---|
| 297 | | --program-transfo=* | --program-transf=* \ |
|---|
| 298 | | --program-trans=* | --program-tran=* \ |
|---|
| 299 | | --progr-tra=* | --program-tr=* | --program-t=*) |
|---|
| 300 | program_transform_name="$ac_optarg" ;; |
|---|
| 301 | |
|---|
| 302 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
|---|
| 303 | | -silent | --silent | --silen | --sile | --sil) |
|---|
| 304 | silent=yes ;; |
|---|
| 305 | |
|---|
| 306 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
|---|
| 307 | ac_prev=sbindir ;; |
|---|
| 308 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
|---|
| 309 | | --sbi=* | --sb=*) |
|---|
| 310 | sbindir="$ac_optarg" ;; |
|---|
| 311 | |
|---|
| 312 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
|---|
| 313 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
|---|
| 314 | | --sharedst | --shareds | --shared | --share | --shar \ |
|---|
| 315 | | --sha | --sh) |
|---|
| 316 | ac_prev=sharedstatedir ;; |
|---|
| 317 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
|---|
| 318 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
|---|
| 319 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
|---|
| 320 | | --sha=* | --sh=*) |
|---|
| 321 | sharedstatedir="$ac_optarg" ;; |
|---|
| 322 | |
|---|
| 323 | -site | --site | --sit) |
|---|
| 324 | ac_prev=site ;; |
|---|
| 325 | -site=* | --site=* | --sit=*) |
|---|
| 326 | site="$ac_optarg" ;; |
|---|
| 327 | |
|---|
| 328 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
|---|
| 329 | ac_prev=srcdir ;; |
|---|
| 330 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
|---|
| 331 | srcdir="$ac_optarg" ;; |
|---|
| 332 | |
|---|
| 333 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
|---|
| 334 | | --syscon | --sysco | --sysc | --sys | --sy) |
|---|
| 335 | ac_prev=sysconfdir ;; |
|---|
| 336 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
|---|
| 337 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
|---|
| 338 | sysconfdir="$ac_optarg" ;; |
|---|
| 339 | |
|---|
| 340 | -target | --target | --targe | --targ | --tar | --ta | --t) |
|---|
| 341 | ac_prev=target ;; |
|---|
| 342 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
|---|
| 343 | target="$ac_optarg" ;; |
|---|
| 344 | |
|---|
| 345 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
|---|
| 346 | verbose=yes ;; |
|---|
| 347 | |
|---|
| 348 | -version | --version | --versio | --versi | --vers) |
|---|
| 349 | echo "configure generated by autoconf version 2.13" |
|---|
| 350 | exit 0 ;; |
|---|
| 351 | |
|---|
| 352 | -with-* | --with-*) |
|---|
| 353 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` |
|---|
| 354 | # Reject names that are not valid shell variable names. |
|---|
| 355 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then |
|---|
| 356 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } |
|---|
| 357 | fi |
|---|
| 358 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
|---|
| 359 | case "$ac_option" in |
|---|
| 360 | *=*) ;; |
|---|
| 361 | *) ac_optarg=yes ;; |
|---|
| 362 | esac |
|---|
| 363 | eval "with_${ac_package}='$ac_optarg'" ;; |
|---|
| 364 | |
|---|
| 365 | -without-* | --without-*) |
|---|
| 366 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` |
|---|
| 367 | # Reject names that are not valid shell variable names. |
|---|
| 368 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then |
|---|
| 369 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } |
|---|
| 370 | fi |
|---|
| 371 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
|---|
| 372 | eval "with_${ac_package}=no" ;; |
|---|
| 373 | |
|---|
| 374 | --x) |
|---|
| 375 | # Obsolete; use --with-x. |
|---|
| 376 | with_x=yes ;; |
|---|
| 377 | |
|---|
| 378 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
|---|
| 379 | | --x-incl | --x-inc | --x-in | --x-i) |
|---|
| 380 | ac_prev=x_includes ;; |
|---|
| 381 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
|---|
| 382 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
|---|
| 383 | x_includes="$ac_optarg" ;; |
|---|
| 384 | |
|---|
| 385 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
|---|
| 386 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
|---|
| 387 | ac_prev=x_libraries ;; |
|---|
| 388 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
|---|
| 389 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
|---|
| 390 | x_libraries="$ac_optarg" ;; |
|---|
| 391 | |
|---|
| 392 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } |
|---|
| 393 | ;; |
|---|
| 394 | |
|---|
| 395 | *) |
|---|
| 396 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then |
|---|
| 397 | echo "configure: warning: $ac_option: invalid host type" 1>&2 |
|---|
| 398 | fi |
|---|
| 399 | if test "x$nonopt" != xNONE; then |
|---|
| 400 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } |
|---|
| 401 | fi |
|---|
| 402 | nonopt="$ac_option" |
|---|
| 403 | ;; |
|---|
| 404 | |
|---|
| 405 | esac |
|---|
| 406 | done |
|---|
| 407 | |
|---|
| 408 | if test -n "$ac_prev"; then |
|---|
| 409 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } |
|---|
| 410 | fi |
|---|
| 411 | |
|---|
| 412 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
|---|
| 413 | |
|---|
| 414 | # File descriptor usage: |
|---|
| 415 | # 0 standard input |
|---|
| 416 | # 1 file creation |
|---|
| 417 | # 2 errors and warnings |
|---|
| 418 | # 3 some systems may open it to /dev/tty |
|---|
| 419 | # 4 used on the Kubota Titan |
|---|
| 420 | # 6 checking for... messages and results |
|---|
| 421 | # 5 compiler messages saved in config.log |
|---|
| 422 | if test "$silent" = yes; then |
|---|
| 423 | exec 6>/dev/null |
|---|
| 424 | else |
|---|
| 425 | exec 6>&1 |
|---|
| 426 | fi |
|---|
| 427 | exec 5>./config.log |
|---|
| 428 | |
|---|
| 429 | echo "\ |
|---|
| 430 | This file contains any messages produced by compilers while |
|---|
| 431 | running configure, to aid debugging if configure makes a mistake. |
|---|
| 432 | " 1>&5 |
|---|
| 433 | |
|---|
| 434 | # Strip out --no-create and --no-recursion so they do not pile up. |
|---|
| 435 | # Also quote any args containing shell metacharacters. |
|---|
| 436 | ac_configure_args= |
|---|
| 437 | for ac_arg |
|---|
| 438 | do |
|---|
| 439 | case "$ac_arg" in |
|---|
| 440 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
|---|
| 441 | | --no-cr | --no-c) ;; |
|---|
| 442 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
|---|
| 443 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; |
|---|
| 444 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) |
|---|
| 445 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
|---|
| 446 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; |
|---|
| 447 | esac |
|---|
| 448 | done |
|---|
| 449 | |
|---|
| 450 | # NLS nuisances. |
|---|
| 451 | # Only set these to C if already set. These must not be set unconditionally |
|---|
| 452 | # because not all systems understand e.g. LANG=C (notably SCO). |
|---|
| 453 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! |
|---|
| 454 | # Non-C LC_CTYPE values break the ctype check. |
|---|
| 455 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi |
|---|
| 456 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi |
|---|
| 457 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi |
|---|
| 458 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi |
|---|
| 459 | |
|---|
| 460 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
|---|
| 461 | rm -rf conftest* confdefs.h |
|---|
| 462 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
|---|
| 463 | echo > confdefs.h |
|---|
| 464 | |
|---|
| 465 | # A filename unique to this package, relative to the directory that |
|---|
| 466 | # configure is in, which we can look for to find out if srcdir is correct. |
|---|
| 467 | ac_unique_file=src/contact_list.cpp |
|---|
| 468 | |
|---|
| 469 | # Find the source files, if location was not specified. |
|---|
| 470 | if test -z "$srcdir"; then |
|---|
| 471 | ac_srcdir_defaulted=yes |
|---|
| 472 | # Try the directory containing this script, then its parent. |
|---|
| 473 | ac_prog=$0 |
|---|
| 474 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` |
|---|
| 475 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. |
|---|
| 476 | srcdir=$ac_confdir |
|---|
| 477 | if test ! -r $srcdir/$ac_unique_file; then |
|---|
| 478 | srcdir=.. |
|---|
| 479 | fi |
|---|
| 480 | else |
|---|
| 481 | ac_srcdir_defaulted=no |
|---|
| 482 | fi |
|---|
| 483 | if test ! -r $srcdir/$ac_unique_file; then |
|---|
| 484 | if test "$ac_srcdir_defaulted" = yes; then |
|---|
| 485 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } |
|---|
| 486 | else |
|---|
| 487 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } |
|---|
| 488 | fi |
|---|
| 489 | fi |
|---|
| 490 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` |
|---|
| 491 | |
|---|
| 492 | # Prefer explicitly selected file to automatically selected ones. |
|---|
| 493 | if test -z "$CONFIG_SITE"; then |
|---|
| 494 | if test "x$prefix" != xNONE; then |
|---|
| 495 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
|---|
| 496 | else |
|---|
| 497 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
|---|
| 498 | fi |
|---|
| 499 | fi |
|---|
| 500 | for ac_site_file in $CONFIG_SITE; do |
|---|
| 501 | if test -r "$ac_site_file"; then |
|---|
| 502 | echo "loading site script $ac_site_file" |
|---|
| 503 | . "$ac_site_file" |
|---|
| 504 | fi |
|---|
| 505 | done |
|---|
| 506 | |
|---|
| 507 | if test -r "$cache_file"; then |
|---|
| 508 | echo "loading cache $cache_file" |
|---|
| 509 | . $cache_file |
|---|
| 510 | else |
|---|
| 511 | echo "creating cache $cache_file" |
|---|
| 512 | > $cache_file |
|---|
| 513 | fi |
|---|
| 514 | |
|---|
| 515 | ac_ext=c |
|---|
| 516 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
|---|
| 517 | ac_cpp='$CPP $CPPFLAGS' |
|---|
| 518 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
|---|
| 519 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
|---|
| 520 | cross_compiling=$ac_cv_prog_cc_cross |
|---|
| 521 | |
|---|
| 522 | ac_exeext= |
|---|
| 523 | ac_objext=o |
|---|
| 524 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then |
|---|
| 525 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. |
|---|
| 526 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then |
|---|
| 527 | ac_n= ac_c=' |
|---|
| 528 | ' ac_t=' ' |
|---|
| 529 | else |
|---|
| 530 | ac_n=-n ac_c= ac_t= |
|---|
| 531 | fi |
|---|
| 532 | else |
|---|
| 533 | ac_n= ac_c='\c' ac_t= |
|---|
| 534 | fi |
|---|
| 535 | |
|---|
| 536 | |
|---|
| 537 | |
|---|
| 538 | |
|---|
| 539 | |
|---|
| 540 | |
|---|
| 541 | |
|---|
| 542 | ac_aux_dir= |
|---|
| 543 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
|---|
| 544 | if test -f $ac_dir/install-sh; then |
|---|
| 545 | ac_aux_dir=$ac_dir |
|---|
| 546 | ac_install_sh="$ac_aux_dir/install-sh -c" |
|---|
| 547 | break |
|---|
| 548 | elif test -f $ac_dir/install.sh; then |
|---|
| 549 | ac_aux_dir=$ac_dir |
|---|
| 550 | ac_install_sh="$ac_aux_dir/install.sh -c" |
|---|
| 551 | break |
|---|
| 552 | fi |
|---|
| 553 | done |
|---|
| 554 | if test -z "$ac_aux_dir"; then |
|---|
| 555 | { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } |
|---|
| 556 | fi |
|---|
| 557 | ac_config_guess=$ac_aux_dir/config.guess |
|---|
| 558 | ac_config_sub=$ac_aux_dir/config.sub |
|---|
| 559 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. |
|---|
| 560 | |
|---|
| 561 | # Find a good install program. We prefer a C program (faster), |
|---|
| 562 | # so one script is as good as another. But avoid the broken or |
|---|
| 563 | # incompatible versions: |
|---|
| 564 | # SysV /etc/install, /usr/sbin/install |
|---|
| 565 | # SunOS /usr/etc/install |
|---|
| 566 | # IRIX /sbin/install |
|---|
| 567 | # AIX /bin/install |
|---|
| 568 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
|---|
| 569 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
|---|
| 570 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
|---|
| 571 | # ./install, which can be erroneously created by make from ./install.sh. |
|---|
| 572 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 |
|---|
| 573 | echo "configure:574: checking for a BSD compatible install" >&5 |
|---|
| 574 | if test -z "$INSTALL"; then |
|---|
| 575 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then |
|---|
| 576 | echo $ac_n "(cached) $ac_c" 1>&6 |
|---|
| 577 | else |
|---|
| 578 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" |
|---|
| 579 | for ac_dir in $PATH; do |
|---|
| 580 | # Account for people who put trailing slashes in PATH elements. |
|---|
| 581 | case "$ac_dir/" in |
|---|
| 582 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; |
|---|
| 583 | *) |
|---|
| 584 | # OSF1 and SCO ODT 3.0 have their own names for install. |
|---|
| 585 | # Don't use installbsd from OSF since it installs stuff as root |
|---|
| 586 | # by default. |
|---|
| 587 | for ac_prog in ginstall scoinst install; do |
|---|
| 588 | if test -f $ac_dir/$ac_prog; then |
|---|
| 589 | if test $ac_prog = install && |
|---|
| 590 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then |
|---|
| 591 | # AIX install. It has an incompatible calling convention. |
|---|
| 592 | : |
|---|
| 593 | else |
|---|
| 594 | ac_cv_path_install="$ac_dir/$ac_prog -c" |
|---|
| 595 | break 2 |
|---|
| 596 | fi |
|---|
| 597 | fi |
|---|
| 598 | done |
|---|
| 599 | ;; |
|---|
| 600 | esac |
|---|
| 601 | done |
|---|
| 602 | IFS="$ac_save_IFS" |
|---|
| 603 | |
|---|
| 604 | fi |
|---|
| 605 | if test "${ac_cv_path_install+set}" = set; then |
|---|
| 606 | INSTALL="$ac_cv_path_install" |
|---|
| 607 | else |
|---|
| 608 | # As a last resort, use the slow shell script. We don't cache a |
|---|
| 609 | # path for INSTALL within a source directory, because that will |
|---|
| 610 | # break other packages using the cache if that directory is |
|---|
| 611 | # removed, or if the path is relative. |
|---|
| 612 | INSTALL="$ac_install_sh" |
|---|
| 613 | fi |
|---|
| 614 | fi |
|---|
| 615 | echo "$ac_t""$INSTALL" 1>&6 |
|---|
| 616 | |
|---|
| 617 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
|---|
| 618 | # It thinks the first close brace ends the variable substitution. |
|---|
| 619 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
|---|
| 620 | |
|---|
| 621 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' |
|---|
| 622 | |
|---|
| 623 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
|---|
| 624 | |
|---|
| 625 | echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6 |
|---|
| 626 | echo "configure:627: checking whether build environment is sane" >&5 |
|---|
| 627 | # Just in case |
|---|
| 628 | sleep 1 |
|---|
| 629 | echo timestamp > conftestfile |
|---|
| 630 | # Do `set' in a subshell so we don't clobber the current shell's |
|---|
| 631 | # arguments. Must try -L first in case configure is actually a |
|---|
| 632 | # symlink; some systems play weird games with the mod time of symlinks |
|---|
| 633 | # (eg FreeBSD returns the mod time of the symlink's containing |
|---|
| 634 | # directory). |
|---|
| 635 | if ( |
|---|
| 636 | set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null` |
|---|
| 637 | if test "$*" = "X"; then |
|---|
| 638 | # -L didn't work. |
|---|
| 639 | set X `ls -t $srcdir/configure conftestfile` |
|---|
| 640 | fi |
|---|
| 641 | if test "$*" != "X $srcdir/configure conftestfile" \ |
|---|
| 642 | && test "$*" != "X conftestfile $srcdir/configure"; then |
|---|
| 643 | |
|---|
| 644 | # If neither matched, then we have a broken ls. This can happen |
|---|
| 645 | # if, for instance, CONFIG_SHELL is bash and it inherits a |
|---|
| 646 | # broken ls alias from the environment. This has actually |
|---|
| 647 | # happened. Such a system could not be considered "sane". |
|---|
| 648 | { echo "configure: error: ls -t appears to fail. Make sure there is not a broken |
|---|
| 649 | alias in your environment" 1>&2; exit 1; } |
|---|
| 650 | fi |
|---|
| 651 | |
|---|
| 652 | test "$2" = conftestfile |
|---|
| 653 | ) |
|---|
| 654 | then |
|---|
| 655 | # Ok. |
|---|
| 656 | : |
|---|
| 657 | else |
|---|
| 658 | { echo "configure: error: newly created file is older than distributed files! |
|---|
| 659 | Check your system clock" 1>&2; exit 1; } |
|---|
| 660 | fi |
|---|
| 661 | rm -f conftest* |
|---|
| 662 | echo "$ac_t""yes" 1>&6 |
|---|
| 663 | if test "$program_transform_name" = s,x,x,; then |
|---|
| 664 | program_transform_name= |
|---|
| 665 | else |
|---|
| 666 | # Double any \ or $. echo might interpret backslashes. |
|---|
| 667 | cat <<\EOF_SED > conftestsed |
|---|
| 668 | s,\\,\\\\,g; s,\$,$$,g |
|---|
| 669 | EOF_SED |
|---|
| 670 | program_transform_name="`echo $program_transform_name|sed -f conftestsed`" |
|---|
| 671 | rm -f conftestsed |
|---|
| 672 | fi |
|---|
| 673 | test "$program_prefix" != NONE && |
|---|
| 674 | program_transform_name="s,^,${program_prefix},; $program_transform_name" |
|---|
| 675 | # Use a double $ so make ignores it. |
|---|
| 676 | test "$program_suffix" != NONE && |
|---|
| 677 | program_transform_name="s,\$\$,${program_suffix},; $program_transform_name" |
|---|
| 678 | |
|---|
| 679 | # sed with no file args requires a program. |
|---|
| 680 | test "$program_transform_name" = "" && program_transform_name="s,x,x," |
|---|
| 681 | |
|---|
| 682 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 |
|---|
| 683 | echo "configure:684: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
|---|
| 684 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` |
|---|
| 685 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then |
|---|
| 686 | echo $ac_n "(cached) $ac_c" 1>&6 |
|---|
| 687 | else |
|---|
| 688 | cat > conftestmake <<\EOF |
|---|
| 689 | all: |
|---|
| 690 | @echo 'ac_maketemp="${MAKE}"' |
|---|
| 691 | EOF |
|---|
| 692 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
|---|
| 693 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` |
|---|
| 694 | if test -n "$ac_maketemp"; then |
|---|
| 695 | eval ac_cv_prog_make_${ac_make}_set=yes |
|---|
| 696 | else |
|---|
| 697 | eval ac_cv_prog_make_${ac_make}_set=no |
|---|
| 698 | fi |
|---|
| 699 | rm -f conftestmake |
|---|
| 700 | fi |
|---|
| 701 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
|---|
| 702 | echo "$ac_t""yes" 1>&6 |
|---|
| 703 | SET_MAKE= |
|---|
| 704 | else |
|---|
| 705 | echo "$ac_t""no" 1>&6 |
|---|
| 706 | SET_MAKE="MAKE=${MAKE-make}" |
|---|
| 707 | fi |
|---|
| 708 | |
|---|
| 709 | |
|---|
| 710 | PACKAGE=GtkPlugin |
|---|
| 711 | |
|---|
| 712 | VERSION=0.0.1 |
|---|
| 713 | |
|---|
| 714 | if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then |
|---|
| 715 | { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; } |
|---|
| 716 | fi |
|---|
| 717 | cat >> confdefs.h <<EOF |
|---|
| 718 | #define PACKAGE "$PACKAGE" |
|---|
| 719 | EOF |
|---|
| 720 | |
|---|
| 721 | cat >> confdefs.h <<EOF |
|---|
| 722 | #define VERSION "$VERSION" |
|---|
| 723 | EOF |
|---|
| 724 | |
|---|
| 725 | |
|---|
| 726 | |
|---|
| 727 | missing_dir=`cd $ac_aux_dir && pwd` |
|---|
| 728 | echo $ac_n "checking for working aclocal""... $ac_c" 1>&6 |
|---|
| 729 | echo "configure:730: checking for working aclocal" >&5 |
|---|
| 730 | # Run test in a subshell; some versions of sh will print an error if |
|---|
| 731 | # an executable is not found, even if stderr is redirected. |
|---|
| 732 | # Redirect stdin to placate older versions of autoconf. Sigh. |
|---|
| 733 | if (aclocal --version) < /dev/null > /dev/null 2>&1; then |
|---|
| 734 | ACLOCAL=aclocal |
|---|
| 735 | echo "$ac_t""found" 1>&6 |
|---|
| 736 | else |
|---|
| 737 | ACLOCAL="$missing_dir/missing aclocal" |
|---|
| 738 | echo "$ac_t""missing" 1>&6 |
|---|
| 739 | fi |
|---|
| 740 | |
|---|
| 741 | echo $ac_n "checking for working autoconf""... $ac_c" 1>&6 |
|---|
| 742 | echo "configure:743: checking for working autoconf" >&5 |
|---|
| 743 | # Run test in a subshell; some versions of sh will print an error if |
|---|
| 744 | # an executable is not found, even if stderr is redirected. |
|---|
| 745 | # Redirect stdin to placate older versions of autoconf. Sigh. |
|---|
| 746 | if (autoconf --version) < /dev/null > /dev/null 2>&1; then |
|---|
| 747 | AUTOCONF=autoconf |
|---|
| 748 | echo "$ac_t""found" 1>&6 |
|---|
| 749 | else |
|---|
| 750 | AUTOCONF="$missing_dir/missing autoconf" |
|---|
| 751 | echo "$ac_t""missing" 1>&6 |
|---|
| 752 | fi |
|---|
| 753 | |
|---|
| 754 | echo $ac_n "checking for working automake""... $ac_c" 1>&6 |
|---|
| 755 | echo "configure:756: checking for working automake" >&5 |
|---|
| 756 | # Run test in a subshell; some versions of sh will print an error if |
|---|
| 757 | # an executable is not found, even if stderr is redirected. |
|---|
| 758 | # Redirect stdin to placate older versions of autoconf. Sigh. |
|---|
| 759 | if (automake --version) < /dev/null > /dev/null 2>&1; then |
|---|
| 760 | AUTOMAKE=automake |
|---|
| 761 | echo "$ac_t""found" 1>&6 |
|---|
| 762 | else |
|---|
| 763 | AUTOMAKE="$missing_dir/missing automake" |
|---|
| 764 | echo "$ac_t""missing" 1>&6 |
|---|
| 765 | fi |
|---|
| 766 | |
|---|
| 767 | echo $ac_n "checking for working autoheader""... $ac_c" 1>&6 |
|---|
| 768 | echo "configure:769: checking for working autoheader" >&5 |
|---|
| 769 | # Run test in a subshell; some versions of sh will print an error if |
|---|
| 770 | # an executable is not found, even if stderr is redirected. |
|---|
| 771 | # Redirect stdin to placate older versions of autoconf. Sigh. |
|---|
| 772 | if (autoheader --version) < /dev/null > /dev/null 2>&1; then |
|---|
| 773 | AUTOHEADER=autoheader |
|---|
| 774 | echo "$ac_t""found" 1>&6 |
|---|
| 775 | else |
|---|
| 776 | AUTOHEADER="$missing_dir/missing autoheader" |
|---|
| 777 | echo "$ac_t""missing" 1>&6 |
|---|
| 778 | fi |
|---|
| 779 | |
|---|
| 780 | echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6 |
|---|
| 781 | echo "configure:782: checking for working makeinfo" >&5 |
|---|
| 782 | # Run test in a subshell; some versions of sh will print an error if |
|---|
| 783 | # an executable is not found, even if stderr is redirected. |
|---|
| 784 | # Redirect stdin to placate older versions of autoconf. Sigh. |
|---|
| 785 | if (makeinfo --version) < /dev/null > /dev/null 2>&1; then |
|---|
| 786 | MAKEINFO=makeinfo |
|---|
| 787 | echo "$ac_t""found" 1>&6 |
|---|
| 788 | else |
|---|
| 789 | MAKEINFO="$missing_dir/missing makeinfo" |
|---|
| 790 | echo "$ac_t""missing" 1>&6 |
|---|
| 791 | fi |
|---|
| 792 | |
|---|
| 793 | |
|---|
| 794 | |
|---|
| 795 | echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6 |
|---|
| 796 | echo "configure:797: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
|---|
| 797 | # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. |
|---|
| 798 | if test "${enable_maintainer_mode+set}" = set; then |
|---|
| 799 | enableval="$enable_maintainer_mode" |
|---|
| 800 | USE_MAINTAINER_MODE=$enableval |
|---|
| 801 | else |
|---|
| 802 | USE_MAINTAINER_MODE=no |
|---|
| 803 | fi |
|---|
| 804 | |
|---|
| 805 | echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6 |
|---|
| 806 | |
|---|
| 807 | |
|---|
| 808 | if test $USE_MAINTAINER_MODE = yes; then |
|---|
| 809 | MAINTAINER_MODE_TRUE= |
|---|
| 810 | MAINTAINER_MODE_FALSE='#' |
|---|
| 811 | else |
|---|
| 812 | MAINTAINER_MODE_TRUE='#' |
|---|
| 813 | MAINTAINER_MODE_FALSE= |
|---|
| 814 | fi |
|---|
| 815 | MAINT=$MAINTAINER_MODE_TRUE |
|---|
| 816 | |
|---|
| 817 | |
|---|
| 818 | |
|---|
| 819 | # Extract the first word of "gcc", so it can be a program name with args. |
|---|
| 820 | set dummy gcc; ac_word=$2 |
|---|
| 821 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
|---|
| 822 | echo "configure:823: checking for $ac_word" >&5 |
|---|
| 823 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
|---|
| 824 | echo $ac_n "(cached) $ac_c" 1>&6 |
|---|
| 825 | else |
|---|
| 826 | if test -n "$CC"; then |
|---|
| 827 | ac_cv_prog_CC="$CC" # Let the user override the test. |
|---|
| 828 | else |
|---|
| 829 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
|---|
| 830 | ac_dummy="$PATH" |
|---|
| 831 | for ac_dir in $ac_dummy; do |
|---|
| 832 | test -z "$ac_dir" && ac_dir=. |
|---|
| 833 | if test -f $ac_dir/$ac_word; then |
|---|
| 834 | ac_cv_prog_CC="gcc" |
|---|
| 835 | break |
|---|
| 836 | fi |
|---|
| 837 | done |
|---|
| 838 | IFS="$ac_save_ifs" |
|---|
| 839 | fi |
|---|
| 840 | fi |
|---|
| 841 | CC="$ac_cv_prog_CC" |
|---|
| 842 | if test -n "$CC"; then |
|---|
| 843 | echo "$ac_t""$CC" 1>&6 |
|---|
| 844 | else |
|---|
| 845 | echo "$ac_t""no" 1>&6 |
|---|
| 846 | fi |
|---|
| 847 | |
|---|
| 848 | if test -z "$CC"; then |
|---|
| 849 | # Extract the first word of "cc", so it can be a program name with args. |
|---|
| 850 | set dummy cc; ac_word=$2 |
|---|
| 851 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
|---|
| 852 | echo "configure:853: checking for $ac_word" >&5 |
|---|
| 853 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
|---|
| 854 | echo $ac_n "(cached) $ac_c" 1>&6 |
|---|
| 855 | else |
|---|
| 856 | if test -n "$CC"; then |
|---|
| 857 | ac_cv_prog_CC="$CC" # Let the user override the test. |
|---|
| 858 | else |
|---|
| 859 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
|---|
| 860 | ac_prog_rejected=no |
|---|
| 861 | ac_dummy="$PATH" |
|---|
| 862 | for ac_dir in $ac_dummy; do |
|---|
| 863 | test -z "$ac_dir" && ac_dir=. |
|---|
| 864 | if test -f $ac_dir/$ac_word; then |
|---|
| 865 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then |
|---|
| 866 | ac_prog_rejected=yes |
|---|
| 867 | continue |
|---|
| 868 | fi |
|---|
| 869 | ac_cv_prog_CC="cc" |
|---|
| 870 | break |
|---|
| 871 | fi |
|---|
| 872 | done |
|---|
| 873 | IFS="$ac_save_ifs" |
|---|
| 874 | if test $ac_prog_rejected = yes; then |
|---|
| 875 | # We found a bogon in the path, so make sure we never use it. |
|---|
| 876 | set dummy $ac_cv_prog_CC |
|---|
| 877 | shift |
|---|
| 878 | if test $# -gt 0; then |
|---|
| 879 | # We chose a different compiler from the bogus one. |
|---|
| 880 | # However, it has the same basename, so the bogon will be chosen |
|---|
| 881 | # first if we set CC to just the basename; use the full file name. |
|---|
| 882 | shift |
|---|
| 883 | set dummy "$ac_dir/$ac_word" "$@" |
|---|
| 884 | shift |
|---|
| 885 | ac_cv_prog_CC="$@" |
|---|
| 886 | fi |
|---|
| 887 | fi |
|---|
| 888 | fi |
|---|
| 889 | fi |
|---|
| 890 | CC="$ac_cv_prog_CC" |
|---|
| 891 | if test -n "$CC"; then |
|---|
| 892 | echo "$ac_t""$CC" 1>&6 |
|---|
| 893 | else |
|---|
| 894 | echo "$ac_t""no" 1>&6 |
|---|
| 895 | fi |
|---|
| 896 | |
|---|
| 897 | if test -z "$CC"; then |
|---|
| 898 | case "`uname -s`" in |
|---|
| 899 | *win32* | *WIN32*) |
|---|
| 900 | # Extract the first word of "cl", so it can be a program name with args. |
|---|
| 901 | set dummy cl; ac_word=$2 |
|---|
| 902 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
|---|
| 903 | echo "configure:904: checking for $ac_word" >&5 |
|---|
| 904 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
|---|
| 905 | echo $ac_n "(cached) $ac_c" 1>&6 |
|---|
| 906 | else |
|---|
| 907 | if test -n "$CC"; then |
|---|
| 908 | ac_cv_prog_CC="$CC" # Let the user override the test. |
|---|
| 909 | else |
|---|
| 910 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
|---|
| 911 | ac_dummy="$PATH" |
|---|
| 912 | for ac_dir in $ac_dummy; do |
|---|
| 913 | test -z "$ac_dir" && ac_dir=. |
|---|
| 914 | if test -f $ac_dir/$ac_word; then |
|---|
| 915 | ac_cv_prog_CC="cl" |
|---|
| 916 | break |
|---|
| 917 | fi |
|---|
| 918 | done |
|---|
| 919 | IFS="$ac_save_ifs" |
|---|
| 920 | fi |
|---|
| 921 | fi |
|---|
| 922 | CC="$ac_cv_prog_CC" |
|---|
| 923 | if test -n "$CC"; then |
|---|
| 924 | echo "$ac_t""$CC" 1>&6 |
|---|
| 925 | else |
|---|
| 926 | echo "$ac_t""no" 1>&6 |
|---|
| 927 | fi |
|---|
| 928 | ;; |
|---|
| 929 | esac |
|---|
| 930 | fi |
|---|
| 931 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } |
|---|
| 932 | fi |
|---|
| 933 | |
|---|
| 934 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
|---|
| 935 | echo "configure:936: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
|---|
| 936 | |
|---|
| 937 | ac_ext=c |
|---|
| 938 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
|---|
| 939 | ac_cpp='$CPP $CPPFLAGS' |
|---|
| 940 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
|---|
| 941 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
|---|
| 942 | cross_compiling=$ac_cv_prog_cc_cross |
|---|
| 943 | |
|---|
| 944 | cat > conftest.$ac_ext << EOF |
|---|
| 945 | |
|---|
| 946 | #line 947 "configure" |
|---|
| 947 | #include "confdefs.h" |
|---|
| 948 | |
|---|
| 949 | main(){return(0);} |
|---|
| 950 | EOF |
|---|
| 951 | if { (eval echo configure:952: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
|---|
| 952 | ac_cv_prog_cc_works=yes |
|---|
| 953 | # If we can't run a trivial program, we are probably using a cross compiler. |
|---|
| 954 | if (./conftest; exit) 2>/dev/null; then |
|---|
| 955 | ac_cv_prog_cc_cross=no |
|---|
| 956 | else |
|---|
| 957 | ac_cv_prog_cc_cross=yes |
|---|
| 958 | fi |
|---|
| 959 | else |
|---|
| 960 | echo "configure: failed program was:" >&5 |
|---|
| 961 | cat conftest.$ac_ext >&5 |
|---|
| 962 | ac_cv_prog_cc_works=no |
|---|
| 963 | fi |
|---|
| 964 | rm -fr conftest* |
|---|
| 965 | ac_ext=c |
|---|
| 966 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
|---|
| 967 | ac_cpp='$CPP $CPPFLAGS' |
|---|
| 968 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
|---|
| 969 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
|---|
| 970 | cross_compiling=$ac_cv_prog_cc_cross |
|---|
| 971 | |
|---|
| 972 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 |
|---|
| 973 | if test $ac_cv_prog_cc_works = no; then |
|---|
| 974 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } |
|---|
| 975 | fi |
|---|
| 976 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 |
|---|
| 977 | echo "configure:978: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
|---|
| 978 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
|---|
| 979 | cross_compiling=$ac_cv_prog_cc_cross |
|---|
| 980 | |
|---|
| 981 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 |
|---|
| 982 | echo "configure:983: checking whether we are using GNU C" >&5 |
|---|
| 983 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
|---|
| 984 | echo $ac_n "(cached) $ac_c" 1>&6 |
|---|
| 985 | else |
|---|
| 986 | cat > conftest.c <<EOF |
|---|
| 987 | #ifdef __GNUC__ |
|---|
| 988 | yes; |
|---|
| 989 | #endif |
|---|
| 990 | EOF |
|---|
| 991 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:992: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
|---|
| 992 | ac_cv_prog_gcc=yes |
|---|
| 993 | else |
|---|
| 994 | ac_cv_prog_gcc=no |
|---|
| 995 | fi |
|---|
| 996 | fi |
|---|
| 997 | |
|---|
| 998 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 |
|---|
| 999 | |
|---|
| 1000 | if test $ac_cv_prog_gcc = yes; then |
|---|
| 1001 | GCC=yes |
|---|
| 1002 | else |
|---|
| 1003 | GCC= |
|---|
| 1004 | fi |
|---|
| 1005 | |
|---|
| 1006 | ac_test_CFLAGS="${CFLAGS+set}" |
|---|
| 1007 | ac_save_CFLAGS="$CFLAGS" |
|---|
| 1008 | CFLAGS= |
|---|
| 1009 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 |
|---|
| 1010 | echo "configure:1011: checking whether ${CC-cc} accepts -g" >&5 |
|---|
| 1011 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
|---|
| 1012 | echo $ac_n "(cached) $ac_c" 1>&6 |
|---|
| 1013 | else |
|---|
| 1014 | echo 'void f(){}' > conftest.c |
|---|
| 1015 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then |
|---|
| 1016 | ac_cv_prog_cc_g=yes |
|---|
| 1017 | else |
|---|
| 1018 | ac_cv_prog_cc_g=no |
|---|
| 1019 | fi |
|---|
| 1020 | rm -f conftest* |
|---|
| 1021 | |
|---|
| 1022 | fi |
|---|
| 1023 | |
|---|
| 1024 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 |
|---|
| 1025 | if test "$ac_test_CFLAGS" = set; then |
|---|
| 1026 | CFLAGS="$ac_save_CFLAGS" |
|---|
| 1027 | elif test $ac_cv_prog_cc_g = yes; then |
|---|
| 1028 | if test "$GCC" = yes; then |
|---|
| 1029 | CFLAGS="-g -O2" |
|---|
| 1030 | else |
|---|
| 1031 | CFLAGS="-g" |
|---|
| 1032 | fi |
|---|
| 1033 | else |
|---|
| 1034 | if test "$GCC" = yes; then |
|---|
| 1035 | CFLAGS="-O2" |
|---|
| 1036 | else |
|---|
| 1037 | CFLAGS= |
|---|
| 1038 | fi |
|---|
| 1039 | fi |
|---|
| 1040 | |
|---|
| 1041 | for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl |
|---|
| 1042 | do |
|---|
| 1043 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
|---|
| 1044 | set dummy $ac_prog; ac_word=$2 |
|---|
| 1045 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
|---|
| 1046 | echo "configure:1047: checking for $ac_word" >&5 |
|---|
| 1047 | if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then |
|---|
| 1048 | echo $ac_n "(cached) $ac_c" 1>&6 |
|---|
| 1049 | else |
|---|
| 1050 | if test -n "$CXX"; then |
|---|
| 1051 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
|---|
| 1052 | else |
|---|
| 1053 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
|---|
| 1054 | ac_dummy="$PATH" |
|---|
| 1055 | for ac_dir in $ac_dummy; do |
|---|
| 1056 | test -z "$ac_dir" && ac_dir=. |
|---|
| 1057 | if test -f $ac_dir/$ac_word; then |
|---|
| 1058 | ac_cv_prog_CXX="$ac_prog" |
|---|
| 1059 | break |
|---|
| 1060 | fi |
|---|
| 1061 | done |
|---|
| 1062 | IFS="$ac_save_ifs" |
|---|
| 1063 | fi |
|---|
| 1064 | fi |
|---|
| 1065 | CXX="$ac_cv_prog_CXX" |
|---|
| 1066 | if test -n "$CXX"; then |
|---|
| 1067 | echo "$ac_t""$CXX" 1>&6 |
|---|
| 1068 | else |
|---|
| 1069 | echo "$ac_t""no" 1>&6 |
|---|
| 1070 | fi |
|---|
| 1071 | |
|---|
| 1072 | test -n "$CXX" && break |
|---|
| 1073 | done |
|---|
| 1074 | test -n "$CXX" || CXX="gcc" |
|---|
| 1075 | |
|---|
| 1076 | |
|---|
| 1077 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
|---|
| 1078 | echo "configure:1079: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5 |
|---|
| 1079 | |
|---|
| 1080 | ac_ext=C |
|---|
| 1081 | # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
|---|
| 1082 | ac_cpp='$CXXCPP $CPPFLAGS' |
|---|
| 1083 | ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
|---|
| 1084 | ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
|---|
| 1085 | cross_compiling=$ac_cv_prog_cxx_cross |
|---|
| 1086 | |
|---|
| 1087 | cat > conftest.$ac_ext << EOF |
|---|
| 1088 | |
|---|
| 1089 | #line 1090 "configure" |
|---|
| 1090 | #include "confdefs.h" |
|---|
| 1091 | |
|---|
| 1092 | int main(){return(0);} |
|---|
| 1093 | EOF |
|---|
| 1094 | if { (eval echo configure:1095: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
|---|
| 1095 | ac_cv_prog_cxx_works=yes |
|---|
| 1096 | # If we can't run a trivial program, we are probably using a cross compiler. |
|---|
| 1097 | if (./conftest; exit) 2>/dev/null; then |
|---|
| 1098 | ac_cv_prog_cxx_cross=no |
|---|
| 1099 | else |
|---|
| 1100 | ac_cv_prog_cxx_cross=yes |
|---|
| 1101 | fi |
|---|
| 1102 | else |
|---|
| 1103 | echo "configure: failed program was:" >&5 |
|---|
| 1104 | cat conftest.$ac_ext >&5 |
|---|
| 1105 | ac_cv_prog_cxx_works=no |
|---|
| 1106 | fi |
|---|
| 1107 | rm -fr conftest* |
|---|
| 1108 | ac_ext=c |
|---|
| 1109 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
|---|
| 1110 | ac_cpp='$CPP $CPPFLAGS' |
|---|
| 1111 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
|---|
| 1112 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
|---|
| 1113 | cross_compiling=$ac_cv_prog_cc_cross |
|---|
| 1114 | |
|---|
| 1115 | echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6 |
|---|
| 1116 | if test $ac_cv_prog_cxx_works = no; then |
|---|
| 1117 | { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; } |
|---|
| 1118 | fi |
|---|
| 1119 | echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 |
|---|
| 1120 | echo "configure:1121: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5 |
|---|
| 1121 | echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6 |
|---|
| 1122 | cross_compiling=$ac_cv_prog_cxx_cross |
|---|
| 1123 | |
|---|
| 1124 | echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6 |
|---|
| 1125 | echo "configure:1126: checking whether we are using GNU C++" >&5 |
|---|
| 1126 | if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then |
|---|
| 1127 | echo $ac_n "(cached) $ac_c" 1>&6 |
|---|
| 1128 | else |
|---|
| 1129 | cat > conftest.C <<EOF |
|---|
| 1130 | #ifdef __GNUC__ |
|---|
| 1131 | yes; |
|---|
| 1132 | #endif |
|---|
| 1133 | EOF |
|---|
| 1134 | if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1135: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
|---|
| 1135 | ac_cv_prog_gxx=yes |
|---|
| 1136 | else |
|---|
| 1137 | ac_cv_prog_gxx=no |
|---|
| 1138 | fi |
|---|
| 1139 | fi |
|---|
| 1140 | |
|---|
| 1141 | echo "$ac_t""$ac_cv_prog_gxx" 1>&6 |
|---|
| 1142 | |
|---|
| 1143 | if test $ac_cv_prog_gxx = yes; then |
|---|
| 1144 | GXX=yes |
|---|
| 1145 | else |
|---|
| 1146 | GXX= |
|---|
| 1147 | fi |
|---|
| 1148 | |
|---|
| 1149 | ac_test_CXXFLAGS="${CXXFLAGS+set}" |
|---|
| 1150 | ac_save_CXXFLAGS="$CXXFLAGS" |
|---|
| 1151 | CXXFLAGS= |
|---|
| 1152 | echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6 |
|---|
| 1153 | echo "configure:1154: checking whether ${CXX-g++} accepts -g" >&5 |
|---|
| 1154 | if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then |
|---|
| 1155 | echo $ac_n "(cached) $ac_c" 1>&6 |
|---|
| 1156 | else |
|---|
| 1157 | echo 'void f(){}' > conftest.cc |
|---|
| 1158 | if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then |
|---|
| 1159 | ac_cv_prog_cxx_g=yes |
|---|
| 1160 | else |
|---|
| 1161 | ac_cv_prog_cxx_g=no |
|---|
| 1162 | fi |
|---|
| 1163 | rm -f conftest* |
|---|
| 1164 | |
|---|
| 1165 | fi |
|---|
| 1166 | |
|---|
| 1167 | echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6 |
|---|
| 1168 | if test "$ac_test_CXXFLAGS" = set; then |
|---|
| 1169 | CXXFLAGS="$ac_save_CXXFLAGS" |
|---|
| 1170 | elif test $ac_cv_prog_cxx_g = yes; then |
|---|
| 1171 | if test "$GXX" = yes; then |
|---|
| 1172 | CXXFLAGS="-g -O2" |
|---|
| 1173 | else |
|---|
| 1174 | CXXFLAGS="-g" |
|---|
| 1175 | fi |
|---|
| 1176 | else |
|---|
| 1177 | if test "$GXX" = yes; then |
|---|
| 1178 | CXXFLAGS="-O2" |
|---|
| 1179 | else |
|---|
| 1180 | CXXFLAGS= |
|---|
| 1181 | fi |
|---|
| 1182 | fi |
|---|
| 1183 | |
|---|
| 1184 | echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6 |
|---|
| 1185 | echo "configure:1186: checking for POSIXized ISC" >&5 |
|---|
| 1186 | if test -d /etc/conf/kconfig.d && |
|---|
| 1187 | grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1 |
|---|
| 1188 | then |
|---|
| 1189 | echo "$ac_t""yes" 1>&6 |
|---|
| 1190 | ISC=yes # If later tests want to check for ISC. |
|---|
| 1191 | cat >> confdefs.h <<\EOF |
|---|
| 1192 | #define _POSIX_SOURCE 1 |
|---|
| 1193 | EOF |
|---|
| 1194 | |
|---|
| 1195 | if test "$GCC" = yes; then |
|---|
| 1196 | CC="$CC -posix" |
|---|
| 1197 | else |
|---|
| 1198 | CC="$CC -Xp" |
|---|
| 1199 | fi |
|---|
| 1200 | else |
|---|
| 1201 | echo "$ac_t""no" 1>&6 |
|---|
| 1202 | ISC= |
|---|
| 1203 | fi |
|---|
| 1204 | |
|---|
| 1205 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 |
|---|
| 1206 | echo "configure:1207: checking how to run the C preprocessor" >&5 |
|---|
| 1207 | # On Suns, sometimes $CPP names a directory. |
|---|
| 1208 | if test -n "$CPP" && test -d "$CPP"; then |
|---|
| 1209 | CPP= |
|---|
| 1210 | fi |
|---|
| 1211 | if test -z "$CPP"; then |
|---|
| 1212 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then |
|---|
|
|---|