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