| 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 | a4d0961 | 1997-04-29 14:28:00 +0000 | [diff] [blame] | 31 |   --enable-profile	  build profiling libraries" | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 32 | ac_help="$ac_help | 
| Theodore Ts'o | a4d0961 | 1997-04-29 14:28:00 +0000 | [diff] [blame] | 33 |   --enable-checker	  build checker libraries" | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 34 | ac_help="$ac_help | 
| Theodore Ts'o | b0b9c4d | 1997-10-20 23:36:30 +0000 | [diff] [blame] | 35 |   --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] | 36 | ac_help="$ac_help | 
 | 37 |   --enable-dynamic-e2fsck build e2fsck dynamically" | 
| Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 38 | ac_help="$ac_help | 
 | 39 |   --enable-fsck           build fsck wrapper program" | 
 | 40 | ac_help="$ac_help | 
 | 41 |   --enable-old-bitops	  Use old (non-standard but native) bitmask operations" | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 42 |  | 
 | 43 | # Initialize some variables set by options. | 
 | 44 | # The variables have the same names as the options, with | 
 | 45 | # dashes changed to underlines. | 
 | 46 | build=NONE | 
 | 47 | cache_file=./config.cache | 
 | 48 | exec_prefix=NONE | 
 | 49 | host=NONE | 
 | 50 | no_create= | 
 | 51 | nonopt=NONE | 
 | 52 | no_recursion= | 
 | 53 | prefix=NONE | 
 | 54 | program_prefix=NONE | 
 | 55 | program_suffix=NONE | 
 | 56 | program_transform_name=s,x,x, | 
 | 57 | silent= | 
 | 58 | site= | 
 | 59 | srcdir= | 
 | 60 | target=NONE | 
 | 61 | verbose= | 
 | 62 | x_includes=NONE | 
 | 63 | x_libraries=NONE | 
| Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 64 | bindir='${exec_prefix}/bin' | 
 | 65 | sbindir='${exec_prefix}/sbin' | 
 | 66 | libexecdir='${exec_prefix}/libexec' | 
 | 67 | datadir='${prefix}/share' | 
 | 68 | sysconfdir='${prefix}/etc' | 
 | 69 | sharedstatedir='${prefix}/com' | 
 | 70 | localstatedir='${prefix}/var' | 
 | 71 | libdir='${exec_prefix}/lib' | 
 | 72 | includedir='${prefix}/include' | 
 | 73 | oldincludedir='/usr/include' | 
 | 74 | infodir='${prefix}/info' | 
 | 75 | mandir='${prefix}/man' | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 76 |  | 
 | 77 | # Initialize some other variables. | 
 | 78 | subdirs= | 
| Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 79 | MFLAGS= MAKEFLAGS= | 
| Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame^] | 80 | SHELL=${CONFIG_SHELL-/bin/sh} | 
| Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 81 | # Maximum number of lines to put in a shell here document. | 
 | 82 | ac_max_here_lines=12 | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 83 |  | 
 | 84 | ac_prev= | 
 | 85 | for ac_option | 
 | 86 | do | 
 | 87 |  | 
 | 88 |   # If the previous option needs an argument, assign it. | 
 | 89 |   if test -n "$ac_prev"; then | 
 | 90 |     eval "$ac_prev=\$ac_option" | 
 | 91 |     ac_prev= | 
 | 92 |     continue | 
 | 93 |   fi | 
 | 94 |  | 
 | 95 |   case "$ac_option" in | 
 | 96 |   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; | 
 | 97 |   *) ac_optarg= ;; | 
 | 98 |   esac | 
 | 99 |  | 
 | 100 |   # Accept the important Cygnus configure options, so we can diagnose typos. | 
 | 101 |  | 
 | 102 |   case "$ac_option" in | 
 | 103 |  | 
| Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 104 |   -bindir | --bindir | --bindi | --bind | --bin | --bi) | 
 | 105 |     ac_prev=bindir ;; | 
 | 106 |   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | 
 | 107 |     bindir="$ac_optarg" ;; | 
 | 108 |  | 
 | 109 |   -build | --build | --buil | --bui | --bu) | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 110 |     ac_prev=build ;; | 
| Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 111 |   -build=* | --build=* | --buil=* | --bui=* | --bu=*) | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 112 |     build="$ac_optarg" ;; | 
 | 113 |  | 
 | 114 |   -cache-file | --cache-file | --cache-fil | --cache-fi \ | 
 | 115 |   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | 
 | 116 |     ac_prev=cache_file ;; | 
 | 117 |   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | 
 | 118 |   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | 
 | 119 |     cache_file="$ac_optarg" ;; | 
 | 120 |  | 
| Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 121 |   -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | 
 | 122 |     ac_prev=datadir ;; | 
 | 123 |   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | 
 | 124 |   | --da=*) | 
 | 125 |     datadir="$ac_optarg" ;; | 
 | 126 |  | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 127 |   -disable-* | --disable-*) | 
 | 128 |     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` | 
 | 129 |     # Reject names that are not valid shell variable names. | 
 | 130 |     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then | 
 | 131 |       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | 
 | 132 |     fi | 
 | 133 |     ac_feature=`echo $ac_feature| sed 's/-/_/g'` | 
 | 134 |     eval "enable_${ac_feature}=no" ;; | 
 | 135 |  | 
 | 136 |   -enable-* | --enable-*) | 
 | 137 |     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` | 
 | 138 |     # Reject names that are not valid shell variable names. | 
 | 139 |     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then | 
 | 140 |       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | 
 | 141 |     fi | 
 | 142 |     ac_feature=`echo $ac_feature| sed 's/-/_/g'` | 
 | 143 |     case "$ac_option" in | 
 | 144 |       *=*) ;; | 
 | 145 |       *) ac_optarg=yes ;; | 
 | 146 |     esac | 
 | 147 |     eval "enable_${ac_feature}='$ac_optarg'" ;; | 
 | 148 |  | 
 | 149 |   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | 
 | 150 |   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | 
 | 151 |   | --exec | --exe | --ex) | 
 | 152 |     ac_prev=exec_prefix ;; | 
 | 153 |   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | 
 | 154 |   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | 
 | 155 |   | --exec=* | --exe=* | --ex=*) | 
 | 156 |     exec_prefix="$ac_optarg" ;; | 
 | 157 |  | 
 | 158 |   -gas | --gas | --ga | --g) | 
 | 159 |     # Obsolete; use --with-gas. | 
 | 160 |     with_gas=yes ;; | 
 | 161 |  | 
 | 162 |   -help | --help | --hel | --he) | 
 | 163 |     # Omit some internal or obsolete options to make the list less imposing. | 
 | 164 |     # This message is too long to be a string in the A/UX 3.1 sh. | 
 | 165 |     cat << EOF | 
 | 166 | Usage: configure [options] [host] | 
 | 167 | Options: [defaults in brackets after descriptions] | 
 | 168 | Configuration: | 
 | 169 |   --cache-file=FILE       cache test results in FILE | 
 | 170 |   --help                  print this message | 
 | 171 |   --no-create             do not create output files | 
 | 172 |   --quiet, --silent       do not print \`checking...' messages | 
 | 173 |   --version               print the version of autoconf that created configure | 
 | 174 | Directory and file names: | 
 | 175 |   --prefix=PREFIX         install architecture-independent files in PREFIX | 
 | 176 |                           [$ac_default_prefix] | 
| Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 177 |   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 178 |                           [same as prefix] | 
| Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 179 |   --bindir=DIR            user executables in DIR [EPREFIX/bin] | 
 | 180 |   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin] | 
 | 181 |   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec] | 
 | 182 |   --datadir=DIR           read-only architecture-independent data in DIR | 
 | 183 |                           [PREFIX/share] | 
 | 184 |   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc] | 
 | 185 |   --sharedstatedir=DIR    modifiable architecture-independent data in DIR | 
 | 186 |                           [PREFIX/com] | 
 | 187 |   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var] | 
 | 188 |   --libdir=DIR            object code libraries in DIR [EPREFIX/lib] | 
 | 189 |   --includedir=DIR        C header files in DIR [PREFIX/include] | 
 | 190 |   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include] | 
 | 191 |   --infodir=DIR           info documentation in DIR [PREFIX/info] | 
 | 192 |   --mandir=DIR            man documentation in DIR [PREFIX/man] | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 193 |   --srcdir=DIR            find the sources in DIR [configure dir or ..] | 
 | 194 |   --program-prefix=PREFIX prepend PREFIX to installed program names | 
 | 195 |   --program-suffix=SUFFIX append SUFFIX to installed program names | 
| Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 196 |   --program-transform-name=PROGRAM | 
 | 197 |                           run sed PROGRAM on installed program names | 
 | 198 | EOF | 
 | 199 |     cat << EOF | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 200 | Host type: | 
 | 201 |   --build=BUILD           configure for building on BUILD [BUILD=HOST] | 
 | 202 |   --host=HOST             configure for HOST [guessed] | 
 | 203 |   --target=TARGET         configure for TARGET [TARGET=HOST] | 
 | 204 | Features and packages: | 
 | 205 |   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no) | 
 | 206 |   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes] | 
 | 207 |   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes] | 
 | 208 |   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no) | 
 | 209 |   --x-includes=DIR        X include files are in DIR | 
 | 210 |   --x-libraries=DIR       X library files are in DIR | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 211 | EOF | 
| Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 212 |     if test -n "$ac_help"; then | 
 | 213 |       echo "--enable and --with options recognized:$ac_help" | 
 | 214 |     fi | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 215 |     exit 0 ;; | 
 | 216 |  | 
 | 217 |   -host | --host | --hos | --ho) | 
 | 218 |     ac_prev=host ;; | 
 | 219 |   -host=* | --host=* | --hos=* | --ho=*) | 
 | 220 |     host="$ac_optarg" ;; | 
 | 221 |  | 
| Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 222 |   -includedir | --includedir | --includedi | --included | --include \ | 
 | 223 |   | --includ | --inclu | --incl | --inc) | 
 | 224 |     ac_prev=includedir ;; | 
 | 225 |   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | 
 | 226 |   | --includ=* | --inclu=* | --incl=* | --inc=*) | 
 | 227 |     includedir="$ac_optarg" ;; | 
 | 228 |  | 
 | 229 |   -infodir | --infodir | --infodi | --infod | --info | --inf) | 
 | 230 |     ac_prev=infodir ;; | 
 | 231 |   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | 
 | 232 |     infodir="$ac_optarg" ;; | 
 | 233 |  | 
 | 234 |   -libdir | --libdir | --libdi | --libd) | 
 | 235 |     ac_prev=libdir ;; | 
 | 236 |   -libdir=* | --libdir=* | --libdi=* | --libd=*) | 
 | 237 |     libdir="$ac_optarg" ;; | 
 | 238 |  | 
 | 239 |   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | 
 | 240 |   | --libexe | --libex | --libe) | 
 | 241 |     ac_prev=libexecdir ;; | 
 | 242 |   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | 
 | 243 |   | --libexe=* | --libex=* | --libe=*) | 
 | 244 |     libexecdir="$ac_optarg" ;; | 
 | 245 |  | 
 | 246 |   -localstatedir | --localstatedir | --localstatedi | --localstated \ | 
 | 247 |   | --localstate | --localstat | --localsta | --localst \ | 
 | 248 |   | --locals | --local | --loca | --loc | --lo) | 
 | 249 |     ac_prev=localstatedir ;; | 
 | 250 |   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | 
 | 251 |   | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | 
 | 252 |   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | 
 | 253 |     localstatedir="$ac_optarg" ;; | 
 | 254 |  | 
 | 255 |   -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | 
 | 256 |     ac_prev=mandir ;; | 
 | 257 |   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | 
 | 258 |     mandir="$ac_optarg" ;; | 
 | 259 |  | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 260 |   -nfp | --nfp | --nf) | 
 | 261 |     # Obsolete; use --without-fp. | 
 | 262 |     with_fp=no ;; | 
 | 263 |  | 
 | 264 |   -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | 
 | 265 |   | --no-cr | --no-c) | 
 | 266 |     no_create=yes ;; | 
 | 267 |  | 
 | 268 |   -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | 
 | 269 |   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | 
 | 270 |     no_recursion=yes ;; | 
 | 271 |  | 
| Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 272 |   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | 
 | 273 |   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | 
 | 274 |   | --oldin | --oldi | --old | --ol | --o) | 
 | 275 |     ac_prev=oldincludedir ;; | 
 | 276 |   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | 
 | 277 |   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | 
 | 278 |   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | 
 | 279 |     oldincludedir="$ac_optarg" ;; | 
 | 280 |  | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 281 |   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | 
 | 282 |     ac_prev=prefix ;; | 
 | 283 |   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | 
 | 284 |     prefix="$ac_optarg" ;; | 
 | 285 |  | 
 | 286 |   -program-prefix | --program-prefix | --program-prefi | --program-pref \ | 
 | 287 |   | --program-pre | --program-pr | --program-p) | 
 | 288 |     ac_prev=program_prefix ;; | 
 | 289 |   -program-prefix=* | --program-prefix=* | --program-prefi=* \ | 
 | 290 |   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | 
 | 291 |     program_prefix="$ac_optarg" ;; | 
 | 292 |  | 
 | 293 |   -program-suffix | --program-suffix | --program-suffi | --program-suff \ | 
 | 294 |   | --program-suf | --program-su | --program-s) | 
 | 295 |     ac_prev=program_suffix ;; | 
 | 296 |   -program-suffix=* | --program-suffix=* | --program-suffi=* \ | 
 | 297 |   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | 
 | 298 |     program_suffix="$ac_optarg" ;; | 
 | 299 |  | 
 | 300 |   -program-transform-name | --program-transform-name \ | 
 | 301 |   | --program-transform-nam | --program-transform-na \ | 
 | 302 |   | --program-transform-n | --program-transform- \ | 
 | 303 |   | --program-transform | --program-transfor \ | 
 | 304 |   | --program-transfo | --program-transf \ | 
 | 305 |   | --program-trans | --program-tran \ | 
 | 306 |   | --progr-tra | --program-tr | --program-t) | 
 | 307 |     ac_prev=program_transform_name ;; | 
 | 308 |   -program-transform-name=* | --program-transform-name=* \ | 
 | 309 |   | --program-transform-nam=* | --program-transform-na=* \ | 
 | 310 |   | --program-transform-n=* | --program-transform-=* \ | 
 | 311 |   | --program-transform=* | --program-transfor=* \ | 
 | 312 |   | --program-transfo=* | --program-transf=* \ | 
 | 313 |   | --program-trans=* | --program-tran=* \ | 
 | 314 |   | --progr-tra=* | --program-tr=* | --program-t=*) | 
 | 315 |     program_transform_name="$ac_optarg" ;; | 
 | 316 |  | 
 | 317 |   -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | 
 | 318 |   | -silent | --silent | --silen | --sile | --sil) | 
 | 319 |     silent=yes ;; | 
 | 320 |  | 
| Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 321 |   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | 
 | 322 |     ac_prev=sbindir ;; | 
 | 323 |   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | 
 | 324 |   | --sbi=* | --sb=*) | 
 | 325 |     sbindir="$ac_optarg" ;; | 
 | 326 |  | 
 | 327 |   -sharedstatedir | --sharedstatedir | --sharedstatedi \ | 
 | 328 |   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | 
 | 329 |   | --sharedst | --shareds | --shared | --share | --shar \ | 
 | 330 |   | --sha | --sh) | 
 | 331 |     ac_prev=sharedstatedir ;; | 
 | 332 |   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | 
 | 333 |   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | 
 | 334 |   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | 
 | 335 |   | --sha=* | --sh=*) | 
 | 336 |     sharedstatedir="$ac_optarg" ;; | 
 | 337 |  | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 338 |   -site | --site | --sit) | 
 | 339 |     ac_prev=site ;; | 
 | 340 |   -site=* | --site=* | --sit=*) | 
 | 341 |     site="$ac_optarg" ;; | 
 | 342 |  | 
 | 343 |   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | 
 | 344 |     ac_prev=srcdir ;; | 
 | 345 |   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | 
 | 346 |     srcdir="$ac_optarg" ;; | 
 | 347 |  | 
| Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 348 |   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | 
 | 349 |   | --syscon | --sysco | --sysc | --sys | --sy) | 
 | 350 |     ac_prev=sysconfdir ;; | 
 | 351 |   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | 
 | 352 |   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | 
 | 353 |     sysconfdir="$ac_optarg" ;; | 
 | 354 |  | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 355 |   -target | --target | --targe | --targ | --tar | --ta | --t) | 
 | 356 |     ac_prev=target ;; | 
 | 357 |   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | 
 | 358 |     target="$ac_optarg" ;; | 
 | 359 |  | 
 | 360 |   -v | -verbose | --verbose | --verbos | --verbo | --verb) | 
 | 361 |     verbose=yes ;; | 
 | 362 |  | 
 | 363 |   -version | --version | --versio | --versi | --vers) | 
| Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame^] | 364 |     echo "configure generated by autoconf version 2.13" | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 365 |     exit 0 ;; | 
 | 366 |  | 
 | 367 |   -with-* | --with-*) | 
 | 368 |     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` | 
 | 369 |     # Reject names that are not valid shell variable names. | 
 | 370 |     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then | 
 | 371 |       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | 
 | 372 |     fi | 
 | 373 |     ac_package=`echo $ac_package| sed 's/-/_/g'` | 
 | 374 |     case "$ac_option" in | 
 | 375 |       *=*) ;; | 
 | 376 |       *) ac_optarg=yes ;; | 
 | 377 |     esac | 
 | 378 |     eval "with_${ac_package}='$ac_optarg'" ;; | 
 | 379 |  | 
 | 380 |   -without-* | --without-*) | 
 | 381 |     ac_package=`echo $ac_option|sed -e 's/-*without-//'` | 
 | 382 |     # Reject names that are not valid shell variable names. | 
 | 383 |     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then | 
 | 384 |       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | 
 | 385 |     fi | 
 | 386 |     ac_package=`echo $ac_package| sed 's/-/_/g'` | 
 | 387 |     eval "with_${ac_package}=no" ;; | 
 | 388 |  | 
 | 389 |   --x) | 
 | 390 |     # Obsolete; use --with-x. | 
 | 391 |     with_x=yes ;; | 
 | 392 |  | 
 | 393 |   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | 
 | 394 |   | --x-incl | --x-inc | --x-in | --x-i) | 
 | 395 |     ac_prev=x_includes ;; | 
 | 396 |   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | 
 | 397 |   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | 
 | 398 |     x_includes="$ac_optarg" ;; | 
 | 399 |  | 
 | 400 |   -x-libraries | --x-libraries | --x-librarie | --x-librari \ | 
 | 401 |   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | 
 | 402 |     ac_prev=x_libraries ;; | 
 | 403 |   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | 
 | 404 |   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | 
 | 405 |     x_libraries="$ac_optarg" ;; | 
 | 406 |  | 
 | 407 |   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } | 
 | 408 |     ;; | 
 | 409 |  | 
| Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 410 |   *) | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 411 |     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then | 
 | 412 |       echo "configure: warning: $ac_option: invalid host type" 1>&2 | 
 | 413 |     fi | 
 | 414 |     if test "x$nonopt" != xNONE; then | 
 | 415 |       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } | 
 | 416 |     fi | 
 | 417 |     nonopt="$ac_option" | 
 | 418 |     ;; | 
 | 419 |  | 
 | 420 |   esac | 
 | 421 | done | 
 | 422 |  | 
 | 423 | if test -n "$ac_prev"; then | 
 | 424 |   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } | 
 | 425 | fi | 
 | 426 |  | 
 | 427 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | 
 | 428 |  | 
 | 429 | # File descriptor usage: | 
 | 430 | # 0 standard input | 
 | 431 | # 1 file creation | 
 | 432 | # 2 errors and warnings | 
 | 433 | # 3 some systems may open it to /dev/tty | 
 | 434 | # 4 used on the Kubota Titan | 
 | 435 | # 6 checking for... messages and results | 
 | 436 | # 5 compiler messages saved in config.log | 
 | 437 | if test "$silent" = yes; then | 
 | 438 |   exec 6>/dev/null | 
 | 439 | else | 
 | 440 |   exec 6>&1 | 
 | 441 | fi | 
 | 442 | exec 5>./config.log | 
 | 443 |  | 
 | 444 | echo "\ | 
 | 445 | This file contains any messages produced by compilers while | 
 | 446 | running configure, to aid debugging if configure makes a mistake. | 
 | 447 | " 1>&5 | 
 | 448 |  | 
 | 449 | # Strip out --no-create and --no-recursion so they do not pile up. | 
 | 450 | # Also quote any args containing shell metacharacters. | 
 | 451 | ac_configure_args= | 
 | 452 | for ac_arg | 
 | 453 | do | 
 | 454 |   case "$ac_arg" in | 
 | 455 |   -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | 
 | 456 |   | --no-cr | --no-c) ;; | 
 | 457 |   -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | 
 | 458 |   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; | 
 | 459 |   *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) | 
 | 460 |   ac_configure_args="$ac_configure_args '$ac_arg'" ;; | 
 | 461 |   *) ac_configure_args="$ac_configure_args $ac_arg" ;; | 
 | 462 |   esac | 
 | 463 | done | 
 | 464 |  | 
 | 465 | # NLS nuisances. | 
| Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 466 | # Only set these to C if already set.  These must not be set unconditionally | 
 | 467 | # because not all systems understand e.g. LANG=C (notably SCO). | 
 | 468 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! | 
 | 469 | # Non-C LC_CTYPE values break the ctype check. | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 470 | if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi | 
| Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 471 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi | 
 | 472 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi | 
 | 473 | 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] | 474 |  | 
 | 475 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | 
 | 476 | rm -rf conftest* confdefs.h | 
 | 477 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | 
 | 478 | echo > confdefs.h | 
 | 479 |  | 
 | 480 | # A filename unique to this package, relative to the directory that | 
 | 481 | # configure is in, which we can look for to find out if srcdir is correct. | 
 | 482 | ac_unique_file=version.h | 
 | 483 |  | 
 | 484 | # Find the source files, if location was not specified. | 
 | 485 | if test -z "$srcdir"; then | 
 | 486 |   ac_srcdir_defaulted=yes | 
 | 487 |   # Try the directory containing this script, then its parent. | 
 | 488 |   ac_prog=$0 | 
 | 489 |   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` | 
 | 490 |   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. | 
 | 491 |   srcdir=$ac_confdir | 
 | 492 |   if test ! -r $srcdir/$ac_unique_file; then | 
 | 493 |     srcdir=.. | 
 | 494 |   fi | 
 | 495 | else | 
 | 496 |   ac_srcdir_defaulted=no | 
 | 497 | fi | 
 | 498 | if test ! -r $srcdir/$ac_unique_file; then | 
 | 499 |   if test "$ac_srcdir_defaulted" = yes; then | 
 | 500 |     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } | 
 | 501 |   else | 
 | 502 |     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } | 
 | 503 |   fi | 
 | 504 | fi | 
 | 505 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` | 
 | 506 |  | 
 | 507 | # Prefer explicitly selected file to automatically selected ones. | 
 | 508 | if test -z "$CONFIG_SITE"; then | 
 | 509 |   if test "x$prefix" != xNONE; then | 
 | 510 |     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | 
 | 511 |   else | 
 | 512 |     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | 
 | 513 |   fi | 
 | 514 | fi | 
 | 515 | for ac_site_file in $CONFIG_SITE; do | 
 | 516 |   if test -r "$ac_site_file"; then | 
 | 517 |     echo "loading site script $ac_site_file" | 
 | 518 |     . "$ac_site_file" | 
 | 519 |   fi | 
 | 520 | done | 
 | 521 |  | 
 | 522 | if test -r "$cache_file"; then | 
 | 523 |   echo "loading cache $cache_file" | 
 | 524 |   . $cache_file | 
 | 525 | else | 
 | 526 |   echo "creating cache $cache_file" | 
 | 527 |   > $cache_file | 
 | 528 | fi | 
 | 529 |  | 
 | 530 | ac_ext=c | 
 | 531 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | 
 | 532 | ac_cpp='$CPP $CPPFLAGS' | 
| Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 533 | 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^] | 534 | 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] | 535 | cross_compiling=$ac_cv_prog_cc_cross | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 536 |  | 
| Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame^] | 537 | ac_exeext= | 
 | 538 | ac_objext=o | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 539 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then | 
 | 540 |   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. | 
 | 541 |   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then | 
 | 542 |     ac_n= ac_c=' | 
 | 543 | ' ac_t='	' | 
 | 544 |   else | 
 | 545 |     ac_n=-n ac_c= ac_t= | 
 | 546 |   fi | 
 | 547 | else | 
 | 548 |   ac_n= ac_c='\c' ac_t= | 
 | 549 | fi | 
 | 550 |  | 
 | 551 |  | 
| Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 552 |  | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 553 | MCONFIG=./MCONFIG | 
 | 554 |  | 
| Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 555 | BINARY_TYPE=bin | 
 | 556 | E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h  \ | 
 | 557 | 	| awk '{print $3}' | tr \" " " | awk '{print $1}'` | 
 | 558 | DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \ | 
 | 559 | 	| tr \" " "` | 
 | 560 | MONTH=`echo $DATE | awk -F- '{print $2}'` | 
 | 561 | YEAR=`echo $DATE | awk -F- '{print $3}'` | 
 | 562 |  | 
| Theodore Ts'o | 14790ed | 1999-01-12 23:32:52 +0000 | [diff] [blame] | 563 | if expr $YEAR ">" 1900 > /dev/null ; then | 
 | 564 | 	E2FSPROGS_YEAR=$YEAR | 
 | 565 | elif expr $YEAR ">" 90 >/dev/null ; then | 
| Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 566 | 	E2FSPROGS_YEAR=19$YEAR | 
 | 567 | else | 
 | 568 | 	E2FSPROGS_YEAR=20$YEAR | 
 | 569 | fi | 
 | 570 |  | 
 | 571 | case $MONTH in | 
 | 572 | Jan)	E2FSPROGS_MONTH="January" ;; | 
 | 573 | Feb)	E2FSPROGS_MONTH="February" ;; | 
 | 574 | Mar)	E2FSPROGS_MONTH="March" ;; | 
 | 575 | Apr)	E2FSPROGS_MONTH="April" ;; | 
 | 576 | May)	E2FSPROGS_MONTH="May" ;; | 
 | 577 | Jun)	E2FSPROGS_MONTH="June" ;; | 
 | 578 | Jul)	E2FSPROGS_MONTH="July" ;; | 
 | 579 | Aug)	E2FSPROGS_MONTH="August" ;; | 
 | 580 | Sep)	E2FSPROGS_MONTH="September" ;; | 
 | 581 | Oct)	E2FSPROGS_MONTH="October" ;; | 
 | 582 | Nov)	E2FSPROGS_MONTH="November" ;; | 
 | 583 | Dec)	E2FSPROGS_MONTH="December" ;; | 
 | 584 | *)	echo "Unknown month $MONTH??" ;; | 
 | 585 | esac | 
 | 586 |  | 
 | 587 | unset DATE MONTH YEAR | 
 | 588 | echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" | 
 | 589 | echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" | 
 | 590 |  | 
 | 591 |  | 
 | 592 |  | 
| Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 593 |  | 
 | 594 | ac_aux_dir= | 
 | 595 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | 
 | 596 |   if test -f $ac_dir/install-sh; then | 
 | 597 |     ac_aux_dir=$ac_dir | 
 | 598 |     ac_install_sh="$ac_aux_dir/install-sh -c" | 
 | 599 |     break | 
 | 600 |   elif test -f $ac_dir/install.sh; then | 
 | 601 |     ac_aux_dir=$ac_dir | 
 | 602 |     ac_install_sh="$ac_aux_dir/install.sh -c" | 
 | 603 |     break | 
 | 604 |   fi | 
 | 605 | done | 
 | 606 | if test -z "$ac_aux_dir"; then | 
 | 607 |   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } | 
 | 608 | fi | 
 | 609 | ac_config_guess=$ac_aux_dir/config.guess | 
 | 610 | ac_config_sub=$ac_aux_dir/config.sub | 
 | 611 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. | 
 | 612 |  | 
 | 613 |  | 
 | 614 | # Make sure we can run config.sub. | 
| Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame^] | 615 | 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] | 616 | else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } | 
 | 617 | fi | 
 | 618 |  | 
 | 619 | echo $ac_n "checking host system type""... $ac_c" 1>&6 | 
| Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame^] | 620 | echo "configure:621: checking host system type" >&5 | 
| Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 621 |  | 
 | 622 | host_alias=$host | 
 | 623 | case "$host_alias" in | 
 | 624 | NONE) | 
 | 625 |   case $nonopt in | 
 | 626 |   NONE) | 
| Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame^] | 627 |     if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : | 
| Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 628 |     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } | 
 | 629 |     fi ;; | 
 | 630 |   *) host_alias=$nonopt ;; | 
 | 631 |   esac ;; | 
 | 632 | esac | 
 | 633 |  | 
| Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame^] | 634 | host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` | 
| Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 635 | host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | 
 | 636 | host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | 
 | 637 | host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | 
| Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 638 | echo "$ac_t""$host" 1>&6 | 
 | 639 |  | 
| Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 640 | # Check whether --with-cc or --without-cc was given. | 
| Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 641 | if test "${with_cc+set}" = set; then | 
 | 642 |   withval="$with_cc" | 
| Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 643 |   echo "$ac_t""CC=$withval" 1>&6 | 
 | 644 | CC=$withval | 
 | 645 | else | 
 | 646 |   if test -z "$CC" ; then CC=cc; fi | 
 | 647 | echo "$ac_t""CC defaults to $CC" 1>&6 | 
 | 648 | fi | 
 | 649 | export CC | 
 | 650 |  | 
 | 651 | # Check whether --with-linker or --without-linker was given. | 
| Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 652 | if test "${with_linker+set}" = set; then | 
 | 653 |   withval="$with_linker" | 
| Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 654 |   echo "$ac_t""LD=$withval" 1>&6 | 
 | 655 | LD=$withval | 
 | 656 | else | 
 | 657 |   if test -z "$LD" ; then LD=$CC; fi | 
 | 658 | echo "$ac_t""LD defaults to $LD" 1>&6 | 
 | 659 | fi | 
 | 660 | export LD | 
 | 661 |  | 
 | 662 | # Check whether --with-ccopts or --without-ccopts was given. | 
| Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 663 | if test "${with_ccopts+set}" = set; then | 
 | 664 |   withval="$with_ccopts" | 
| Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 665 |   echo "$ac_t""CCOPTS is $withval" 1>&6 | 
 | 666 | CCOPTS=$withval | 
 | 667 | CFLAGS="$CFLAGS $withval" | 
 | 668 | else | 
 | 669 |   CCOPTS= | 
 | 670 | fi | 
 | 671 |  | 
| Theodore Ts'o | a4d0961 | 1997-04-29 14:28:00 +0000 | [diff] [blame] | 672 | LIB_EXT=.a | 
 | 673 | STATIC_LIB_EXT=.a | 
 | 674 | PROFILE_LIB_EXT=.a | 
| Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 675 | # Check whether --with-ldopts or --without-ldopts was given. | 
| Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 676 | if test "${with_ldopts+set}" = set; then | 
 | 677 |   withval="$with_ldopts" | 
| Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 678 |   echo "$ac_t""LDFLAGS is $withval" 1>&6 | 
 | 679 | LDFLAGS=$withval | 
 | 680 | else | 
 | 681 |   LDFLAGS= | 
 | 682 | fi | 
 | 683 |  | 
| Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 684 | # Check whether --with-root-prefix or --without-root-prefix was given. | 
 | 685 | if test "${with_root_prefix+set}" = set; then | 
 | 686 |   withval="$with_root_prefix" | 
 | 687 |   root_prefix=$withval | 
| Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 688 | else | 
| Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 689 |   root_prefix=NONE | 
| Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 690 | fi | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 691 | # Check whether --enable-dll-shlibs or --disable-dll-shlibs was given. | 
| Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 692 | if test "${enable_dll_shlibs+set}" = set; then | 
 | 693 |   enableval="$enable_dll_shlibs" | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 694 |   if test "$enableval" = "no" | 
 | 695 | then | 
 | 696 | 	DLL_CMT=# | 
 | 697 | 	MAKEFILE_DLL=/dev/null | 
 | 698 | 	echo "Disabling DLL shared libraries" | 
 | 699 | else | 
 | 700 | 	DLL_CMT= | 
 | 701 | 	MAKEFILE_DLL=$srcdir/lib/Makefile.dll-lib | 
| Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 702 | 	BINARY_TYPE=dllbin | 
| Theodore Ts'o | a4d0961 | 1997-04-29 14:28:00 +0000 | [diff] [blame] | 703 | 	LIB_EXT=.sa | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 704 | 	echo "Enabling DLL shared libraries" | 
 | 705 | fi | 
 | 706 |  | 
 | 707 | else | 
 | 708 |   MAKEFILE_DLL=/dev/null | 
 | 709 | DLL_CMT=# | 
 | 710 | echo "Disabling DLL shared libraries by default" | 
 | 711 |  | 
 | 712 | fi | 
 | 713 |  | 
 | 714 |  | 
 | 715 |  | 
 | 716 | # Check whether --enable-elf-shlibs or --disable-elf-shlibs was given. | 
| Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 717 | if test "${enable_elf_shlibs+set}" = set; then | 
 | 718 |   enableval="$enable_elf_shlibs" | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 719 |   if test "$enableval" = "no" | 
 | 720 | then | 
 | 721 | 	ELF_CMT=# | 
 | 722 | 	MAKEFILE_ELF=/dev/null | 
 | 723 | 	echo "Disabling ELF shared libraries" | 
 | 724 | else | 
 | 725 | 	ELF_CMT= | 
 | 726 | 	MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib | 
| Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 727 | 	BINARY_TYPE=elfbin | 
| Theodore Ts'o | a4d0961 | 1997-04-29 14:28:00 +0000 | [diff] [blame] | 728 | 	LIB_EXT=.so | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 729 | 	echo "Enabling ELF shared libraries" | 
 | 730 | fi | 
 | 731 |  | 
 | 732 | else | 
 | 733 |   MAKEFILE_ELF=/dev/null | 
 | 734 | ELF_CMT=# | 
 | 735 | echo "Disabling ELF shared libraries by default" | 
 | 736 |  | 
 | 737 | fi | 
 | 738 |  | 
 | 739 |  | 
 | 740 |  | 
 | 741 | # Check whether --enable-bsd-shlibs or --disable-bsd-shlibs was given. | 
| Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 742 | if test "${enable_bsd_shlibs+set}" = set; then | 
 | 743 |   enableval="$enable_bsd_shlibs" | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 744 |   if test "$enableval" = "no" | 
 | 745 | then | 
 | 746 | 	BSDLIB_CMT=# | 
 | 747 | 	MAKEFILE_BSDLIB=/dev/null | 
 | 748 | 	echo "Disabling BSD shared libraries" | 
 | 749 | else | 
 | 750 | 	BSDLIB_CMT= | 
 | 751 | 	MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib | 
| Theodore Ts'o | a4d0961 | 1997-04-29 14:28:00 +0000 | [diff] [blame] | 752 | 	LIB_EXT=.so | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 753 | 	echo "Enabling BSD shared libraries" | 
 | 754 | fi | 
 | 755 |  | 
 | 756 | else | 
 | 757 |   MAKEFILE_BSDLIB=/dev/null | 
 | 758 | BSDLIB_CMT=# | 
 | 759 | echo "Disabling BSD shared libraries by default" | 
 | 760 |  | 
 | 761 | fi | 
 | 762 |  | 
 | 763 |  | 
 | 764 |  | 
 | 765 | # Check whether --enable-profile or --disable-profile was given. | 
| Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 766 | if test "${enable_profile+set}" = set; then | 
 | 767 |   enableval="$enable_profile" | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 768 |   if test "$enableval" = "no" | 
 | 769 | then | 
 | 770 | 	PROFILE_CMT=# | 
 | 771 | 	MAKEFILE_PROFILE=/dev/null | 
 | 772 | 	echo "Disabling profiling libraries" | 
 | 773 | else | 
 | 774 | 	PROFILE_CMT= | 
 | 775 | 	MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile | 
| Theodore Ts'o | a4d0961 | 1997-04-29 14:28:00 +0000 | [diff] [blame] | 776 | 	PROFILED_LIB_EXT=_p.a | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 777 | 	echo "Building profiling libraries" | 
 | 778 | fi | 
 | 779 |  | 
 | 780 | else | 
 | 781 |   PROFILE_CMT=# | 
 | 782 | MAKEFILE_PROFILE=/dev/null | 
 | 783 | echo "Disabling profiling libraries by default" | 
 | 784 |  | 
 | 785 | fi | 
 | 786 |  | 
 | 787 |  | 
 | 788 |  | 
 | 789 | # Check whether --enable-checker or --disable-checker was given. | 
| Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 790 | if test "${enable_checker+set}" = set; then | 
 | 791 |   enableval="$enable_checker" | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 792 |   if test "$enableval" = "no" | 
 | 793 | then | 
 | 794 | 	CHECKER_CMT=# | 
 | 795 | 	MAKEFILE_CHECKER=/dev/null | 
 | 796 | 	echo "Disabling checker libraries" | 
 | 797 | else | 
 | 798 | 	CHECKER_CMT= | 
 | 799 | 	MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker | 
 | 800 | 	echo "Building checker libraries" | 
 | 801 | fi | 
 | 802 |  | 
 | 803 | else | 
 | 804 |   CHECKER_CMT=# | 
 | 805 | MAKEFILE_CHECKER=/dev/null | 
 | 806 | echo "Disabling checker libraries by default" | 
 | 807 |  | 
 | 808 | fi | 
 | 809 |  | 
 | 810 |  | 
 | 811 |  | 
| Theodore Ts'o | a4d0961 | 1997-04-29 14:28:00 +0000 | [diff] [blame] | 812 |  | 
 | 813 |  | 
 | 814 |  | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 815 | # Check whether --enable-gcc-wall or --disable-gcc-wall was given. | 
| Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 816 | if test "${enable_gcc_wall+set}" = set; then | 
 | 817 |   enableval="$enable_gcc_wall" | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 818 |   if test "$enableval" = "no" | 
 | 819 | then | 
 | 820 | 	W=# | 
 | 821 | 	echo "Disabling GCC warnings" | 
 | 822 | else | 
 | 823 | 	W= | 
 | 824 | 	echo "Enabling GCC warnings" | 
 | 825 | fi | 
 | 826 |  | 
 | 827 | else | 
 | 828 |   W=# | 
 | 829 | echo "Disabling GCC warnings by default" | 
 | 830 |  | 
 | 831 | fi | 
 | 832 |  | 
 | 833 |  | 
| Theodore Ts'o | a4d0961 | 1997-04-29 14:28:00 +0000 | [diff] [blame] | 834 | # Check whether --enable-dynamic-e2fsck or --disable-dynamic-e2fsck was given. | 
| Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 835 | if test "${enable_dynamic_e2fsck+set}" = set; then | 
 | 836 |   enableval="$enable_dynamic_e2fsck" | 
| Theodore Ts'o | a4d0961 | 1997-04-29 14:28:00 +0000 | [diff] [blame] | 837 |   if test "$enableval" = "no" | 
 | 838 | then | 
 | 839 | 	E2FSCK_TYPE=static | 
 | 840 | 	echo "Building e2fsck statically" | 
 | 841 | else | 
 | 842 | 	E2FSCK_TYPE=shared | 
 | 843 | 	echo "Building e2fsck dynamically" | 
 | 844 | fi | 
 | 845 |  | 
 | 846 | else | 
 | 847 |   E2FSCK_TYPE=static | 
 | 848 | echo "Building e2fsck statically by default" | 
 | 849 |  | 
 | 850 | fi | 
 | 851 |  | 
 | 852 |  | 
| Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 853 | # Check whether --enable-fsck or --disable-fsck was given. | 
| Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 854 | if test "${enable_fsck+set}" = set; then | 
 | 855 |   enableval="$enable_fsck" | 
| Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 856 |   if test "$enableval" = "no" | 
 | 857 | then | 
 | 858 | 	FSCK_PROG='' FSCK_MAN='' | 
 | 859 | 	echo "Not building fsck wrapper" | 
 | 860 | else | 
 | 861 | 	FSCK_PROG=fsck FSCK_MAN=fsck.8 | 
 | 862 | 	echo "Building fsck wrapper" | 
 | 863 | fi | 
 | 864 |  | 
 | 865 | else | 
 | 866 |   case "$host_os" in | 
 | 867 |   gnu*) | 
 | 868 |     FSCK_PROG='' FSCK_MAN='' | 
 | 869 |     echo "Not building fsck wrapper by default" | 
 | 870 |     ;; | 
 | 871 |   *) | 
 | 872 |     FSCK_PROG=fsck FSCK_MAN=fsck.8 | 
 | 873 |     echo "Building fsck wrapper by default" | 
 | 874 | esac | 
 | 875 |  | 
 | 876 | fi | 
 | 877 |  | 
 | 878 |  | 
 | 879 |  | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 880 | MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library | 
 | 881 |  | 
| Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 882 | # Check whether --enable-old-bitops or --disable-old-bitops was given. | 
| Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 883 | if test "${enable_old_bitops+set}" = set; then | 
 | 884 |   enableval="$enable_old_bitops" | 
| Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 885 |   if test "$enableval" = "no" | 
 | 886 | then | 
 | 887 | 	echo "Using new (standard) bitmask operations" | 
 | 888 | else | 
 | 889 | 	cat >> confdefs.h <<\EOF | 
 | 890 | #define EXT2_OLD_BITOPS 1 | 
 | 891 | EOF | 
 | 892 |  | 
 | 893 | 	echo "Using old (native) bitmask operations" | 
 | 894 |  | 
 | 895 | fi | 
 | 896 |  | 
 | 897 | else | 
 | 898 |   echo "Using standard bitmask operations by default" | 
 | 899 |  | 
 | 900 | fi | 
 | 901 |  | 
| Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 902 |  | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 903 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 | 
| Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame^] | 904 | echo "configure:905: checking whether ${MAKE-make} sets \${MAKE}" >&5 | 
| Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 905 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 906 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then | 
 | 907 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
 | 908 | else | 
 | 909 |   cat > conftestmake <<\EOF | 
 | 910 | all: | 
 | 911 | 	@echo 'ac_maketemp="${MAKE}"' | 
 | 912 | EOF | 
 | 913 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | 
 | 914 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` | 
 | 915 | if test -n "$ac_maketemp"; then | 
 | 916 |   eval ac_cv_prog_make_${ac_make}_set=yes | 
 | 917 | else | 
 | 918 |   eval ac_cv_prog_make_${ac_make}_set=no | 
 | 919 | fi | 
 | 920 | rm -f conftestmake | 
 | 921 | fi | 
 | 922 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | 
 | 923 |   echo "$ac_t""yes" 1>&6 | 
 | 924 |   SET_MAKE= | 
 | 925 | else | 
 | 926 |   echo "$ac_t""no" 1>&6 | 
 | 927 |   SET_MAKE="MAKE=${MAKE-make}" | 
 | 928 | fi | 
 | 929 |  | 
 | 930 | # Extract the first word of "ln", so it can be a program name with args. | 
 | 931 | set dummy ln; ac_word=$2 | 
 | 932 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | 
| Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame^] | 933 | echo "configure:934: checking for $ac_word" >&5 | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 934 | if eval "test \"`echo '$''{'ac_cv_path_LN'+set}'`\" = set"; then | 
 | 935 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
 | 936 | else | 
 | 937 |   case "$LN" in | 
 | 938 |   /*) | 
 | 939 |   ac_cv_path_LN="$LN" # Let the user override the test with a path. | 
 | 940 |   ;; | 
| Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame^] | 941 |   ?:/*)			  | 
 | 942 |   ac_cv_path_LN="$LN" # Let the user override the test with a dos path. | 
 | 943 |   ;; | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 944 |   *) | 
| Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame^] | 945 |   IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":" | 
 | 946 |   ac_dummy="$PATH" | 
 | 947 |   for ac_dir in $ac_dummy; do  | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 948 |     test -z "$ac_dir" && ac_dir=. | 
 | 949 |     if test -f $ac_dir/$ac_word; then | 
 | 950 |       ac_cv_path_LN="$ac_dir/$ac_word" | 
 | 951 |       break | 
 | 952 |     fi | 
 | 953 |   done | 
 | 954 |   IFS="$ac_save_ifs" | 
 | 955 |   test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln" | 
 | 956 |   ;; | 
 | 957 | esac | 
 | 958 | fi | 
 | 959 | LN="$ac_cv_path_LN" | 
 | 960 | if test -n "$LN"; then | 
 | 961 |   echo "$ac_t""$LN" 1>&6 | 
 | 962 | else | 
 | 963 |   echo "$ac_t""no" 1>&6 | 
 | 964 | fi | 
 | 965 |  | 
| Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 966 | echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 | 
| Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame^] | 967 | echo "configure:968: checking whether ln -s works" >&5 | 
| Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 968 | if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then | 
 | 969 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
 | 970 | else | 
 | 971 |   rm -f conftestdata | 
 | 972 | if ln -s X conftestdata 2>/dev/null | 
 | 973 | then | 
 | 974 |   rm -f conftestdata | 
 | 975 |   ac_cv_prog_LN_S="ln -s" | 
 | 976 | else | 
 | 977 |   ac_cv_prog_LN_S=ln | 
 | 978 | fi | 
 | 979 | fi | 
 | 980 | LN_S="$ac_cv_prog_LN_S" | 
 | 981 | if test "$ac_cv_prog_LN_S" = "ln -s"; then | 
 | 982 |   echo "$ac_t""yes" 1>&6 | 
 | 983 | else | 
 | 984 |   echo "$ac_t""no" 1>&6 | 
 | 985 | fi | 
 | 986 |  | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 987 | # Extract the first word of "mv", so it can be a program name with args. | 
 | 988 | set dummy mv; ac_word=$2 | 
 | 989 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | 
| Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame^] | 990 | echo "configure:991: checking for $ac_word" >&5 | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 991 | if eval "test \"`echo '$''{'ac_cv_path_MV'+set}'`\" = set"; then | 
 | 992 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
 | 993 | else | 
 | 994 |   case "$MV" in | 
 | 995 |   /*) | 
 | 996 |   ac_cv_path_MV="$MV" # Let the user override the test with a path. | 
 | 997 |   ;; | 
| Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame^] | 998 |   ?:/*)			  | 
 | 999 |   ac_cv_path_MV="$MV" # Let the user override the test with a dos path. | 
 | 1000 |   ;; | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1001 |   *) | 
| Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame^] | 1002 |   IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":" | 
 | 1003 |   ac_dummy="$PATH" | 
 | 1004 |   for ac_dir in $ac_dummy; do  | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1005 |     test -z "$ac_dir" && ac_dir=. | 
 | 1006 |     if test -f $ac_dir/$ac_word; then | 
 | 1007 |       ac_cv_path_MV="$ac_dir/$ac_word" | 
 | 1008 |       break | 
 | 1009 |     fi | 
 | 1010 |   done | 
 | 1011 |   IFS="$ac_save_ifs" | 
 | 1012 |   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv" | 
 | 1013 |   ;; | 
 | 1014 | esac | 
 | 1015 | fi | 
 | 1016 | MV="$ac_cv_path_MV" | 
 | 1017 | if test -n "$MV"; then | 
 | 1018 |   echo "$ac_t""$MV" 1>&6 | 
 | 1019 | else | 
 | 1020 |   echo "$ac_t""no" 1>&6 | 
 | 1021 | fi | 
 | 1022 |  | 
 | 1023 | # Extract the first word of "cp", so it can be a program name with args. | 
 | 1024 | set dummy cp; ac_word=$2 | 
 | 1025 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | 
| Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame^] | 1026 | echo "configure:1027: checking for $ac_word" >&5 | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1027 | if eval "test \"`echo '$''{'ac_cv_path_CP'+set}'`\" = set"; then | 
 | 1028 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
 | 1029 | else | 
 | 1030 |   case "$CP" in | 
 | 1031 |   /*) | 
 | 1032 |   ac_cv_path_CP="$CP" # Let the user override the test with a path. | 
 | 1033 |   ;; | 
| Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame^] | 1034 |   ?:/*)			  | 
 | 1035 |   ac_cv_path_CP="$CP" # Let the user override the test with a dos path. | 
 | 1036 |   ;; | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1037 |   *) | 
| Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame^] | 1038 |   IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":" | 
 | 1039 |   ac_dummy="$PATH" | 
 | 1040 |   for ac_dir in $ac_dummy; do  | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1041 |     test -z "$ac_dir" && ac_dir=. | 
 | 1042 |     if test -f $ac_dir/$ac_word; then | 
 | 1043 |       ac_cv_path_CP="$ac_dir/$ac_word" | 
 | 1044 |       break | 
 | 1045 |     fi | 
 | 1046 |   done | 
 | 1047 |   IFS="$ac_save_ifs" | 
 | 1048 |   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp" | 
 | 1049 |   ;; | 
 | 1050 | esac | 
 | 1051 | fi | 
 | 1052 | CP="$ac_cv_path_CP" | 
 | 1053 | if test -n "$CP"; then | 
 | 1054 |   echo "$ac_t""$CP" 1>&6 | 
 | 1055 | else | 
 | 1056 |   echo "$ac_t""no" 1>&6 | 
 | 1057 | fi | 
 | 1058 |  | 
 | 1059 | # Extract the first word of "rm", so it can be a program name with args. | 
 | 1060 | set dummy rm; ac_word=$2 | 
 | 1061 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | 
| Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame^] | 1062 | echo "configure:1063: checking for $ac_word" >&5 | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1063 | if eval "test \"`echo '$''{'ac_cv_path_RM'+set}'`\" = set"; then | 
 | 1064 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
 | 1065 | else | 
 | 1066 |   case "$RM" in | 
 | 1067 |   /*) | 
 | 1068 |   ac_cv_path_RM="$RM" # Let the user override the test with a path. | 
 | 1069 |   ;; | 
| Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame^] | 1070 |   ?:/*)			  | 
 | 1071 |   ac_cv_path_RM="$RM" # Let the user override the test with a dos path. | 
 | 1072 |   ;; | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1073 |   *) | 
| Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame^] | 1074 |   IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":" | 
 | 1075 |   ac_dummy="$PATH" | 
 | 1076 |   for ac_dir in $ac_dummy; do  | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1077 |     test -z "$ac_dir" && ac_dir=. | 
 | 1078 |     if test -f $ac_dir/$ac_word; then | 
 | 1079 |       ac_cv_path_RM="$ac_dir/$ac_word" | 
 | 1080 |       break | 
 | 1081 |     fi | 
 | 1082 |   done | 
 | 1083 |   IFS="$ac_save_ifs" | 
 | 1084 |   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm" | 
 | 1085 |   ;; | 
 | 1086 | esac | 
 | 1087 | fi | 
 | 1088 | RM="$ac_cv_path_RM" | 
 | 1089 | if test -n "$RM"; then | 
 | 1090 |   echo "$ac_t""$RM" 1>&6 | 
 | 1091 | else | 
 | 1092 |   echo "$ac_t""no" 1>&6 | 
 | 1093 | fi | 
 | 1094 |  | 
 | 1095 | # Extract the first word of "chmod", so it can be a program name with args. | 
 | 1096 | set dummy chmod; ac_word=$2 | 
 | 1097 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | 
| Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame^] | 1098 | echo "configure:1099: checking for $ac_word" >&5 | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1099 | if eval "test \"`echo '$''{'ac_cv_path_CHMOD'+set}'`\" = set"; then | 
 | 1100 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
 | 1101 | else | 
 | 1102 |   case "$CHMOD" in | 
 | 1103 |   /*) | 
 | 1104 |   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path. | 
 | 1105 |   ;; | 
| Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame^] | 1106 |   ?:/*)			  | 
 | 1107 |   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a dos path. | 
 | 1108 |   ;; | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1109 |   *) | 
| Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame^] | 1110 |   IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":" | 
 | 1111 |   ac_dummy="$PATH" | 
 | 1112 |   for ac_dir in $ac_dummy; do  | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1113 |     test -z "$ac_dir" && ac_dir=. | 
 | 1114 |     if test -f $ac_dir/$ac_word; then | 
 | 1115 |       ac_cv_path_CHMOD="$ac_dir/$ac_word" | 
 | 1116 |       break | 
 | 1117 |     fi | 
 | 1118 |   done | 
 | 1119 |   IFS="$ac_save_ifs" | 
 | 1120 |   test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":" | 
 | 1121 |   ;; | 
 | 1122 | esac | 
 | 1123 | fi | 
 | 1124 | CHMOD="$ac_cv_path_CHMOD" | 
 | 1125 | if test -n "$CHMOD"; then | 
 | 1126 |   echo "$ac_t""$CHMOD" 1>&6 | 
 | 1127 | else | 
 | 1128 |   echo "$ac_t""no" 1>&6 | 
 | 1129 | fi | 
 | 1130 |  | 
 | 1131 | # Extract the first word of "awk", so it can be a program name with args. | 
 | 1132 | set dummy awk; ac_word=$2 | 
 | 1133 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | 
| Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame^] | 1134 | echo "configure:1135: checking for $ac_word" >&5 | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1135 | if eval "test \"`echo '$''{'ac_cv_path_AWK'+set}'`\" = set"; then | 
 | 1136 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
 | 1137 | else | 
 | 1138 |   case "$AWK" in | 
 | 1139 |   /*) | 
 | 1140 |   ac_cv_path_AWK="$AWK" # Let the user override the test with a path. | 
 | 1141 |   ;; | 
| Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame^] | 1142 |   ?:/*)			  | 
 | 1143 |   ac_cv_path_AWK="$AWK" # Let the user override the test with a dos path. | 
 | 1144 |   ;; | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1145 |   *) | 
| Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame^] | 1146 |   IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":" | 
 | 1147 |   ac_dummy="$PATH" | 
 | 1148 |   for ac_dir in $ac_dummy; do  | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1149 |     test -z "$ac_dir" && ac_dir=. | 
 | 1150 |     if test -f $ac_dir/$ac_word; then | 
 | 1151 |       ac_cv_path_AWK="$ac_dir/$ac_word" | 
 | 1152 |       break | 
 | 1153 |     fi | 
 | 1154 |   done | 
 | 1155 |   IFS="$ac_save_ifs" | 
 | 1156 |   test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="awk" | 
 | 1157 |   ;; | 
 | 1158 | esac | 
 | 1159 | fi | 
 | 1160 | AWK="$ac_cv_path_AWK" | 
 | 1161 | if test -n "$AWK"; then | 
 | 1162 |   echo "$ac_t""$AWK" 1>&6 | 
 | 1163 | else | 
 | 1164 |   echo "$ac_t""no" 1>&6 | 
 | 1165 | fi | 
 | 1166 |  | 
 | 1167 | # Extract the first word of "sed", so it can be a program name with args. | 
 | 1168 | set dummy sed; ac_word=$2 | 
 | 1169 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | 
| Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame^] | 1170 | echo "configure:1171: checking for $ac_word" >&5 | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1171 | if eval "test \"`echo '$''{'ac_cv_path_SED'+set}'`\" = set"; then | 
 | 1172 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
 | 1173 | else | 
 | 1174 |   case "$SED" in | 
 | 1175 |   /*) | 
 | 1176 |   ac_cv_path_SED="$SED" # Let the user override the test with a path. | 
 | 1177 |   ;; | 
| Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame^] | 1178 |   ?:/*)			  | 
 | 1179 |   ac_cv_path_SED="$SED" # Let the user override the test with a dos path. | 
 | 1180 |   ;; | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1181 |   *) | 
| Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame^] | 1182 |   IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":" | 
 | 1183 |   ac_dummy="$PATH" | 
 | 1184 |   for ac_dir in $ac_dummy; do  | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1185 |     test -z "$ac_dir" && ac_dir=. | 
 | 1186 |     if test -f $ac_dir/$ac_word; then | 
 | 1187 |       ac_cv_path_SED="$ac_dir/$ac_word" | 
 | 1188 |       break | 
 | 1189 |     fi | 
 | 1190 |   done | 
 | 1191 |   IFS="$ac_save_ifs" | 
 | 1192 |   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed" | 
 | 1193 |   ;; | 
 | 1194 | esac | 
 | 1195 | fi | 
 | 1196 | SED="$ac_cv_path_SED" | 
 | 1197 | if test -n "$SED"; then | 
 | 1198 |   echo "$ac_t""$SED" 1>&6 | 
 | 1199 | else | 
 | 1200 |   echo "$ac_t""no" 1>&6 | 
 | 1201 | fi | 
 | 1202 |  | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1203 | echo $ac_n "checking build system type""... $ac_c" 1>&6 | 
| Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame^] | 1204 | echo "configure:1205: checking build system type" >&5 | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1205 |  | 
 | 1206 | build_alias=$build | 
 | 1207 | case "$build_alias" in | 
 | 1208 | NONE) | 
 | 1209 |   case $nonopt in | 
 | 1210 |   NONE) build_alias=$host_alias ;; | 
 | 1211 |   *) build_alias=$nonopt ;; | 
 | 1212 |   esac ;; | 
 | 1213 | esac | 
 | 1214 |  | 
| Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame^] | 1215 | build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` | 
| Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1216 | build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | 
 | 1217 | build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | 
 | 1218 | build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1219 | echo "$ac_t""$build" 1>&6 | 
 | 1220 |  | 
 | 1221 | if test $host != $build; then | 
 | 1222 |   ac_tool_prefix=${host_alias}- | 
 | 1223 | else | 
 | 1224 |   ac_tool_prefix= | 
 | 1225 | fi | 
 | 1226 |  | 
 | 1227 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | 
 | 1228 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | 
 | 1229 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | 
| Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame^] | 1230 | echo "configure:1231: checking for $ac_word" >&5 | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1231 | if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then | 
 | 1232 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
 | 1233 | else | 
 | 1234 |   if test -n "$AR"; then | 
 | 1235 |   ac_cv_prog_AR="$AR" # Let the user override the test. | 
 | 1236 | else | 
| Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame^] | 1237 |   IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":" | 
 | 1238 |   ac_dummy="$PATH" | 
 | 1239 |   for ac_dir in $ac_dummy; do | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1240 |     test -z "$ac_dir" && ac_dir=. | 
 | 1241 |     if test -f $ac_dir/$ac_word; then | 
 | 1242 |       ac_cv_prog_AR="${ac_tool_prefix}ar" | 
 | 1243 |       break | 
 | 1244 |     fi | 
 | 1245 |   done | 
 | 1246 |   IFS="$ac_save_ifs" | 
 | 1247 | fi | 
 | 1248 | fi | 
 | 1249 | AR="$ac_cv_prog_AR" | 
 | 1250 | if test -n "$AR"; then | 
 | 1251 |   echo "$ac_t""$AR" 1>&6 | 
 | 1252 | else | 
 | 1253 |   echo "$ac_t""no" 1>&6 | 
 | 1254 | fi | 
 | 1255 |  | 
 | 1256 |  | 
 | 1257 | if test -z "$ac_cv_prog_AR"; then | 
 | 1258 | if test -n "$ac_tool_prefix"; then | 
 | 1259 |   # Extract the first word of "ar", so it can be a program name with args. | 
 | 1260 | set dummy ar; ac_word=$2 | 
 | 1261 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | 
| Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame^] | 1262 | echo "configure:1263: checking for $ac_word" >&5 | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1263 | if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then | 
 | 1264 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
 | 1265 | else | 
 | 1266 |   if test -n "$AR"; then | 
 | 1267 |   ac_cv_prog_AR="$AR" # Let the user override the test. | 
 | 1268 | else | 
| Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame^] | 1269 |   IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":" | 
 | 1270 |   ac_dummy="$PATH" | 
 | 1271 |   for ac_dir in $ac_dummy; do | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1272 |     test -z "$ac_dir" && ac_dir=. | 
 | 1273 |     if test -f $ac_dir/$ac_word; then | 
 | 1274 |       ac_cv_prog_AR="ar" | 
 | 1275 |       break | 
 | 1276 |     fi | 
 | 1277 |   done | 
 | 1278 |   IFS="$ac_save_ifs" | 
 | 1279 |   test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar" | 
 | 1280 | fi | 
 | 1281 | fi | 
 | 1282 | AR="$ac_cv_prog_AR" | 
 | 1283 | if test -n "$AR"; then | 
 | 1284 |   echo "$ac_t""$AR" 1>&6 | 
 | 1285 | else | 
 | 1286 |   echo "$ac_t""no" 1>&6 | 
 | 1287 | fi | 
 | 1288 |  | 
 | 1289 | else | 
 | 1290 |   AR="ar" | 
 | 1291 | fi | 
 | 1292 | fi | 
 | 1293 |  | 
 | 1294 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | 
 | 1295 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | 
 | 1296 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | 
| Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame^] | 1297 | echo "configure:1298: checking for $ac_word" >&5 | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1298 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then | 
 | 1299 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
 | 1300 | else | 
 | 1301 |   if test -n "$RANLIB"; then | 
 | 1302 |   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | 
 | 1303 | else | 
| Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame^] | 1304 |   IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":" | 
 | 1305 |   ac_dummy="$PATH" | 
 | 1306 |   for ac_dir in $ac_dummy; do | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1307 |     test -z "$ac_dir" && ac_dir=. | 
 | 1308 |     if test -f $ac_dir/$ac_word; then | 
 | 1309 |       ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | 
 | 1310 |       break | 
 | 1311 |     fi | 
 | 1312 |   done | 
 | 1313 |   IFS="$ac_save_ifs" | 
 | 1314 | fi | 
 | 1315 | fi | 
 | 1316 | RANLIB="$ac_cv_prog_RANLIB" | 
 | 1317 | if test -n "$RANLIB"; then | 
 | 1318 |   echo "$ac_t""$RANLIB" 1>&6 | 
 | 1319 | else | 
 | 1320 |   echo "$ac_t""no" 1>&6 | 
 | 1321 | fi | 
 | 1322 |  | 
 | 1323 |  | 
 | 1324 | if test -z "$ac_cv_prog_RANLIB"; then | 
 | 1325 | if test -n "$ac_tool_prefix"; then | 
 | 1326 |   # Extract the first word of "ranlib", so it can be a program name with args. | 
 | 1327 | set dummy ranlib; ac_word=$2 | 
 | 1328 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | 
| Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame^] | 1329 | echo "configure:1330: checking for $ac_word" >&5 | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1330 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then | 
 | 1331 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
 | 1332 | else | 
 | 1333 |   if test -n "$RANLIB"; then | 
 | 1334 |   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | 
 | 1335 | else | 
| Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame^] | 1336 |   IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":" | 
 | 1337 |   ac_dummy="$PATH" | 
 | 1338 |   for ac_dir in $ac_dummy; do | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1339 |     test -z "$ac_dir" && ac_dir=. | 
 | 1340 |     if test -f $ac_dir/$ac_word; then | 
 | 1341 |       ac_cv_prog_RANLIB="ranlib" | 
 | 1342 |       break | 
 | 1343 |     fi | 
 | 1344 |   done | 
 | 1345 |   IFS="$ac_save_ifs" | 
 | 1346 |   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" | 
 | 1347 | fi | 
 | 1348 | fi | 
 | 1349 | RANLIB="$ac_cv_prog_RANLIB" | 
 | 1350 | if test -n "$RANLIB"; then | 
 | 1351 |   echo "$ac_t""$RANLIB" 1>&6 | 
 | 1352 | else | 
 | 1353 |   echo "$ac_t""no" 1>&6 | 
 | 1354 | fi | 
 | 1355 |  | 
 | 1356 | else | 
 | 1357 |   RANLIB=":" | 
 | 1358 | fi | 
 | 1359 | fi | 
 | 1360 |  | 
 | 1361 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | 
 | 1362 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | 
 | 1363 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | 
| Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame^] | 1364 | echo "configure:1365: checking for $ac_word" >&5 | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1365 | if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then | 
 | 1366 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
 | 1367 | else | 
 | 1368 |   if test -n "$STRIP"; then | 
 | 1369 |   ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | 
 | 1370 | else | 
| Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame^] | 1371 |   IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":" | 
 | 1372 |   ac_dummy="$PATH" | 
 | 1373 |   for ac_dir in $ac_dummy; do | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1374 |     test -z "$ac_dir" && ac_dir=. | 
 | 1375 |     if test -f $ac_dir/$ac_word; then | 
 | 1376 |       ac_cv_prog_STRIP="${ac_tool_prefix}strip" | 
 | 1377 |       break | 
 | 1378 |     fi | 
 | 1379 |   done | 
 | 1380 |   IFS="$ac_save_ifs" | 
 | 1381 | fi | 
 | 1382 | fi | 
 | 1383 | STRIP="$ac_cv_prog_STRIP" | 
 | 1384 | if test -n "$STRIP"; then | 
 | 1385 |   echo "$ac_t""$STRIP" 1>&6 | 
 | 1386 | else | 
 | 1387 |   echo "$ac_t""no" 1>&6 | 
 | 1388 | fi | 
 | 1389 |  | 
 | 1390 |  | 
 | 1391 | if test -z "$ac_cv_prog_STRIP"; then | 
 | 1392 | if test -n "$ac_tool_prefix"; then | 
 | 1393 |   # Extract the first word of "strip", so it can be a program name with args. | 
 | 1394 | set dummy strip; ac_word=$2 | 
 | 1395 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | 
| Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame^] | 1396 | echo "configure:1397: checking for $ac_word" >&5 | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1397 | if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then | 
 | 1398 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
 | 1399 | else | 
 | 1400 |   if test -n "$STRIP"; then | 
 | 1401 |   ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | 
 | 1402 | else | 
| Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame^] | 1403 |   IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":" | 
 | 1404 |   ac_dummy="$PATH" | 
 | 1405 |   for ac_dir in $ac_dummy; do | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1406 |     test -z "$ac_dir" && ac_dir=. | 
 | 1407 |     if test -f $ac_dir/$ac_word; then | 
 | 1408 |       ac_cv_prog_STRIP="strip" | 
 | 1409 |       break | 
 | 1410 |     fi | 
 | 1411 |   done | 
 | 1412 |   IFS="$ac_save_ifs" | 
 | 1413 |   test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":" | 
 | 1414 | fi | 
 | 1415 | fi | 
 | 1416 | STRIP="$ac_cv_prog_STRIP" | 
 | 1417 | if test -n "$STRIP"; then | 
 | 1418 |   echo "$ac_t""$STRIP" 1>&6 | 
 | 1419 | else | 
 | 1420 |   echo "$ac_t""no" 1>&6 | 
 | 1421 | fi | 
 | 1422 |  | 
 | 1423 | else | 
 | 1424 |   STRIP=":" | 
 | 1425 | fi | 
 | 1426 | fi | 
 | 1427 |  | 
 | 1428 | # Extract the first word of "gcc", so it can be a program name with args. | 
 | 1429 | set dummy gcc; ac_word=$2 | 
 | 1430 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | 
| Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame^] | 1431 | echo "configure:1432: checking for $ac_word" >&5 | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1432 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then | 
 | 1433 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
 | 1434 | else | 
 | 1435 |   if test -n "$CC"; then | 
 | 1436 |   ac_cv_prog_CC="$CC" # Let the user override the test. | 
 | 1437 | else | 
| Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame^] | 1438 |   IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":" | 
 | 1439 |   ac_dummy="$PATH" | 
 | 1440 |   for ac_dir in $ac_dummy; do | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1441 |     test -z "$ac_dir" && ac_dir=. | 
 | 1442 |     if test -f $ac_dir/$ac_word; then | 
 | 1443 |       ac_cv_prog_CC="gcc" | 
 | 1444 |       break | 
 | 1445 |     fi | 
 | 1446 |   done | 
 | 1447 |   IFS="$ac_save_ifs" | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1448 | fi | 
 | 1449 | fi | 
 | 1450 | CC="$ac_cv_prog_CC" | 
 | 1451 | if test -n "$CC"; then | 
 | 1452 |   echo "$ac_t""$CC" 1>&6 | 
 | 1453 | else | 
 | 1454 |   echo "$ac_t""no" 1>&6 | 
 | 1455 | fi | 
 | 1456 |  | 
| Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1457 | if test -z "$CC"; then | 
 | 1458 |   # Extract the first word of "cc", so it can be a program name with args. | 
 | 1459 | set dummy cc; ac_word=$2 | 
 | 1460 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | 
| Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame^] | 1461 | echo "configure:1462: checking for $ac_word" >&5 | 
| Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1462 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then | 
 | 1463 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
 | 1464 | else | 
 | 1465 |   if test -n "$CC"; then | 
 | 1466 |   ac_cv_prog_CC="$CC" # Let the user override the test. | 
 | 1467 | else | 
| Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame^] | 1468 |   IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":" | 
| Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1469 |   ac_prog_rejected=no | 
| Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame^] | 1470 |   ac_dummy="$PATH" | 
 | 1471 |   for ac_dir in $ac_dummy; do | 
| Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1472 |     test -z "$ac_dir" && ac_dir=. | 
 | 1473 |     if test -f $ac_dir/$ac_word; then | 
 | 1474 |       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then | 
 | 1475 |         ac_prog_rejected=yes | 
 | 1476 | 	continue | 
 | 1477 |       fi | 
 | 1478 |       ac_cv_prog_CC="cc" | 
 | 1479 |       break | 
 | 1480 |     fi | 
 | 1481 |   done | 
 | 1482 |   IFS="$ac_save_ifs" | 
 | 1483 | if test $ac_prog_rejected = yes; then | 
 | 1484 |   # We found a bogon in the path, so make sure we never use it. | 
 | 1485 |   set dummy $ac_cv_prog_CC | 
 | 1486 |   shift | 
 | 1487 |   if test $# -gt 0; then | 
 | 1488 |     # We chose a different compiler from the bogus one. | 
 | 1489 |     # However, it has the same basename, so the bogon will be chosen | 
 | 1490 |     # first if we set CC to just the basename; use the full file name. | 
 | 1491 |     shift | 
 | 1492 |     set dummy "$ac_dir/$ac_word" "$@" | 
 | 1493 |     shift | 
 | 1494 |     ac_cv_prog_CC="$@" | 
 | 1495 |   fi | 
 | 1496 | fi | 
 | 1497 | fi | 
 | 1498 | fi | 
 | 1499 | CC="$ac_cv_prog_CC" | 
 | 1500 | if test -n "$CC"; then | 
 | 1501 |   echo "$ac_t""$CC" 1>&6 | 
 | 1502 | else | 
 | 1503 |   echo "$ac_t""no" 1>&6 | 
 | 1504 | fi | 
 | 1505 |  | 
| Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame^] | 1506 |   if test -z "$CC"; then | 
 | 1507 |     case "`uname -s`" in | 
 | 1508 |     *win32* | *WIN32*) | 
 | 1509 |       # Extract the first word of "cl", so it can be a program name with args. | 
 | 1510 | set dummy cl; ac_word=$2 | 
 | 1511 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | 
 | 1512 | echo "configure:1513: checking for $ac_word" >&5 | 
 | 1513 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then | 
 | 1514 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
 | 1515 | else | 
 | 1516 |   if test -n "$CC"; then | 
 | 1517 |   ac_cv_prog_CC="$CC" # Let the user override the test. | 
 | 1518 | else | 
 | 1519 |   IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":" | 
 | 1520 |   ac_dummy="$PATH" | 
 | 1521 |   for ac_dir in $ac_dummy; do | 
 | 1522 |     test -z "$ac_dir" && ac_dir=. | 
 | 1523 |     if test -f $ac_dir/$ac_word; then | 
 | 1524 |       ac_cv_prog_CC="cl" | 
 | 1525 |       break | 
 | 1526 |     fi | 
 | 1527 |   done | 
 | 1528 |   IFS="$ac_save_ifs" | 
 | 1529 | fi | 
 | 1530 | fi | 
 | 1531 | CC="$ac_cv_prog_CC" | 
 | 1532 | if test -n "$CC"; then | 
 | 1533 |   echo "$ac_t""$CC" 1>&6 | 
 | 1534 | else | 
 | 1535 |   echo "$ac_t""no" 1>&6 | 
 | 1536 | fi | 
 | 1537 |  ;; | 
 | 1538 |     esac | 
 | 1539 |   fi | 
| Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1540 |   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } | 
 | 1541 | fi | 
 | 1542 |  | 
 | 1543 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 | 
| Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame^] | 1544 | echo "configure:1545: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 | 
| Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1545 |  | 
 | 1546 | ac_ext=c | 
 | 1547 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | 
 | 1548 | ac_cpp='$CPP $CPPFLAGS' | 
 | 1549 | 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^] | 1550 | 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] | 1551 | cross_compiling=$ac_cv_prog_cc_cross | 
 | 1552 |  | 
| Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame^] | 1553 | cat > conftest.$ac_ext << EOF | 
 | 1554 |  | 
 | 1555 | #line 1556 "configure" | 
| Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1556 | #include "confdefs.h" | 
| Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame^] | 1557 |  | 
| Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1558 | main(){return(0);} | 
 | 1559 | EOF | 
| Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame^] | 1560 | if { (eval echo configure:1561: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 
| Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1561 |   ac_cv_prog_cc_works=yes | 
 | 1562 |   # If we can't run a trivial program, we are probably using a cross compiler. | 
 | 1563 |   if (./conftest; exit) 2>/dev/null; then | 
 | 1564 |     ac_cv_prog_cc_cross=no | 
 | 1565 |   else | 
 | 1566 |     ac_cv_prog_cc_cross=yes | 
 | 1567 |   fi | 
 | 1568 | else | 
 | 1569 |   echo "configure: failed program was:" >&5 | 
 | 1570 |   cat conftest.$ac_ext >&5 | 
 | 1571 |   ac_cv_prog_cc_works=no | 
 | 1572 | fi | 
 | 1573 | rm -fr conftest* | 
| Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame^] | 1574 | ac_ext=c | 
 | 1575 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | 
 | 1576 | ac_cpp='$CPP $CPPFLAGS' | 
 | 1577 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | 
 | 1578 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | 
 | 1579 | cross_compiling=$ac_cv_prog_cc_cross | 
| Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1580 |  | 
 | 1581 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 | 
 | 1582 | if test $ac_cv_prog_cc_works = no; then | 
 | 1583 |   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } | 
 | 1584 | fi | 
 | 1585 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | 
| Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame^] | 1586 | echo "configure:1587: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 | 
| Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1587 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 | 
 | 1588 | cross_compiling=$ac_cv_prog_cc_cross | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1589 |  | 
 | 1590 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 | 
| Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame^] | 1591 | echo "configure:1592: checking whether we are using GNU C" >&5 | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1592 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then | 
 | 1593 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
 | 1594 | else | 
 | 1595 |   cat > conftest.c <<EOF | 
 | 1596 | #ifdef __GNUC__ | 
 | 1597 |   yes; | 
 | 1598 | #endif | 
 | 1599 | EOF | 
| Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame^] | 1600 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1601: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1601 |   ac_cv_prog_gcc=yes | 
 | 1602 | else | 
 | 1603 |   ac_cv_prog_gcc=no | 
 | 1604 | fi | 
 | 1605 | fi | 
| Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1606 |  | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1607 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 | 
| Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1608 |  | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1609 | if test $ac_cv_prog_gcc = yes; then | 
 | 1610 |   GCC=yes | 
| Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame^] | 1611 | else | 
 | 1612 |   GCC= | 
 | 1613 | fi | 
 | 1614 |  | 
 | 1615 | ac_test_CFLAGS="${CFLAGS+set}" | 
 | 1616 | ac_save_CFLAGS="$CFLAGS" | 
 | 1617 | CFLAGS= | 
 | 1618 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 | 
 | 1619 | echo "configure:1620: checking whether ${CC-cc} accepts -g" >&5 | 
| Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1620 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1621 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
 | 1622 | else | 
 | 1623 |   echo 'void f(){}' > conftest.c | 
 | 1624 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then | 
| Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1625 |   ac_cv_prog_cc_g=yes | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1626 | else | 
| Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1627 |   ac_cv_prog_cc_g=no | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1628 | fi | 
 | 1629 | rm -f conftest* | 
 | 1630 |  | 
 | 1631 | fi | 
| Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1632 |  | 
 | 1633 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 | 
| Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame^] | 1634 | if test "$ac_test_CFLAGS" = set; then | 
 | 1635 |   CFLAGS="$ac_save_CFLAGS" | 
 | 1636 | elif test $ac_cv_prog_cc_g = yes; then | 
 | 1637 |   if test "$GCC" = yes; then | 
| Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1638 |     CFLAGS="-g -O2" | 
 | 1639 |   else | 
| Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame^] | 1640 |     CFLAGS="-g" | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1641 |   fi | 
 | 1642 | else | 
| Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame^] | 1643 |   if test "$GCC" = yes; then | 
 | 1644 |     CFLAGS="-O2" | 
 | 1645 |   else | 
 | 1646 |     CFLAGS= | 
 | 1647 |   fi | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1648 | fi | 
 | 1649 |  | 
 | 1650 | # Find a good install program.  We prefer a C program (faster), | 
 | 1651 | # so one script is as good as another.  But avoid the broken or | 
 | 1652 | # incompatible versions: | 
 | 1653 | # SysV /etc/install, /usr/sbin/install | 
 | 1654 | # SunOS /usr/etc/install | 
 | 1655 | # IRIX /sbin/install | 
 | 1656 | # AIX /bin/install | 
| Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame^] | 1657 | # 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] | 1658 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | 
 | 1659 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | 
 | 1660 | # ./install, which can be erroneously created by make from ./install.sh. | 
 | 1661 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 | 
| Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame^] | 1662 | echo "configure:1663: checking for a BSD compatible install" >&5 | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1663 | if test -z "$INSTALL"; then | 
 | 1664 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then | 
 | 1665 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
 | 1666 | else | 
| Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame^] | 1667 |     IFS="${IFS= 	}"; ac_save_IFS="$IFS"; IFS=":" | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1668 |   for ac_dir in $PATH; do | 
 | 1669 |     # Account for people who put trailing slashes in PATH elements. | 
 | 1670 |     case "$ac_dir/" in | 
 | 1671 |     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; | 
 | 1672 |     *) | 
 | 1673 |       # 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^] | 1674 |       # Don't use installbsd from OSF since it installs stuff as root | 
 | 1675 |       # by default. | 
 | 1676 |       for ac_prog in ginstall scoinst install; do | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1677 |         if test -f $ac_dir/$ac_prog; then | 
 | 1678 | 	  if test $ac_prog = install && | 
 | 1679 |             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then | 
 | 1680 | 	    # AIX install.  It has an incompatible calling convention. | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1681 | 	    : | 
 | 1682 | 	  else | 
 | 1683 | 	    ac_cv_path_install="$ac_dir/$ac_prog -c" | 
 | 1684 | 	    break 2 | 
 | 1685 | 	  fi | 
 | 1686 | 	fi | 
 | 1687 |       done | 
 | 1688 |       ;; | 
 | 1689 |     esac | 
 | 1690 |   done | 
| Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1691 |   IFS="$ac_save_IFS" | 
 | 1692 |  | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1693 | fi | 
| Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1694 |   if test "${ac_cv_path_install+set}" = set; then | 
 | 1695 |     INSTALL="$ac_cv_path_install" | 
 | 1696 |   else | 
 | 1697 |     # As a last resort, use the slow shell script.  We don't cache a | 
 | 1698 |     # path for INSTALL within a source directory, because that will | 
 | 1699 |     # break other packages using the cache if that directory is | 
 | 1700 |     # removed, or if the path is relative. | 
 | 1701 |     INSTALL="$ac_install_sh" | 
 | 1702 |   fi | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1703 | fi | 
 | 1704 | echo "$ac_t""$INSTALL" 1>&6 | 
 | 1705 |  | 
 | 1706 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | 
 | 1707 | # It thinks the first close brace ends the variable substitution. | 
 | 1708 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | 
 | 1709 |  | 
| Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame^] | 1710 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' | 
 | 1711 |  | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1712 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | 
 | 1713 |  | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1714 |  | 
 | 1715 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 | 
| Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame^] | 1716 | echo "configure:1717: checking how to run the C preprocessor" >&5 | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1717 | # On Suns, sometimes $CPP names a directory. | 
 | 1718 | if test -n "$CPP" && test -d "$CPP"; then | 
 | 1719 |   CPP= | 
 | 1720 | fi | 
 | 1721 | if test -z "$CPP"; then | 
 | 1722 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then | 
 | 1723 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
 | 1724 | else | 
 | 1725 |     # This must be in double quotes, not single quotes, because CPP may get | 
 | 1726 |   # substituted into the Makefile and "${CC-cc}" will confuse make. | 
 | 1727 |   CPP="${CC-cc} -E" | 
 | 1728 |   # On the NeXT, cc -E runs the code through the compiler's parser, | 
 | 1729 |   # not just through cpp. | 
 | 1730 |   cat > conftest.$ac_ext <<EOF | 
| Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame^] | 1731 | #line 1732 "configure" | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1732 | #include "confdefs.h" | 
 | 1733 | #include <assert.h> | 
 | 1734 | Syntax Error | 
 | 1735 | EOF | 
| Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1736 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 
| Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame^] | 1737 | { (eval echo configure:1738: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 
 | 1738 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1739 | if test -z "$ac_err"; then | 
 | 1740 |   : | 
 | 1741 | else | 
 | 1742 |   echo "$ac_err" >&5 | 
| Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1743 |   echo "configure: failed program was:" >&5 | 
 | 1744 |   cat conftest.$ac_ext >&5 | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1745 |   rm -rf conftest* | 
 | 1746 |   CPP="${CC-cc} -E -traditional-cpp" | 
 | 1747 |   cat > conftest.$ac_ext <<EOF | 
| Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame^] | 1748 | #line 1749 "configure" | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1749 | #include "confdefs.h" | 
 | 1750 | #include <assert.h> | 
 | 1751 | Syntax Error | 
 | 1752 | EOF | 
| Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1753 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 
| Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame^] | 1754 | { (eval echo configure:1755: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 
 | 1755 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 
 | 1756 | if test -z "$ac_err"; then | 
 | 1757 |   : | 
 | 1758 | else | 
 | 1759 |   echo "$ac_err" >&5 | 
 | 1760 |   echo "configure: failed program was:" >&5 | 
 | 1761 |   cat conftest.$ac_ext >&5 | 
 | 1762 |   rm -rf conftest* | 
 | 1763 |   CPP="${CC-cc} -nologo -E" | 
 | 1764 |   cat > conftest.$ac_ext <<EOF | 
 | 1765 | #line 1766 "configure" | 
 | 1766 | #include "confdefs.h" | 
 | 1767 | #include <assert.h> | 
 | 1768 | Syntax Error | 
 | 1769 | EOF | 
 | 1770 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 
 | 1771 | { (eval echo configure:1772: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 
 | 1772 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1773 | if test -z "$ac_err"; then | 
 | 1774 |   : | 
 | 1775 | else | 
 | 1776 |   echo "$ac_err" >&5 | 
| Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1777 |   echo "configure: failed program was:" >&5 | 
 | 1778 |   cat conftest.$ac_ext >&5 | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1779 |   rm -rf conftest* | 
 | 1780 |   CPP=/lib/cpp | 
 | 1781 | fi | 
 | 1782 | rm -f conftest* | 
 | 1783 | fi | 
 | 1784 | rm -f conftest* | 
| Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame^] | 1785 | fi | 
 | 1786 | rm -f conftest* | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1787 |   ac_cv_prog_CPP="$CPP" | 
 | 1788 | fi | 
 | 1789 |   CPP="$ac_cv_prog_CPP" | 
 | 1790 | else | 
 | 1791 |   ac_cv_prog_CPP="$CPP" | 
 | 1792 | fi | 
 | 1793 | echo "$ac_t""$CPP" 1>&6 | 
 | 1794 |  | 
| Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame^] | 1795 | for ac_hdr in stdlib.h unistd.h stdarg.h errno.h malloc.h mntent.h paths.h dirent.h getopt.h setjmp.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] | 1796 | do | 
| Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1797 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1798 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | 
| Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame^] | 1799 | echo "configure:1800: checking for $ac_hdr" >&5 | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1800 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 
 | 1801 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
 | 1802 | else | 
 | 1803 |   cat > conftest.$ac_ext <<EOF | 
| Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame^] | 1804 | #line 1805 "configure" | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1805 | #include "confdefs.h" | 
 | 1806 | #include <$ac_hdr> | 
 | 1807 | EOF | 
| Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1808 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 
| Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame^] | 1809 | { (eval echo configure:1810: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 
 | 1810 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1811 | if test -z "$ac_err"; then | 
 | 1812 |   rm -rf conftest* | 
 | 1813 |   eval "ac_cv_header_$ac_safe=yes" | 
 | 1814 | else | 
 | 1815 |   echo "$ac_err" >&5 | 
| Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1816 |   echo "configure: failed program was:" >&5 | 
 | 1817 |   cat conftest.$ac_ext >&5 | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1818 |   rm -rf conftest* | 
 | 1819 |   eval "ac_cv_header_$ac_safe=no" | 
 | 1820 | fi | 
 | 1821 | rm -f conftest* | 
 | 1822 | fi | 
 | 1823 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | 
 | 1824 |   echo "$ac_t""yes" 1>&6 | 
| Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1825 |     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1826 |   cat >> confdefs.h <<EOF | 
 | 1827 | #define $ac_tr_hdr 1 | 
 | 1828 | EOF | 
 | 1829 |   | 
 | 1830 | else | 
 | 1831 |   echo "$ac_t""no" 1>&6 | 
 | 1832 | fi | 
 | 1833 | done | 
 | 1834 |  | 
 | 1835 | echo $ac_n "checking for vprintf""... $ac_c" 1>&6 | 
| Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame^] | 1836 | echo "configure:1837: checking for vprintf" >&5 | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1837 | if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then | 
 | 1838 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
 | 1839 | else | 
 | 1840 |   cat > conftest.$ac_ext <<EOF | 
| Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame^] | 1841 | #line 1842 "configure" | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1842 | #include "confdefs.h" | 
 | 1843 | /* System header to define __stub macros and hopefully few prototypes, | 
 | 1844 |     which can conflict with char vprintf(); below.  */ | 
 | 1845 | #include <assert.h> | 
 | 1846 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
| Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1847 | /* We use char because int might match the return type of a gcc2 | 
 | 1848 |     builtin and then its argument prototype would still apply.  */ | 
 | 1849 | char vprintf(); | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1850 |  | 
| Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1851 | int main() { | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1852 |  | 
 | 1853 | /* The GNU C library defines this for functions which it implements | 
 | 1854 |     to always fail with ENOSYS.  Some functions are actually named | 
 | 1855 |     something starting with __ and the normal name is an alias.  */ | 
 | 1856 | #if defined (__stub_vprintf) || defined (__stub___vprintf) | 
 | 1857 | choke me | 
 | 1858 | #else | 
 | 1859 | vprintf(); | 
 | 1860 | #endif | 
 | 1861 |  | 
 | 1862 | ; return 0; } | 
 | 1863 | EOF | 
| Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame^] | 1864 | if { (eval echo configure:1865: \"$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] | 1865 |   rm -rf conftest* | 
 | 1866 |   eval "ac_cv_func_vprintf=yes" | 
 | 1867 | else | 
| Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1868 |   echo "configure: failed program was:" >&5 | 
 | 1869 |   cat conftest.$ac_ext >&5 | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1870 |   rm -rf conftest* | 
 | 1871 |   eval "ac_cv_func_vprintf=no" | 
 | 1872 | fi | 
 | 1873 | rm -f conftest* | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1874 | fi | 
| Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1875 |  | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1876 | if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then | 
 | 1877 |   echo "$ac_t""yes" 1>&6 | 
 | 1878 |   cat >> confdefs.h <<\EOF | 
 | 1879 | #define HAVE_VPRINTF 1 | 
 | 1880 | EOF | 
 | 1881 |  | 
 | 1882 | else | 
 | 1883 |   echo "$ac_t""no" 1>&6 | 
 | 1884 | fi | 
 | 1885 |  | 
 | 1886 | if test "$ac_cv_func_vprintf" != yes; then | 
 | 1887 | echo $ac_n "checking for _doprnt""... $ac_c" 1>&6 | 
| Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame^] | 1888 | echo "configure:1889: checking for _doprnt" >&5 | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1889 | if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then | 
 | 1890 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
 | 1891 | else | 
 | 1892 |   cat > conftest.$ac_ext <<EOF | 
| Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame^] | 1893 | #line 1894 "configure" | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1894 | #include "confdefs.h" | 
 | 1895 | /* System header to define __stub macros and hopefully few prototypes, | 
 | 1896 |     which can conflict with char _doprnt(); below.  */ | 
 | 1897 | #include <assert.h> | 
 | 1898 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
| Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1899 | /* We use char because int might match the return type of a gcc2 | 
 | 1900 |     builtin and then its argument prototype would still apply.  */ | 
 | 1901 | char _doprnt(); | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1902 |  | 
| Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1903 | int main() { | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1904 |  | 
 | 1905 | /* The GNU C library defines this for functions which it implements | 
 | 1906 |     to always fail with ENOSYS.  Some functions are actually named | 
 | 1907 |     something starting with __ and the normal name is an alias.  */ | 
 | 1908 | #if defined (__stub__doprnt) || defined (__stub____doprnt) | 
 | 1909 | choke me | 
 | 1910 | #else | 
 | 1911 | _doprnt(); | 
 | 1912 | #endif | 
 | 1913 |  | 
 | 1914 | ; return 0; } | 
 | 1915 | EOF | 
| Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame^] | 1916 | if { (eval echo configure:1917: \"$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] | 1917 |   rm -rf conftest* | 
 | 1918 |   eval "ac_cv_func__doprnt=yes" | 
 | 1919 | else | 
| Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1920 |   echo "configure: failed program was:" >&5 | 
 | 1921 |   cat conftest.$ac_ext >&5 | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1922 |   rm -rf conftest* | 
 | 1923 |   eval "ac_cv_func__doprnt=no" | 
 | 1924 | fi | 
 | 1925 | rm -f conftest* | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1926 | fi | 
| Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1927 |  | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1928 | if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then | 
 | 1929 |   echo "$ac_t""yes" 1>&6 | 
 | 1930 |   cat >> confdefs.h <<\EOF | 
 | 1931 | #define HAVE_DOPRNT 1 | 
 | 1932 | EOF | 
 | 1933 |  | 
 | 1934 | else | 
 | 1935 |   echo "$ac_t""no" 1>&6 | 
 | 1936 | fi | 
 | 1937 |  | 
 | 1938 | fi | 
 | 1939 |  | 
 | 1940 | echo $ac_n "checking whether struct dirent has a d_namlen field""... $ac_c" 1>&6 | 
| Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame^] | 1941 | echo "configure:1942: checking whether struct dirent has a d_namlen field" >&5 | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1942 | if eval "test \"`echo '$''{'e2fsprogs_cv_struct_d_namlen'+set}'`\" = set"; then | 
 | 1943 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
 | 1944 | else | 
 | 1945 |   cat > conftest.$ac_ext <<EOF | 
| Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame^] | 1946 | #line 1947 "configure" | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1947 | #include "confdefs.h" | 
 | 1948 | #include <sys/types.h> | 
 | 1949 | #include <dirent.h> | 
| Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1950 | int main() { | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1951 | struct dirent de; de.d_namlen = 0; | 
 | 1952 | ; return 0; } | 
 | 1953 | EOF | 
| Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame^] | 1954 | if { (eval echo configure:1955: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1955 |   rm -rf conftest* | 
 | 1956 |   e2fsprogs_cv_struct_d_namlen=yes | 
 | 1957 | else | 
| Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1958 |   echo "configure: failed program was:" >&5 | 
 | 1959 |   cat conftest.$ac_ext >&5 | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1960 |   rm -rf conftest* | 
 | 1961 |   e2fsprogs_cv_struct_d_namlen=no | 
 | 1962 | fi | 
 | 1963 | rm -f conftest* | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1964 | fi | 
 | 1965 |  | 
 | 1966 | echo "$ac_t""$e2fsprogs_cv_struct_d_namlen" 1>&6 | 
 | 1967 | if test "$e2fsprogs_cv_struct_d_namlen" = yes; then | 
 | 1968 |   cat >> confdefs.h <<\EOF | 
 | 1969 | #define HAVE_DIRENT_NAMLEN 1 | 
 | 1970 | EOF | 
 | 1971 |  | 
 | 1972 | fi | 
| Theodore Ts'o | b0b9c4d | 1997-10-20 23:36:30 +0000 | [diff] [blame] | 1973 | echo $ac_n "checking whether llseek declared in unistd.h""... $ac_c" 1>&6 | 
| Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame^] | 1974 | echo "configure:1975: checking whether llseek declared in unistd.h" >&5 | 
| Theodore Ts'o | b0b9c4d | 1997-10-20 23:36:30 +0000 | [diff] [blame] | 1975 | if eval "test \"`echo '$''{'e2fsprogs_cv_have_llseek_prototype'+set}'`\" = set"; then | 
 | 1976 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
 | 1977 | else | 
 | 1978 |   cat > conftest.$ac_ext <<EOF | 
| Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame^] | 1979 | #line 1980 "configure" | 
| Theodore Ts'o | b0b9c4d | 1997-10-20 23:36:30 +0000 | [diff] [blame] | 1980 | #include "confdefs.h" | 
 | 1981 | #include <unistd.h> | 
 | 1982 | int main() { | 
 | 1983 | extern int llseek(int); | 
 | 1984 | ; return 0; } | 
 | 1985 | EOF | 
| Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame^] | 1986 | if { (eval echo configure:1987: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 
| Theodore Ts'o | b0b9c4d | 1997-10-20 23:36:30 +0000 | [diff] [blame] | 1987 |   rm -rf conftest* | 
 | 1988 |   e2fsprogs_cv_have_llseek_prototype=no | 
 | 1989 | else | 
 | 1990 |   echo "configure: failed program was:" >&5 | 
 | 1991 |   cat conftest.$ac_ext >&5 | 
 | 1992 |   rm -rf conftest* | 
 | 1993 |   e2fsprogs_cv_have_llseek_prototype=yes | 
 | 1994 | fi | 
 | 1995 | rm -f conftest* | 
 | 1996 | fi | 
 | 1997 |  | 
 | 1998 | echo "$ac_t""$e2fsprogs_cv_have_llseek_prototype" 1>&6 | 
 | 1999 | if test "$e2fsprogs_cv_have_llseek_prototype" = yes; then | 
 | 2000 |    cat >> confdefs.h <<\EOF | 
 | 2001 | #define HAVE_LLSEEK_PROTOTYPE 1 | 
 | 2002 | EOF | 
 | 2003 |  | 
 | 2004 | fi | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2005 | if test "$cross_compiling" = yes -a "$ac_cv_sizeof_long" = ""; then | 
 | 2006 |   # if cross-compiling, with no cached values, just assume something common.  | 
 | 2007 |   ac_cv_sizeof_short=2 | 
 | 2008 |   ac_cv_sizeof_int=4 | 
 | 2009 |   ac_cv_sizeof_long=4 | 
| Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 2010 |   ac_cv_sizeof_long_long=0 | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2011 |   echo "configure: warning: Cross-compiling, so cannot check type sizes; assuming short=2, int=4, long=4" 1>&2 | 
 | 2012 | fi | 
 | 2013 | echo $ac_n "checking size of short""... $ac_c" 1>&6 | 
| Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame^] | 2014 | echo "configure:2015: checking size of short" >&5 | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2015 | if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then | 
 | 2016 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
 | 2017 | else | 
 | 2018 |   if test "$cross_compiling" = yes; then | 
 | 2019 |     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } | 
 | 2020 | else | 
| Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 2021 |   cat > conftest.$ac_ext <<EOF | 
| Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame^] | 2022 | #line 2023 "configure" | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2023 | #include "confdefs.h" | 
 | 2024 | #include <stdio.h> | 
 | 2025 | main() | 
 | 2026 | { | 
 | 2027 |   FILE *f=fopen("conftestval", "w"); | 
 | 2028 |   if (!f) exit(1); | 
 | 2029 |   fprintf(f, "%d\n", sizeof(short)); | 
 | 2030 |   exit(0); | 
 | 2031 | } | 
 | 2032 | EOF | 
| Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame^] | 2033 | if { (eval echo configure:2034: \"$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] | 2034 | then | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2035 |   ac_cv_sizeof_short=`cat conftestval` | 
 | 2036 | else | 
| Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 2037 |   echo "configure: failed program was:" >&5 | 
 | 2038 |   cat conftest.$ac_ext >&5 | 
 | 2039 |   rm -fr conftest* | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2040 |   ac_cv_sizeof_short=0 | 
 | 2041 | fi | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2042 | rm -fr conftest* | 
 | 2043 | fi | 
| Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 2044 |  | 
 | 2045 | fi | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2046 | echo "$ac_t""$ac_cv_sizeof_short" 1>&6 | 
 | 2047 | cat >> confdefs.h <<EOF | 
 | 2048 | #define SIZEOF_SHORT $ac_cv_sizeof_short | 
 | 2049 | EOF | 
 | 2050 |  | 
 | 2051 |  | 
 | 2052 | echo $ac_n "checking size of int""... $ac_c" 1>&6 | 
| Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame^] | 2053 | echo "configure:2054: checking size of int" >&5 | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2054 | if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then | 
 | 2055 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
 | 2056 | else | 
 | 2057 |   if test "$cross_compiling" = yes; then | 
 | 2058 |     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } | 
 | 2059 | else | 
| Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 2060 |   cat > conftest.$ac_ext <<EOF | 
| Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame^] | 2061 | #line 2062 "configure" | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2062 | #include "confdefs.h" | 
 | 2063 | #include <stdio.h> | 
 | 2064 | main() | 
 | 2065 | { | 
 | 2066 |   FILE *f=fopen("conftestval", "w"); | 
 | 2067 |   if (!f) exit(1); | 
 | 2068 |   fprintf(f, "%d\n", sizeof(int)); | 
 | 2069 |   exit(0); | 
 | 2070 | } | 
 | 2071 | EOF | 
| Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame^] | 2072 | if { (eval echo configure:2073: \"$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] | 2073 | then | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2074 |   ac_cv_sizeof_int=`cat conftestval` | 
 | 2075 | else | 
| Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 2076 |   echo "configure: failed program was:" >&5 | 
 | 2077 |   cat conftest.$ac_ext >&5 | 
 | 2078 |   rm -fr conftest* | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2079 |   ac_cv_sizeof_int=0 | 
 | 2080 | fi | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2081 | rm -fr conftest* | 
 | 2082 | fi | 
| Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 2083 |  | 
 | 2084 | fi | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2085 | echo "$ac_t""$ac_cv_sizeof_int" 1>&6 | 
 | 2086 | cat >> confdefs.h <<EOF | 
 | 2087 | #define SIZEOF_INT $ac_cv_sizeof_int | 
 | 2088 | EOF | 
 | 2089 |  | 
 | 2090 |  | 
 | 2091 | echo $ac_n "checking size of long""... $ac_c" 1>&6 | 
| Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame^] | 2092 | echo "configure:2093: checking size of long" >&5 | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2093 | if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then | 
 | 2094 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
 | 2095 | else | 
 | 2096 |   if test "$cross_compiling" = yes; then | 
 | 2097 |     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } | 
 | 2098 | else | 
| Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 2099 |   cat > conftest.$ac_ext <<EOF | 
| Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame^] | 2100 | #line 2101 "configure" | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2101 | #include "confdefs.h" | 
 | 2102 | #include <stdio.h> | 
 | 2103 | main() | 
 | 2104 | { | 
 | 2105 |   FILE *f=fopen("conftestval", "w"); | 
 | 2106 |   if (!f) exit(1); | 
 | 2107 |   fprintf(f, "%d\n", sizeof(long)); | 
 | 2108 |   exit(0); | 
 | 2109 | } | 
 | 2110 | EOF | 
| Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame^] | 2111 | if { (eval echo configure:2112: \"$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] | 2112 | then | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2113 |   ac_cv_sizeof_long=`cat conftestval` | 
 | 2114 | else | 
| Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 2115 |   echo "configure: failed program was:" >&5 | 
 | 2116 |   cat conftest.$ac_ext >&5 | 
 | 2117 |   rm -fr conftest* | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2118 |   ac_cv_sizeof_long=0 | 
 | 2119 | fi | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2120 | rm -fr conftest* | 
 | 2121 | fi | 
| Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 2122 |  | 
 | 2123 | fi | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2124 | echo "$ac_t""$ac_cv_sizeof_long" 1>&6 | 
 | 2125 | cat >> confdefs.h <<EOF | 
 | 2126 | #define SIZEOF_LONG $ac_cv_sizeof_long | 
 | 2127 | EOF | 
 | 2128 |  | 
 | 2129 |  | 
| Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 2130 | echo $ac_n "checking size of long long""... $ac_c" 1>&6 | 
| Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame^] | 2131 | echo "configure:2132: checking size of long long" >&5 | 
| Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 2132 | if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then | 
 | 2133 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
 | 2134 | else | 
 | 2135 |   if test "$cross_compiling" = yes; then | 
 | 2136 |     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } | 
 | 2137 | else | 
| Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 2138 |   cat > conftest.$ac_ext <<EOF | 
| Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame^] | 2139 | #line 2140 "configure" | 
| Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 2140 | #include "confdefs.h" | 
 | 2141 | #include <stdio.h> | 
 | 2142 | main() | 
 | 2143 | { | 
 | 2144 |   FILE *f=fopen("conftestval", "w"); | 
 | 2145 |   if (!f) exit(1); | 
 | 2146 |   fprintf(f, "%d\n", sizeof(long long)); | 
 | 2147 |   exit(0); | 
 | 2148 | } | 
 | 2149 | EOF | 
| Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame^] | 2150 | if { (eval echo configure:2151: \"$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] | 2151 | then | 
| Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 2152 |   ac_cv_sizeof_long_long=`cat conftestval` | 
 | 2153 | else | 
| Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 2154 |   echo "configure: failed program was:" >&5 | 
 | 2155 |   cat conftest.$ac_ext >&5 | 
 | 2156 |   rm -fr conftest* | 
| Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 2157 |   ac_cv_sizeof_long_long=0 | 
 | 2158 | fi | 
| Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 2159 | rm -fr conftest* | 
 | 2160 | fi | 
| Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 2161 |  | 
 | 2162 | fi | 
| Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 2163 | echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6 | 
 | 2164 | cat >> confdefs.h <<EOF | 
 | 2165 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | 
 | 2166 | EOF | 
 | 2167 |  | 
 | 2168 |  | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2169 | SIZEOF_SHORT=$ac_cv_sizeof_short | 
 | 2170 | SIZEOF_INT=$ac_cv_sizeof_int | 
 | 2171 | SIZEOF_LONG=$ac_cv_sizeof_long | 
| Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 2172 | SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long | 
 | 2173 |  | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2174 |  | 
 | 2175 |  | 
 | 2176 |  | 
 | 2177 | echo $ac_n "checking whether struct stat has a st_flags field""... $ac_c" 1>&6 | 
| Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame^] | 2178 | echo "configure:2179: checking whether struct stat has a st_flags field" >&5 | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2179 | if eval "test \"`echo '$''{'e2fsprogs_cv_struct_st_flags'+set}'`\" = set"; then | 
 | 2180 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
 | 2181 | else | 
 | 2182 |   cat > conftest.$ac_ext <<EOF | 
| Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame^] | 2183 | #line 2184 "configure" | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2184 | #include "confdefs.h" | 
 | 2185 | #include <sys/stat.h> | 
| Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 2186 | int main() { | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2187 | struct stat stat; stat.st_flags = 0; | 
 | 2188 | ; return 0; } | 
 | 2189 | EOF | 
| Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame^] | 2190 | if { (eval echo configure:2191: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2191 |   rm -rf conftest* | 
 | 2192 |   e2fsprogs_cv_struct_st_flags=yes | 
 | 2193 | else | 
| Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 2194 |   echo "configure: failed program was:" >&5 | 
 | 2195 |   cat conftest.$ac_ext >&5 | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2196 |   rm -rf conftest* | 
 | 2197 |   e2fsprogs_cv_struct_st_flags=no | 
 | 2198 | fi | 
 | 2199 | rm -f conftest* | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2200 | fi | 
 | 2201 |  | 
 | 2202 | echo "$ac_t""$e2fsprogs_cv_struct_st_flags" 1>&6 | 
 | 2203 | if test "$e2fsprogs_cv_struct_st_flags" = yes; then | 
 | 2204 |   cat >> confdefs.h <<\EOF | 
 | 2205 | #define HAVE_STAT_FLAGS 1 | 
 | 2206 | EOF | 
 | 2207 |  | 
 | 2208 | fi | 
| Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame^] | 2209 | 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] | 2210 | do | 
 | 2211 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | 
| Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame^] | 2212 | echo "configure:2213: checking for $ac_func" >&5 | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2213 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | 
 | 2214 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
 | 2215 | else | 
 | 2216 |   cat > conftest.$ac_ext <<EOF | 
| Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame^] | 2217 | #line 2218 "configure" | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2218 | #include "confdefs.h" | 
 | 2219 | /* System header to define __stub macros and hopefully few prototypes, | 
 | 2220 |     which can conflict with char $ac_func(); below.  */ | 
 | 2221 | #include <assert.h> | 
 | 2222 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
| Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 2223 | /* We use char because int might match the return type of a gcc2 | 
 | 2224 |     builtin and then its argument prototype would still apply.  */ | 
 | 2225 | char $ac_func(); | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2226 |  | 
| Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 2227 | int main() { | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2228 |  | 
 | 2229 | /* The GNU C library defines this for functions which it implements | 
 | 2230 |     to always fail with ENOSYS.  Some functions are actually named | 
 | 2231 |     something starting with __ and the normal name is an alias.  */ | 
 | 2232 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | 
 | 2233 | choke me | 
 | 2234 | #else | 
 | 2235 | $ac_func(); | 
 | 2236 | #endif | 
 | 2237 |  | 
 | 2238 | ; return 0; } | 
 | 2239 | EOF | 
| Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame^] | 2240 | if { (eval echo configure:2241: \"$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] | 2241 |   rm -rf conftest* | 
 | 2242 |   eval "ac_cv_func_$ac_func=yes" | 
 | 2243 | else | 
| Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 2244 |   echo "configure: failed program was:" >&5 | 
 | 2245 |   cat conftest.$ac_ext >&5 | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2246 |   rm -rf conftest* | 
 | 2247 |   eval "ac_cv_func_$ac_func=no" | 
 | 2248 | fi | 
 | 2249 | rm -f conftest* | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2250 | fi | 
| Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 2251 |  | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2252 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | 
 | 2253 |   echo "$ac_t""yes" 1>&6 | 
| Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 2254 |     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2255 |   cat >> confdefs.h <<EOF | 
 | 2256 | #define $ac_tr_func 1 | 
 | 2257 | EOF | 
 | 2258 |   | 
 | 2259 | else | 
 | 2260 |   echo "$ac_t""no" 1>&6 | 
 | 2261 | fi | 
 | 2262 | done | 
 | 2263 |  | 
| Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 2264 | echo $ac_n "checking ino_t defined by sys/types.h""... $ac_c" 1>&6 | 
| Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame^] | 2265 | echo "configure:2266: checking ino_t defined by sys/types.h" >&5 | 
| Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 2266 | if eval "test \"`echo '$''{'e2fsprogs_cv_ino_t'+set}'`\" = set"; then | 
 | 2267 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
 | 2268 | else | 
 | 2269 |   cat > conftest.$ac_ext <<EOF | 
| Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame^] | 2270 | #line 2271 "configure" | 
| Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 2271 | #include "confdefs.h" | 
 | 2272 | #include <sys/types.h> | 
| Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 2273 | int main() { | 
| Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 2274 | ino_t ino; ino = 0; | 
 | 2275 | ; return 0; } | 
 | 2276 | EOF | 
| Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame^] | 2277 | if { (eval echo configure:2278: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 
| Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 2278 |   rm -rf conftest* | 
 | 2279 |   e2fsprogs_cv_ino_t=yes | 
 | 2280 | else | 
| Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 2281 |   echo "configure: failed program was:" >&5 | 
 | 2282 |   cat conftest.$ac_ext >&5 | 
| Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 2283 |   rm -rf conftest* | 
 | 2284 |   e2fsprogs_cv_ino_t=no | 
 | 2285 | fi | 
 | 2286 | rm -f conftest* | 
| Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 2287 | fi | 
 | 2288 |  | 
 | 2289 | echo "$ac_t""$e2fsprogs_cv_ino_t" 1>&6 | 
 | 2290 | if test "$e2fsprogs_cv_ino_t" = yes; then | 
 | 2291 |    cat >> confdefs.h <<\EOF | 
 | 2292 | #define HAVE_INO_T 1 | 
 | 2293 | EOF | 
 | 2294 |  | 
 | 2295 | fi | 
| Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 2296 | ac_safe=`echo "linux/fs.h" | sed 'y%./+-%__p_%'` | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2297 | echo $ac_n "checking for linux/fs.h""... $ac_c" 1>&6 | 
| Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame^] | 2298 | echo "configure:2299: checking for linux/fs.h" >&5 | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2299 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 
 | 2300 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
 | 2301 | else | 
 | 2302 |   cat > conftest.$ac_ext <<EOF | 
| Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame^] | 2303 | #line 2304 "configure" | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2304 | #include "confdefs.h" | 
 | 2305 | #include <linux/fs.h> | 
 | 2306 | EOF | 
| Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 2307 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 
| Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame^] | 2308 | { (eval echo configure:2309: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 
 | 2309 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2310 | if test -z "$ac_err"; then | 
 | 2311 |   rm -rf conftest* | 
 | 2312 |   eval "ac_cv_header_$ac_safe=yes" | 
 | 2313 | else | 
 | 2314 |   echo "$ac_err" >&5 | 
| Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 2315 |   echo "configure: failed program was:" >&5 | 
 | 2316 |   cat conftest.$ac_ext >&5 | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2317 |   rm -rf conftest* | 
 | 2318 |   eval "ac_cv_header_$ac_safe=no" | 
 | 2319 | fi | 
 | 2320 | rm -f conftest* | 
 | 2321 | fi | 
 | 2322 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | 
 | 2323 |   echo "$ac_t""yes" 1>&6 | 
 | 2324 |   linux_headers=yes | 
 | 2325 | else | 
 | 2326 |   echo "$ac_t""no" 1>&6 | 
 | 2327 | linux_headers=no | 
 | 2328 | fi | 
 | 2329 |  | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2330 | if test "$linux_headers" = yes; then | 
 | 2331 |   cat >> confdefs.h <<\EOF | 
 | 2332 | #define HAVE_LINUX_FS_H 1 | 
 | 2333 | EOF | 
 | 2334 |  | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2335 | else | 
 | 2336 |   LINUX_INCLUDE='-I$(top_srcdir)/include -I$(top_builddir)/include' | 
 | 2337 |   # Use this include directory with test compiles in the configure script too. | 
 | 2338 |   CPPFLAGS="$CPPFLAGS -I$srcdir/include -I./include" | 
 | 2339 | fi | 
 | 2340 |  | 
| Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 2341 | SOCKET_LIB='' | 
| Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 2342 | echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6 | 
| Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame^] | 2343 | echo "configure:2344: checking for socket in -lsocket" >&5 | 
| Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 2344 | ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'` | 
 | 2345 | 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] | 2346 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
 | 2347 | else | 
 | 2348 |   ac_save_LIBS="$LIBS" | 
 | 2349 | LIBS="-lsocket  $LIBS" | 
 | 2350 | cat > conftest.$ac_ext <<EOF | 
| Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame^] | 2351 | #line 2352 "configure" | 
| Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 2352 | #include "confdefs.h" | 
| Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 2353 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 2354 | /* We use char because int might match the return type of a gcc2 | 
 | 2355 |     builtin and then its argument prototype would still apply.  */ | 
 | 2356 | char socket(); | 
| Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 2357 |  | 
| Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 2358 | int main() { | 
| Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 2359 | socket() | 
 | 2360 | ; return 0; } | 
 | 2361 | EOF | 
| Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame^] | 2362 | if { (eval echo configure:2363: \"$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] | 2363 |   rm -rf conftest* | 
| Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 2364 |   eval "ac_cv_lib_$ac_lib_var=yes" | 
| Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 2365 | else | 
| Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 2366 |   echo "configure: failed program was:" >&5 | 
 | 2367 |   cat conftest.$ac_ext >&5 | 
| Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 2368 |   rm -rf conftest* | 
| Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 2369 |   eval "ac_cv_lib_$ac_lib_var=no" | 
| Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 2370 | fi | 
 | 2371 | rm -f conftest* | 
 | 2372 | LIBS="$ac_save_LIBS" | 
 | 2373 |  | 
 | 2374 | fi | 
| Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 2375 | 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] | 2376 |   echo "$ac_t""yes" 1>&6 | 
 | 2377 |   SOCKET_LIB=-lsocket | 
 | 2378 | else | 
 | 2379 |   echo "$ac_t""no" 1>&6 | 
 | 2380 | fi | 
 | 2381 |  | 
 | 2382 |  | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2383 | echo $ac_n "checking for optreset""... $ac_c" 1>&6 | 
| Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame^] | 2384 | echo "configure:2385: checking for optreset" >&5 | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2385 | if eval "test \"`echo '$''{'ac_cv_have_optreset'+set}'`\" = set"; then | 
 | 2386 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
 | 2387 | else | 
 | 2388 |   cat > conftest.$ac_ext <<EOF | 
| Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame^] | 2389 | #line 2390 "configure" | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2390 | #include "confdefs.h" | 
 | 2391 | #include <unistd.h> | 
 | 2392 | EOF | 
 | 2393 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
 | 2394 |   egrep "optreset" >/dev/null 2>&1; then | 
 | 2395 |   rm -rf conftest* | 
 | 2396 |   ac_cv_have_optreset=yes | 
 | 2397 | else | 
 | 2398 |   rm -rf conftest* | 
 | 2399 |   ac_cv_have_optreset=no | 
 | 2400 | fi | 
 | 2401 | rm -f conftest* | 
 | 2402 |  | 
 | 2403 | fi | 
 | 2404 | echo "$ac_t""$ac_cv_have_optreset" 1>&6 | 
 | 2405 | if test $ac_cv_have_optreset = yes; then | 
 | 2406 |   cat >> confdefs.h <<\EOF | 
 | 2407 | #define HAVE_OPTRESET 1 | 
 | 2408 | EOF | 
 | 2409 |  | 
 | 2410 | fi | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2411 | echo $ac_n "checking whether the ext2 ioctls compile""... $ac_c" 1>&6 | 
| Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame^] | 2412 | echo "configure:2413: checking whether the ext2 ioctls compile" >&5 | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2413 | if eval "test \"`echo '$''{'e2fsprogs_cv_ioctl_ext2'+set}'`\" = set"; then | 
 | 2414 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
 | 2415 | else | 
 | 2416 |   cat > conftest.$ac_ext <<EOF | 
| Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame^] | 2417 | #line 2418 "configure" | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2418 | #include "confdefs.h" | 
 | 2419 | #include <linux/ext2_fs.h> | 
 | 2420 | #include <sys/ioctl.h> | 
| Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 2421 | int main() { | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2422 | ioctl (0, EXT2_IOC_SETVERSION, 0); | 
 | 2423 | ; return 0; } | 
 | 2424 | EOF | 
| Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame^] | 2425 | if { (eval echo configure:2426: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2426 |   rm -rf conftest* | 
 | 2427 |   e2fsprogs_cv_ioctl_ext2=yes | 
 | 2428 | else | 
| Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 2429 |   echo "configure: failed program was:" >&5 | 
 | 2430 |   cat conftest.$ac_ext >&5 | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2431 |   rm -rf conftest* | 
 | 2432 |   e2fsprogs_cv_ioctl_ext2=no | 
 | 2433 | fi | 
 | 2434 | rm -f conftest* | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2435 | fi | 
 | 2436 |  | 
 | 2437 | echo "$ac_t""$e2fsprogs_cv_ioctl_ext2" 1>&6 | 
 | 2438 | if test "$e2fsprogs_cv_ioctl_ext2" = yes; then | 
 | 2439 |   cat >> confdefs.h <<\EOF | 
 | 2440 | #define HAVE_EXT2_IOCTLS 1 | 
 | 2441 | EOF | 
 | 2442 |  | 
 | 2443 | fi | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2444 | case "$host_os" in | 
 | 2445 | linux*) | 
| Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 2446 | 	if test "$prefix" = NONE -a "$root_prefix" = NONE ; then | 
 | 2447 | 		root_prefix=""; | 
 | 2448 | 		echo "On $host_os systems, root_prefix defaults to ''" | 
| Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 2449 | 	fi | 
 | 2450 | 	;; | 
 | 2451 | esac | 
| Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 2452 | case "$host_os" in | 
 | 2453 | linux* | gnu*) | 
 | 2454 | 	if test "$prefix" = NONE ; then | 
| Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 2455 | 		prefix="/usr"; | 
 | 2456 | 		echo "On $host_os systems, prefix defaults to /usr" | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2457 | 	fi | 
 | 2458 | ;; | 
 | 2459 | esac | 
| Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 2460 | if test "$root_prefix" = NONE ; then | 
| Theodore Ts'o | ffe1991 | 1998-04-08 06:05:49 +0000 | [diff] [blame] | 2461 | 	if test "$prefix" = NONE ; then | 
| Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 2462 | 		root_prefix="$ac_default_prefix" | 
 | 2463 | 	else | 
 | 2464 | 		root_prefix="$prefix" | 
 | 2465 | 	fi | 
 | 2466 | fi | 
 | 2467 |  | 
| Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 2468 | echo $ac_n "checking whether linker accepts -static""... $ac_c" 1>&6 | 
| Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame^] | 2469 | echo "configure:2470: checking whether linker accepts -static" >&5 | 
| Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 2470 | if eval "test \"`echo '$''{'ac_cv_e2fsprogs_use_static'+set}'`\" = set"; then | 
 | 2471 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
 | 2472 | else | 
 | 2473 |   SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static" | 
 | 2474 | cat > conftest.$ac_ext <<EOF | 
| Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame^] | 2475 | #line 2476 "configure" | 
| Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 2476 | #include "confdefs.h" | 
 | 2477 | #include <stdio.h> | 
 | 2478 | int main() { | 
 | 2479 | fflush(stdout); | 
 | 2480 | ; return 0; } | 
 | 2481 | EOF | 
| Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame^] | 2482 | if { (eval echo configure:2483: \"$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] | 2483 |   rm -rf conftest* | 
 | 2484 |   ac_cv_e2fsprogs_use_static=yes | 
 | 2485 | else | 
 | 2486 |   echo "configure: failed program was:" >&5 | 
 | 2487 |   cat conftest.$ac_ext >&5 | 
 | 2488 |   rm -rf conftest* | 
 | 2489 |   ac_cv_e2fsprogs_use_static=no | 
 | 2490 | fi | 
 | 2491 | rm -f conftest* | 
 | 2492 | LDFLAGS=$SAVE_LDFLAGS | 
 | 2493 | fi | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2494 |  | 
| Theodore Ts'o | defde78 | 1999-01-04 07:39:19 +0000 | [diff] [blame] | 2495 | case "$host_os" in | 
 | 2496 | solaris2.*) | 
 | 2497 | 	ac_cv_e2fsprogs_use_static=no	 | 
 | 2498 | ;; | 
 | 2499 | esac | 
| Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 2500 | echo "$ac_t""$ac_cv_e2fsprogs_use_static" 1>&6 | 
| Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 2501 | LDFLAG_STATIC= | 
| Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 2502 | if test $ac_cv_e2fsprogs_use_static = yes; then | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2503 | 	LDFLAG_STATIC=-static | 
| Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 2504 | fi | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2505 |  | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2506 | SS_DIR=`cd ${srcdir}/lib/ss; pwd` | 
 | 2507 | ET_DIR=`cd ${srcdir}/lib/et; pwd` | 
 | 2508 |  | 
 | 2509 |  | 
 | 2510 | if test "$cross_compiling" = yes ; then | 
 | 2511 |   DO_TEST_SUITE= | 
 | 2512 | else | 
 | 2513 |   DO_TEST_SUITE=check | 
 | 2514 | fi | 
 | 2515 |  | 
| Theodore Ts'o | a4d0961 | 1997-04-29 14:28:00 +0000 | [diff] [blame] | 2516 | DO_SUBSTITUTE_SCRIPT=$srcdir/lib/do_substitute | 
 | 2517 |  | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2518 | test -d lib || mkdir lib | 
 | 2519 | test -d include || mkdir include | 
 | 2520 | test -d include/linux || mkdir include/linux | 
| Theodore Ts'o | defde78 | 1999-01-04 07:39:19 +0000 | [diff] [blame] | 2521 | test -d include/asm || mkdir include/asm | 
| Theodore Ts'o | bc21007 | 1997-06-17 05:41:36 +0000 | [diff] [blame] | 2522 | rmakefile= | 
 | 2523 | if test -d ${srcdir}/resize ; then | 
 | 2524 |    rmakefile=resize/Makefile | 
 | 2525 | fi | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2526 | trap '' 1 2 15 | 
 | 2527 | cat > confcache <<\EOF | 
 | 2528 | # This file is a shell script that caches the results of configure | 
 | 2529 | # tests run on this system so they can be shared between configure | 
 | 2530 | # scripts and configure runs.  It is not useful on other systems. | 
 | 2531 | # If it contains results you don't want to keep, you may remove or edit it. | 
 | 2532 | # | 
 | 2533 | # By default, configure uses ./config.cache as the cache file, | 
 | 2534 | # creating it if it does not exist already.  You can give configure | 
 | 2535 | # the --cache-file=FILE option to use a different cache file; that is | 
 | 2536 | # what configure does when it calls configure scripts in | 
 | 2537 | # subdirectories, so they share the cache. | 
 | 2538 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | 
 | 2539 | # config.status only pays attention to the cache file if you give it the | 
 | 2540 | # --recheck option to rerun configure. | 
 | 2541 | # | 
 | 2542 | EOF | 
| Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 2543 | # The following way of writing the cache mishandles newlines in values, | 
 | 2544 | # but we know of no workaround that is simple, portable, and efficient. | 
 | 2545 | # So, don't put newlines in cache variables' values. | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2546 | # Ultrix sh set writes to stderr and can't be redirected directly, | 
 | 2547 | # and sets the high bit in the cache file unless we assign to the vars. | 
 | 2548 | (set) 2>&1 | | 
| Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame^] | 2549 |   case `(ac_space=' '; set | grep ac_space) 2>&1` in | 
| Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 2550 |   *ac_space=\ *) | 
 | 2551 |     # `set' does not quote correctly, so add quotes (double-quote substitution | 
 | 2552 |     # turns \\\\ into \\, and sed turns \\ into \). | 
 | 2553 |     sed -n \ | 
 | 2554 |       -e "s/'/'\\\\''/g" \ | 
 | 2555 |       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | 
 | 2556 |     ;; | 
 | 2557 |   *) | 
 | 2558 |     # `set' quotes correctly as required by POSIX, so do not add quotes. | 
 | 2559 |     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | 
 | 2560 |     ;; | 
 | 2561 |   esac >> confcache | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2562 | if cmp -s $cache_file confcache; then | 
 | 2563 |   : | 
 | 2564 | else | 
 | 2565 |   if test -w $cache_file; then | 
 | 2566 |     echo "updating cache $cache_file" | 
 | 2567 |     cat confcache > $cache_file | 
 | 2568 |   else | 
 | 2569 |     echo "not updating unwritable cache $cache_file" | 
 | 2570 |   fi | 
 | 2571 | fi | 
 | 2572 | rm -f confcache | 
 | 2573 |  | 
 | 2574 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | 
 | 2575 |  | 
 | 2576 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | 
 | 2577 | # Let make expand exec_prefix. | 
 | 2578 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | 
 | 2579 |  | 
 | 2580 | # Any assignment to VPATH causes Sun make to only execute | 
 | 2581 | # the first set of double-colon rules, so remove it if not needed. | 
 | 2582 | # If there is a colon in the path, we need to keep it. | 
 | 2583 | if test "x$srcdir" = x.; then | 
 | 2584 |   ac_vpsub='/^[ 	]*VPATH[ 	]*=[^:]*$/d' | 
 | 2585 | fi | 
 | 2586 |  | 
 | 2587 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 | 
 | 2588 |  | 
 | 2589 | # Transform confdefs.h into DEFS. | 
 | 2590 | # Protect against shell expansion while executing Makefile rules. | 
 | 2591 | # Protect against Makefile macro expansion. | 
 | 2592 | cat > conftest.defs <<\EOF | 
| Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 2593 | 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] | 2594 | s%[ 	`~#$^&*(){}\\|;'"<>?]%\\&%g | 
 | 2595 | s%\[%\\&%g | 
 | 2596 | s%\]%\\&%g | 
 | 2597 | s%\$%$$%g | 
 | 2598 | EOF | 
 | 2599 | DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '` | 
 | 2600 | rm -f conftest.defs | 
 | 2601 |  | 
 | 2602 |  | 
 | 2603 | # Without the "./", some shells look in PATH for config.status. | 
 | 2604 | : ${CONFIG_STATUS=./config.status} | 
 | 2605 |  | 
 | 2606 | echo creating $CONFIG_STATUS | 
 | 2607 | rm -f $CONFIG_STATUS | 
 | 2608 | cat > $CONFIG_STATUS <<EOF | 
 | 2609 | #! /bin/sh | 
 | 2610 | # Generated automatically by configure. | 
 | 2611 | # Run this file to recreate the current configuration. | 
 | 2612 | # This directory was configured as follows, | 
 | 2613 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | 
 | 2614 | # | 
 | 2615 | # $0 $ac_configure_args | 
 | 2616 | # | 
 | 2617 | # Compiler output produced by configure, useful for debugging | 
 | 2618 | # configure, is in ./config.log if it exists. | 
 | 2619 |  | 
 | 2620 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" | 
 | 2621 | for ac_option | 
 | 2622 | do | 
 | 2623 |   case "\$ac_option" in | 
 | 2624 |   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | 
 | 2625 |     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" | 
 | 2626 |     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; | 
 | 2627 |   -version | --version | --versio | --versi | --vers | --ver | --ve | --v) | 
| Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame^] | 2628 |     echo "$CONFIG_STATUS generated by autoconf version 2.13" | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2629 |     exit 0 ;; | 
 | 2630 |   -help | --help | --hel | --he | --h) | 
 | 2631 |     echo "\$ac_cs_usage"; exit 0 ;; | 
 | 2632 |   *) echo "\$ac_cs_usage"; exit 1 ;; | 
 | 2633 |   esac | 
 | 2634 | done | 
 | 2635 |  | 
 | 2636 | ac_given_srcdir=$srcdir | 
 | 2637 | ac_given_INSTALL="$INSTALL" | 
 | 2638 |  | 
| Theodore Ts'o | 44339bd | 1997-10-15 02:47:20 +0000 | [diff] [blame] | 2639 | 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] | 2640 | 	lib/ss/Makefile lib/ext2fs/Makefile lib/e2p/Makefile lib/uuid/Makefile | 
 | 2641 | 	misc/Makefile e2fsck/Makefile debugfs/Makefile tests/Makefile  | 
| Theodore Ts'o | bc21007 | 1997-06-17 05:41:36 +0000 | [diff] [blame] | 2642 | 	tests/progs/Makefile $rmakefile doc/Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 | 
| Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 2643 | EOF | 
 | 2644 | cat >> $CONFIG_STATUS <<EOF | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2645 |  | 
| Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 2646 | # Protect against being on the right side of a sed subst in config.status. | 
 | 2647 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; | 
 | 2648 |  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2649 | $ac_vpsub | 
 | 2650 | $extrasub | 
| Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame^] | 2651 | s%@SHELL@%$SHELL%g | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2652 | s%@CFLAGS@%$CFLAGS%g | 
 | 2653 | s%@CPPFLAGS@%$CPPFLAGS%g | 
 | 2654 | s%@CXXFLAGS@%$CXXFLAGS%g | 
| Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame^] | 2655 | s%@FFLAGS@%$FFLAGS%g | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2656 | s%@DEFS@%$DEFS%g | 
 | 2657 | s%@LDFLAGS@%$LDFLAGS%g | 
 | 2658 | s%@LIBS@%$LIBS%g | 
 | 2659 | s%@exec_prefix@%$exec_prefix%g | 
 | 2660 | s%@prefix@%$prefix%g | 
 | 2661 | s%@program_transform_name@%$program_transform_name%g | 
| Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 2662 | s%@bindir@%$bindir%g | 
 | 2663 | s%@sbindir@%$sbindir%g | 
 | 2664 | s%@libexecdir@%$libexecdir%g | 
 | 2665 | s%@datadir@%$datadir%g | 
 | 2666 | s%@sysconfdir@%$sysconfdir%g | 
 | 2667 | s%@sharedstatedir@%$sharedstatedir%g | 
 | 2668 | s%@localstatedir@%$localstatedir%g | 
 | 2669 | s%@libdir@%$libdir%g | 
 | 2670 | s%@includedir@%$includedir%g | 
 | 2671 | s%@oldincludedir@%$oldincludedir%g | 
 | 2672 | s%@infodir@%$infodir%g | 
 | 2673 | s%@mandir@%$mandir%g | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2674 | /@MCONFIG@/r $MCONFIG | 
 | 2675 | s%@MCONFIG@%%g | 
| Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 2676 | s%@E2FSPROGS_YEAR@%$E2FSPROGS_YEAR%g | 
 | 2677 | s%@E2FSPROGS_MONTH@%$E2FSPROGS_MONTH%g | 
 | 2678 | s%@E2FSPROGS_VERSION@%$E2FSPROGS_VERSION%g | 
| Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 2679 | s%@host@%$host%g | 
 | 2680 | s%@host_alias@%$host_alias%g | 
 | 2681 | s%@host_cpu@%$host_cpu%g | 
 | 2682 | s%@host_vendor@%$host_vendor%g | 
 | 2683 | s%@host_os@%$host_os%g | 
| Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 2684 | s%@CC@%$CC%g | 
 | 2685 | s%@LD@%$LD%g | 
 | 2686 | s%@CCOPTS@%$CCOPTS%g | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2687 | s%@DLL_CMT@%$DLL_CMT%g | 
 | 2688 | /@MAKEFILE_DLL@/r $MAKEFILE_DLL | 
 | 2689 | s%@MAKEFILE_DLL@%%g | 
 | 2690 | s%@ELF_CMT@%$ELF_CMT%g | 
 | 2691 | /@MAKEFILE_ELF@/r $MAKEFILE_ELF | 
 | 2692 | s%@MAKEFILE_ELF@%%g | 
 | 2693 | s%@BSDLIB_CMT@%$BSDLIB_CMT%g | 
 | 2694 | /@MAKEFILE_BSDLIB@/r $MAKEFILE_BSDLIB | 
 | 2695 | s%@MAKEFILE_BSDLIB@%%g | 
 | 2696 | s%@PROFILE_CMT@%$PROFILE_CMT%g | 
 | 2697 | /@MAKEFILE_PROFILE@/r $MAKEFILE_PROFILE | 
 | 2698 | s%@MAKEFILE_PROFILE@%%g | 
 | 2699 | s%@CHECKER_CMT@%$CHECKER_CMT%g | 
 | 2700 | /@MAKEFILE_CHECKER@/r $MAKEFILE_CHECKER | 
 | 2701 | s%@MAKEFILE_CHECKER@%%g | 
| Theodore Ts'o | a4d0961 | 1997-04-29 14:28:00 +0000 | [diff] [blame] | 2702 | s%@LIB_EXT@%$LIB_EXT%g | 
 | 2703 | s%@STATIC_LIB_EXT@%$STATIC_LIB_EXT%g | 
 | 2704 | s%@PROFILED_LIB_EXT@%$PROFILED_LIB_EXT%g | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2705 | s%@W@%$W%g | 
| Theodore Ts'o | a4d0961 | 1997-04-29 14:28:00 +0000 | [diff] [blame] | 2706 | s%@E2FSCK_TYPE@%$E2FSCK_TYPE%g | 
| Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 2707 | s%@FSCK_PROG@%$FSCK_PROG%g | 
 | 2708 | s%@FSCK_MAN@%$FSCK_MAN%g | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2709 | /@MAKEFILE_LIBRARY@/r $MAKEFILE_LIBRARY | 
 | 2710 | s%@MAKEFILE_LIBRARY@%%g | 
| Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 2711 | s%@BINARY_TYPE@%$BINARY_TYPE%g | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2712 | s%@SET_MAKE@%$SET_MAKE%g | 
 | 2713 | s%@LN@%$LN%g | 
| Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 2714 | s%@LN_S@%$LN_S%g | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2715 | s%@MV@%$MV%g | 
 | 2716 | s%@CP@%$CP%g | 
 | 2717 | s%@RM@%$RM%g | 
 | 2718 | s%@CHMOD@%$CHMOD%g | 
 | 2719 | s%@AWK@%$AWK%g | 
 | 2720 | s%@SED@%$SED%g | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2721 | s%@build@%$build%g | 
 | 2722 | s%@build_alias@%$build_alias%g | 
 | 2723 | s%@build_cpu@%$build_cpu%g | 
 | 2724 | s%@build_vendor@%$build_vendor%g | 
 | 2725 | s%@build_os@%$build_os%g | 
 | 2726 | s%@AR@%$AR%g | 
 | 2727 | s%@RANLIB@%$RANLIB%g | 
 | 2728 | s%@STRIP@%$STRIP%g | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2729 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g | 
| Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame^] | 2730 | s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2731 | s%@INSTALL_DATA@%$INSTALL_DATA%g | 
 | 2732 | s%@CPP@%$CPP%g | 
 | 2733 | s%@SIZEOF_SHORT@%$SIZEOF_SHORT%g | 
 | 2734 | s%@SIZEOF_INT@%$SIZEOF_INT%g | 
 | 2735 | s%@SIZEOF_LONG@%$SIZEOF_LONG%g | 
| Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 2736 | s%@SIZEOF_LONG_LONG@%$SIZEOF_LONG_LONG%g | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2737 | s%@LINUX_INCLUDE@%$LINUX_INCLUDE%g | 
| Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 2738 | s%@SOCKET_LIB@%$SOCKET_LIB%g | 
| Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 2739 | s%@root_prefix@%$root_prefix%g | 
| Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 2740 | s%@LDFLAG_STATIC@%$LDFLAG_STATIC%g | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2741 | s%@SS_DIR@%$SS_DIR%g | 
 | 2742 | s%@ET_DIR@%$ET_DIR%g | 
 | 2743 | s%@DO_TEST_SUITE@%$DO_TEST_SUITE%g | 
| Theodore Ts'o | a4d0961 | 1997-04-29 14:28:00 +0000 | [diff] [blame] | 2744 | /@DO_SUBSTITUTE_SCRIPT@/r $DO_SUBSTITUTE_SCRIPT | 
 | 2745 | s%@DO_SUBSTITUTE_SCRIPT@%%g | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2746 |  | 
 | 2747 | CEOF | 
 | 2748 | EOF | 
| Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 2749 |  | 
 | 2750 | cat >> $CONFIG_STATUS <<\EOF | 
 | 2751 |  | 
 | 2752 | # Split the substitutions into bite-sized pieces for seds with | 
 | 2753 | # small command number limits, like on Digital OSF/1 and HP-UX. | 
 | 2754 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. | 
 | 2755 | ac_file=1 # Number of current file. | 
 | 2756 | ac_beg=1 # First line for current file. | 
 | 2757 | ac_end=$ac_max_sed_cmds # Line after last line for current file. | 
 | 2758 | ac_more_lines=: | 
 | 2759 | ac_sed_cmds="" | 
 | 2760 | while $ac_more_lines; do | 
 | 2761 |   if test $ac_beg -gt 1; then | 
 | 2762 |     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file | 
 | 2763 |   else | 
 | 2764 |     sed "${ac_end}q" conftest.subs > conftest.s$ac_file | 
 | 2765 |   fi | 
 | 2766 |   if test ! -s conftest.s$ac_file; then | 
 | 2767 |     ac_more_lines=false | 
 | 2768 |     rm -f conftest.s$ac_file | 
 | 2769 |   else | 
 | 2770 |     if test -z "$ac_sed_cmds"; then | 
 | 2771 |       ac_sed_cmds="sed -f conftest.s$ac_file" | 
 | 2772 |     else | 
 | 2773 |       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" | 
 | 2774 |     fi | 
 | 2775 |     ac_file=`expr $ac_file + 1` | 
 | 2776 |     ac_beg=$ac_end | 
 | 2777 |     ac_end=`expr $ac_end + $ac_max_sed_cmds` | 
 | 2778 |   fi | 
 | 2779 | done | 
 | 2780 | if test -z "$ac_sed_cmds"; then | 
 | 2781 |   ac_sed_cmds=cat | 
 | 2782 | fi | 
 | 2783 | EOF | 
 | 2784 |  | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2785 | cat >> $CONFIG_STATUS <<EOF | 
 | 2786 |  | 
| Theodore Ts'o | 44339bd | 1997-10-15 02:47:20 +0000 | [diff] [blame] | 2787 | 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] | 2788 | 	lib/ss/Makefile lib/ext2fs/Makefile lib/e2p/Makefile lib/uuid/Makefile | 
 | 2789 | 	misc/Makefile e2fsck/Makefile debugfs/Makefile tests/Makefile  | 
| Theodore Ts'o | bc21007 | 1997-06-17 05:41:36 +0000 | [diff] [blame] | 2790 | 	tests/progs/Makefile $rmakefile doc/Makefile"} | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2791 | EOF | 
 | 2792 | cat >> $CONFIG_STATUS <<\EOF | 
 | 2793 | 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] | 2794 |   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2795 |   case "$ac_file" in | 
| Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 2796 |   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2797 |        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | 
 | 2798 |   *) ac_file_in="${ac_file}.in" ;; | 
 | 2799 |   esac | 
 | 2800 |  | 
| Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 2801 |   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2802 |  | 
 | 2803 |   # Remove last slash and all that follows it.  Not all systems have dirname. | 
 | 2804 |   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | 
 | 2805 |   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | 
 | 2806 |     # The file is in a subdirectory. | 
 | 2807 |     test ! -d "$ac_dir" && mkdir "$ac_dir" | 
 | 2808 |     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" | 
 | 2809 |     # A "../" for each directory in $ac_dir_suffix. | 
 | 2810 |     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` | 
 | 2811 |   else | 
 | 2812 |     ac_dir_suffix= ac_dots= | 
 | 2813 |   fi | 
 | 2814 |  | 
 | 2815 |   case "$ac_given_srcdir" in | 
 | 2816 |   .)  srcdir=. | 
 | 2817 |       if test -z "$ac_dots"; then top_srcdir=. | 
 | 2818 |       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; | 
 | 2819 |   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; | 
 | 2820 |   *) # Relative path. | 
 | 2821 |     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" | 
 | 2822 |     top_srcdir="$ac_dots$ac_given_srcdir" ;; | 
 | 2823 |   esac | 
 | 2824 |  | 
 | 2825 |   case "$ac_given_INSTALL" in | 
 | 2826 |   [/$]*) INSTALL="$ac_given_INSTALL" ;; | 
 | 2827 |   *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | 
 | 2828 |   esac | 
| Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 2829 |  | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2830 |   echo creating "$ac_file" | 
 | 2831 |   rm -f "$ac_file" | 
 | 2832 |   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." | 
 | 2833 |   case "$ac_file" in | 
 | 2834 |   *Makefile*) ac_comsub="1i\\ | 
 | 2835 | # $configure_input" ;; | 
 | 2836 |   *) ac_comsub= ;; | 
 | 2837 |   esac | 
| Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 2838 |  | 
 | 2839 |   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] | 2840 |   sed -e "$ac_comsub | 
 | 2841 | s%@configure_input@%$configure_input%g | 
 | 2842 | s%@srcdir@%$srcdir%g | 
 | 2843 | s%@top_srcdir@%$top_srcdir%g | 
 | 2844 | s%@INSTALL@%$INSTALL%g | 
| Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 2845 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2846 | fi; done | 
| Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 2847 | rm -f conftest.s* | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2848 |  | 
| Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 2849 | EOF | 
 | 2850 | cat >> $CONFIG_STATUS <<EOF | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2851 |  | 
| Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 2852 | EOF | 
 | 2853 | cat >> $CONFIG_STATUS <<\EOF | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2854 |  | 
 | 2855 | exit 0 | 
 | 2856 | EOF | 
 | 2857 | chmod +x $CONFIG_STATUS | 
 | 2858 | rm -fr confdefs* $ac_clean_files | 
 | 2859 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 | 
 | 2860 |  |