Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
michael@0 | 1 | #! /bin/sh |
michael@0 | 2 | |
michael@0 | 3 | # Guess values for system-dependent variables and create Makefiles. |
michael@0 | 4 | # Generated automatically using autoconf version 2.13 |
michael@0 | 5 | # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. |
michael@0 | 6 | # |
michael@0 | 7 | # This configure script is free software; the Free Software Foundation |
michael@0 | 8 | # gives unlimited permission to copy, distribute and modify it. |
michael@0 | 9 | |
michael@0 | 10 | # Defaults: |
michael@0 | 11 | ac_help= |
michael@0 | 12 | ac_default_prefix=/usr/local |
michael@0 | 13 | # Any additions from configure.in: |
michael@0 | 14 | ac_help="$ac_help |
michael@0 | 15 | --with-nspr[=path] specify location of NSPR" |
michael@0 | 16 | ac_help="$ac_help |
michael@0 | 17 | --with-nss-dist[=path] specify path to NSS dist directory" |
michael@0 | 18 | ac_help="$ac_help |
michael@0 | 19 | --with-nss-hdrs[=path] or, specify path to installed NSS headers" |
michael@0 | 20 | ac_help="$ac_help |
michael@0 | 21 | --with-rsa-hdrs[=path] if not using NSS, specify path to RSA headers" |
michael@0 | 22 | ac_help="$ac_help |
michael@0 | 23 | --disable-debug default is enabled" |
michael@0 | 24 | |
michael@0 | 25 | # Initialize some variables set by options. |
michael@0 | 26 | # The variables have the same names as the options, with |
michael@0 | 27 | # dashes changed to underlines. |
michael@0 | 28 | build=NONE |
michael@0 | 29 | cache_file=./config.cache |
michael@0 | 30 | exec_prefix=NONE |
michael@0 | 31 | host=NONE |
michael@0 | 32 | no_create= |
michael@0 | 33 | nonopt=NONE |
michael@0 | 34 | no_recursion= |
michael@0 | 35 | prefix=NONE |
michael@0 | 36 | program_prefix=NONE |
michael@0 | 37 | program_suffix=NONE |
michael@0 | 38 | program_transform_name=s,x,x, |
michael@0 | 39 | silent= |
michael@0 | 40 | site= |
michael@0 | 41 | srcdir= |
michael@0 | 42 | target=NONE |
michael@0 | 43 | verbose= |
michael@0 | 44 | x_includes=NONE |
michael@0 | 45 | x_libraries=NONE |
michael@0 | 46 | bindir='${exec_prefix}/bin' |
michael@0 | 47 | sbindir='${exec_prefix}/sbin' |
michael@0 | 48 | libexecdir='${exec_prefix}/libexec' |
michael@0 | 49 | datadir='${prefix}/share' |
michael@0 | 50 | sysconfdir='${prefix}/etc' |
michael@0 | 51 | sharedstatedir='${prefix}/com' |
michael@0 | 52 | localstatedir='${prefix}/var' |
michael@0 | 53 | libdir='${exec_prefix}/lib' |
michael@0 | 54 | includedir='${prefix}/include' |
michael@0 | 55 | oldincludedir='/usr/include' |
michael@0 | 56 | infodir='${prefix}/info' |
michael@0 | 57 | mandir='${prefix}/man' |
michael@0 | 58 | |
michael@0 | 59 | # Initialize some other variables. |
michael@0 | 60 | subdirs= |
michael@0 | 61 | MFLAGS= MAKEFLAGS= |
michael@0 | 62 | SHELL=${CONFIG_SHELL-/bin/sh} |
michael@0 | 63 | # Maximum number of lines to put in a shell here document. |
michael@0 | 64 | ac_max_here_lines=12 |
michael@0 | 65 | |
michael@0 | 66 | ac_prev= |
michael@0 | 67 | for ac_option |
michael@0 | 68 | do |
michael@0 | 69 | |
michael@0 | 70 | # If the previous option needs an argument, assign it. |
michael@0 | 71 | if test -n "$ac_prev"; then |
michael@0 | 72 | eval "$ac_prev=\$ac_option" |
michael@0 | 73 | ac_prev= |
michael@0 | 74 | continue |
michael@0 | 75 | fi |
michael@0 | 76 | |
michael@0 | 77 | case "$ac_option" in |
michael@0 | 78 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; |
michael@0 | 79 | *) ac_optarg= ;; |
michael@0 | 80 | esac |
michael@0 | 81 | |
michael@0 | 82 | # Accept the important Cygnus configure options, so we can diagnose typos. |
michael@0 | 83 | |
michael@0 | 84 | case "$ac_option" in |
michael@0 | 85 | |
michael@0 | 86 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
michael@0 | 87 | ac_prev=bindir ;; |
michael@0 | 88 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
michael@0 | 89 | bindir="$ac_optarg" ;; |
michael@0 | 90 | |
michael@0 | 91 | -build | --build | --buil | --bui | --bu) |
michael@0 | 92 | ac_prev=build ;; |
michael@0 | 93 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
michael@0 | 94 | build="$ac_optarg" ;; |
michael@0 | 95 | |
michael@0 | 96 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
michael@0 | 97 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
michael@0 | 98 | ac_prev=cache_file ;; |
michael@0 | 99 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
michael@0 | 100 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
michael@0 | 101 | cache_file="$ac_optarg" ;; |
michael@0 | 102 | |
michael@0 | 103 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
michael@0 | 104 | ac_prev=datadir ;; |
michael@0 | 105 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
michael@0 | 106 | | --da=*) |
michael@0 | 107 | datadir="$ac_optarg" ;; |
michael@0 | 108 | |
michael@0 | 109 | -disable-* | --disable-*) |
michael@0 | 110 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` |
michael@0 | 111 | # Reject names that are not valid shell variable names. |
michael@0 | 112 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then |
michael@0 | 113 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } |
michael@0 | 114 | fi |
michael@0 | 115 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` |
michael@0 | 116 | eval "enable_${ac_feature}=no" ;; |
michael@0 | 117 | |
michael@0 | 118 | -enable-* | --enable-*) |
michael@0 | 119 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` |
michael@0 | 120 | # Reject names that are not valid shell variable names. |
michael@0 | 121 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then |
michael@0 | 122 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } |
michael@0 | 123 | fi |
michael@0 | 124 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` |
michael@0 | 125 | case "$ac_option" in |
michael@0 | 126 | *=*) ;; |
michael@0 | 127 | *) ac_optarg=yes ;; |
michael@0 | 128 | esac |
michael@0 | 129 | eval "enable_${ac_feature}='$ac_optarg'" ;; |
michael@0 | 130 | |
michael@0 | 131 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
michael@0 | 132 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
michael@0 | 133 | | --exec | --exe | --ex) |
michael@0 | 134 | ac_prev=exec_prefix ;; |
michael@0 | 135 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
michael@0 | 136 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
michael@0 | 137 | | --exec=* | --exe=* | --ex=*) |
michael@0 | 138 | exec_prefix="$ac_optarg" ;; |
michael@0 | 139 | |
michael@0 | 140 | -gas | --gas | --ga | --g) |
michael@0 | 141 | # Obsolete; use --with-gas. |
michael@0 | 142 | with_gas=yes ;; |
michael@0 | 143 | |
michael@0 | 144 | -help | --help | --hel | --he) |
michael@0 | 145 | # Omit some internal or obsolete options to make the list less imposing. |
michael@0 | 146 | # This message is too long to be a string in the A/UX 3.1 sh. |
michael@0 | 147 | cat << EOF |
michael@0 | 148 | Usage: configure [options] [host] |
michael@0 | 149 | Options: [defaults in brackets after descriptions] |
michael@0 | 150 | Configuration: |
michael@0 | 151 | --cache-file=FILE cache test results in FILE |
michael@0 | 152 | --help print this message |
michael@0 | 153 | --no-create do not create output files |
michael@0 | 154 | --quiet, --silent do not print \`checking...' messages |
michael@0 | 155 | --version print the version of autoconf that created configure |
michael@0 | 156 | Directory and file names: |
michael@0 | 157 | --prefix=PREFIX install architecture-independent files in PREFIX |
michael@0 | 158 | [$ac_default_prefix] |
michael@0 | 159 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
michael@0 | 160 | [same as prefix] |
michael@0 | 161 | --bindir=DIR user executables in DIR [EPREFIX/bin] |
michael@0 | 162 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] |
michael@0 | 163 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec] |
michael@0 | 164 | --datadir=DIR read-only architecture-independent data in DIR |
michael@0 | 165 | [PREFIX/share] |
michael@0 | 166 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] |
michael@0 | 167 | --sharedstatedir=DIR modifiable architecture-independent data in DIR |
michael@0 | 168 | [PREFIX/com] |
michael@0 | 169 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] |
michael@0 | 170 | --libdir=DIR object code libraries in DIR [EPREFIX/lib] |
michael@0 | 171 | --includedir=DIR C header files in DIR [PREFIX/include] |
michael@0 | 172 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] |
michael@0 | 173 | --infodir=DIR info documentation in DIR [PREFIX/info] |
michael@0 | 174 | --mandir=DIR man documentation in DIR [PREFIX/man] |
michael@0 | 175 | --srcdir=DIR find the sources in DIR [configure dir or ..] |
michael@0 | 176 | --program-prefix=PREFIX prepend PREFIX to installed program names |
michael@0 | 177 | --program-suffix=SUFFIX append SUFFIX to installed program names |
michael@0 | 178 | --program-transform-name=PROGRAM |
michael@0 | 179 | run sed PROGRAM on installed program names |
michael@0 | 180 | EOF |
michael@0 | 181 | cat << EOF |
michael@0 | 182 | Host type: |
michael@0 | 183 | --build=BUILD configure for building on BUILD [BUILD=HOST] |
michael@0 | 184 | --host=HOST configure for HOST [guessed] |
michael@0 | 185 | --target=TARGET configure for TARGET [TARGET=HOST] |
michael@0 | 186 | Features and packages: |
michael@0 | 187 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
michael@0 | 188 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
michael@0 | 189 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
michael@0 | 190 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
michael@0 | 191 | --x-includes=DIR X include files are in DIR |
michael@0 | 192 | --x-libraries=DIR X library files are in DIR |
michael@0 | 193 | EOF |
michael@0 | 194 | if test -n "$ac_help"; then |
michael@0 | 195 | echo "--enable and --with options recognized:$ac_help" |
michael@0 | 196 | fi |
michael@0 | 197 | exit 0 ;; |
michael@0 | 198 | |
michael@0 | 199 | -host | --host | --hos | --ho) |
michael@0 | 200 | ac_prev=host ;; |
michael@0 | 201 | -host=* | --host=* | --hos=* | --ho=*) |
michael@0 | 202 | host="$ac_optarg" ;; |
michael@0 | 203 | |
michael@0 | 204 | -includedir | --includedir | --includedi | --included | --include \ |
michael@0 | 205 | | --includ | --inclu | --incl | --inc) |
michael@0 | 206 | ac_prev=includedir ;; |
michael@0 | 207 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
michael@0 | 208 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
michael@0 | 209 | includedir="$ac_optarg" ;; |
michael@0 | 210 | |
michael@0 | 211 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
michael@0 | 212 | ac_prev=infodir ;; |
michael@0 | 213 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
michael@0 | 214 | infodir="$ac_optarg" ;; |
michael@0 | 215 | |
michael@0 | 216 | -libdir | --libdir | --libdi | --libd) |
michael@0 | 217 | ac_prev=libdir ;; |
michael@0 | 218 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
michael@0 | 219 | libdir="$ac_optarg" ;; |
michael@0 | 220 | |
michael@0 | 221 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
michael@0 | 222 | | --libexe | --libex | --libe) |
michael@0 | 223 | ac_prev=libexecdir ;; |
michael@0 | 224 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
michael@0 | 225 | | --libexe=* | --libex=* | --libe=*) |
michael@0 | 226 | libexecdir="$ac_optarg" ;; |
michael@0 | 227 | |
michael@0 | 228 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
michael@0 | 229 | | --localstate | --localstat | --localsta | --localst \ |
michael@0 | 230 | | --locals | --local | --loca | --loc | --lo) |
michael@0 | 231 | ac_prev=localstatedir ;; |
michael@0 | 232 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
michael@0 | 233 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
michael@0 | 234 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
michael@0 | 235 | localstatedir="$ac_optarg" ;; |
michael@0 | 236 | |
michael@0 | 237 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
michael@0 | 238 | ac_prev=mandir ;; |
michael@0 | 239 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
michael@0 | 240 | mandir="$ac_optarg" ;; |
michael@0 | 241 | |
michael@0 | 242 | -nfp | --nfp | --nf) |
michael@0 | 243 | # Obsolete; use --without-fp. |
michael@0 | 244 | with_fp=no ;; |
michael@0 | 245 | |
michael@0 | 246 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
michael@0 | 247 | | --no-cr | --no-c) |
michael@0 | 248 | no_create=yes ;; |
michael@0 | 249 | |
michael@0 | 250 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
michael@0 | 251 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
michael@0 | 252 | no_recursion=yes ;; |
michael@0 | 253 | |
michael@0 | 254 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
michael@0 | 255 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
michael@0 | 256 | | --oldin | --oldi | --old | --ol | --o) |
michael@0 | 257 | ac_prev=oldincludedir ;; |
michael@0 | 258 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
michael@0 | 259 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
michael@0 | 260 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
michael@0 | 261 | oldincludedir="$ac_optarg" ;; |
michael@0 | 262 | |
michael@0 | 263 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
michael@0 | 264 | ac_prev=prefix ;; |
michael@0 | 265 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
michael@0 | 266 | prefix="$ac_optarg" ;; |
michael@0 | 267 | |
michael@0 | 268 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
michael@0 | 269 | | --program-pre | --program-pr | --program-p) |
michael@0 | 270 | ac_prev=program_prefix ;; |
michael@0 | 271 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
michael@0 | 272 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
michael@0 | 273 | program_prefix="$ac_optarg" ;; |
michael@0 | 274 | |
michael@0 | 275 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
michael@0 | 276 | | --program-suf | --program-su | --program-s) |
michael@0 | 277 | ac_prev=program_suffix ;; |
michael@0 | 278 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
michael@0 | 279 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
michael@0 | 280 | program_suffix="$ac_optarg" ;; |
michael@0 | 281 | |
michael@0 | 282 | -program-transform-name | --program-transform-name \ |
michael@0 | 283 | | --program-transform-nam | --program-transform-na \ |
michael@0 | 284 | | --program-transform-n | --program-transform- \ |
michael@0 | 285 | | --program-transform | --program-transfor \ |
michael@0 | 286 | | --program-transfo | --program-transf \ |
michael@0 | 287 | | --program-trans | --program-tran \ |
michael@0 | 288 | | --progr-tra | --program-tr | --program-t) |
michael@0 | 289 | ac_prev=program_transform_name ;; |
michael@0 | 290 | -program-transform-name=* | --program-transform-name=* \ |
michael@0 | 291 | | --program-transform-nam=* | --program-transform-na=* \ |
michael@0 | 292 | | --program-transform-n=* | --program-transform-=* \ |
michael@0 | 293 | | --program-transform=* | --program-transfor=* \ |
michael@0 | 294 | | --program-transfo=* | --program-transf=* \ |
michael@0 | 295 | | --program-trans=* | --program-tran=* \ |
michael@0 | 296 | | --progr-tra=* | --program-tr=* | --program-t=*) |
michael@0 | 297 | program_transform_name="$ac_optarg" ;; |
michael@0 | 298 | |
michael@0 | 299 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
michael@0 | 300 | | -silent | --silent | --silen | --sile | --sil) |
michael@0 | 301 | silent=yes ;; |
michael@0 | 302 | |
michael@0 | 303 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
michael@0 | 304 | ac_prev=sbindir ;; |
michael@0 | 305 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
michael@0 | 306 | | --sbi=* | --sb=*) |
michael@0 | 307 | sbindir="$ac_optarg" ;; |
michael@0 | 308 | |
michael@0 | 309 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
michael@0 | 310 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
michael@0 | 311 | | --sharedst | --shareds | --shared | --share | --shar \ |
michael@0 | 312 | | --sha | --sh) |
michael@0 | 313 | ac_prev=sharedstatedir ;; |
michael@0 | 314 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
michael@0 | 315 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
michael@0 | 316 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
michael@0 | 317 | | --sha=* | --sh=*) |
michael@0 | 318 | sharedstatedir="$ac_optarg" ;; |
michael@0 | 319 | |
michael@0 | 320 | -site | --site | --sit) |
michael@0 | 321 | ac_prev=site ;; |
michael@0 | 322 | -site=* | --site=* | --sit=*) |
michael@0 | 323 | site="$ac_optarg" ;; |
michael@0 | 324 | |
michael@0 | 325 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
michael@0 | 326 | ac_prev=srcdir ;; |
michael@0 | 327 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
michael@0 | 328 | srcdir="$ac_optarg" ;; |
michael@0 | 329 | |
michael@0 | 330 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
michael@0 | 331 | | --syscon | --sysco | --sysc | --sys | --sy) |
michael@0 | 332 | ac_prev=sysconfdir ;; |
michael@0 | 333 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
michael@0 | 334 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
michael@0 | 335 | sysconfdir="$ac_optarg" ;; |
michael@0 | 336 | |
michael@0 | 337 | -target | --target | --targe | --targ | --tar | --ta | --t) |
michael@0 | 338 | ac_prev=target ;; |
michael@0 | 339 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
michael@0 | 340 | target="$ac_optarg" ;; |
michael@0 | 341 | |
michael@0 | 342 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
michael@0 | 343 | verbose=yes ;; |
michael@0 | 344 | |
michael@0 | 345 | -version | --version | --versio | --versi | --vers) |
michael@0 | 346 | echo "configure generated by autoconf version 2.13" |
michael@0 | 347 | exit 0 ;; |
michael@0 | 348 | |
michael@0 | 349 | -with-* | --with-*) |
michael@0 | 350 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` |
michael@0 | 351 | # Reject names that are not valid shell variable names. |
michael@0 | 352 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then |
michael@0 | 353 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } |
michael@0 | 354 | fi |
michael@0 | 355 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
michael@0 | 356 | case "$ac_option" in |
michael@0 | 357 | *=*) ;; |
michael@0 | 358 | *) ac_optarg=yes ;; |
michael@0 | 359 | esac |
michael@0 | 360 | eval "with_${ac_package}='$ac_optarg'" ;; |
michael@0 | 361 | |
michael@0 | 362 | -without-* | --without-*) |
michael@0 | 363 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` |
michael@0 | 364 | # Reject names that are not valid shell variable names. |
michael@0 | 365 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then |
michael@0 | 366 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } |
michael@0 | 367 | fi |
michael@0 | 368 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
michael@0 | 369 | eval "with_${ac_package}=no" ;; |
michael@0 | 370 | |
michael@0 | 371 | --x) |
michael@0 | 372 | # Obsolete; use --with-x. |
michael@0 | 373 | with_x=yes ;; |
michael@0 | 374 | |
michael@0 | 375 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
michael@0 | 376 | | --x-incl | --x-inc | --x-in | --x-i) |
michael@0 | 377 | ac_prev=x_includes ;; |
michael@0 | 378 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
michael@0 | 379 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
michael@0 | 380 | x_includes="$ac_optarg" ;; |
michael@0 | 381 | |
michael@0 | 382 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
michael@0 | 383 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
michael@0 | 384 | ac_prev=x_libraries ;; |
michael@0 | 385 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
michael@0 | 386 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
michael@0 | 387 | x_libraries="$ac_optarg" ;; |
michael@0 | 388 | |
michael@0 | 389 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } |
michael@0 | 390 | ;; |
michael@0 | 391 | |
michael@0 | 392 | *) |
michael@0 | 393 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then |
michael@0 | 394 | echo "configure: warning: $ac_option: invalid host type" 1>&2 |
michael@0 | 395 | fi |
michael@0 | 396 | if test "x$nonopt" != xNONE; then |
michael@0 | 397 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } |
michael@0 | 398 | fi |
michael@0 | 399 | nonopt="$ac_option" |
michael@0 | 400 | ;; |
michael@0 | 401 | |
michael@0 | 402 | esac |
michael@0 | 403 | done |
michael@0 | 404 | |
michael@0 | 405 | if test -n "$ac_prev"; then |
michael@0 | 406 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } |
michael@0 | 407 | fi |
michael@0 | 408 | |
michael@0 | 409 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
michael@0 | 410 | |
michael@0 | 411 | # File descriptor usage: |
michael@0 | 412 | # 0 standard input |
michael@0 | 413 | # 1 file creation |
michael@0 | 414 | # 2 errors and warnings |
michael@0 | 415 | # 3 some systems may open it to /dev/tty |
michael@0 | 416 | # 4 used on the Kubota Titan |
michael@0 | 417 | # 6 checking for... messages and results |
michael@0 | 418 | # 5 compiler messages saved in config.log |
michael@0 | 419 | if test "$silent" = yes; then |
michael@0 | 420 | exec 6>/dev/null |
michael@0 | 421 | else |
michael@0 | 422 | exec 6>&1 |
michael@0 | 423 | fi |
michael@0 | 424 | exec 5>./config.log |
michael@0 | 425 | |
michael@0 | 426 | echo "\ |
michael@0 | 427 | This file contains any messages produced by compilers while |
michael@0 | 428 | running configure, to aid debugging if configure makes a mistake. |
michael@0 | 429 | " 1>&5 |
michael@0 | 430 | |
michael@0 | 431 | # Strip out --no-create and --no-recursion so they do not pile up. |
michael@0 | 432 | # Also quote any args containing shell metacharacters. |
michael@0 | 433 | ac_configure_args= |
michael@0 | 434 | for ac_arg |
michael@0 | 435 | do |
michael@0 | 436 | case "$ac_arg" in |
michael@0 | 437 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
michael@0 | 438 | | --no-cr | --no-c) ;; |
michael@0 | 439 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
michael@0 | 440 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; |
michael@0 | 441 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) |
michael@0 | 442 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
michael@0 | 443 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; |
michael@0 | 444 | esac |
michael@0 | 445 | done |
michael@0 | 446 | |
michael@0 | 447 | # NLS nuisances. |
michael@0 | 448 | # Only set these to C if already set. These must not be set unconditionally |
michael@0 | 449 | # because not all systems understand e.g. LANG=C (notably SCO). |
michael@0 | 450 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! |
michael@0 | 451 | # Non-C LC_CTYPE values break the ctype check. |
michael@0 | 452 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi |
michael@0 | 453 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi |
michael@0 | 454 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi |
michael@0 | 455 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi |
michael@0 | 456 | |
michael@0 | 457 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
michael@0 | 458 | rm -rf conftest* confdefs.h |
michael@0 | 459 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
michael@0 | 460 | echo > confdefs.h |
michael@0 | 461 | |
michael@0 | 462 | # A filename unique to this package, relative to the directory that |
michael@0 | 463 | # configure is in, which we can look for to find out if srcdir is correct. |
michael@0 | 464 | ac_unique_file=trivial.c |
michael@0 | 465 | |
michael@0 | 466 | # Find the source files, if location was not specified. |
michael@0 | 467 | if test -z "$srcdir"; then |
michael@0 | 468 | ac_srcdir_defaulted=yes |
michael@0 | 469 | # Try the directory containing this script, then its parent. |
michael@0 | 470 | ac_prog=$0 |
michael@0 | 471 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` |
michael@0 | 472 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. |
michael@0 | 473 | srcdir=$ac_confdir |
michael@0 | 474 | if test ! -r $srcdir/$ac_unique_file; then |
michael@0 | 475 | srcdir=.. |
michael@0 | 476 | fi |
michael@0 | 477 | else |
michael@0 | 478 | ac_srcdir_defaulted=no |
michael@0 | 479 | fi |
michael@0 | 480 | if test ! -r $srcdir/$ac_unique_file; then |
michael@0 | 481 | if test "$ac_srcdir_defaulted" = yes; then |
michael@0 | 482 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } |
michael@0 | 483 | else |
michael@0 | 484 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } |
michael@0 | 485 | fi |
michael@0 | 486 | fi |
michael@0 | 487 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` |
michael@0 | 488 | |
michael@0 | 489 | # Prefer explicitly selected file to automatically selected ones. |
michael@0 | 490 | if test -z "$CONFIG_SITE"; then |
michael@0 | 491 | if test "x$prefix" != xNONE; then |
michael@0 | 492 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
michael@0 | 493 | else |
michael@0 | 494 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
michael@0 | 495 | fi |
michael@0 | 496 | fi |
michael@0 | 497 | for ac_site_file in $CONFIG_SITE; do |
michael@0 | 498 | if test -r "$ac_site_file"; then |
michael@0 | 499 | echo "loading site script $ac_site_file" |
michael@0 | 500 | . "$ac_site_file" |
michael@0 | 501 | fi |
michael@0 | 502 | done |
michael@0 | 503 | |
michael@0 | 504 | if test -r "$cache_file"; then |
michael@0 | 505 | echo "loading cache $cache_file" |
michael@0 | 506 | . $cache_file |
michael@0 | 507 | else |
michael@0 | 508 | echo "creating cache $cache_file" |
michael@0 | 509 | > $cache_file |
michael@0 | 510 | fi |
michael@0 | 511 | |
michael@0 | 512 | ac_ext=c |
michael@0 | 513 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
michael@0 | 514 | ac_cpp='$CPP $CPPFLAGS' |
michael@0 | 515 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
michael@0 | 516 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
michael@0 | 517 | cross_compiling=$ac_cv_prog_cc_cross |
michael@0 | 518 | |
michael@0 | 519 | ac_exeext= |
michael@0 | 520 | ac_objext=o |
michael@0 | 521 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then |
michael@0 | 522 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. |
michael@0 | 523 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then |
michael@0 | 524 | ac_n= ac_c=' |
michael@0 | 525 | ' ac_t=' ' |
michael@0 | 526 | else |
michael@0 | 527 | ac_n=-n ac_c= ac_t= |
michael@0 | 528 | fi |
michael@0 | 529 | else |
michael@0 | 530 | ac_n= ac_c='\c' ac_t= |
michael@0 | 531 | fi |
michael@0 | 532 | |
michael@0 | 533 | |
michael@0 | 534 | |
michael@0 | 535 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 |
michael@0 | 536 | echo "configure:537: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
michael@0 | 537 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` |
michael@0 | 538 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then |
michael@0 | 539 | echo $ac_n "(cached) $ac_c" 1>&6 |
michael@0 | 540 | else |
michael@0 | 541 | cat > conftestmake <<\EOF |
michael@0 | 542 | all: |
michael@0 | 543 | @echo 'ac_maketemp="${MAKE}"' |
michael@0 | 544 | EOF |
michael@0 | 545 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
michael@0 | 546 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` |
michael@0 | 547 | if test -n "$ac_maketemp"; then |
michael@0 | 548 | eval ac_cv_prog_make_${ac_make}_set=yes |
michael@0 | 549 | else |
michael@0 | 550 | eval ac_cv_prog_make_${ac_make}_set=no |
michael@0 | 551 | fi |
michael@0 | 552 | rm -f conftestmake |
michael@0 | 553 | fi |
michael@0 | 554 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
michael@0 | 555 | echo "$ac_t""yes" 1>&6 |
michael@0 | 556 | SET_MAKE= |
michael@0 | 557 | else |
michael@0 | 558 | echo "$ac_t""no" 1>&6 |
michael@0 | 559 | SET_MAKE="MAKE=${MAKE-make}" |
michael@0 | 560 | fi |
michael@0 | 561 | |
michael@0 | 562 | |
michael@0 | 563 | # Check whether --with-nspr or --without-nspr was given. |
michael@0 | 564 | if test "${with_nspr+set}" = set; then |
michael@0 | 565 | withval="$with_nspr" |
michael@0 | 566 | case "$withval" in |
michael@0 | 567 | no) |
michael@0 | 568 | { echo "configure: error: NSPR is required" 1>&2; exit 1; };; |
michael@0 | 569 | yes) |
michael@0 | 570 | NSPR_INCLUDE="$includedir" |
michael@0 | 571 | NSPR_LIBPATH="$libdir" |
michael@0 | 572 | ;; |
michael@0 | 573 | *) |
michael@0 | 574 | NSPR_INCLUDE="$withval/include" |
michael@0 | 575 | NSPR_LIBPATH="$withval/lib" |
michael@0 | 576 | ;; |
michael@0 | 577 | esac |
michael@0 | 578 | else |
michael@0 | 579 | NSPR_INCLUDE="$includedir" |
michael@0 | 580 | NSPR_LIBPATH="$libdir" |
michael@0 | 581 | |
michael@0 | 582 | fi |
michael@0 | 583 | |
michael@0 | 584 | |
michael@0 | 585 | NSPR_CFLAGS="-I$NSPR_INCLUDE" |
michael@0 | 586 | NSPR_LDFLAGS="-L$NSPR_LIBPATH -lnspr4 -lplc4 -lplds4" |
michael@0 | 587 | |
michael@0 | 588 | |
michael@0 | 589 | # Check whether --with-nss-dist or --without-nss-dist was given. |
michael@0 | 590 | if test "${with_nss_dist+set}" = set; then |
michael@0 | 591 | withval="$with_nss_dist" |
michael@0 | 592 | case "$withval" in |
michael@0 | 593 | no) |
michael@0 | 594 | NSS_CFLAGS="" |
michael@0 | 595 | nss="0" |
michael@0 | 596 | ;; |
michael@0 | 597 | yes) |
michael@0 | 598 | { echo "configure: error: You have to specify a path for --with-nss-dist" 1>&2; exit 1; } |
michael@0 | 599 | ;; |
michael@0 | 600 | *) |
michael@0 | 601 | NSS_CFLAGS="-I$withval/private/security -I$withval/public/security" |
michael@0 | 602 | nss="1" |
michael@0 | 603 | ;; |
michael@0 | 604 | esac |
michael@0 | 605 | fi |
michael@0 | 606 | |
michael@0 | 607 | |
michael@0 | 608 | # Check whether --with-nss-hdrs or --without-nss-hdrs was given. |
michael@0 | 609 | if test "${with_nss_hdrs+set}" = set; then |
michael@0 | 610 | withval="$with_nss_hdrs" |
michael@0 | 611 | if test "x$nss" != "x"; then |
michael@0 | 612 | { echo "configure: error: Only specify --with-nss-hdrs or --with-nss-dist" 1>&2; exit 1; } |
michael@0 | 613 | fi |
michael@0 | 614 | case "$withval" in |
michael@0 | 615 | no) |
michael@0 | 616 | NSS_CFLAGS="" |
michael@0 | 617 | nss="0" |
michael@0 | 618 | ;; |
michael@0 | 619 | yes) |
michael@0 | 620 | NSS_CFLAGS="-I$includedir" |
michael@0 | 621 | nss="1" |
michael@0 | 622 | ;; |
michael@0 | 623 | *) |
michael@0 | 624 | NSS_CFLAGS="-I$withval" |
michael@0 | 625 | nss="1" |
michael@0 | 626 | ;; |
michael@0 | 627 | esac |
michael@0 | 628 | fi |
michael@0 | 629 | |
michael@0 | 630 | |
michael@0 | 631 | # Check whether --with-rsa-hdrs or --without-rsa-hdrs was given. |
michael@0 | 632 | if test "${with_rsa_hdrs+set}" = set; then |
michael@0 | 633 | withval="$with_rsa_hdrs" |
michael@0 | 634 | if test "x$nss" != "x"; then |
michael@0 | 635 | { echo "configure: error: Only specify --with-nss-{hdrs" 1>&2; exit 1; } |
michael@0 | 636 | fi |
michael@0 | 637 | case "$withval" in |
michael@0 | 638 | no) |
michael@0 | 639 | rsa="0" |
michael@0 | 640 | ;; |
michael@0 | 641 | yes) |
michael@0 | 642 | RSA_INCLUDE="$includedir" |
michael@0 | 643 | rsa="1" |
michael@0 | 644 | ;; |
michael@0 | 645 | *) |
michael@0 | 646 | RSA_INCLUDE="$withval" |
michael@0 | 647 | rsa="1" |
michael@0 | 648 | ;; |
michael@0 | 649 | esac |
michael@0 | 650 | fi |
michael@0 | 651 | |
michael@0 | 652 | |
michael@0 | 653 | if test "x$nss" = "x"; then |
michael@0 | 654 | if test "x$rsa" = "x"; then |
michael@0 | 655 | RSA_INCLUDE="$includedir" |
michael@0 | 656 | fi |
michael@0 | 657 | RSA_CFLAGS="-I$RSA_INCLUDE" |
michael@0 | 658 | fi |
michael@0 | 659 | |
michael@0 | 660 | if test "x$nss" = "x1"; then |
michael@0 | 661 | cat >> confdefs.h <<\EOF |
michael@0 | 662 | #define WITH_NSS 1 |
michael@0 | 663 | EOF |
michael@0 | 664 | |
michael@0 | 665 | fi |
michael@0 | 666 | |
michael@0 | 667 | |
michael@0 | 668 | |
michael@0 | 669 | if test "x$rsa" = "x1"; then |
michael@0 | 670 | RSA_CFLAGS-"-I$RSA_INCLUDE" |
michael@0 | 671 | fi |
michael@0 | 672 | |
michael@0 | 673 | # Check whether --enable-debug or --disable-debug was given. |
michael@0 | 674 | if test "${enable_debug+set}" = set; then |
michael@0 | 675 | enableval="$enable_debug" |
michael@0 | 676 | case "$enableval" in |
michael@0 | 677 | no) |
michael@0 | 678 | DEBUG_CFLAGS="";; |
michael@0 | 679 | yes) |
michael@0 | 680 | DEBUG_CFLAGS="-DDEBUG";; |
michael@0 | 681 | *) |
michael@0 | 682 | DEBUG_CFLAGS="-DDEBUG";; |
michael@0 | 683 | esac |
michael@0 | 684 | else |
michael@0 | 685 | DEBUG_CFLAGS="-DDEBUG" |
michael@0 | 686 | fi |
michael@0 | 687 | |
michael@0 | 688 | |
michael@0 | 689 | # Extract the first word of "gcc", so it can be a program name with args. |
michael@0 | 690 | set dummy gcc; ac_word=$2 |
michael@0 | 691 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
michael@0 | 692 | echo "configure:693: checking for $ac_word" >&5 |
michael@0 | 693 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
michael@0 | 694 | echo $ac_n "(cached) $ac_c" 1>&6 |
michael@0 | 695 | else |
michael@0 | 696 | if test -n "$CC"; then |
michael@0 | 697 | ac_cv_prog_CC="$CC" # Let the user override the test. |
michael@0 | 698 | else |
michael@0 | 699 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
michael@0 | 700 | ac_dummy="$PATH" |
michael@0 | 701 | for ac_dir in $ac_dummy; do |
michael@0 | 702 | test -z "$ac_dir" && ac_dir=. |
michael@0 | 703 | if test -f $ac_dir/$ac_word; then |
michael@0 | 704 | ac_cv_prog_CC="gcc" |
michael@0 | 705 | break |
michael@0 | 706 | fi |
michael@0 | 707 | done |
michael@0 | 708 | IFS="$ac_save_ifs" |
michael@0 | 709 | fi |
michael@0 | 710 | fi |
michael@0 | 711 | CC="$ac_cv_prog_CC" |
michael@0 | 712 | if test -n "$CC"; then |
michael@0 | 713 | echo "$ac_t""$CC" 1>&6 |
michael@0 | 714 | else |
michael@0 | 715 | echo "$ac_t""no" 1>&6 |
michael@0 | 716 | fi |
michael@0 | 717 | |
michael@0 | 718 | if test -z "$CC"; then |
michael@0 | 719 | # Extract the first word of "cc", so it can be a program name with args. |
michael@0 | 720 | set dummy cc; ac_word=$2 |
michael@0 | 721 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
michael@0 | 722 | echo "configure:723: checking for $ac_word" >&5 |
michael@0 | 723 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
michael@0 | 724 | echo $ac_n "(cached) $ac_c" 1>&6 |
michael@0 | 725 | else |
michael@0 | 726 | if test -n "$CC"; then |
michael@0 | 727 | ac_cv_prog_CC="$CC" # Let the user override the test. |
michael@0 | 728 | else |
michael@0 | 729 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
michael@0 | 730 | ac_prog_rejected=no |
michael@0 | 731 | ac_dummy="$PATH" |
michael@0 | 732 | for ac_dir in $ac_dummy; do |
michael@0 | 733 | test -z "$ac_dir" && ac_dir=. |
michael@0 | 734 | if test -f $ac_dir/$ac_word; then |
michael@0 | 735 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then |
michael@0 | 736 | ac_prog_rejected=yes |
michael@0 | 737 | continue |
michael@0 | 738 | fi |
michael@0 | 739 | ac_cv_prog_CC="cc" |
michael@0 | 740 | break |
michael@0 | 741 | fi |
michael@0 | 742 | done |
michael@0 | 743 | IFS="$ac_save_ifs" |
michael@0 | 744 | if test $ac_prog_rejected = yes; then |
michael@0 | 745 | # We found a bogon in the path, so make sure we never use it. |
michael@0 | 746 | set dummy $ac_cv_prog_CC |
michael@0 | 747 | shift |
michael@0 | 748 | if test $# -gt 0; then |
michael@0 | 749 | # We chose a different compiler from the bogus one. |
michael@0 | 750 | # However, it has the same basename, so the bogon will be chosen |
michael@0 | 751 | # first if we set CC to just the basename; use the full file name. |
michael@0 | 752 | shift |
michael@0 | 753 | set dummy "$ac_dir/$ac_word" "$@" |
michael@0 | 754 | shift |
michael@0 | 755 | ac_cv_prog_CC="$@" |
michael@0 | 756 | fi |
michael@0 | 757 | fi |
michael@0 | 758 | fi |
michael@0 | 759 | fi |
michael@0 | 760 | CC="$ac_cv_prog_CC" |
michael@0 | 761 | if test -n "$CC"; then |
michael@0 | 762 | echo "$ac_t""$CC" 1>&6 |
michael@0 | 763 | else |
michael@0 | 764 | echo "$ac_t""no" 1>&6 |
michael@0 | 765 | fi |
michael@0 | 766 | |
michael@0 | 767 | if test -z "$CC"; then |
michael@0 | 768 | case "`uname -s`" in |
michael@0 | 769 | *win32* | *WIN32*) |
michael@0 | 770 | # Extract the first word of "cl", so it can be a program name with args. |
michael@0 | 771 | set dummy cl; ac_word=$2 |
michael@0 | 772 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
michael@0 | 773 | echo "configure:774: checking for $ac_word" >&5 |
michael@0 | 774 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
michael@0 | 775 | echo $ac_n "(cached) $ac_c" 1>&6 |
michael@0 | 776 | else |
michael@0 | 777 | if test -n "$CC"; then |
michael@0 | 778 | ac_cv_prog_CC="$CC" # Let the user override the test. |
michael@0 | 779 | else |
michael@0 | 780 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
michael@0 | 781 | ac_dummy="$PATH" |
michael@0 | 782 | for ac_dir in $ac_dummy; do |
michael@0 | 783 | test -z "$ac_dir" && ac_dir=. |
michael@0 | 784 | if test -f $ac_dir/$ac_word; then |
michael@0 | 785 | ac_cv_prog_CC="cl" |
michael@0 | 786 | break |
michael@0 | 787 | fi |
michael@0 | 788 | done |
michael@0 | 789 | IFS="$ac_save_ifs" |
michael@0 | 790 | fi |
michael@0 | 791 | fi |
michael@0 | 792 | CC="$ac_cv_prog_CC" |
michael@0 | 793 | if test -n "$CC"; then |
michael@0 | 794 | echo "$ac_t""$CC" 1>&6 |
michael@0 | 795 | else |
michael@0 | 796 | echo "$ac_t""no" 1>&6 |
michael@0 | 797 | fi |
michael@0 | 798 | ;; |
michael@0 | 799 | esac |
michael@0 | 800 | fi |
michael@0 | 801 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } |
michael@0 | 802 | fi |
michael@0 | 803 | |
michael@0 | 804 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
michael@0 | 805 | echo "configure:806: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
michael@0 | 806 | |
michael@0 | 807 | ac_ext=c |
michael@0 | 808 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
michael@0 | 809 | ac_cpp='$CPP $CPPFLAGS' |
michael@0 | 810 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
michael@0 | 811 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
michael@0 | 812 | cross_compiling=$ac_cv_prog_cc_cross |
michael@0 | 813 | |
michael@0 | 814 | cat > conftest.$ac_ext << EOF |
michael@0 | 815 | |
michael@0 | 816 | #line 817 "configure" |
michael@0 | 817 | #include "confdefs.h" |
michael@0 | 818 | |
michael@0 | 819 | main(){return(0);} |
michael@0 | 820 | EOF |
michael@0 | 821 | if { (eval echo configure:822: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
michael@0 | 822 | ac_cv_prog_cc_works=yes |
michael@0 | 823 | # If we can't run a trivial program, we are probably using a cross compiler. |
michael@0 | 824 | if (./conftest; exit) 2>/dev/null; then |
michael@0 | 825 | ac_cv_prog_cc_cross=no |
michael@0 | 826 | else |
michael@0 | 827 | ac_cv_prog_cc_cross=yes |
michael@0 | 828 | fi |
michael@0 | 829 | else |
michael@0 | 830 | echo "configure: failed program was:" >&5 |
michael@0 | 831 | cat conftest.$ac_ext >&5 |
michael@0 | 832 | ac_cv_prog_cc_works=no |
michael@0 | 833 | fi |
michael@0 | 834 | rm -fr conftest* |
michael@0 | 835 | ac_ext=c |
michael@0 | 836 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
michael@0 | 837 | ac_cpp='$CPP $CPPFLAGS' |
michael@0 | 838 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
michael@0 | 839 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
michael@0 | 840 | cross_compiling=$ac_cv_prog_cc_cross |
michael@0 | 841 | |
michael@0 | 842 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 |
michael@0 | 843 | if test $ac_cv_prog_cc_works = no; then |
michael@0 | 844 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } |
michael@0 | 845 | fi |
michael@0 | 846 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 |
michael@0 | 847 | echo "configure:848: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
michael@0 | 848 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
michael@0 | 849 | cross_compiling=$ac_cv_prog_cc_cross |
michael@0 | 850 | |
michael@0 | 851 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 |
michael@0 | 852 | echo "configure:853: checking whether we are using GNU C" >&5 |
michael@0 | 853 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
michael@0 | 854 | echo $ac_n "(cached) $ac_c" 1>&6 |
michael@0 | 855 | else |
michael@0 | 856 | cat > conftest.c <<EOF |
michael@0 | 857 | #ifdef __GNUC__ |
michael@0 | 858 | yes; |
michael@0 | 859 | #endif |
michael@0 | 860 | EOF |
michael@0 | 861 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:862: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
michael@0 | 862 | ac_cv_prog_gcc=yes |
michael@0 | 863 | else |
michael@0 | 864 | ac_cv_prog_gcc=no |
michael@0 | 865 | fi |
michael@0 | 866 | fi |
michael@0 | 867 | |
michael@0 | 868 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 |
michael@0 | 869 | |
michael@0 | 870 | if test $ac_cv_prog_gcc = yes; then |
michael@0 | 871 | GCC=yes |
michael@0 | 872 | else |
michael@0 | 873 | GCC= |
michael@0 | 874 | fi |
michael@0 | 875 | |
michael@0 | 876 | ac_test_CFLAGS="${CFLAGS+set}" |
michael@0 | 877 | ac_save_CFLAGS="$CFLAGS" |
michael@0 | 878 | CFLAGS= |
michael@0 | 879 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 |
michael@0 | 880 | echo "configure:881: checking whether ${CC-cc} accepts -g" >&5 |
michael@0 | 881 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
michael@0 | 882 | echo $ac_n "(cached) $ac_c" 1>&6 |
michael@0 | 883 | else |
michael@0 | 884 | echo 'void f(){}' > conftest.c |
michael@0 | 885 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then |
michael@0 | 886 | ac_cv_prog_cc_g=yes |
michael@0 | 887 | else |
michael@0 | 888 | ac_cv_prog_cc_g=no |
michael@0 | 889 | fi |
michael@0 | 890 | rm -f conftest* |
michael@0 | 891 | |
michael@0 | 892 | fi |
michael@0 | 893 | |
michael@0 | 894 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 |
michael@0 | 895 | if test "$ac_test_CFLAGS" = set; then |
michael@0 | 896 | CFLAGS="$ac_save_CFLAGS" |
michael@0 | 897 | elif test $ac_cv_prog_cc_g = yes; then |
michael@0 | 898 | if test "$GCC" = yes; then |
michael@0 | 899 | CFLAGS="-g -O2" |
michael@0 | 900 | else |
michael@0 | 901 | CFLAGS="-g" |
michael@0 | 902 | fi |
michael@0 | 903 | else |
michael@0 | 904 | if test "$GCC" = yes; then |
michael@0 | 905 | CFLAGS="-O2" |
michael@0 | 906 | else |
michael@0 | 907 | CFLAGS= |
michael@0 | 908 | fi |
michael@0 | 909 | fi |
michael@0 | 910 | |
michael@0 | 911 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 |
michael@0 | 912 | echo "configure:913: checking how to run the C preprocessor" >&5 |
michael@0 | 913 | # On Suns, sometimes $CPP names a directory. |
michael@0 | 914 | if test -n "$CPP" && test -d "$CPP"; then |
michael@0 | 915 | CPP= |
michael@0 | 916 | fi |
michael@0 | 917 | if test -z "$CPP"; then |
michael@0 | 918 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then |
michael@0 | 919 | echo $ac_n "(cached) $ac_c" 1>&6 |
michael@0 | 920 | else |
michael@0 | 921 | # This must be in double quotes, not single quotes, because CPP may get |
michael@0 | 922 | # substituted into the Makefile and "${CC-cc}" will confuse make. |
michael@0 | 923 | CPP="${CC-cc} -E" |
michael@0 | 924 | # On the NeXT, cc -E runs the code through the compiler's parser, |
michael@0 | 925 | # not just through cpp. |
michael@0 | 926 | cat > conftest.$ac_ext <<EOF |
michael@0 | 927 | #line 928 "configure" |
michael@0 | 928 | #include "confdefs.h" |
michael@0 | 929 | #include <assert.h> |
michael@0 | 930 | Syntax Error |
michael@0 | 931 | EOF |
michael@0 | 932 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
michael@0 | 933 | { (eval echo configure:934: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
michael@0 | 934 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
michael@0 | 935 | if test -z "$ac_err"; then |
michael@0 | 936 | : |
michael@0 | 937 | else |
michael@0 | 938 | echo "$ac_err" >&5 |
michael@0 | 939 | echo "configure: failed program was:" >&5 |
michael@0 | 940 | cat conftest.$ac_ext >&5 |
michael@0 | 941 | rm -rf conftest* |
michael@0 | 942 | CPP="${CC-cc} -E -traditional-cpp" |
michael@0 | 943 | cat > conftest.$ac_ext <<EOF |
michael@0 | 944 | #line 945 "configure" |
michael@0 | 945 | #include "confdefs.h" |
michael@0 | 946 | #include <assert.h> |
michael@0 | 947 | Syntax Error |
michael@0 | 948 | EOF |
michael@0 | 949 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
michael@0 | 950 | { (eval echo configure:951: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
michael@0 | 951 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
michael@0 | 952 | if test -z "$ac_err"; then |
michael@0 | 953 | : |
michael@0 | 954 | else |
michael@0 | 955 | echo "$ac_err" >&5 |
michael@0 | 956 | echo "configure: failed program was:" >&5 |
michael@0 | 957 | cat conftest.$ac_ext >&5 |
michael@0 | 958 | rm -rf conftest* |
michael@0 | 959 | CPP="${CC-cc} -nologo -E" |
michael@0 | 960 | cat > conftest.$ac_ext <<EOF |
michael@0 | 961 | #line 962 "configure" |
michael@0 | 962 | #include "confdefs.h" |
michael@0 | 963 | #include <assert.h> |
michael@0 | 964 | Syntax Error |
michael@0 | 965 | EOF |
michael@0 | 966 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
michael@0 | 967 | { (eval echo configure:968: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
michael@0 | 968 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
michael@0 | 969 | if test -z "$ac_err"; then |
michael@0 | 970 | : |
michael@0 | 971 | else |
michael@0 | 972 | echo "$ac_err" >&5 |
michael@0 | 973 | echo "configure: failed program was:" >&5 |
michael@0 | 974 | cat conftest.$ac_ext >&5 |
michael@0 | 975 | rm -rf conftest* |
michael@0 | 976 | CPP=/lib/cpp |
michael@0 | 977 | fi |
michael@0 | 978 | rm -f conftest* |
michael@0 | 979 | fi |
michael@0 | 980 | rm -f conftest* |
michael@0 | 981 | fi |
michael@0 | 982 | rm -f conftest* |
michael@0 | 983 | ac_cv_prog_CPP="$CPP" |
michael@0 | 984 | fi |
michael@0 | 985 | CPP="$ac_cv_prog_CPP" |
michael@0 | 986 | else |
michael@0 | 987 | ac_cv_prog_CPP="$CPP" |
michael@0 | 988 | fi |
michael@0 | 989 | echo "$ac_t""$CPP" 1>&6 |
michael@0 | 990 | |
michael@0 | 991 | ac_aux_dir= |
michael@0 | 992 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
michael@0 | 993 | if test -f $ac_dir/install-sh; then |
michael@0 | 994 | ac_aux_dir=$ac_dir |
michael@0 | 995 | ac_install_sh="$ac_aux_dir/install-sh -c" |
michael@0 | 996 | break |
michael@0 | 997 | elif test -f $ac_dir/install.sh; then |
michael@0 | 998 | ac_aux_dir=$ac_dir |
michael@0 | 999 | ac_install_sh="$ac_aux_dir/install.sh -c" |
michael@0 | 1000 | break |
michael@0 | 1001 | fi |
michael@0 | 1002 | done |
michael@0 | 1003 | if test -z "$ac_aux_dir"; then |
michael@0 | 1004 | { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } |
michael@0 | 1005 | fi |
michael@0 | 1006 | ac_config_guess=$ac_aux_dir/config.guess |
michael@0 | 1007 | ac_config_sub=$ac_aux_dir/config.sub |
michael@0 | 1008 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. |
michael@0 | 1009 | |
michael@0 | 1010 | # Find a good install program. We prefer a C program (faster), |
michael@0 | 1011 | # so one script is as good as another. But avoid the broken or |
michael@0 | 1012 | # incompatible versions: |
michael@0 | 1013 | # SysV /etc/install, /usr/sbin/install |
michael@0 | 1014 | # SunOS /usr/etc/install |
michael@0 | 1015 | # IRIX /sbin/install |
michael@0 | 1016 | # AIX /bin/install |
michael@0 | 1017 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
michael@0 | 1018 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
michael@0 | 1019 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
michael@0 | 1020 | # ./install, which can be erroneously created by make from ./install.sh. |
michael@0 | 1021 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 |
michael@0 | 1022 | echo "configure:1023: checking for a BSD compatible install" >&5 |
michael@0 | 1023 | if test -z "$INSTALL"; then |
michael@0 | 1024 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then |
michael@0 | 1025 | echo $ac_n "(cached) $ac_c" 1>&6 |
michael@0 | 1026 | else |
michael@0 | 1027 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" |
michael@0 | 1028 | for ac_dir in $PATH; do |
michael@0 | 1029 | # Account for people who put trailing slashes in PATH elements. |
michael@0 | 1030 | case "$ac_dir/" in |
michael@0 | 1031 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; |
michael@0 | 1032 | *) |
michael@0 | 1033 | # OSF1 and SCO ODT 3.0 have their own names for install. |
michael@0 | 1034 | # Don't use installbsd from OSF since it installs stuff as root |
michael@0 | 1035 | # by default. |
michael@0 | 1036 | for ac_prog in ginstall scoinst install; do |
michael@0 | 1037 | if test -f $ac_dir/$ac_prog; then |
michael@0 | 1038 | if test $ac_prog = install && |
michael@0 | 1039 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then |
michael@0 | 1040 | # AIX install. It has an incompatible calling convention. |
michael@0 | 1041 | : |
michael@0 | 1042 | else |
michael@0 | 1043 | ac_cv_path_install="$ac_dir/$ac_prog -c" |
michael@0 | 1044 | break 2 |
michael@0 | 1045 | fi |
michael@0 | 1046 | fi |
michael@0 | 1047 | done |
michael@0 | 1048 | ;; |
michael@0 | 1049 | esac |
michael@0 | 1050 | done |
michael@0 | 1051 | IFS="$ac_save_IFS" |
michael@0 | 1052 | |
michael@0 | 1053 | fi |
michael@0 | 1054 | if test "${ac_cv_path_install+set}" = set; then |
michael@0 | 1055 | INSTALL="$ac_cv_path_install" |
michael@0 | 1056 | else |
michael@0 | 1057 | # As a last resort, use the slow shell script. We don't cache a |
michael@0 | 1058 | # path for INSTALL within a source directory, because that will |
michael@0 | 1059 | # break other packages using the cache if that directory is |
michael@0 | 1060 | # removed, or if the path is relative. |
michael@0 | 1061 | INSTALL="$ac_install_sh" |
michael@0 | 1062 | fi |
michael@0 | 1063 | fi |
michael@0 | 1064 | echo "$ac_t""$INSTALL" 1>&6 |
michael@0 | 1065 | |
michael@0 | 1066 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
michael@0 | 1067 | # It thinks the first close brace ends the variable substitution. |
michael@0 | 1068 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
michael@0 | 1069 | |
michael@0 | 1070 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' |
michael@0 | 1071 | |
michael@0 | 1072 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
michael@0 | 1073 | |
michael@0 | 1074 | # Extract the first word of "ranlib", so it can be a program name with args. |
michael@0 | 1075 | set dummy ranlib; ac_word=$2 |
michael@0 | 1076 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
michael@0 | 1077 | echo "configure:1078: checking for $ac_word" >&5 |
michael@0 | 1078 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
michael@0 | 1079 | echo $ac_n "(cached) $ac_c" 1>&6 |
michael@0 | 1080 | else |
michael@0 | 1081 | if test -n "$RANLIB"; then |
michael@0 | 1082 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
michael@0 | 1083 | else |
michael@0 | 1084 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
michael@0 | 1085 | ac_dummy="$PATH" |
michael@0 | 1086 | for ac_dir in $ac_dummy; do |
michael@0 | 1087 | test -z "$ac_dir" && ac_dir=. |
michael@0 | 1088 | if test -f $ac_dir/$ac_word; then |
michael@0 | 1089 | ac_cv_prog_RANLIB="ranlib" |
michael@0 | 1090 | break |
michael@0 | 1091 | fi |
michael@0 | 1092 | done |
michael@0 | 1093 | IFS="$ac_save_ifs" |
michael@0 | 1094 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" |
michael@0 | 1095 | fi |
michael@0 | 1096 | fi |
michael@0 | 1097 | RANLIB="$ac_cv_prog_RANLIB" |
michael@0 | 1098 | if test -n "$RANLIB"; then |
michael@0 | 1099 | echo "$ac_t""$RANLIB" 1>&6 |
michael@0 | 1100 | else |
michael@0 | 1101 | echo "$ac_t""no" 1>&6 |
michael@0 | 1102 | fi |
michael@0 | 1103 | |
michael@0 | 1104 | # Extract the first word of "ar", so it can be a program name with args. |
michael@0 | 1105 | set dummy ar; ac_word=$2 |
michael@0 | 1106 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
michael@0 | 1107 | echo "configure:1108: checking for $ac_word" >&5 |
michael@0 | 1108 | if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then |
michael@0 | 1109 | echo $ac_n "(cached) $ac_c" 1>&6 |
michael@0 | 1110 | else |
michael@0 | 1111 | if test -n "$AR"; then |
michael@0 | 1112 | ac_cv_prog_AR="$AR" # Let the user override the test. |
michael@0 | 1113 | else |
michael@0 | 1114 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
michael@0 | 1115 | ac_dummy="$PATH" |
michael@0 | 1116 | for ac_dir in $ac_dummy; do |
michael@0 | 1117 | test -z "$ac_dir" && ac_dir=. |
michael@0 | 1118 | if test -f $ac_dir/$ac_word; then |
michael@0 | 1119 | ac_cv_prog_AR="ar" |
michael@0 | 1120 | break |
michael@0 | 1121 | fi |
michael@0 | 1122 | done |
michael@0 | 1123 | IFS="$ac_save_ifs" |
michael@0 | 1124 | fi |
michael@0 | 1125 | fi |
michael@0 | 1126 | AR="$ac_cv_prog_AR" |
michael@0 | 1127 | if test -n "$AR"; then |
michael@0 | 1128 | echo "$ac_t""$AR" 1>&6 |
michael@0 | 1129 | else |
michael@0 | 1130 | echo "$ac_t""no" 1>&6 |
michael@0 | 1131 | fi |
michael@0 | 1132 | |
michael@0 | 1133 | # Extract the first word of "ld", so it can be a program name with args. |
michael@0 | 1134 | set dummy ld; ac_word=$2 |
michael@0 | 1135 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
michael@0 | 1136 | echo "configure:1137: checking for $ac_word" >&5 |
michael@0 | 1137 | if eval "test \"`echo '$''{'ac_cv_prog_LD'+set}'`\" = set"; then |
michael@0 | 1138 | echo $ac_n "(cached) $ac_c" 1>&6 |
michael@0 | 1139 | else |
michael@0 | 1140 | if test -n "$LD"; then |
michael@0 | 1141 | ac_cv_prog_LD="$LD" # Let the user override the test. |
michael@0 | 1142 | else |
michael@0 | 1143 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
michael@0 | 1144 | ac_dummy="$PATH" |
michael@0 | 1145 | for ac_dir in $ac_dummy; do |
michael@0 | 1146 | test -z "$ac_dir" && ac_dir=. |
michael@0 | 1147 | if test -f $ac_dir/$ac_word; then |
michael@0 | 1148 | ac_cv_prog_LD="ld" |
michael@0 | 1149 | break |
michael@0 | 1150 | fi |
michael@0 | 1151 | done |
michael@0 | 1152 | IFS="$ac_save_ifs" |
michael@0 | 1153 | fi |
michael@0 | 1154 | fi |
michael@0 | 1155 | LD="$ac_cv_prog_LD" |
michael@0 | 1156 | if test -n "$LD"; then |
michael@0 | 1157 | echo "$ac_t""$LD" 1>&6 |
michael@0 | 1158 | else |
michael@0 | 1159 | echo "$ac_t""no" 1>&6 |
michael@0 | 1160 | fi |
michael@0 | 1161 | |
michael@0 | 1162 | # Extract the first word of "rm", so it can be a program name with args. |
michael@0 | 1163 | set dummy rm; ac_word=$2 |
michael@0 | 1164 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
michael@0 | 1165 | echo "configure:1166: checking for $ac_word" >&5 |
michael@0 | 1166 | if eval "test \"`echo '$''{'ac_cv_prog_RM'+set}'`\" = set"; then |
michael@0 | 1167 | echo $ac_n "(cached) $ac_c" 1>&6 |
michael@0 | 1168 | else |
michael@0 | 1169 | if test -n "$RM"; then |
michael@0 | 1170 | ac_cv_prog_RM="$RM" # Let the user override the test. |
michael@0 | 1171 | else |
michael@0 | 1172 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
michael@0 | 1173 | ac_dummy="$PATH" |
michael@0 | 1174 | for ac_dir in $ac_dummy; do |
michael@0 | 1175 | test -z "$ac_dir" && ac_dir=. |
michael@0 | 1176 | if test -f $ac_dir/$ac_word; then |
michael@0 | 1177 | ac_cv_prog_RM="rm" |
michael@0 | 1178 | break |
michael@0 | 1179 | fi |
michael@0 | 1180 | done |
michael@0 | 1181 | IFS="$ac_save_ifs" |
michael@0 | 1182 | fi |
michael@0 | 1183 | fi |
michael@0 | 1184 | RM="$ac_cv_prog_RM" |
michael@0 | 1185 | if test -n "$RM"; then |
michael@0 | 1186 | echo "$ac_t""$RM" 1>&6 |
michael@0 | 1187 | else |
michael@0 | 1188 | echo "$ac_t""no" 1>&6 |
michael@0 | 1189 | fi |
michael@0 | 1190 | |
michael@0 | 1191 | # Extract the first word of "tar", so it can be a program name with args. |
michael@0 | 1192 | set dummy tar; ac_word=$2 |
michael@0 | 1193 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
michael@0 | 1194 | echo "configure:1195: checking for $ac_word" >&5 |
michael@0 | 1195 | if eval "test \"`echo '$''{'ac_cv_prog_TAR'+set}'`\" = set"; then |
michael@0 | 1196 | echo $ac_n "(cached) $ac_c" 1>&6 |
michael@0 | 1197 | else |
michael@0 | 1198 | if test -n "$TAR"; then |
michael@0 | 1199 | ac_cv_prog_TAR="$TAR" # Let the user override the test. |
michael@0 | 1200 | else |
michael@0 | 1201 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
michael@0 | 1202 | ac_dummy="$PATH" |
michael@0 | 1203 | for ac_dir in $ac_dummy; do |
michael@0 | 1204 | test -z "$ac_dir" && ac_dir=. |
michael@0 | 1205 | if test -f $ac_dir/$ac_word; then |
michael@0 | 1206 | ac_cv_prog_TAR="tar" |
michael@0 | 1207 | break |
michael@0 | 1208 | fi |
michael@0 | 1209 | done |
michael@0 | 1210 | IFS="$ac_save_ifs" |
michael@0 | 1211 | fi |
michael@0 | 1212 | fi |
michael@0 | 1213 | TAR="$ac_cv_prog_TAR" |
michael@0 | 1214 | if test -n "$TAR"; then |
michael@0 | 1215 | echo "$ac_t""$TAR" 1>&6 |
michael@0 | 1216 | else |
michael@0 | 1217 | echo "$ac_t""no" 1>&6 |
michael@0 | 1218 | fi |
michael@0 | 1219 | |
michael@0 | 1220 | |
michael@0 | 1221 | |
michael@0 | 1222 | CPPFLAGS="$CFLAGS $NSPR_CFLAGS $NSS_CFLAGS $RSA_CFLAGS $DEBUG_CFLAGS" |
michael@0 | 1223 | LIBS="$NSPR_LDFLAGS $LIBS" |
michael@0 | 1224 | |
michael@0 | 1225 | |
michael@0 | 1226 | |
michael@0 | 1227 | echo $ac_n "checking for PR_Init in -lnspr4""... $ac_c" 1>&6 |
michael@0 | 1228 | echo "configure:1229: checking for PR_Init in -lnspr4" >&5 |
michael@0 | 1229 | ac_lib_var=`echo nspr4'_'PR_Init | sed 'y%./+-%__p_%'` |
michael@0 | 1230 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
michael@0 | 1231 | echo $ac_n "(cached) $ac_c" 1>&6 |
michael@0 | 1232 | else |
michael@0 | 1233 | ac_save_LIBS="$LIBS" |
michael@0 | 1234 | LIBS="-lnspr4 $LIBS" |
michael@0 | 1235 | cat > conftest.$ac_ext <<EOF |
michael@0 | 1236 | #line 1237 "configure" |
michael@0 | 1237 | #include "confdefs.h" |
michael@0 | 1238 | /* Override any gcc2 internal prototype to avoid an error. */ |
michael@0 | 1239 | /* We use char because int might match the return type of a gcc2 |
michael@0 | 1240 | builtin and then its argument prototype would still apply. */ |
michael@0 | 1241 | char PR_Init(); |
michael@0 | 1242 | |
michael@0 | 1243 | int main() { |
michael@0 | 1244 | PR_Init() |
michael@0 | 1245 | ; return 0; } |
michael@0 | 1246 | EOF |
michael@0 | 1247 | if { (eval echo configure:1248: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
michael@0 | 1248 | rm -rf conftest* |
michael@0 | 1249 | eval "ac_cv_lib_$ac_lib_var=yes" |
michael@0 | 1250 | else |
michael@0 | 1251 | echo "configure: failed program was:" >&5 |
michael@0 | 1252 | cat conftest.$ac_ext >&5 |
michael@0 | 1253 | rm -rf conftest* |
michael@0 | 1254 | eval "ac_cv_lib_$ac_lib_var=no" |
michael@0 | 1255 | fi |
michael@0 | 1256 | rm -f conftest* |
michael@0 | 1257 | LIBS="$ac_save_LIBS" |
michael@0 | 1258 | |
michael@0 | 1259 | fi |
michael@0 | 1260 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
michael@0 | 1261 | echo "$ac_t""yes" 1>&6 |
michael@0 | 1262 | ac_tr_lib=HAVE_LIB`echo nspr4 | sed -e 's/[^a-zA-Z0-9_]/_/g' \ |
michael@0 | 1263 | -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` |
michael@0 | 1264 | cat >> confdefs.h <<EOF |
michael@0 | 1265 | #define $ac_tr_lib 1 |
michael@0 | 1266 | EOF |
michael@0 | 1267 | |
michael@0 | 1268 | LIBS="-lnspr4 $LIBS" |
michael@0 | 1269 | |
michael@0 | 1270 | else |
michael@0 | 1271 | echo "$ac_t""no" 1>&6 |
michael@0 | 1272 | fi |
michael@0 | 1273 | |
michael@0 | 1274 | |
michael@0 | 1275 | for ac_hdr in nspr.h |
michael@0 | 1276 | do |
michael@0 | 1277 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
michael@0 | 1278 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
michael@0 | 1279 | echo "configure:1280: checking for $ac_hdr" >&5 |
michael@0 | 1280 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
michael@0 | 1281 | echo $ac_n "(cached) $ac_c" 1>&6 |
michael@0 | 1282 | else |
michael@0 | 1283 | cat > conftest.$ac_ext <<EOF |
michael@0 | 1284 | #line 1285 "configure" |
michael@0 | 1285 | #include "confdefs.h" |
michael@0 | 1286 | #include <$ac_hdr> |
michael@0 | 1287 | EOF |
michael@0 | 1288 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
michael@0 | 1289 | { (eval echo configure:1290: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
michael@0 | 1290 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
michael@0 | 1291 | if test -z "$ac_err"; then |
michael@0 | 1292 | rm -rf conftest* |
michael@0 | 1293 | eval "ac_cv_header_$ac_safe=yes" |
michael@0 | 1294 | else |
michael@0 | 1295 | echo "$ac_err" >&5 |
michael@0 | 1296 | echo "configure: failed program was:" >&5 |
michael@0 | 1297 | cat conftest.$ac_ext >&5 |
michael@0 | 1298 | rm -rf conftest* |
michael@0 | 1299 | eval "ac_cv_header_$ac_safe=no" |
michael@0 | 1300 | fi |
michael@0 | 1301 | rm -f conftest* |
michael@0 | 1302 | fi |
michael@0 | 1303 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
michael@0 | 1304 | echo "$ac_t""yes" 1>&6 |
michael@0 | 1305 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
michael@0 | 1306 | cat >> confdefs.h <<EOF |
michael@0 | 1307 | #define $ac_tr_hdr 1 |
michael@0 | 1308 | EOF |
michael@0 | 1309 | |
michael@0 | 1310 | else |
michael@0 | 1311 | echo "$ac_t""no" 1>&6 |
michael@0 | 1312 | fi |
michael@0 | 1313 | done |
michael@0 | 1314 | |
michael@0 | 1315 | |
michael@0 | 1316 | |
michael@0 | 1317 | if test "x$nss" = "x1"; then |
michael@0 | 1318 | for ac_hdr in ck.h |
michael@0 | 1319 | do |
michael@0 | 1320 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
michael@0 | 1321 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
michael@0 | 1322 | echo "configure:1323: checking for $ac_hdr" >&5 |
michael@0 | 1323 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
michael@0 | 1324 | echo $ac_n "(cached) $ac_c" 1>&6 |
michael@0 | 1325 | else |
michael@0 | 1326 | cat > conftest.$ac_ext <<EOF |
michael@0 | 1327 | #line 1328 "configure" |
michael@0 | 1328 | #include "confdefs.h" |
michael@0 | 1329 | #include <$ac_hdr> |
michael@0 | 1330 | EOF |
michael@0 | 1331 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
michael@0 | 1332 | { (eval echo configure:1333: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
michael@0 | 1333 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
michael@0 | 1334 | if test -z "$ac_err"; then |
michael@0 | 1335 | rm -rf conftest* |
michael@0 | 1336 | eval "ac_cv_header_$ac_safe=yes" |
michael@0 | 1337 | else |
michael@0 | 1338 | echo "$ac_err" >&5 |
michael@0 | 1339 | echo "configure: failed program was:" >&5 |
michael@0 | 1340 | cat conftest.$ac_ext >&5 |
michael@0 | 1341 | rm -rf conftest* |
michael@0 | 1342 | eval "ac_cv_header_$ac_safe=no" |
michael@0 | 1343 | fi |
michael@0 | 1344 | rm -f conftest* |
michael@0 | 1345 | fi |
michael@0 | 1346 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
michael@0 | 1347 | echo "$ac_t""yes" 1>&6 |
michael@0 | 1348 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
michael@0 | 1349 | cat >> confdefs.h <<EOF |
michael@0 | 1350 | #define $ac_tr_hdr 1 |
michael@0 | 1351 | EOF |
michael@0 | 1352 | |
michael@0 | 1353 | else |
michael@0 | 1354 | echo "$ac_t""no" 1>&6 |
michael@0 | 1355 | fi |
michael@0 | 1356 | done |
michael@0 | 1357 | |
michael@0 | 1358 | fi |
michael@0 | 1359 | |
michael@0 | 1360 | if test "x$rsa" = "x1"; then |
michael@0 | 1361 | for ac_hdr in pkcs11t.h pkcs11.h |
michael@0 | 1362 | do |
michael@0 | 1363 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
michael@0 | 1364 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
michael@0 | 1365 | echo "configure:1366: checking for $ac_hdr" >&5 |
michael@0 | 1366 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
michael@0 | 1367 | echo $ac_n "(cached) $ac_c" 1>&6 |
michael@0 | 1368 | else |
michael@0 | 1369 | cat > conftest.$ac_ext <<EOF |
michael@0 | 1370 | #line 1371 "configure" |
michael@0 | 1371 | #include "confdefs.h" |
michael@0 | 1372 | #include <$ac_hdr> |
michael@0 | 1373 | EOF |
michael@0 | 1374 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
michael@0 | 1375 | { (eval echo configure:1376: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
michael@0 | 1376 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
michael@0 | 1377 | if test -z "$ac_err"; then |
michael@0 | 1378 | rm -rf conftest* |
michael@0 | 1379 | eval "ac_cv_header_$ac_safe=yes" |
michael@0 | 1380 | else |
michael@0 | 1381 | echo "$ac_err" >&5 |
michael@0 | 1382 | echo "configure: failed program was:" >&5 |
michael@0 | 1383 | cat conftest.$ac_ext >&5 |
michael@0 | 1384 | rm -rf conftest* |
michael@0 | 1385 | eval "ac_cv_header_$ac_safe=no" |
michael@0 | 1386 | fi |
michael@0 | 1387 | rm -f conftest* |
michael@0 | 1388 | fi |
michael@0 | 1389 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
michael@0 | 1390 | echo "$ac_t""yes" 1>&6 |
michael@0 | 1391 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
michael@0 | 1392 | cat >> confdefs.h <<EOF |
michael@0 | 1393 | #define $ac_tr_hdr 1 |
michael@0 | 1394 | EOF |
michael@0 | 1395 | |
michael@0 | 1396 | else |
michael@0 | 1397 | echo "$ac_t""no" 1>&6 |
michael@0 | 1398 | fi |
michael@0 | 1399 | done |
michael@0 | 1400 | |
michael@0 | 1401 | fi |
michael@0 | 1402 | |
michael@0 | 1403 | |
michael@0 | 1404 | |
michael@0 | 1405 | echo $ac_n "checking for working const""... $ac_c" 1>&6 |
michael@0 | 1406 | echo "configure:1407: checking for working const" >&5 |
michael@0 | 1407 | if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then |
michael@0 | 1408 | echo $ac_n "(cached) $ac_c" 1>&6 |
michael@0 | 1409 | else |
michael@0 | 1410 | cat > conftest.$ac_ext <<EOF |
michael@0 | 1411 | #line 1412 "configure" |
michael@0 | 1412 | #include "confdefs.h" |
michael@0 | 1413 | |
michael@0 | 1414 | int main() { |
michael@0 | 1415 | |
michael@0 | 1416 | /* Ultrix mips cc rejects this. */ |
michael@0 | 1417 | typedef int charset[2]; const charset x; |
michael@0 | 1418 | /* SunOS 4.1.1 cc rejects this. */ |
michael@0 | 1419 | char const *const *ccp; |
michael@0 | 1420 | char **p; |
michael@0 | 1421 | /* NEC SVR4.0.2 mips cc rejects this. */ |
michael@0 | 1422 | struct point {int x, y;}; |
michael@0 | 1423 | static struct point const zero = {0,0}; |
michael@0 | 1424 | /* AIX XL C 1.02.0.0 rejects this. |
michael@0 | 1425 | It does not let you subtract one const X* pointer from another in an arm |
michael@0 | 1426 | of an if-expression whose if-part is not a constant expression */ |
michael@0 | 1427 | const char *g = "string"; |
michael@0 | 1428 | ccp = &g + (g ? g-g : 0); |
michael@0 | 1429 | /* HPUX 7.0 cc rejects these. */ |
michael@0 | 1430 | ++ccp; |
michael@0 | 1431 | p = (char**) ccp; |
michael@0 | 1432 | ccp = (char const *const *) p; |
michael@0 | 1433 | { /* SCO 3.2v4 cc rejects this. */ |
michael@0 | 1434 | char *t; |
michael@0 | 1435 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
michael@0 | 1436 | |
michael@0 | 1437 | *t++ = 0; |
michael@0 | 1438 | } |
michael@0 | 1439 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
michael@0 | 1440 | int x[] = {25, 17}; |
michael@0 | 1441 | const int *foo = &x[0]; |
michael@0 | 1442 | ++foo; |
michael@0 | 1443 | } |
michael@0 | 1444 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
michael@0 | 1445 | typedef const int *iptr; |
michael@0 | 1446 | iptr p = 0; |
michael@0 | 1447 | ++p; |
michael@0 | 1448 | } |
michael@0 | 1449 | { /* AIX XL C 1.02.0.0 rejects this saying |
michael@0 | 1450 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
michael@0 | 1451 | struct s { int j; const int *ap[3]; }; |
michael@0 | 1452 | struct s *b; b->j = 5; |
michael@0 | 1453 | } |
michael@0 | 1454 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
michael@0 | 1455 | const int foo = 10; |
michael@0 | 1456 | } |
michael@0 | 1457 | |
michael@0 | 1458 | ; return 0; } |
michael@0 | 1459 | EOF |
michael@0 | 1460 | if { (eval echo configure:1461: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
michael@0 | 1461 | rm -rf conftest* |
michael@0 | 1462 | ac_cv_c_const=yes |
michael@0 | 1463 | else |
michael@0 | 1464 | echo "configure: failed program was:" >&5 |
michael@0 | 1465 | cat conftest.$ac_ext >&5 |
michael@0 | 1466 | rm -rf conftest* |
michael@0 | 1467 | ac_cv_c_const=no |
michael@0 | 1468 | fi |
michael@0 | 1469 | rm -f conftest* |
michael@0 | 1470 | fi |
michael@0 | 1471 | |
michael@0 | 1472 | echo "$ac_t""$ac_cv_c_const" 1>&6 |
michael@0 | 1473 | if test $ac_cv_c_const = no; then |
michael@0 | 1474 | cat >> confdefs.h <<\EOF |
michael@0 | 1475 | #define const |
michael@0 | 1476 | EOF |
michael@0 | 1477 | |
michael@0 | 1478 | fi |
michael@0 | 1479 | |
michael@0 | 1480 | |
michael@0 | 1481 | |
michael@0 | 1482 | for ac_func in memset strlen |
michael@0 | 1483 | do |
michael@0 | 1484 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
michael@0 | 1485 | echo "configure:1486: checking for $ac_func" >&5 |
michael@0 | 1486 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
michael@0 | 1487 | echo $ac_n "(cached) $ac_c" 1>&6 |
michael@0 | 1488 | else |
michael@0 | 1489 | cat > conftest.$ac_ext <<EOF |
michael@0 | 1490 | #line 1491 "configure" |
michael@0 | 1491 | #include "confdefs.h" |
michael@0 | 1492 | /* System header to define __stub macros and hopefully few prototypes, |
michael@0 | 1493 | which can conflict with char $ac_func(); below. */ |
michael@0 | 1494 | #include <assert.h> |
michael@0 | 1495 | /* Override any gcc2 internal prototype to avoid an error. */ |
michael@0 | 1496 | /* We use char because int might match the return type of a gcc2 |
michael@0 | 1497 | builtin and then its argument prototype would still apply. */ |
michael@0 | 1498 | char $ac_func(); |
michael@0 | 1499 | |
michael@0 | 1500 | int main() { |
michael@0 | 1501 | |
michael@0 | 1502 | /* The GNU C library defines this for functions which it implements |
michael@0 | 1503 | to always fail with ENOSYS. Some functions are actually named |
michael@0 | 1504 | something starting with __ and the normal name is an alias. */ |
michael@0 | 1505 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
michael@0 | 1506 | choke me |
michael@0 | 1507 | #else |
michael@0 | 1508 | $ac_func(); |
michael@0 | 1509 | #endif |
michael@0 | 1510 | |
michael@0 | 1511 | ; return 0; } |
michael@0 | 1512 | EOF |
michael@0 | 1513 | if { (eval echo configure:1514: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
michael@0 | 1514 | rm -rf conftest* |
michael@0 | 1515 | eval "ac_cv_func_$ac_func=yes" |
michael@0 | 1516 | else |
michael@0 | 1517 | echo "configure: failed program was:" >&5 |
michael@0 | 1518 | cat conftest.$ac_ext >&5 |
michael@0 | 1519 | rm -rf conftest* |
michael@0 | 1520 | eval "ac_cv_func_$ac_func=no" |
michael@0 | 1521 | fi |
michael@0 | 1522 | rm -f conftest* |
michael@0 | 1523 | fi |
michael@0 | 1524 | |
michael@0 | 1525 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
michael@0 | 1526 | echo "$ac_t""yes" 1>&6 |
michael@0 | 1527 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
michael@0 | 1528 | cat >> confdefs.h <<EOF |
michael@0 | 1529 | #define $ac_tr_func 1 |
michael@0 | 1530 | EOF |
michael@0 | 1531 | |
michael@0 | 1532 | else |
michael@0 | 1533 | echo "$ac_t""no" 1>&6 |
michael@0 | 1534 | fi |
michael@0 | 1535 | done |
michael@0 | 1536 | |
michael@0 | 1537 | |
michael@0 | 1538 | trap '' 1 2 15 |
michael@0 | 1539 | cat > confcache <<\EOF |
michael@0 | 1540 | # This file is a shell script that caches the results of configure |
michael@0 | 1541 | # tests run on this system so they can be shared between configure |
michael@0 | 1542 | # scripts and configure runs. It is not useful on other systems. |
michael@0 | 1543 | # If it contains results you don't want to keep, you may remove or edit it. |
michael@0 | 1544 | # |
michael@0 | 1545 | # By default, configure uses ./config.cache as the cache file, |
michael@0 | 1546 | # creating it if it does not exist already. You can give configure |
michael@0 | 1547 | # the --cache-file=FILE option to use a different cache file; that is |
michael@0 | 1548 | # what configure does when it calls configure scripts in |
michael@0 | 1549 | # subdirectories, so they share the cache. |
michael@0 | 1550 | # Giving --cache-file=/dev/null disables caching, for debugging configure. |
michael@0 | 1551 | # config.status only pays attention to the cache file if you give it the |
michael@0 | 1552 | # --recheck option to rerun configure. |
michael@0 | 1553 | # |
michael@0 | 1554 | EOF |
michael@0 | 1555 | # The following way of writing the cache mishandles newlines in values, |
michael@0 | 1556 | # but we know of no workaround that is simple, portable, and efficient. |
michael@0 | 1557 | # So, don't put newlines in cache variables' values. |
michael@0 | 1558 | # Ultrix sh set writes to stderr and can't be redirected directly, |
michael@0 | 1559 | # and sets the high bit in the cache file unless we assign to the vars. |
michael@0 | 1560 | (set) 2>&1 | |
michael@0 | 1561 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
michael@0 | 1562 | *ac_space=\ *) |
michael@0 | 1563 | # `set' does not quote correctly, so add quotes (double-quote substitution |
michael@0 | 1564 | # turns \\\\ into \\, and sed turns \\ into \). |
michael@0 | 1565 | sed -n \ |
michael@0 | 1566 | -e "s/'/'\\\\''/g" \ |
michael@0 | 1567 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" |
michael@0 | 1568 | ;; |
michael@0 | 1569 | *) |
michael@0 | 1570 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
michael@0 | 1571 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' |
michael@0 | 1572 | ;; |
michael@0 | 1573 | esac >> confcache |
michael@0 | 1574 | if cmp -s $cache_file confcache; then |
michael@0 | 1575 | : |
michael@0 | 1576 | else |
michael@0 | 1577 | if test -w $cache_file; then |
michael@0 | 1578 | echo "updating cache $cache_file" |
michael@0 | 1579 | cat confcache > $cache_file |
michael@0 | 1580 | else |
michael@0 | 1581 | echo "not updating unwritable cache $cache_file" |
michael@0 | 1582 | fi |
michael@0 | 1583 | fi |
michael@0 | 1584 | rm -f confcache |
michael@0 | 1585 | |
michael@0 | 1586 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
michael@0 | 1587 | |
michael@0 | 1588 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
michael@0 | 1589 | # Let make expand exec_prefix. |
michael@0 | 1590 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
michael@0 | 1591 | |
michael@0 | 1592 | # Any assignment to VPATH causes Sun make to only execute |
michael@0 | 1593 | # the first set of double-colon rules, so remove it if not needed. |
michael@0 | 1594 | # If there is a colon in the path, we need to keep it. |
michael@0 | 1595 | if test "x$srcdir" = x.; then |
michael@0 | 1596 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' |
michael@0 | 1597 | fi |
michael@0 | 1598 | |
michael@0 | 1599 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 |
michael@0 | 1600 | |
michael@0 | 1601 | DEFS=-DHAVE_CONFIG_H |
michael@0 | 1602 | |
michael@0 | 1603 | # Without the "./", some shells look in PATH for config.status. |
michael@0 | 1604 | : ${CONFIG_STATUS=./config.status} |
michael@0 | 1605 | |
michael@0 | 1606 | echo creating $CONFIG_STATUS |
michael@0 | 1607 | rm -f $CONFIG_STATUS |
michael@0 | 1608 | cat > $CONFIG_STATUS <<EOF |
michael@0 | 1609 | #! /bin/sh |
michael@0 | 1610 | # Generated automatically by configure. |
michael@0 | 1611 | # Run this file to recreate the current configuration. |
michael@0 | 1612 | # This directory was configured as follows, |
michael@0 | 1613 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
michael@0 | 1614 | # |
michael@0 | 1615 | # $0 $ac_configure_args |
michael@0 | 1616 | # |
michael@0 | 1617 | # Compiler output produced by configure, useful for debugging |
michael@0 | 1618 | # configure, is in ./config.log if it exists. |
michael@0 | 1619 | |
michael@0 | 1620 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" |
michael@0 | 1621 | for ac_option |
michael@0 | 1622 | do |
michael@0 | 1623 | case "\$ac_option" in |
michael@0 | 1624 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
michael@0 | 1625 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" |
michael@0 | 1626 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; |
michael@0 | 1627 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) |
michael@0 | 1628 | echo "$CONFIG_STATUS generated by autoconf version 2.13" |
michael@0 | 1629 | exit 0 ;; |
michael@0 | 1630 | -help | --help | --hel | --he | --h) |
michael@0 | 1631 | echo "\$ac_cs_usage"; exit 0 ;; |
michael@0 | 1632 | *) echo "\$ac_cs_usage"; exit 1 ;; |
michael@0 | 1633 | esac |
michael@0 | 1634 | done |
michael@0 | 1635 | |
michael@0 | 1636 | ac_given_srcdir=$srcdir |
michael@0 | 1637 | ac_given_INSTALL="$INSTALL" |
michael@0 | 1638 | |
michael@0 | 1639 | trap 'rm -fr `echo "Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 |
michael@0 | 1640 | EOF |
michael@0 | 1641 | cat >> $CONFIG_STATUS <<EOF |
michael@0 | 1642 | |
michael@0 | 1643 | # Protect against being on the right side of a sed subst in config.status. |
michael@0 | 1644 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; |
michael@0 | 1645 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF |
michael@0 | 1646 | $ac_vpsub |
michael@0 | 1647 | $extrasub |
michael@0 | 1648 | s%@SHELL@%$SHELL%g |
michael@0 | 1649 | s%@CFLAGS@%$CFLAGS%g |
michael@0 | 1650 | s%@CPPFLAGS@%$CPPFLAGS%g |
michael@0 | 1651 | s%@CXXFLAGS@%$CXXFLAGS%g |
michael@0 | 1652 | s%@FFLAGS@%$FFLAGS%g |
michael@0 | 1653 | s%@DEFS@%$DEFS%g |
michael@0 | 1654 | s%@LDFLAGS@%$LDFLAGS%g |
michael@0 | 1655 | s%@LIBS@%$LIBS%g |
michael@0 | 1656 | s%@exec_prefix@%$exec_prefix%g |
michael@0 | 1657 | s%@prefix@%$prefix%g |
michael@0 | 1658 | s%@program_transform_name@%$program_transform_name%g |
michael@0 | 1659 | s%@bindir@%$bindir%g |
michael@0 | 1660 | s%@sbindir@%$sbindir%g |
michael@0 | 1661 | s%@libexecdir@%$libexecdir%g |
michael@0 | 1662 | s%@datadir@%$datadir%g |
michael@0 | 1663 | s%@sysconfdir@%$sysconfdir%g |
michael@0 | 1664 | s%@sharedstatedir@%$sharedstatedir%g |
michael@0 | 1665 | s%@localstatedir@%$localstatedir%g |
michael@0 | 1666 | s%@libdir@%$libdir%g |
michael@0 | 1667 | s%@includedir@%$includedir%g |
michael@0 | 1668 | s%@oldincludedir@%$oldincludedir%g |
michael@0 | 1669 | s%@infodir@%$infodir%g |
michael@0 | 1670 | s%@mandir@%$mandir%g |
michael@0 | 1671 | s%@SET_MAKE@%$SET_MAKE%g |
michael@0 | 1672 | s%@WITH_NSS@%$WITH_NSS%g |
michael@0 | 1673 | s%@CC@%$CC%g |
michael@0 | 1674 | s%@CPP@%$CPP%g |
michael@0 | 1675 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g |
michael@0 | 1676 | s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g |
michael@0 | 1677 | s%@INSTALL_DATA@%$INSTALL_DATA%g |
michael@0 | 1678 | s%@RANLIB@%$RANLIB%g |
michael@0 | 1679 | s%@AR@%$AR%g |
michael@0 | 1680 | s%@LD@%$LD%g |
michael@0 | 1681 | s%@RM@%$RM%g |
michael@0 | 1682 | s%@TAR@%$TAR%g |
michael@0 | 1683 | s%@CC INSTALL RANLIB AR LD RM TAR@%$CC INSTALL RANLIB AR LD RM TAR%g |
michael@0 | 1684 | s%@HAVE_NSPR_H@%$HAVE_NSPR_H%g |
michael@0 | 1685 | s%@HAVE_CK_H HAVE_PKCS11T_H HAVE_PKCS11_H@%$HAVE_CK_H HAVE_PKCS11T_H HAVE_PKCS11_H%g |
michael@0 | 1686 | s%@const@%$const%g |
michael@0 | 1687 | s%@HAVE_MEMSET HAVE_STRLEN@%$HAVE_MEMSET HAVE_STRLEN%g |
michael@0 | 1688 | |
michael@0 | 1689 | CEOF |
michael@0 | 1690 | EOF |
michael@0 | 1691 | |
michael@0 | 1692 | cat >> $CONFIG_STATUS <<\EOF |
michael@0 | 1693 | |
michael@0 | 1694 | # Split the substitutions into bite-sized pieces for seds with |
michael@0 | 1695 | # small command number limits, like on Digital OSF/1 and HP-UX. |
michael@0 | 1696 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. |
michael@0 | 1697 | ac_file=1 # Number of current file. |
michael@0 | 1698 | ac_beg=1 # First line for current file. |
michael@0 | 1699 | ac_end=$ac_max_sed_cmds # Line after last line for current file. |
michael@0 | 1700 | ac_more_lines=: |
michael@0 | 1701 | ac_sed_cmds="" |
michael@0 | 1702 | while $ac_more_lines; do |
michael@0 | 1703 | if test $ac_beg -gt 1; then |
michael@0 | 1704 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file |
michael@0 | 1705 | else |
michael@0 | 1706 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file |
michael@0 | 1707 | fi |
michael@0 | 1708 | if test ! -s conftest.s$ac_file; then |
michael@0 | 1709 | ac_more_lines=false |
michael@0 | 1710 | rm -f conftest.s$ac_file |
michael@0 | 1711 | else |
michael@0 | 1712 | if test -z "$ac_sed_cmds"; then |
michael@0 | 1713 | ac_sed_cmds="sed -f conftest.s$ac_file" |
michael@0 | 1714 | else |
michael@0 | 1715 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" |
michael@0 | 1716 | fi |
michael@0 | 1717 | ac_file=`expr $ac_file + 1` |
michael@0 | 1718 | ac_beg=$ac_end |
michael@0 | 1719 | ac_end=`expr $ac_end + $ac_max_sed_cmds` |
michael@0 | 1720 | fi |
michael@0 | 1721 | done |
michael@0 | 1722 | if test -z "$ac_sed_cmds"; then |
michael@0 | 1723 | ac_sed_cmds=cat |
michael@0 | 1724 | fi |
michael@0 | 1725 | EOF |
michael@0 | 1726 | |
michael@0 | 1727 | cat >> $CONFIG_STATUS <<EOF |
michael@0 | 1728 | |
michael@0 | 1729 | CONFIG_FILES=\${CONFIG_FILES-"Makefile"} |
michael@0 | 1730 | EOF |
michael@0 | 1731 | cat >> $CONFIG_STATUS <<\EOF |
michael@0 | 1732 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then |
michael@0 | 1733 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
michael@0 | 1734 | case "$ac_file" in |
michael@0 | 1735 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` |
michael@0 | 1736 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
michael@0 | 1737 | *) ac_file_in="${ac_file}.in" ;; |
michael@0 | 1738 | esac |
michael@0 | 1739 | |
michael@0 | 1740 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. |
michael@0 | 1741 | |
michael@0 | 1742 | # Remove last slash and all that follows it. Not all systems have dirname. |
michael@0 | 1743 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` |
michael@0 | 1744 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
michael@0 | 1745 | # The file is in a subdirectory. |
michael@0 | 1746 | test ! -d "$ac_dir" && mkdir "$ac_dir" |
michael@0 | 1747 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" |
michael@0 | 1748 | # A "../" for each directory in $ac_dir_suffix. |
michael@0 | 1749 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` |
michael@0 | 1750 | else |
michael@0 | 1751 | ac_dir_suffix= ac_dots= |
michael@0 | 1752 | fi |
michael@0 | 1753 | |
michael@0 | 1754 | case "$ac_given_srcdir" in |
michael@0 | 1755 | .) srcdir=. |
michael@0 | 1756 | if test -z "$ac_dots"; then top_srcdir=. |
michael@0 | 1757 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; |
michael@0 | 1758 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; |
michael@0 | 1759 | *) # Relative path. |
michael@0 | 1760 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" |
michael@0 | 1761 | top_srcdir="$ac_dots$ac_given_srcdir" ;; |
michael@0 | 1762 | esac |
michael@0 | 1763 | |
michael@0 | 1764 | case "$ac_given_INSTALL" in |
michael@0 | 1765 | [/$]*) INSTALL="$ac_given_INSTALL" ;; |
michael@0 | 1766 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; |
michael@0 | 1767 | esac |
michael@0 | 1768 | |
michael@0 | 1769 | echo creating "$ac_file" |
michael@0 | 1770 | rm -f "$ac_file" |
michael@0 | 1771 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." |
michael@0 | 1772 | case "$ac_file" in |
michael@0 | 1773 | *Makefile*) ac_comsub="1i\\ |
michael@0 | 1774 | # $configure_input" ;; |
michael@0 | 1775 | *) ac_comsub= ;; |
michael@0 | 1776 | esac |
michael@0 | 1777 | |
michael@0 | 1778 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` |
michael@0 | 1779 | sed -e "$ac_comsub |
michael@0 | 1780 | s%@configure_input@%$configure_input%g |
michael@0 | 1781 | s%@srcdir@%$srcdir%g |
michael@0 | 1782 | s%@top_srcdir@%$top_srcdir%g |
michael@0 | 1783 | s%@INSTALL@%$INSTALL%g |
michael@0 | 1784 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file |
michael@0 | 1785 | fi; done |
michael@0 | 1786 | rm -f conftest.s* |
michael@0 | 1787 | |
michael@0 | 1788 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
michael@0 | 1789 | # NAME is the cpp macro being defined and VALUE is the value it is being given. |
michael@0 | 1790 | # |
michael@0 | 1791 | # ac_d sets the value in "#define NAME VALUE" lines. |
michael@0 | 1792 | ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
michael@0 | 1793 | ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' |
michael@0 | 1794 | ac_dC='\3' |
michael@0 | 1795 | ac_dD='%g' |
michael@0 | 1796 | # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". |
michael@0 | 1797 | ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
michael@0 | 1798 | ac_uB='\([ ]\)%\1#\2define\3' |
michael@0 | 1799 | ac_uC=' ' |
michael@0 | 1800 | ac_uD='\4%g' |
michael@0 | 1801 | # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
michael@0 | 1802 | ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
michael@0 | 1803 | ac_eB='$%\1#\2define\3' |
michael@0 | 1804 | ac_eC=' ' |
michael@0 | 1805 | ac_eD='%g' |
michael@0 | 1806 | |
michael@0 | 1807 | if test "${CONFIG_HEADERS+set}" != set; then |
michael@0 | 1808 | EOF |
michael@0 | 1809 | cat >> $CONFIG_STATUS <<EOF |
michael@0 | 1810 | CONFIG_HEADERS="config.h" |
michael@0 | 1811 | EOF |
michael@0 | 1812 | cat >> $CONFIG_STATUS <<\EOF |
michael@0 | 1813 | fi |
michael@0 | 1814 | for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then |
michael@0 | 1815 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
michael@0 | 1816 | case "$ac_file" in |
michael@0 | 1817 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` |
michael@0 | 1818 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
michael@0 | 1819 | *) ac_file_in="${ac_file}.in" ;; |
michael@0 | 1820 | esac |
michael@0 | 1821 | |
michael@0 | 1822 | echo creating $ac_file |
michael@0 | 1823 | |
michael@0 | 1824 | rm -f conftest.frag conftest.in conftest.out |
michael@0 | 1825 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` |
michael@0 | 1826 | cat $ac_file_inputs > conftest.in |
michael@0 | 1827 | |
michael@0 | 1828 | EOF |
michael@0 | 1829 | |
michael@0 | 1830 | # Transform confdefs.h into a sed script conftest.vals that substitutes |
michael@0 | 1831 | # the proper values into config.h.in to produce config.h. And first: |
michael@0 | 1832 | # Protect against being on the right side of a sed subst in config.status. |
michael@0 | 1833 | # Protect against being in an unquoted here document in config.status. |
michael@0 | 1834 | rm -f conftest.vals |
michael@0 | 1835 | cat > conftest.hdr <<\EOF |
michael@0 | 1836 | s/[\\&%]/\\&/g |
michael@0 | 1837 | s%[\\$`]%\\&%g |
michael@0 | 1838 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp |
michael@0 | 1839 | s%ac_d%ac_u%gp |
michael@0 | 1840 | s%ac_u%ac_e%gp |
michael@0 | 1841 | EOF |
michael@0 | 1842 | sed -n -f conftest.hdr confdefs.h > conftest.vals |
michael@0 | 1843 | rm -f conftest.hdr |
michael@0 | 1844 | |
michael@0 | 1845 | # This sed command replaces #undef with comments. This is necessary, for |
michael@0 | 1846 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
michael@0 | 1847 | # on some systems where configure will not decide to define it. |
michael@0 | 1848 | cat >> conftest.vals <<\EOF |
michael@0 | 1849 | s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% |
michael@0 | 1850 | EOF |
michael@0 | 1851 | |
michael@0 | 1852 | # Break up conftest.vals because some shells have a limit on |
michael@0 | 1853 | # the size of here documents, and old seds have small limits too. |
michael@0 | 1854 | |
michael@0 | 1855 | rm -f conftest.tail |
michael@0 | 1856 | while : |
michael@0 | 1857 | do |
michael@0 | 1858 | ac_lines=`grep -c . conftest.vals` |
michael@0 | 1859 | # grep -c gives empty output for an empty file on some AIX systems. |
michael@0 | 1860 | if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi |
michael@0 | 1861 | # Write a limited-size here document to conftest.frag. |
michael@0 | 1862 | echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS |
michael@0 | 1863 | sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS |
michael@0 | 1864 | echo 'CEOF |
michael@0 | 1865 | sed -f conftest.frag conftest.in > conftest.out |
michael@0 | 1866 | rm -f conftest.in |
michael@0 | 1867 | mv conftest.out conftest.in |
michael@0 | 1868 | ' >> $CONFIG_STATUS |
michael@0 | 1869 | sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail |
michael@0 | 1870 | rm -f conftest.vals |
michael@0 | 1871 | mv conftest.tail conftest.vals |
michael@0 | 1872 | done |
michael@0 | 1873 | rm -f conftest.vals |
michael@0 | 1874 | |
michael@0 | 1875 | cat >> $CONFIG_STATUS <<\EOF |
michael@0 | 1876 | rm -f conftest.frag conftest.h |
michael@0 | 1877 | echo "/* $ac_file. Generated automatically by configure. */" > conftest.h |
michael@0 | 1878 | cat conftest.in >> conftest.h |
michael@0 | 1879 | rm -f conftest.in |
michael@0 | 1880 | if cmp -s $ac_file conftest.h 2>/dev/null; then |
michael@0 | 1881 | echo "$ac_file is unchanged" |
michael@0 | 1882 | rm -f conftest.h |
michael@0 | 1883 | else |
michael@0 | 1884 | # Remove last slash and all that follows it. Not all systems have dirname. |
michael@0 | 1885 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` |
michael@0 | 1886 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
michael@0 | 1887 | # The file is in a subdirectory. |
michael@0 | 1888 | test ! -d "$ac_dir" && mkdir "$ac_dir" |
michael@0 | 1889 | fi |
michael@0 | 1890 | rm -f $ac_file |
michael@0 | 1891 | mv conftest.h $ac_file |
michael@0 | 1892 | fi |
michael@0 | 1893 | fi; done |
michael@0 | 1894 | |
michael@0 | 1895 | EOF |
michael@0 | 1896 | cat >> $CONFIG_STATUS <<EOF |
michael@0 | 1897 | |
michael@0 | 1898 | EOF |
michael@0 | 1899 | cat >> $CONFIG_STATUS <<\EOF |
michael@0 | 1900 | echo timestamp > stamp-h |
michael@0 | 1901 | exit 0 |
michael@0 | 1902 | EOF |
michael@0 | 1903 | chmod +x $CONFIG_STATUS |
michael@0 | 1904 | rm -fr confdefs* $ac_clean_files |
michael@0 | 1905 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 |
michael@0 | 1906 |