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