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