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