Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1 | #! /bin/sh |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 3 | # Guess values for system-dependent variables and create Makefiles. |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4 | # Generated automatically using autoconf version 2.13 |
| 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 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 10 | # Defaults: |
| 11 | ac_help= |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12 | ac_default_prefix=/usr/local |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 13 | # Any additions from configure.in: |
| 14 | ac_help="$ac_help |
| 15 | --with-diet-libc Use diet libc" |
| 16 | ac_help="$ac_help |
| 17 | --with-cc=COMPILER select compiler to use" |
| 18 | ac_help="$ac_help |
| 19 | --with-linker=LINKER select linker to use" |
| 20 | ac_help="$ac_help |
| 21 | --with-ccopts=CCOPTS select compiler command line options" |
| 22 | ac_help="$ac_help |
| 23 | --with-ldopts=LDOPTS select linker command line options" |
| 24 | ac_help="$ac_help |
| 25 | --with-root-prefix=PREFIX override prefix variable for files to be placed in the root" |
| 26 | ac_help="$ac_help |
| 27 | --enable-compression enable EXPERIMENTAL compression support" |
| 28 | ac_help="$ac_help |
| 29 | --enable-htree enable EXPERIMENTAL htree directory support" |
| 30 | ac_help="$ac_help |
| 31 | --enable-htree-clear clear htree because we don't trust e2fsck" |
| 32 | ac_help="$ac_help |
| 33 | --disable-evms don't build EVMS plugin" |
| 34 | ac_help="$ac_help |
| 35 | --enable-evms-10 use EVMS 1.0 ABI (instead of EVMS 1.2)" |
| 36 | ac_help="$ac_help |
| 37 | --enable-evms-11 use EVMS 1.1 ABI (instead of EVMS 1.2)" |
| 38 | ac_help="$ac_help |
| 39 | --enable-dll-shlibs select DLL libraries" |
| 40 | ac_help="$ac_help |
| 41 | --enable-elf-shlibs select ELF shared libraries" |
| 42 | ac_help="$ac_help |
| 43 | --enable-bsd-shlibs select BSD shared libraries" |
| 44 | ac_help="$ac_help |
| 45 | --enable-profile build profiling libraries" |
| 46 | ac_help="$ac_help |
| 47 | --enable-checker build checker libraries" |
| 48 | ac_help="$ac_help |
| 49 | --enable-jbd-debug enable journal debugging" |
| 50 | ac_help="$ac_help |
| 51 | --enable-blkid-debug enable blkid debugging" |
| 52 | ac_help="$ac_help |
| 53 | --enable-testio-debug enable the use of the test I/O manager for debugging" |
| 54 | ac_help="$ac_help |
| 55 | --disable-swapfs disable support of legacy byte-swapped filesystems" |
| 56 | ac_help="$ac_help |
| 57 | --disable-debugfs disable support of debugfs program" |
| 58 | ac_help="$ac_help |
| 59 | --disable-imager disable support of e2image program" |
| 60 | ac_help="$ac_help |
| 61 | --disable-resizer disable support of e2resize program" |
| 62 | ac_help="$ac_help |
| 63 | --enable-dynamic-e2fsck build e2fsck dynamically" |
| 64 | ac_help="$ac_help |
| 65 | --enable-fsck build fsck wrapper program" |
| 66 | ac_help="$ac_help |
| 67 | --enable-old-bitops Use old (non-standard but native) bitmask operations" |
| 68 | ac_help="$ac_help |
| 69 | --with-gnu-ld assume the C compiler uses GNU ld [default=no]" |
| 70 | ac_help="$ac_help |
| 71 | --disable-rpath do not hardcode runtime library paths" |
| 72 | ac_help="$ac_help |
| 73 | --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib |
| 74 | --without-libiconv-prefix don't search for libiconv in includedir and libdir" |
| 75 | ac_help="$ac_help |
| 76 | --disable-nls do not use Native Language Support" |
| 77 | ac_help="$ac_help |
| 78 | --with-included-gettext use the GNU gettext library included here" |
| 79 | ac_help="$ac_help |
| 80 | --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib |
| 81 | --without-libintl-prefix don't search for libintl in includedir and libdir" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 82 | |
| 83 | # Initialize some variables set by options. |
| 84 | # The variables have the same names as the options, with |
| 85 | # dashes changed to underlines. |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 86 | build=NONE |
| 87 | cache_file=./config.cache |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 88 | exec_prefix=NONE |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 89 | host=NONE |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 90 | no_create= |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 91 | nonopt=NONE |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 92 | no_recursion= |
| 93 | prefix=NONE |
| 94 | program_prefix=NONE |
| 95 | program_suffix=NONE |
| 96 | program_transform_name=s,x,x, |
| 97 | silent= |
| 98 | site= |
| 99 | srcdir= |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 100 | target=NONE |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 101 | verbose= |
| 102 | x_includes=NONE |
| 103 | x_libraries=NONE |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 104 | bindir='${exec_prefix}/bin' |
| 105 | sbindir='${exec_prefix}/sbin' |
| 106 | libexecdir='${exec_prefix}/libexec' |
| 107 | datadir='${prefix}/share' |
| 108 | sysconfdir='${prefix}/etc' |
| 109 | sharedstatedir='${prefix}/com' |
| 110 | localstatedir='${prefix}/var' |
| 111 | libdir='${exec_prefix}/lib' |
| 112 | includedir='${prefix}/include' |
| 113 | oldincludedir='/usr/include' |
| 114 | infodir='${prefix}/info' |
| 115 | mandir='${prefix}/man' |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 116 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 117 | # Initialize some other variables. |
| 118 | subdirs= |
| 119 | MFLAGS= MAKEFLAGS= |
| 120 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 121 | # Maximum number of lines to put in a shell here document. |
| 122 | ac_max_here_lines=12 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 123 | |
| 124 | ac_prev= |
| 125 | for ac_option |
| 126 | do |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 127 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 128 | # If the previous option needs an argument, assign it. |
| 129 | if test -n "$ac_prev"; then |
| 130 | eval "$ac_prev=\$ac_option" |
| 131 | ac_prev= |
| 132 | continue |
| 133 | fi |
| 134 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 135 | case "$ac_option" in |
| 136 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; |
| 137 | *) ac_optarg= ;; |
| 138 | esac |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 139 | |
| 140 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 141 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 142 | case "$ac_option" in |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 143 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 144 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 145 | ac_prev=bindir ;; |
| 146 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 147 | bindir="$ac_optarg" ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 148 | |
| 149 | -build | --build | --buil | --bui | --bu) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 150 | ac_prev=build ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 151 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 152 | build="$ac_optarg" ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 153 | |
| 154 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 155 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 156 | ac_prev=cache_file ;; |
| 157 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 158 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 159 | cache_file="$ac_optarg" ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 160 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 161 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
| 162 | ac_prev=datadir ;; |
| 163 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
| 164 | | --da=*) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 165 | datadir="$ac_optarg" ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 166 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 167 | -disable-* | --disable-*) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 168 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 169 | # Reject names that are not valid shell variable names. |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 170 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then |
| 171 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } |
| 172 | fi |
| 173 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` |
| 174 | eval "enable_${ac_feature}=no" ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 175 | |
| 176 | -enable-* | --enable-*) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 177 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 178 | # Reject names that are not valid shell variable names. |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 179 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then |
| 180 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } |
| 181 | fi |
| 182 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` |
| 183 | case "$ac_option" in |
| 184 | *=*) ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 185 | *) ac_optarg=yes ;; |
| 186 | esac |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 187 | eval "enable_${ac_feature}='$ac_optarg'" ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 188 | |
| 189 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 190 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 191 | | --exec | --exe | --ex) |
| 192 | ac_prev=exec_prefix ;; |
| 193 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 194 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 195 | | --exec=* | --exe=* | --ex=*) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 196 | exec_prefix="$ac_optarg" ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 197 | |
| 198 | -gas | --gas | --ga | --g) |
| 199 | # Obsolete; use --with-gas. |
| 200 | with_gas=yes ;; |
| 201 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 202 | -help | --help | --hel | --he) |
| 203 | # Omit some internal or obsolete options to make the list less imposing. |
| 204 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 205 | cat << EOF |
| 206 | Usage: configure [options] [host] |
| 207 | Options: [defaults in brackets after descriptions] |
| 208 | Configuration: |
| 209 | --cache-file=FILE cache test results in FILE |
| 210 | --help print this message |
| 211 | --no-create do not create output files |
| 212 | --quiet, --silent do not print \`checking...' messages |
| 213 | --version print the version of autoconf that created configure |
| 214 | Directory and file names: |
| 215 | --prefix=PREFIX install architecture-independent files in PREFIX |
| 216 | [$ac_default_prefix] |
| 217 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
| 218 | [same as prefix] |
| 219 | --bindir=DIR user executables in DIR [EPREFIX/bin] |
| 220 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] |
| 221 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec] |
| 222 | --datadir=DIR read-only architecture-independent data in DIR |
| 223 | [PREFIX/share] |
| 224 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] |
| 225 | --sharedstatedir=DIR modifiable architecture-independent data in DIR |
| 226 | [PREFIX/com] |
| 227 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] |
| 228 | --libdir=DIR object code libraries in DIR [EPREFIX/lib] |
| 229 | --includedir=DIR C header files in DIR [PREFIX/include] |
| 230 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] |
| 231 | --infodir=DIR info documentation in DIR [PREFIX/info] |
| 232 | --mandir=DIR man documentation in DIR [PREFIX/man] |
| 233 | --srcdir=DIR find the sources in DIR [configure dir or ..] |
| 234 | --program-prefix=PREFIX prepend PREFIX to installed program names |
| 235 | --program-suffix=SUFFIX append SUFFIX to installed program names |
| 236 | --program-transform-name=PROGRAM |
| 237 | run sed PROGRAM on installed program names |
| 238 | EOF |
| 239 | cat << EOF |
| 240 | Host type: |
| 241 | --build=BUILD configure for building on BUILD [BUILD=HOST] |
| 242 | --host=HOST configure for HOST [guessed] |
| 243 | --target=TARGET configure for TARGET [TARGET=HOST] |
| 244 | Features and packages: |
| 245 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 246 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
| 247 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 248 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
| 249 | --x-includes=DIR X include files are in DIR |
| 250 | --x-libraries=DIR X library files are in DIR |
| 251 | EOF |
| 252 | if test -n "$ac_help"; then |
| 253 | echo "--enable and --with options recognized:$ac_help" |
| 254 | fi |
| 255 | exit 0 ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 256 | |
| 257 | -host | --host | --hos | --ho) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 258 | ac_prev=host ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 259 | -host=* | --host=* | --hos=* | --ho=*) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 260 | host="$ac_optarg" ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 261 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 262 | -includedir | --includedir | --includedi | --included | --include \ |
| 263 | | --includ | --inclu | --incl | --inc) |
| 264 | ac_prev=includedir ;; |
| 265 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 266 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 267 | includedir="$ac_optarg" ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 268 | |
| 269 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 270 | ac_prev=infodir ;; |
| 271 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 272 | infodir="$ac_optarg" ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 273 | |
| 274 | -libdir | --libdir | --libdi | --libd) |
| 275 | ac_prev=libdir ;; |
| 276 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 277 | libdir="$ac_optarg" ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 278 | |
| 279 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 280 | | --libexe | --libex | --libe) |
| 281 | ac_prev=libexecdir ;; |
| 282 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 283 | | --libexe=* | --libex=* | --libe=*) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 284 | libexecdir="$ac_optarg" ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 285 | |
| 286 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
| 287 | | --localstate | --localstat | --localsta | --localst \ |
| 288 | | --locals | --local | --loca | --loc | --lo) |
| 289 | ac_prev=localstatedir ;; |
| 290 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
| 291 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
| 292 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 293 | localstatedir="$ac_optarg" ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 294 | |
| 295 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 296 | ac_prev=mandir ;; |
| 297 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 298 | mandir="$ac_optarg" ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 299 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 300 | -nfp | --nfp | --nf) |
| 301 | # Obsolete; use --without-fp. |
| 302 | with_fp=no ;; |
| 303 | |
| 304 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 305 | | --no-cr | --no-c) |
| 306 | no_create=yes ;; |
| 307 | |
| 308 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 309 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 310 | no_recursion=yes ;; |
| 311 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 312 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 313 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 314 | | --oldin | --oldi | --old | --ol | --o) |
| 315 | ac_prev=oldincludedir ;; |
| 316 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 317 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 318 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 319 | oldincludedir="$ac_optarg" ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 320 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 321 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 322 | ac_prev=prefix ;; |
| 323 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 324 | prefix="$ac_optarg" ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 325 | |
| 326 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 327 | | --program-pre | --program-pr | --program-p) |
| 328 | ac_prev=program_prefix ;; |
| 329 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 330 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 331 | program_prefix="$ac_optarg" ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 332 | |
| 333 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 334 | | --program-suf | --program-su | --program-s) |
| 335 | ac_prev=program_suffix ;; |
| 336 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 337 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 338 | program_suffix="$ac_optarg" ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 339 | |
| 340 | -program-transform-name | --program-transform-name \ |
| 341 | | --program-transform-nam | --program-transform-na \ |
| 342 | | --program-transform-n | --program-transform- \ |
| 343 | | --program-transform | --program-transfor \ |
| 344 | | --program-transfo | --program-transf \ |
| 345 | | --program-trans | --program-tran \ |
| 346 | | --progr-tra | --program-tr | --program-t) |
| 347 | ac_prev=program_transform_name ;; |
| 348 | -program-transform-name=* | --program-transform-name=* \ |
| 349 | | --program-transform-nam=* | --program-transform-na=* \ |
| 350 | | --program-transform-n=* | --program-transform-=* \ |
| 351 | | --program-transform=* | --program-transfor=* \ |
| 352 | | --program-transfo=* | --program-transf=* \ |
| 353 | | --program-trans=* | --program-tran=* \ |
| 354 | | --progr-tra=* | --program-tr=* | --program-t=*) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 355 | program_transform_name="$ac_optarg" ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 356 | |
| 357 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 358 | | -silent | --silent | --silen | --sile | --sil) |
| 359 | silent=yes ;; |
| 360 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 361 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 362 | ac_prev=sbindir ;; |
| 363 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 364 | | --sbi=* | --sb=*) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 365 | sbindir="$ac_optarg" ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 366 | |
| 367 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 368 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 369 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 370 | | --sha | --sh) |
| 371 | ac_prev=sharedstatedir ;; |
| 372 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 373 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 374 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 375 | | --sha=* | --sh=*) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 376 | sharedstatedir="$ac_optarg" ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 377 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 378 | -site | --site | --sit) |
| 379 | ac_prev=site ;; |
| 380 | -site=* | --site=* | --sit=*) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 381 | site="$ac_optarg" ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 382 | |
| 383 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 384 | ac_prev=srcdir ;; |
| 385 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 386 | srcdir="$ac_optarg" ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 387 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 388 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 389 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 390 | ac_prev=sysconfdir ;; |
| 391 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 392 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 393 | sysconfdir="$ac_optarg" ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 394 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 395 | -target | --target | --targe | --targ | --tar | --ta | --t) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 396 | ac_prev=target ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 397 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 398 | target="$ac_optarg" ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 399 | |
| 400 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 401 | verbose=yes ;; |
| 402 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 403 | -version | --version | --versio | --versi | --vers) |
| 404 | echo "configure generated by autoconf version 2.13" |
| 405 | exit 0 ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 406 | |
| 407 | -with-* | --with-*) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 408 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 409 | # Reject names that are not valid shell variable names. |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 410 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then |
| 411 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } |
| 412 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 413 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 414 | case "$ac_option" in |
| 415 | *=*) ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 416 | *) ac_optarg=yes ;; |
| 417 | esac |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 418 | eval "with_${ac_package}='$ac_optarg'" ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 419 | |
| 420 | -without-* | --without-*) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 421 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 422 | # Reject names that are not valid shell variable names. |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 423 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then |
| 424 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } |
| 425 | fi |
| 426 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
| 427 | eval "with_${ac_package}=no" ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 428 | |
| 429 | --x) |
| 430 | # Obsolete; use --with-x. |
| 431 | with_x=yes ;; |
| 432 | |
| 433 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 434 | | --x-incl | --x-inc | --x-in | --x-i) |
| 435 | ac_prev=x_includes ;; |
| 436 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 437 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 438 | x_includes="$ac_optarg" ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 439 | |
| 440 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 441 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 442 | ac_prev=x_libraries ;; |
| 443 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 444 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 445 | x_libraries="$ac_optarg" ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 446 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 447 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 448 | ;; |
| 449 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 450 | *) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 451 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then |
| 452 | echo "configure: warning: $ac_option: invalid host type" 1>&2 |
| 453 | fi |
| 454 | if test "x$nonopt" != xNONE; then |
| 455 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } |
| 456 | fi |
| 457 | nonopt="$ac_option" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 458 | ;; |
| 459 | |
| 460 | esac |
| 461 | done |
| 462 | |
| 463 | if test -n "$ac_prev"; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 464 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 465 | fi |
| 466 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 467 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
| 468 | |
| 469 | # File descriptor usage: |
| 470 | # 0 standard input |
| 471 | # 1 file creation |
| 472 | # 2 errors and warnings |
| 473 | # 3 some systems may open it to /dev/tty |
| 474 | # 4 used on the Kubota Titan |
| 475 | # 6 checking for... messages and results |
| 476 | # 5 compiler messages saved in config.log |
| 477 | if test "$silent" = yes; then |
| 478 | exec 6>/dev/null |
| 479 | else |
| 480 | exec 6>&1 |
| 481 | fi |
| 482 | exec 5>./config.log |
| 483 | |
| 484 | echo "\ |
| 485 | This file contains any messages produced by compilers while |
| 486 | running configure, to aid debugging if configure makes a mistake. |
| 487 | " 1>&5 |
| 488 | |
| 489 | # Strip out --no-create and --no-recursion so they do not pile up. |
| 490 | # Also quote any args containing shell metacharacters. |
| 491 | ac_configure_args= |
| 492 | for ac_arg |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 493 | do |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 494 | case "$ac_arg" in |
| 495 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 496 | | --no-cr | --no-c) ;; |
| 497 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 498 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; |
| 499 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) |
| 500 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
| 501 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 502 | esac |
| 503 | done |
| 504 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 505 | # NLS nuisances. |
| 506 | # Only set these to C if already set. These must not be set unconditionally |
| 507 | # because not all systems understand e.g. LANG=C (notably SCO). |
| 508 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! |
| 509 | # Non-C LC_CTYPE values break the ctype check. |
| 510 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi |
| 511 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi |
| 512 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi |
| 513 | 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] | 514 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 515 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
| 516 | rm -rf conftest* confdefs.h |
| 517 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
| 518 | echo > confdefs.h |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 519 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 520 | # A filename unique to this package, relative to the directory that |
| 521 | # configure is in, which we can look for to find out if srcdir is correct. |
| 522 | ac_unique_file=version.h |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 523 | |
| 524 | # Find the source files, if location was not specified. |
| 525 | if test -z "$srcdir"; then |
| 526 | ac_srcdir_defaulted=yes |
| 527 | # Try the directory containing this script, then its parent. |
| 528 | ac_prog=$0 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 529 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 530 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. |
| 531 | srcdir=$ac_confdir |
| 532 | if test ! -r $srcdir/$ac_unique_file; then |
| 533 | srcdir=.. |
| 534 | fi |
| 535 | else |
| 536 | ac_srcdir_defaulted=no |
| 537 | fi |
| 538 | if test ! -r $srcdir/$ac_unique_file; then |
| 539 | if test "$ac_srcdir_defaulted" = yes; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 540 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 541 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 542 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 543 | fi |
| 544 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 545 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 546 | |
| 547 | # Prefer explicitly selected file to automatically selected ones. |
| 548 | if test -z "$CONFIG_SITE"; then |
| 549 | if test "x$prefix" != xNONE; then |
| 550 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
| 551 | else |
| 552 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
| 553 | fi |
| 554 | fi |
| 555 | for ac_site_file in $CONFIG_SITE; do |
| 556 | if test -r "$ac_site_file"; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 557 | echo "loading site script $ac_site_file" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 558 | . "$ac_site_file" |
| 559 | fi |
| 560 | done |
| 561 | |
| 562 | if test -r "$cache_file"; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 563 | echo "loading cache $cache_file" |
| 564 | . $cache_file |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 565 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 566 | echo "creating cache $cache_file" |
| 567 | > $cache_file |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 568 | fi |
| 569 | |
| 570 | ac_ext=c |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 571 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 572 | ac_cpp='$CPP $CPPFLAGS' |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 573 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
| 574 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
| 575 | cross_compiling=$ac_cv_prog_cc_cross |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 576 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 577 | ac_exeext= |
| 578 | ac_objext=o |
| 579 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then |
| 580 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. |
| 581 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then |
| 582 | ac_n= ac_c=' |
| 583 | ' ac_t=' ' |
| 584 | else |
| 585 | ac_n=-n ac_c= ac_t= |
| 586 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 587 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 588 | ac_n= ac_c='\c' ac_t= |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 589 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 590 | |
| 591 | # Check whether --with-gnu-ld or --without-gnu-ld was given. |
| 592 | if test "${with_gnu_ld+set}" = set; then |
| 593 | withval="$with_gnu_ld" |
| 594 | test "$withval" = no || with_gnu_ld=yes |
| 595 | else |
| 596 | with_gnu_ld=no |
| 597 | fi |
| 598 | |
| 599 | ac_prog=ld |
| 600 | if test "$GCC" = yes; then |
| 601 | # Check if gcc -print-prog-name=ld gives a path. |
| 602 | echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6 |
| 603 | echo "configure:604: checking for ld used by GCC" >&5 |
| 604 | case $host in |
| 605 | *-*-mingw*) |
| 606 | # gcc leaves a trailing carriage return which upsets mingw |
| 607 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 608 | *) |
| 609 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 610 | esac |
| 611 | case $ac_prog in |
| 612 | # Accept absolute paths. |
| 613 | [\\/]* | [A-Za-z]:[\\/]*) |
| 614 | re_direlt='/[^/][^/]*/\.\./' |
| 615 | # Canonicalize the path of ld |
| 616 | ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` |
| 617 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
| 618 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` |
| 619 | done |
| 620 | test -z "$LD" && LD="$ac_prog" |
| 621 | ;; |
| 622 | "") |
| 623 | # If it fails, then pretend we aren't using GCC. |
| 624 | ac_prog=ld |
| 625 | ;; |
| 626 | *) |
| 627 | # If it is relative, then search for the first ld in PATH. |
| 628 | with_gnu_ld=unknown |
| 629 | ;; |
| 630 | esac |
| 631 | elif test "$with_gnu_ld" = yes; then |
| 632 | echo $ac_n "checking for GNU ld""... $ac_c" 1>&6 |
| 633 | echo "configure:634: checking for GNU ld" >&5 |
| 634 | else |
| 635 | echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6 |
| 636 | echo "configure:637: checking for non-GNU ld" >&5 |
| 637 | fi |
| 638 | if eval "test \"`echo '$''{'acl_cv_path_LD'+set}'`\" = set"; then |
| 639 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 640 | else |
| 641 | if test -z "$LD"; then |
| 642 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" |
| 643 | for ac_dir in $PATH; do |
| 644 | test -z "$ac_dir" && ac_dir=. |
| 645 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 646 | acl_cv_path_LD="$ac_dir/$ac_prog" |
| 647 | # Check to see if the program is GNU ld. I'd rather use --version, |
| 648 | # but apparently some GNU ld's only accept -v. |
| 649 | # Break only if it was the GNU/non-GNU ld that we prefer. |
| 650 | if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then |
| 651 | test "$with_gnu_ld" != no && break |
| 652 | else |
| 653 | test "$with_gnu_ld" != yes && break |
| 654 | fi |
| 655 | fi |
| 656 | done |
| 657 | IFS="$ac_save_ifs" |
| 658 | else |
| 659 | acl_cv_path_LD="$LD" # Let the user override the test with a path. |
| 660 | fi |
| 661 | fi |
| 662 | |
| 663 | LD="$acl_cv_path_LD" |
| 664 | if test -n "$LD"; then |
| 665 | echo "$ac_t""$LD" 1>&6 |
| 666 | else |
| 667 | echo "$ac_t""no" 1>&6 |
| 668 | fi |
| 669 | test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; } |
| 670 | echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6 |
| 671 | echo "configure:672: checking if the linker ($LD) is GNU ld" >&5 |
| 672 | if eval "test \"`echo '$''{'acl_cv_prog_gnu_ld'+set}'`\" = set"; then |
| 673 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 674 | else |
| 675 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. |
| 676 | if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then |
| 677 | acl_cv_prog_gnu_ld=yes |
| 678 | else |
| 679 | acl_cv_prog_gnu_ld=no |
| 680 | fi |
| 681 | fi |
| 682 | |
| 683 | echo "$ac_t""$acl_cv_prog_gnu_ld" 1>&6 |
| 684 | with_gnu_ld=$acl_cv_prog_gnu_ld |
| 685 | |
| 686 | |
| 687 | |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 688 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 689 | MCONFIG=./MCONFIG |
| 690 | |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 691 | BINARY_TYPE=bin |
| 692 | E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \ |
| 693 | | awk '{print $3}' | tr \" " " | awk '{print $1}'` |
| 694 | DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \ |
| 695 | | tr \" " "` |
Theodore Ts'o | bff0cc9 | 2003-03-23 01:37:53 -0500 | [diff] [blame] | 696 | E2FSPROGS_DAY=`echo $DATE | awk -F- '{print $1}'` |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 697 | MONTH=`echo $DATE | awk -F- '{print $2}'` |
| 698 | YEAR=`echo $DATE | awk -F- '{print $3}'` |
| 699 | |
Theodore Ts'o | 14790ed | 1999-01-12 23:32:52 +0000 | [diff] [blame] | 700 | if expr $YEAR ">" 1900 > /dev/null ; then |
| 701 | E2FSPROGS_YEAR=$YEAR |
| 702 | elif expr $YEAR ">" 90 >/dev/null ; then |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 703 | E2FSPROGS_YEAR=19$YEAR |
| 704 | else |
| 705 | E2FSPROGS_YEAR=20$YEAR |
| 706 | fi |
| 707 | |
| 708 | case $MONTH in |
| 709 | Jan) E2FSPROGS_MONTH="January" ;; |
| 710 | Feb) E2FSPROGS_MONTH="February" ;; |
| 711 | Mar) E2FSPROGS_MONTH="March" ;; |
| 712 | Apr) E2FSPROGS_MONTH="April" ;; |
| 713 | May) E2FSPROGS_MONTH="May" ;; |
| 714 | Jun) E2FSPROGS_MONTH="June" ;; |
| 715 | Jul) E2FSPROGS_MONTH="July" ;; |
| 716 | Aug) E2FSPROGS_MONTH="August" ;; |
| 717 | Sep) E2FSPROGS_MONTH="September" ;; |
| 718 | Oct) E2FSPROGS_MONTH="October" ;; |
| 719 | Nov) E2FSPROGS_MONTH="November" ;; |
| 720 | Dec) E2FSPROGS_MONTH="December" ;; |
| 721 | *) echo "Unknown month $MONTH??" ;; |
| 722 | esac |
| 723 | |
| 724 | unset DATE MONTH YEAR |
| 725 | echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" |
| 726 | echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" |
| 727 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 728 | |
| 729 | |
| 730 | |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 731 | ac_aux_dir= |
| 732 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
| 733 | if test -f $ac_dir/install-sh; then |
| 734 | ac_aux_dir=$ac_dir |
| 735 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 736 | break |
| 737 | elif test -f $ac_dir/install.sh; then |
| 738 | ac_aux_dir=$ac_dir |
| 739 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 740 | break |
| 741 | fi |
| 742 | done |
| 743 | if test -z "$ac_aux_dir"; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 744 | { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 745 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 746 | ac_config_guess=$ac_aux_dir/config.guess |
| 747 | ac_config_sub=$ac_aux_dir/config.sub |
| 748 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. |
| 749 | |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 750 | |
| 751 | # Make sure we can run config.sub. |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 752 | if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : |
| 753 | else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 754 | fi |
| 755 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 756 | echo $ac_n "checking host system type""... $ac_c" 1>&6 |
| 757 | echo "configure:758: checking host system type" >&5 |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 758 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 759 | host_alias=$host |
| 760 | case "$host_alias" in |
| 761 | NONE) |
| 762 | case $nonopt in |
| 763 | NONE) |
| 764 | if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : |
| 765 | else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } |
| 766 | fi ;; |
| 767 | *) host_alias=$nonopt ;; |
| 768 | esac ;; |
| 769 | esac |
| 770 | |
| 771 | host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` |
| 772 | host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
| 773 | host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
| 774 | host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
| 775 | echo "$ac_t""$host" 1>&6 |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 776 | |
Theodore Ts'o | d21ae6c | 2003-05-05 09:00:24 -0400 | [diff] [blame] | 777 | EVMS_CMT= |
Theodore Ts'o | d21ae6c | 2003-05-05 09:00:24 -0400 | [diff] [blame] | 778 | # Check whether --with-diet-libc or --without-diet-libc was given. |
| 779 | if test "${with_diet_libc+set}" = set; then |
| 780 | withval="$with_diet_libc" |
| 781 | CC="diet cc -nostdinc" |
| 782 | EVMS_CMT="#" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 783 | echo "$ac_t""CC=$CC" 1>&6 |
| 784 | fi |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 785 | # Check whether --with-cc or --without-cc was given. |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 786 | if test "${with_cc+set}" = set; then |
| 787 | withval="$with_cc" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 788 | echo "$ac_t""CC=$withval" 1>&6 |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 789 | CC=$withval |
| 790 | else |
| 791 | if test -z "$CC" ; then CC=cc; fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 792 | echo "$ac_t""CC defaults to $CC" 1>&6 |
| 793 | fi |
| 794 | export CC |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 795 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 796 | # Extract the first word of "gcc", so it can be a program name with args. |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 797 | set dummy gcc; ac_word=$2 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 798 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| 799 | echo "configure:800: checking for $ac_word" >&5 |
| 800 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
| 801 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 802 | else |
| 803 | if test -n "$CC"; then |
| 804 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 805 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 806 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 807 | ac_dummy="$PATH" |
| 808 | for ac_dir in $ac_dummy; do |
| 809 | test -z "$ac_dir" && ac_dir=. |
| 810 | if test -f $ac_dir/$ac_word; then |
| 811 | ac_cv_prog_CC="gcc" |
| 812 | break |
| 813 | fi |
| 814 | done |
| 815 | IFS="$ac_save_ifs" |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 816 | fi |
| 817 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 818 | CC="$ac_cv_prog_CC" |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 819 | if test -n "$CC"; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 820 | echo "$ac_t""$CC" 1>&6 |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 821 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 822 | echo "$ac_t""no" 1>&6 |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 823 | fi |
| 824 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 825 | if test -z "$CC"; then |
| 826 | # Extract the first word of "cc", so it can be a program name with args. |
| 827 | set dummy cc; ac_word=$2 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 828 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| 829 | echo "configure:830: checking for $ac_word" >&5 |
| 830 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
| 831 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 832 | else |
| 833 | if test -n "$CC"; then |
| 834 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 835 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 836 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 837 | ac_prog_rejected=no |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 838 | ac_dummy="$PATH" |
| 839 | for ac_dir in $ac_dummy; do |
| 840 | test -z "$ac_dir" && ac_dir=. |
| 841 | if test -f $ac_dir/$ac_word; then |
| 842 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then |
| 843 | ac_prog_rejected=yes |
| 844 | continue |
| 845 | fi |
| 846 | ac_cv_prog_CC="cc" |
| 847 | break |
| 848 | fi |
| 849 | done |
| 850 | IFS="$ac_save_ifs" |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 851 | if test $ac_prog_rejected = yes; then |
| 852 | # We found a bogon in the path, so make sure we never use it. |
| 853 | set dummy $ac_cv_prog_CC |
| 854 | shift |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 855 | if test $# -gt 0; then |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 856 | # We chose a different compiler from the bogus one. |
| 857 | # However, it has the same basename, so the bogon will be chosen |
| 858 | # first if we set CC to just the basename; use the full file name. |
| 859 | shift |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 860 | set dummy "$ac_dir/$ac_word" "$@" |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 861 | shift |
| 862 | ac_cv_prog_CC="$@" |
| 863 | fi |
| 864 | fi |
| 865 | fi |
| 866 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 867 | CC="$ac_cv_prog_CC" |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 868 | if test -n "$CC"; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 869 | echo "$ac_t""$CC" 1>&6 |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 870 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 871 | echo "$ac_t""no" 1>&6 |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 872 | fi |
| 873 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 874 | if test -z "$CC"; then |
| 875 | case "`uname -s`" in |
| 876 | *win32* | *WIN32*) |
| 877 | # Extract the first word of "cl", so it can be a program name with args. |
| 878 | set dummy cl; ac_word=$2 |
| 879 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| 880 | echo "configure:881: checking for $ac_word" >&5 |
| 881 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
| 882 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 883 | else |
| 884 | if test -n "$CC"; then |
| 885 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 886 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 887 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 888 | ac_dummy="$PATH" |
| 889 | for ac_dir in $ac_dummy; do |
| 890 | test -z "$ac_dir" && ac_dir=. |
| 891 | if test -f $ac_dir/$ac_word; then |
| 892 | ac_cv_prog_CC="cl" |
| 893 | break |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 894 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 895 | done |
| 896 | IFS="$ac_save_ifs" |
| 897 | fi |
| 898 | fi |
| 899 | CC="$ac_cv_prog_CC" |
| 900 | if test -n "$CC"; then |
| 901 | echo "$ac_t""$CC" 1>&6 |
| 902 | else |
| 903 | echo "$ac_t""no" 1>&6 |
| 904 | fi |
| 905 | ;; |
| 906 | esac |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 907 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 908 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 909 | fi |
| 910 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 911 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
| 912 | echo "configure:913: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 913 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 914 | ac_ext=c |
| 915 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
| 916 | ac_cpp='$CPP $CPPFLAGS' |
| 917 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
| 918 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
| 919 | cross_compiling=$ac_cv_prog_cc_cross |
| 920 | |
| 921 | cat > conftest.$ac_ext << EOF |
| 922 | |
| 923 | #line 924 "configure" |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 924 | #include "confdefs.h" |
| 925 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 926 | main(){return(0);} |
| 927 | EOF |
| 928 | if { (eval echo configure:929: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 929 | ac_cv_prog_cc_works=yes |
| 930 | # If we can't run a trivial program, we are probably using a cross compiler. |
| 931 | if (./conftest; exit) 2>/dev/null; then |
| 932 | ac_cv_prog_cc_cross=no |
| 933 | else |
| 934 | ac_cv_prog_cc_cross=yes |
| 935 | fi |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 936 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 937 | echo "configure: failed program was:" >&5 |
| 938 | cat conftest.$ac_ext >&5 |
| 939 | ac_cv_prog_cc_works=no |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 940 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 941 | rm -fr conftest* |
| 942 | ac_ext=c |
| 943 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
| 944 | ac_cpp='$CPP $CPPFLAGS' |
| 945 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
| 946 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
| 947 | cross_compiling=$ac_cv_prog_cc_cross |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 948 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 949 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 |
| 950 | if test $ac_cv_prog_cc_works = no; then |
| 951 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 952 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 953 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 |
| 954 | echo "configure:955: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
| 955 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
| 956 | cross_compiling=$ac_cv_prog_cc_cross |
| 957 | |
| 958 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 |
| 959 | echo "configure:960: checking whether we are using GNU C" >&5 |
| 960 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
| 961 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 962 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 963 | cat > conftest.c <<EOF |
| 964 | #ifdef __GNUC__ |
| 965 | yes; |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 966 | #endif |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 967 | EOF |
| 968 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:969: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
| 969 | ac_cv_prog_gcc=yes |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 970 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 971 | ac_cv_prog_gcc=no |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 972 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 973 | fi |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 974 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 975 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 |
| 976 | |
| 977 | if test $ac_cv_prog_gcc = yes; then |
| 978 | GCC=yes |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 979 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 980 | GCC= |
| 981 | fi |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 982 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 983 | ac_test_CFLAGS="${CFLAGS+set}" |
| 984 | ac_save_CFLAGS="$CFLAGS" |
| 985 | CFLAGS= |
| 986 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 |
| 987 | echo "configure:988: checking whether ${CC-cc} accepts -g" >&5 |
| 988 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
| 989 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 990 | else |
| 991 | echo 'void f(){}' > conftest.c |
| 992 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 993 | ac_cv_prog_cc_g=yes |
| 994 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 995 | ac_cv_prog_cc_g=no |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 996 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 997 | rm -f conftest* |
| 998 | |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 999 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1000 | |
| 1001 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 1002 | if test "$ac_test_CFLAGS" = set; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1003 | CFLAGS="$ac_save_CFLAGS" |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 1004 | elif test $ac_cv_prog_cc_g = yes; then |
| 1005 | if test "$GCC" = yes; then |
| 1006 | CFLAGS="-g -O2" |
| 1007 | else |
| 1008 | CFLAGS="-g" |
| 1009 | fi |
| 1010 | else |
| 1011 | if test "$GCC" = yes; then |
| 1012 | CFLAGS="-O2" |
| 1013 | else |
| 1014 | CFLAGS= |
| 1015 | fi |
| 1016 | fi |
| 1017 | |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 1018 | # Check whether --with-linker or --without-linker was given. |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1019 | if test "${with_linker+set}" = set; then |
| 1020 | withval="$with_linker" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1021 | echo "$ac_t""LD=$withval" 1>&6 |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 1022 | LD=$withval |
| 1023 | else |
| 1024 | if test -z "$LD" ; then LD=$CC; fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1025 | echo "$ac_t""LD defaults to $LD" 1>&6 |
| 1026 | fi |
| 1027 | export LD |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 1028 | |
| 1029 | # Check whether --with-ccopts or --without-ccopts was given. |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1030 | if test "${with_ccopts+set}" = set; then |
| 1031 | withval="$with_ccopts" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1032 | echo "$ac_t""CCOPTS is $withval" 1>&6 |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 1033 | CFLAGS=$withval |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1034 | fi |
| 1035 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 |
| 1036 | echo "configure:1037: checking how to run the C preprocessor" >&5 |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 1037 | # On Suns, sometimes $CPP names a directory. |
| 1038 | if test -n "$CPP" && test -d "$CPP"; then |
| 1039 | CPP= |
| 1040 | fi |
| 1041 | if test -z "$CPP"; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1042 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then |
| 1043 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 1044 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1045 | # This must be in double quotes, not single quotes, because CPP may get |
| 1046 | # substituted into the Makefile and "${CC-cc}" will confuse make. |
| 1047 | CPP="${CC-cc} -E" |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 1048 | # On the NeXT, cc -E runs the code through the compiler's parser, |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1049 | # not just through cpp. |
| 1050 | cat > conftest.$ac_ext <<EOF |
| 1051 | #line 1052 "configure" |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 1052 | #include "confdefs.h" |
| 1053 | #include <assert.h> |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1054 | Syntax Error |
| 1055 | EOF |
| 1056 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 1057 | { (eval echo configure:1058: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 1058 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 1059 | if test -z "$ac_err"; then |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 1060 | : |
| 1061 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1062 | echo "$ac_err" >&5 |
| 1063 | echo "configure: failed program was:" >&5 |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 1064 | cat conftest.$ac_ext >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1065 | rm -rf conftest* |
| 1066 | CPP="${CC-cc} -E -traditional-cpp" |
| 1067 | cat > conftest.$ac_ext <<EOF |
| 1068 | #line 1069 "configure" |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 1069 | #include "confdefs.h" |
| 1070 | #include <assert.h> |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1071 | Syntax Error |
| 1072 | EOF |
| 1073 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 1074 | { (eval echo configure:1075: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 1075 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 1076 | if test -z "$ac_err"; then |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 1077 | : |
| 1078 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1079 | echo "$ac_err" >&5 |
| 1080 | echo "configure: failed program was:" >&5 |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 1081 | cat conftest.$ac_ext >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1082 | rm -rf conftest* |
| 1083 | CPP="${CC-cc} -nologo -E" |
| 1084 | cat > conftest.$ac_ext <<EOF |
| 1085 | #line 1086 "configure" |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 1086 | #include "confdefs.h" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1087 | #include <assert.h> |
| 1088 | Syntax Error |
| 1089 | EOF |
| 1090 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 1091 | { (eval echo configure:1092: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 1092 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 1093 | if test -z "$ac_err"; then |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 1094 | : |
| 1095 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1096 | echo "$ac_err" >&5 |
| 1097 | echo "configure: failed program was:" >&5 |
| 1098 | cat conftest.$ac_ext >&5 |
| 1099 | rm -rf conftest* |
| 1100 | CPP=/lib/cpp |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 1101 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1102 | rm -f conftest* |
| 1103 | fi |
| 1104 | rm -f conftest* |
| 1105 | fi |
| 1106 | rm -f conftest* |
| 1107 | ac_cv_prog_CPP="$CPP" |
| 1108 | fi |
| 1109 | CPP="$ac_cv_prog_CPP" |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 1110 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1111 | ac_cv_prog_CPP="$CPP" |
| 1112 | fi |
| 1113 | echo "$ac_t""$CPP" 1>&6 |
| 1114 | |
| 1115 | ac_safe=`echo "linux/fs.h" | sed 'y%./+-%__p_%'` |
| 1116 | echo $ac_n "checking for linux/fs.h""... $ac_c" 1>&6 |
| 1117 | echo "configure:1118: checking for linux/fs.h" >&5 |
| 1118 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
| 1119 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1120 | else |
| 1121 | cat > conftest.$ac_ext <<EOF |
| 1122 | #line 1123 "configure" |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 1123 | #include "confdefs.h" |
| 1124 | #include <linux/fs.h> |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1125 | EOF |
| 1126 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 1127 | { (eval echo configure:1128: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 1128 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 1129 | if test -z "$ac_err"; then |
| 1130 | rm -rf conftest* |
| 1131 | eval "ac_cv_header_$ac_safe=yes" |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 1132 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1133 | echo "$ac_err" >&5 |
| 1134 | echo "configure: failed program was:" >&5 |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 1135 | cat conftest.$ac_ext >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1136 | rm -rf conftest* |
| 1137 | eval "ac_cv_header_$ac_safe=no" |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 1138 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1139 | rm -f conftest* |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 1140 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1141 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 1142 | echo "$ac_t""yes" 1>&6 |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 1143 | linux_headers=yes |
| 1144 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1145 | echo "$ac_t""no" 1>&6 |
| 1146 | linux_headers=no |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 1147 | fi |
| 1148 | |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 1149 | if test "$linux_headers" != yes; then |
| 1150 | LINUX_INCLUDE='-I$(top_builddir)/include' |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 1151 | fi |
| 1152 | |
Theodore Ts'o | a4d0961 | 1997-04-29 14:28:00 +0000 | [diff] [blame] | 1153 | LIB_EXT=.a |
| 1154 | STATIC_LIB_EXT=.a |
| 1155 | PROFILE_LIB_EXT=.a |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 1156 | # Check whether --with-ldopts or --without-ldopts was given. |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1157 | if test "${with_ldopts+set}" = set; then |
| 1158 | withval="$with_ldopts" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1159 | echo "$ac_t""LDFLAGS is $withval" 1>&6 |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 1160 | LDFLAGS=$withval |
| 1161 | else |
| 1162 | LDFLAGS= |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1163 | fi |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 1164 | |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 1165 | # Check whether --with-root-prefix or --without-root-prefix was given. |
| 1166 | if test "${with_root_prefix+set}" = set; then |
| 1167 | withval="$with_root_prefix" |
| 1168 | root_prefix=$withval |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 1169 | else |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 1170 | root_prefix=NONE |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1171 | fi |
| 1172 | # Check whether --enable-compression or --disable-compression was given. |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 1173 | if test "${enable_compression+set}" = set; then |
| 1174 | enableval="$enable_compression" |
| 1175 | if test "$enableval" = "no" |
| 1176 | then |
| 1177 | echo "Disabling compression support" |
| 1178 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1179 | cat >> confdefs.h <<\EOF |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 1180 | #define ENABLE_COMPRESSION 1 |
| 1181 | EOF |
| 1182 | |
| 1183 | echo "Enabling compression support" |
| 1184 | echo "WARNING: Compression support is experimental" |
| 1185 | fi |
| 1186 | |
| 1187 | else |
| 1188 | echo "Disabling compression support by default" |
| 1189 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1190 | fi |
| 1191 | |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 1192 | # Check whether --enable-htree or --disable-htree was given. |
| 1193 | if test "${enable_htree+set}" = set; then |
| 1194 | enableval="$enable_htree" |
| 1195 | if test "$enableval" = "no" |
| 1196 | then |
| 1197 | HTREE_CMT=# |
| 1198 | echo "Disabling htree directory support" |
| 1199 | else |
| 1200 | HTREE_CMT= |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1201 | cat >> confdefs.h <<\EOF |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 1202 | #define ENABLE_HTREE 1 |
| 1203 | EOF |
| 1204 | |
| 1205 | echo "Enabling htree directory support" |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 1206 | fi |
| 1207 | |
| 1208 | else |
Theodore Ts'o | 559ca6c | 2002-08-18 03:48:55 -0400 | [diff] [blame] | 1209 | HTREE_CMT= |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1210 | cat >> confdefs.h <<\EOF |
Theodore Ts'o | 559ca6c | 2002-08-18 03:48:55 -0400 | [diff] [blame] | 1211 | #define ENABLE_HTREE 1 |
| 1212 | EOF |
| 1213 | |
| 1214 | echo "Enabling htree directory support by default" |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 1215 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1216 | fi |
| 1217 | |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 1218 | |
| 1219 | # Check whether --enable-htree-clear or --disable-htree-clear was given. |
| 1220 | if test "${enable_htree_clear+set}" = set; then |
| 1221 | enableval="$enable_htree_clear" |
| 1222 | if test "$enableval" = "no" |
| 1223 | then |
| 1224 | HTREE_CLR_CMT=# |
| 1225 | echo "Disabling htree clearing" |
| 1226 | else |
| 1227 | HTREE_CLR_CMT= |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1228 | cat >> confdefs.h <<\EOF |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 1229 | #define ENABLE_HTREE_CLEAR 1 |
| 1230 | EOF |
| 1231 | |
| 1232 | echo "Enabling htree clearing" |
| 1233 | fi |
| 1234 | |
| 1235 | else |
| 1236 | HTREE_CLR_CMT=# |
| 1237 | echo "Disabling htree clearing by default" |
| 1238 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1239 | fi |
| 1240 | |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 1241 | |
Theodore Ts'o | d21ae6c | 2003-05-05 09:00:24 -0400 | [diff] [blame] | 1242 | # Check whether --enable-evms or --disable-evms was given. |
| 1243 | if test "${enable_evms+set}" = set; then |
| 1244 | enableval="$enable_evms" |
Theodore Ts'o | 5c70a50 | 2003-05-20 10:29:29 -0400 | [diff] [blame] | 1245 | if test "$enableval" == "no" |
Theodore Ts'o | d21ae6c | 2003-05-05 09:00:24 -0400 | [diff] [blame] | 1246 | then |
| 1247 | EVMS_CMT="#" |
| 1248 | echo "Disabling EVMS plugin" |
| 1249 | fi |
| 1250 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1251 | fi |
| 1252 | |
Theodore Ts'o | a9d799a | 2002-11-08 13:50:51 -0500 | [diff] [blame] | 1253 | EVMS_ABI_CODE=120 |
| 1254 | # Check whether --enable-evms-10 or --disable-evms-10 was given. |
| 1255 | if test "${enable_evms_10+set}" = set; then |
| 1256 | enableval="$enable_evms_10" |
| 1257 | if test "$enableval" != "no" |
Theodore Ts'o | ff6dbcc | 2002-05-24 22:44:42 -0400 | [diff] [blame] | 1258 | then |
Theodore Ts'o | a9d799a | 2002-11-08 13:50:51 -0500 | [diff] [blame] | 1259 | EVMS_ABI_CODE=100 |
Theodore Ts'o | ff6dbcc | 2002-05-24 22:44:42 -0400 | [diff] [blame] | 1260 | echo "Enabling EVMS 1.0.0 ABI" |
| 1261 | fi |
| 1262 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1263 | fi |
| 1264 | |
Theodore Ts'o | a9d799a | 2002-11-08 13:50:51 -0500 | [diff] [blame] | 1265 | # Check whether --enable-evms-11 or --disable-evms-11 was given. |
| 1266 | if test "${enable_evms_11+set}" = set; then |
| 1267 | enableval="$enable_evms_11" |
| 1268 | if test "$enableval" != "no" |
| 1269 | then |
| 1270 | EVMS_ABI_CODE=110 |
| 1271 | echo "Enabling EVMS 1.1.0 ABI" |
| 1272 | fi |
| 1273 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1274 | fi |
| 1275 | |
Theodore Ts'o | a9d799a | 2002-11-08 13:50:51 -0500 | [diff] [blame] | 1276 | if test "$EVMS_ABI_CODE" = "120" |
| 1277 | then |
| 1278 | echo "Using EVMS 1.2.0 ABI by default" |
Theodore Ts'o | ff6dbcc | 2002-05-24 22:44:42 -0400 | [diff] [blame] | 1279 | fi |
| 1280 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1281 | # Check whether --enable-dll-shlibs or --disable-dll-shlibs was given. |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1282 | if test "${enable_dll_shlibs+set}" = set; then |
| 1283 | enableval="$enable_dll_shlibs" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1284 | if test "$enableval" = "no" |
| 1285 | then |
| 1286 | DLL_CMT=# |
| 1287 | MAKEFILE_DLL=/dev/null |
| 1288 | echo "Disabling DLL shared libraries" |
| 1289 | else |
| 1290 | DLL_CMT= |
| 1291 | MAKEFILE_DLL=$srcdir/lib/Makefile.dll-lib |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 1292 | BINARY_TYPE=dllbin |
Theodore Ts'o | a4d0961 | 1997-04-29 14:28:00 +0000 | [diff] [blame] | 1293 | LIB_EXT=.sa |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1294 | echo "Enabling DLL shared libraries" |
| 1295 | fi |
| 1296 | |
| 1297 | else |
| 1298 | MAKEFILE_DLL=/dev/null |
| 1299 | DLL_CMT=# |
| 1300 | echo "Disabling DLL shared libraries by default" |
| 1301 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1302 | fi |
| 1303 | |
| 1304 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1305 | |
| 1306 | # Check whether --enable-elf-shlibs or --disable-elf-shlibs was given. |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1307 | if test "${enable_elf_shlibs+set}" = set; then |
| 1308 | enableval="$enable_elf_shlibs" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1309 | if test "$enableval" = "no" |
| 1310 | then |
| 1311 | ELF_CMT=# |
| 1312 | MAKEFILE_ELF=/dev/null |
| 1313 | echo "Disabling ELF shared libraries" |
| 1314 | else |
| 1315 | ELF_CMT= |
| 1316 | MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib |
Theodore Ts'o | f5955dd | 2000-10-25 02:38:39 +0000 | [diff] [blame] | 1317 | case "$host_os" in |
| 1318 | solaris2.*) |
| 1319 | MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib |
| 1320 | ;; |
| 1321 | esac |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 1322 | BINARY_TYPE=elfbin |
Theodore Ts'o | a4d0961 | 1997-04-29 14:28:00 +0000 | [diff] [blame] | 1323 | LIB_EXT=.so |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1324 | echo "Enabling ELF shared libraries" |
| 1325 | fi |
| 1326 | |
| 1327 | else |
| 1328 | MAKEFILE_ELF=/dev/null |
| 1329 | ELF_CMT=# |
| 1330 | echo "Disabling ELF shared libraries by default" |
| 1331 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1332 | fi |
| 1333 | |
| 1334 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1335 | |
| 1336 | # Check whether --enable-bsd-shlibs or --disable-bsd-shlibs was given. |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1337 | if test "${enable_bsd_shlibs+set}" = set; then |
| 1338 | enableval="$enable_bsd_shlibs" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1339 | if test "$enableval" = "no" |
| 1340 | then |
| 1341 | BSDLIB_CMT=# |
| 1342 | MAKEFILE_BSDLIB=/dev/null |
| 1343 | echo "Disabling BSD shared libraries" |
| 1344 | else |
| 1345 | BSDLIB_CMT= |
| 1346 | MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib |
Theodore Ts'o | a4d0961 | 1997-04-29 14:28:00 +0000 | [diff] [blame] | 1347 | LIB_EXT=.so |
Theodore Ts'o | e1f0722 | 2003-03-14 02:25:36 -0500 | [diff] [blame] | 1348 | case "$host_os" in |
Theodore Ts'o | aa75ecc | 2003-03-17 10:01:22 -0500 | [diff] [blame] | 1349 | darwin*) |
Theodore Ts'o | e1f0722 | 2003-03-14 02:25:36 -0500 | [diff] [blame] | 1350 | MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib |
| 1351 | LIB_EXT=.dylib |
| 1352 | ;; |
| 1353 | esac |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1354 | echo "Enabling BSD shared libraries" |
| 1355 | fi |
| 1356 | |
| 1357 | else |
| 1358 | MAKEFILE_BSDLIB=/dev/null |
| 1359 | BSDLIB_CMT=# |
| 1360 | echo "Disabling BSD shared libraries by default" |
| 1361 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1362 | fi |
| 1363 | |
| 1364 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1365 | |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 1366 | # Check whether --enable-profile or --disable-profile was given. |
| 1367 | if test "${enable_profile+set}" = set; then |
| 1368 | enableval="$enable_profile" |
| 1369 | if test "$enableval" = "no" |
| 1370 | then |
| 1371 | PROFILE_CMT=# |
| 1372 | MAKEFILE_PROFILE=/dev/null |
| 1373 | echo "Disabling profiling libraries" |
| 1374 | else |
| 1375 | PROFILE_CMT= |
| 1376 | MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile |
| 1377 | PROFILED_LIB_EXT=_p.a |
| 1378 | echo "Building profiling libraries" |
| 1379 | fi |
| 1380 | |
| 1381 | else |
| 1382 | PROFILE_CMT=# |
| 1383 | MAKEFILE_PROFILE=/dev/null |
| 1384 | echo "Disabling profiling libraries by default" |
| 1385 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1386 | fi |
| 1387 | |
| 1388 | |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 1389 | |
| 1390 | # Check whether --enable-checker or --disable-checker was given. |
| 1391 | if test "${enable_checker+set}" = set; then |
| 1392 | enableval="$enable_checker" |
| 1393 | if test "$enableval" = "no" |
| 1394 | then |
| 1395 | CHECKER_CMT=# |
| 1396 | MAKEFILE_CHECKER=/dev/null |
| 1397 | echo "Disabling checker libraries" |
| 1398 | else |
| 1399 | CHECKER_CMT= |
| 1400 | MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker |
| 1401 | echo "Building checker libraries" |
| 1402 | fi |
| 1403 | |
| 1404 | else |
| 1405 | CHECKER_CMT=# |
| 1406 | MAKEFILE_CHECKER=/dev/null |
| 1407 | echo "Disabling checker libraries by default" |
| 1408 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1409 | fi |
| 1410 | |
| 1411 | |
| 1412 | |
| 1413 | |
| 1414 | |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 1415 | |
Theodore Ts'o | 782bebf | 2002-11-08 18:46:45 -0500 | [diff] [blame] | 1416 | # Check whether --enable-jbd-debug or --disable-jbd-debug was given. |
| 1417 | if test "${enable_jbd_debug+set}" = set; then |
| 1418 | enableval="$enable_jbd_debug" |
Theodore Ts'o | 80bfaa3 | 2000-08-18 15:08:37 +0000 | [diff] [blame] | 1419 | if test "$enableval" = "no" |
| 1420 | then |
| 1421 | echo "Disabling journal debugging" |
| 1422 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1423 | cat >> confdefs.h <<\EOF |
Theodore Ts'o | 8cf9333 | 2001-12-16 02:23:36 -0500 | [diff] [blame] | 1424 | #define CONFIG_JBD_DEBUG 1 |
Theodore Ts'o | 80bfaa3 | 2000-08-18 15:08:37 +0000 | [diff] [blame] | 1425 | EOF |
| 1426 | |
| 1427 | echo "Enabling journal debugging" |
| 1428 | fi |
| 1429 | |
| 1430 | else |
| 1431 | echo "Disabling journal debugging by default" |
| 1432 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1433 | fi |
| 1434 | |
Theodore Ts'o | f0a22d0 | 2003-02-22 13:19:53 -0500 | [diff] [blame] | 1435 | # Check whether --enable-blkid-debug or --disable-blkid-debug was given. |
| 1436 | if test "${enable_blkid_debug+set}" = set; then |
| 1437 | enableval="$enable_blkid_debug" |
| 1438 | if test "$enableval" = "no" |
| 1439 | then |
| 1440 | echo "Disabling blkid debugging" |
| 1441 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1442 | cat >> confdefs.h <<\EOF |
Theodore Ts'o | f0a22d0 | 2003-02-22 13:19:53 -0500 | [diff] [blame] | 1443 | #define CONFIG_BLKID_DEBUG 1 |
| 1444 | EOF |
| 1445 | |
| 1446 | echo "Enabling blkid debugging" |
| 1447 | fi |
| 1448 | |
| 1449 | else |
| 1450 | echo "Disabling blkid debugging by default" |
| 1451 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1452 | fi |
| 1453 | |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 1454 | # Check whether --enable-testio-debug or --disable-testio-debug was given. |
| 1455 | if test "${enable_testio_debug+set}" = set; then |
| 1456 | enableval="$enable_testio_debug" |
| 1457 | if test "$enableval" = "no" |
| 1458 | then |
| 1459 | echo "Disabling testio debugging" |
| 1460 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1461 | cat >> confdefs.h <<\EOF |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 1462 | #define CONFIG_TESTIO_DEBUG 1 |
| 1463 | EOF |
| 1464 | |
| 1465 | echo "Enabling testio debugging" |
| 1466 | fi |
| 1467 | |
| 1468 | else |
| 1469 | echo "Disabling testio debugging by default" |
| 1470 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1471 | fi |
| 1472 | |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 1473 | # Check whether --enable-swapfs or --disable-swapfs was given. |
| 1474 | if test "${enable_swapfs+set}" = set; then |
| 1475 | enableval="$enable_swapfs" |
| 1476 | if test "$enableval" = "no" |
| 1477 | then |
Theodore Ts'o | feb44c6 | 2002-11-08 14:55:38 -0500 | [diff] [blame] | 1478 | SWAPFS_CMT=# |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 1479 | echo "Disabling swapfs support" |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 1480 | else |
Theodore Ts'o | feb44c6 | 2002-11-08 14:55:38 -0500 | [diff] [blame] | 1481 | SWAPFS_CMT= |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1482 | cat >> confdefs.h <<\EOF |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 1483 | #define ENABLE_SWAPFS 1 |
| 1484 | EOF |
| 1485 | |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 1486 | echo "Enabling swapfs support" |
| 1487 | fi |
| 1488 | |
| 1489 | else |
Theodore Ts'o | feb44c6 | 2002-11-08 14:55:38 -0500 | [diff] [blame] | 1490 | SWAPFS_CMT= |
| 1491 | echo "Enabling swapfs support by default" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1492 | cat >> confdefs.h <<\EOF |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 1493 | #define ENABLE_SWAPFS 1 |
| 1494 | EOF |
| 1495 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1496 | |
| 1497 | fi |
| 1498 | |
Theodore Ts'o | feb44c6 | 2002-11-08 14:55:38 -0500 | [diff] [blame] | 1499 | |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 1500 | # Check whether --enable-debugfs or --disable-debugfs was given. |
| 1501 | if test "${enable_debugfs+set}" = set; then |
| 1502 | enableval="$enable_debugfs" |
| 1503 | if test "$enableval" = "no" |
| 1504 | then |
| 1505 | echo "Disabling debugfs support" |
| 1506 | DEBUGFS_CMT="#" |
| 1507 | else |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 1508 | DEBUGFS_CMT= |
| 1509 | echo "Enabling debugfs support" |
| 1510 | fi |
| 1511 | |
| 1512 | else |
| 1513 | echo "Enabling debugfs support by default" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 1514 | DEBUGFS_CMT= |
| 1515 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1516 | fi |
| 1517 | |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 1518 | |
| 1519 | # Check whether --enable-imager or --disable-imager was given. |
| 1520 | if test "${enable_imager+set}" = set; then |
| 1521 | enableval="$enable_imager" |
| 1522 | if test "$enableval" = "no" |
| 1523 | then |
| 1524 | echo "Disabling e2image support" |
| 1525 | IMAGER_CMT="#" |
| 1526 | else |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 1527 | IMAGER_CMT= |
| 1528 | echo "Enabling e2image support" |
| 1529 | fi |
| 1530 | |
| 1531 | else |
| 1532 | echo "Enabling e2image support by default" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 1533 | IMAGER_CMT= |
| 1534 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1535 | fi |
| 1536 | |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 1537 | |
| 1538 | # Check whether --enable-resizer or --disable-resizer was given. |
| 1539 | if test "${enable_resizer+set}" = set; then |
| 1540 | enableval="$enable_resizer" |
| 1541 | if test "$enableval" = "no" |
| 1542 | then |
| 1543 | echo "Disabling e2resize support" |
| 1544 | RESIZER_CMT="#" |
| 1545 | else |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 1546 | RESIZER_CMT= |
| 1547 | echo "Enabling e2resize support" |
| 1548 | fi |
| 1549 | |
| 1550 | else |
| 1551 | echo "Enabling e2resize support by default" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 1552 | RESIZER_CMT= |
| 1553 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1554 | fi |
| 1555 | |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 1556 | |
| 1557 | # Check whether --enable-dynamic-e2fsck or --disable-dynamic-e2fsck was given. |
| 1558 | if test "${enable_dynamic_e2fsck+set}" = set; then |
| 1559 | enableval="$enable_dynamic_e2fsck" |
| 1560 | if test "$enableval" = "no" |
| 1561 | then |
| 1562 | E2FSCK_TYPE=static |
| 1563 | echo "Building e2fsck statically" |
| 1564 | else |
| 1565 | E2FSCK_TYPE=shared |
| 1566 | echo "Building e2fsck dynamically" |
| 1567 | fi |
| 1568 | |
| 1569 | else |
| 1570 | E2FSCK_TYPE=static |
| 1571 | echo "Building e2fsck statically by default" |
| 1572 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1573 | fi |
| 1574 | |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 1575 | |
| 1576 | # Check whether --enable-fsck or --disable-fsck was given. |
| 1577 | if test "${enable_fsck+set}" = set; then |
| 1578 | enableval="$enable_fsck" |
| 1579 | if test "$enableval" = "no" |
| 1580 | then |
| 1581 | FSCK_PROG='' FSCK_MAN='' |
| 1582 | echo "Not building fsck wrapper" |
| 1583 | else |
| 1584 | FSCK_PROG=fsck FSCK_MAN=fsck.8 |
| 1585 | echo "Building fsck wrapper" |
| 1586 | fi |
| 1587 | |
| 1588 | else |
| 1589 | case "$host_os" in |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1590 | gnu* | k*bsd*-gnu) |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 1591 | FSCK_PROG='' FSCK_MAN='' |
| 1592 | echo "Not building fsck wrapper by default" |
| 1593 | ;; |
| 1594 | *) |
| 1595 | FSCK_PROG=fsck FSCK_MAN=fsck.8 |
| 1596 | echo "Building fsck wrapper by default" |
| 1597 | esac |
| 1598 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1599 | fi |
| 1600 | |
| 1601 | |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 1602 | |
| 1603 | MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library |
| 1604 | |
| 1605 | # Check whether --enable-old-bitops or --disable-old-bitops was given. |
| 1606 | if test "${enable_old_bitops+set}" = set; then |
| 1607 | enableval="$enable_old_bitops" |
| 1608 | if test "$enableval" = "no" |
| 1609 | then |
| 1610 | echo "Using new (standard) bitmask operations" |
| 1611 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1612 | cat >> confdefs.h <<\EOF |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 1613 | #define EXT2_OLD_BITOPS 1 |
| 1614 | EOF |
| 1615 | |
| 1616 | echo "Using old (native) bitmask operations" |
| 1617 | |
| 1618 | fi |
| 1619 | |
| 1620 | else |
| 1621 | echo "Using standard bitmask operations by default" |
| 1622 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1623 | fi |
| 1624 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 1625 | PACKAGE=e2fsprogs |
| 1626 | VERSION="$E2FSPROGS_VERSION" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1627 | cat >> confdefs.h <<EOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 1628 | #define PACKAGE "$PACKAGE" |
| 1629 | EOF |
| 1630 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1631 | cat >> confdefs.h <<EOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 1632 | #define VERSION "$VERSION" |
| 1633 | EOF |
| 1634 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1635 | |
| 1636 | |
| 1637 | |
| 1638 | |
| 1639 | echo $ac_n "checking for inttypes.h""... $ac_c" 1>&6 |
| 1640 | echo "configure:1641: checking for inttypes.h" >&5 |
| 1641 | if eval "test \"`echo '$''{'jm_ac_cv_header_inttypes_h'+set}'`\" = set"; then |
| 1642 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 1643 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1644 | cat > conftest.$ac_ext <<EOF |
| 1645 | #line 1646 "configure" |
| 1646 | #include "confdefs.h" |
| 1647 | #include <sys/types.h> |
| 1648 | #include <inttypes.h> |
| 1649 | int main() { |
| 1650 | uintmax_t i = (uintmax_t) -1; |
| 1651 | ; return 0; } |
| 1652 | EOF |
| 1653 | if { (eval echo configure:1654: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| 1654 | rm -rf conftest* |
| 1655 | jm_ac_cv_header_inttypes_h=yes |
| 1656 | else |
| 1657 | echo "configure: failed program was:" >&5 |
| 1658 | cat conftest.$ac_ext >&5 |
| 1659 | rm -rf conftest* |
| 1660 | jm_ac_cv_header_inttypes_h=no |
| 1661 | fi |
| 1662 | rm -f conftest* |
| 1663 | fi |
| 1664 | |
| 1665 | echo "$ac_t""$jm_ac_cv_header_inttypes_h" 1>&6 |
| 1666 | if test $jm_ac_cv_header_inttypes_h = yes; then |
| 1667 | cat >> confdefs.h <<EOF |
| 1668 | #define HAVE_INTTYPES_H_WITH_UINTMAX 1 |
| 1669 | EOF |
| 1670 | |
| 1671 | fi |
| 1672 | |
| 1673 | |
| 1674 | echo $ac_n "checking for stdint.h""... $ac_c" 1>&6 |
| 1675 | echo "configure:1676: checking for stdint.h" >&5 |
| 1676 | if eval "test \"`echo '$''{'jm_ac_cv_header_stdint_h'+set}'`\" = set"; then |
| 1677 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1678 | else |
| 1679 | cat > conftest.$ac_ext <<EOF |
| 1680 | #line 1681 "configure" |
| 1681 | #include "confdefs.h" |
| 1682 | #include <sys/types.h> |
| 1683 | #include <stdint.h> |
| 1684 | int main() { |
| 1685 | uintmax_t i = (uintmax_t) -1; |
| 1686 | ; return 0; } |
| 1687 | EOF |
| 1688 | if { (eval echo configure:1689: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| 1689 | rm -rf conftest* |
| 1690 | jm_ac_cv_header_stdint_h=yes |
| 1691 | else |
| 1692 | echo "configure: failed program was:" >&5 |
| 1693 | cat conftest.$ac_ext >&5 |
| 1694 | rm -rf conftest* |
| 1695 | jm_ac_cv_header_stdint_h=no |
| 1696 | fi |
| 1697 | rm -f conftest* |
| 1698 | fi |
| 1699 | |
| 1700 | echo "$ac_t""$jm_ac_cv_header_stdint_h" 1>&6 |
| 1701 | if test $jm_ac_cv_header_stdint_h = yes; then |
| 1702 | cat >> confdefs.h <<EOF |
| 1703 | #define HAVE_STDINT_H_WITH_UINTMAX 1 |
| 1704 | EOF |
| 1705 | |
| 1706 | fi |
| 1707 | |
| 1708 | |
| 1709 | echo $ac_n "checking for unsigned long long""... $ac_c" 1>&6 |
| 1710 | echo "configure:1711: checking for unsigned long long" >&5 |
| 1711 | if eval "test \"`echo '$''{'ac_cv_type_unsigned_long_long'+set}'`\" = set"; then |
| 1712 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1713 | else |
| 1714 | cat > conftest.$ac_ext <<EOF |
| 1715 | #line 1716 "configure" |
| 1716 | #include "confdefs.h" |
| 1717 | unsigned long long ull = 1; int i = 63; |
| 1718 | int main() { |
| 1719 | unsigned long long ullmax = (unsigned long long) -1; |
| 1720 | return ull << i | ull >> i | ullmax / ull | ullmax % ull; |
| 1721 | ; return 0; } |
| 1722 | EOF |
| 1723 | if { (eval echo configure:1724: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 1724 | rm -rf conftest* |
| 1725 | ac_cv_type_unsigned_long_long=yes |
| 1726 | else |
| 1727 | echo "configure: failed program was:" >&5 |
| 1728 | cat conftest.$ac_ext >&5 |
| 1729 | rm -rf conftest* |
| 1730 | ac_cv_type_unsigned_long_long=no |
| 1731 | fi |
| 1732 | rm -f conftest* |
| 1733 | fi |
| 1734 | |
| 1735 | echo "$ac_t""$ac_cv_type_unsigned_long_long" 1>&6 |
| 1736 | if test $ac_cv_type_unsigned_long_long = yes; then |
| 1737 | cat >> confdefs.h <<\EOF |
| 1738 | #define HAVE_UNSIGNED_LONG_LONG 1 |
| 1739 | EOF |
| 1740 | |
| 1741 | fi |
| 1742 | |
| 1743 | |
| 1744 | if test "X$prefix" = "XNONE"; then |
| 1745 | acl_final_prefix="$ac_default_prefix" |
| 1746 | else |
| 1747 | acl_final_prefix="$prefix" |
| 1748 | fi |
| 1749 | if test "X$exec_prefix" = "XNONE"; then |
| 1750 | acl_final_exec_prefix='${prefix}' |
| 1751 | else |
| 1752 | acl_final_exec_prefix="$exec_prefix" |
| 1753 | fi |
| 1754 | acl_save_prefix="$prefix" |
| 1755 | prefix="$acl_final_prefix" |
| 1756 | eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" |
| 1757 | prefix="$acl_save_prefix" |
| 1758 | |
| 1759 | |
| 1760 | echo $ac_n "checking for shared library run path origin""... $ac_c" 1>&6 |
| 1761 | echo "configure:1762: checking for shared library run path origin" >&5 |
| 1762 | if eval "test \"`echo '$''{'acl_cv_rpath'+set}'`\" = set"; then |
| 1763 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1764 | else |
| 1765 | |
| 1766 | CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ |
| 1767 | ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh |
| 1768 | . ./conftest.sh |
| 1769 | rm -f ./conftest.sh |
| 1770 | acl_cv_rpath=done |
| 1771 | |
| 1772 | fi |
| 1773 | |
| 1774 | echo "$ac_t""$acl_cv_rpath" 1>&6 |
| 1775 | wl="$acl_cv_wl" |
| 1776 | libext="$acl_cv_libext" |
| 1777 | shlibext="$acl_cv_shlibext" |
| 1778 | hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" |
| 1779 | hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" |
| 1780 | hardcode_direct="$acl_cv_hardcode_direct" |
| 1781 | hardcode_minus_L="$acl_cv_hardcode_minus_L" |
| 1782 | sys_lib_search_path_spec="$acl_cv_sys_lib_search_path_spec" |
| 1783 | sys_lib_dlsearch_path_spec="$acl_cv_sys_lib_dlsearch_path_spec" |
| 1784 | # Check whether --enable-rpath or --disable-rpath was given. |
| 1785 | if test "${enable_rpath+set}" = set; then |
| 1786 | enableval="$enable_rpath" |
| 1787 | : |
| 1788 | else |
| 1789 | enable_rpath=yes |
| 1790 | fi |
| 1791 | |
| 1792 | |
| 1793 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 |
| 1794 | echo "configure:1795: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
| 1795 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` |
| 1796 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then |
| 1797 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 1798 | else |
| 1799 | cat > conftestmake <<\EOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 1800 | all: |
| 1801 | @echo 'ac_maketemp="${MAKE}"' |
| 1802 | EOF |
| 1803 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1804 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 1805 | if test -n "$ac_maketemp"; then |
| 1806 | eval ac_cv_prog_make_${ac_make}_set=yes |
| 1807 | else |
| 1808 | eval ac_cv_prog_make_${ac_make}_set=no |
| 1809 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1810 | rm -f conftestmake |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 1811 | fi |
| 1812 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1813 | echo "$ac_t""yes" 1>&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 1814 | SET_MAKE= |
| 1815 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1816 | echo "$ac_t""no" 1>&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 1817 | SET_MAKE="MAKE=${MAKE-make}" |
| 1818 | fi |
| 1819 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 1820 | # Find a good install program. We prefer a C program (faster), |
| 1821 | # so one script is as good as another. But avoid the broken or |
| 1822 | # incompatible versions: |
| 1823 | # SysV /etc/install, /usr/sbin/install |
| 1824 | # SunOS /usr/etc/install |
| 1825 | # IRIX /sbin/install |
| 1826 | # AIX /bin/install |
| 1827 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 1828 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 1829 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 1830 | # ./install, which can be erroneously created by make from ./install.sh. |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1831 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 |
| 1832 | echo "configure:1833: checking for a BSD compatible install" >&5 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 1833 | if test -z "$INSTALL"; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1834 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then |
| 1835 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 1836 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1837 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 1838 | for ac_dir in $PATH; do |
| 1839 | # Account for people who put trailing slashes in PATH elements. |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1840 | case "$ac_dir/" in |
| 1841 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 1842 | *) |
| 1843 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 1844 | # Don't use installbsd from OSF since it installs stuff as root |
| 1845 | # by default. |
| 1846 | for ac_prog in ginstall scoinst install; do |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1847 | if test -f $ac_dir/$ac_prog; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 1848 | if test $ac_prog = install && |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1849 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 1850 | # AIX install. It has an incompatible calling convention. |
| 1851 | : |
| 1852 | else |
| 1853 | ac_cv_path_install="$ac_dir/$ac_prog -c" |
| 1854 | break 2 |
| 1855 | fi |
| 1856 | fi |
| 1857 | done |
| 1858 | ;; |
| 1859 | esac |
| 1860 | done |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1861 | IFS="$ac_save_IFS" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 1862 | |
| 1863 | fi |
| 1864 | if test "${ac_cv_path_install+set}" = set; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1865 | INSTALL="$ac_cv_path_install" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 1866 | else |
| 1867 | # As a last resort, use the slow shell script. We don't cache a |
| 1868 | # path for INSTALL within a source directory, because that will |
| 1869 | # break other packages using the cache if that directory is |
| 1870 | # removed, or if the path is relative. |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1871 | INSTALL="$ac_install_sh" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 1872 | fi |
| 1873 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1874 | echo "$ac_t""$INSTALL" 1>&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 1875 | |
| 1876 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 1877 | # It thinks the first close brace ends the variable substitution. |
| 1878 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 1879 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1880 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 1881 | |
| 1882 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 1883 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1884 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 1885 | MKINSTALLDIRS= |
| 1886 | if test -n "$ac_aux_dir"; then |
| 1887 | MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" |
| 1888 | fi |
| 1889 | if test -z "$MKINSTALLDIRS"; then |
| 1890 | MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" |
| 1891 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1892 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 1893 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1894 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 1895 | set dummy ranlib; ac_word=$2 |
| 1896 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| 1897 | echo "configure:1898: checking for $ac_word" >&5 |
| 1898 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
| 1899 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 1900 | else |
| 1901 | if test -n "$RANLIB"; then |
| 1902 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 1903 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1904 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 1905 | ac_dummy="$PATH" |
| 1906 | for ac_dir in $ac_dummy; do |
| 1907 | test -z "$ac_dir" && ac_dir=. |
| 1908 | if test -f $ac_dir/$ac_word; then |
| 1909 | ac_cv_prog_RANLIB="ranlib" |
| 1910 | break |
| 1911 | fi |
| 1912 | done |
| 1913 | IFS="$ac_save_ifs" |
| 1914 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 1915 | fi |
| 1916 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1917 | RANLIB="$ac_cv_prog_RANLIB" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 1918 | if test -n "$RANLIB"; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1919 | echo "$ac_t""$RANLIB" 1>&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 1920 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1921 | echo "$ac_t""no" 1>&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 1922 | fi |
| 1923 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 1924 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1925 | echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6 |
| 1926 | echo "configure:1927: checking for strerror in -lcposix" >&5 |
| 1927 | ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'` |
| 1928 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 1929 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 1930 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1931 | ac_save_LIBS="$LIBS" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 1932 | LIBS="-lcposix $LIBS" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1933 | cat > conftest.$ac_ext <<EOF |
| 1934 | #line 1935 "configure" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 1935 | #include "confdefs.h" |
| 1936 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 1937 | /* We use char because int might match the return type of a gcc2 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1938 | builtin and then its argument prototype would still apply. */ |
| 1939 | char strerror(); |
| 1940 | |
| 1941 | int main() { |
| 1942 | strerror() |
| 1943 | ; return 0; } |
| 1944 | EOF |
| 1945 | if { (eval echo configure:1946: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 1946 | rm -rf conftest* |
| 1947 | eval "ac_cv_lib_$ac_lib_var=yes" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 1948 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1949 | echo "configure: failed program was:" >&5 |
| 1950 | cat conftest.$ac_ext >&5 |
| 1951 | rm -rf conftest* |
| 1952 | eval "ac_cv_lib_$ac_lib_var=no" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 1953 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1954 | rm -f conftest* |
| 1955 | LIBS="$ac_save_LIBS" |
| 1956 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 1957 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1958 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 1959 | echo "$ac_t""yes" 1>&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 1960 | LIBS="$LIBS -lcposix" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1961 | else |
| 1962 | echo "$ac_t""no" 1>&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 1963 | fi |
| 1964 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1965 | |
| 1966 | |
| 1967 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 |
| 1968 | echo "configure:1969: checking for ANSI C header files" >&5 |
| 1969 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then |
| 1970 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 1971 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1972 | cat > conftest.$ac_ext <<EOF |
| 1973 | #line 1974 "configure" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 1974 | #include "confdefs.h" |
| 1975 | #include <stdlib.h> |
| 1976 | #include <stdarg.h> |
| 1977 | #include <string.h> |
| 1978 | #include <float.h> |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1979 | EOF |
| 1980 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 1981 | { (eval echo configure:1982: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 1982 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 1983 | if test -z "$ac_err"; then |
| 1984 | rm -rf conftest* |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 1985 | ac_cv_header_stdc=yes |
| 1986 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1987 | echo "$ac_err" >&5 |
| 1988 | echo "configure: failed program was:" >&5 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 1989 | cat conftest.$ac_ext >&5 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1990 | rm -rf conftest* |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 1991 | ac_cv_header_stdc=no |
| 1992 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1993 | rm -f conftest* |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 1994 | |
| 1995 | if test $ac_cv_header_stdc = yes; then |
| 1996 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 1997 | cat > conftest.$ac_ext <<EOF |
| 1998 | #line 1999 "configure" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 1999 | #include "confdefs.h" |
| 2000 | #include <string.h> |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2001 | EOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2002 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 2003 | egrep "memchr" >/dev/null 2>&1; then |
| 2004 | : |
| 2005 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2006 | rm -rf conftest* |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2007 | ac_cv_header_stdc=no |
| 2008 | fi |
| 2009 | rm -f conftest* |
| 2010 | |
| 2011 | fi |
| 2012 | |
| 2013 | if test $ac_cv_header_stdc = yes; then |
| 2014 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2015 | cat > conftest.$ac_ext <<EOF |
| 2016 | #line 2017 "configure" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2017 | #include "confdefs.h" |
| 2018 | #include <stdlib.h> |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2019 | EOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2020 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 2021 | egrep "free" >/dev/null 2>&1; then |
| 2022 | : |
| 2023 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2024 | rm -rf conftest* |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2025 | ac_cv_header_stdc=no |
| 2026 | fi |
| 2027 | rm -f conftest* |
| 2028 | |
| 2029 | fi |
| 2030 | |
| 2031 | if test $ac_cv_header_stdc = yes; then |
| 2032 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2033 | if test "$cross_compiling" = yes; then |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2034 | : |
| 2035 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2036 | cat > conftest.$ac_ext <<EOF |
| 2037 | #line 2038 "configure" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2038 | #include "confdefs.h" |
| 2039 | #include <ctype.h> |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2040 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 2041 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2042 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2043 | int main () { int i; for (i = 0; i < 256; i++) |
| 2044 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); |
| 2045 | exit (0); } |
| 2046 | |
| 2047 | EOF |
| 2048 | if { (eval echo configure:2049: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
| 2049 | then |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2050 | : |
| 2051 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2052 | echo "configure: failed program was:" >&5 |
| 2053 | cat conftest.$ac_ext >&5 |
| 2054 | rm -fr conftest* |
| 2055 | ac_cv_header_stdc=no |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2056 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2057 | rm -fr conftest* |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2058 | fi |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2059 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2060 | fi |
| 2061 | fi |
| 2062 | |
| 2063 | echo "$ac_t""$ac_cv_header_stdc" 1>&6 |
| 2064 | if test $ac_cv_header_stdc = yes; then |
| 2065 | cat >> confdefs.h <<\EOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2066 | #define STDC_HEADERS 1 |
| 2067 | EOF |
| 2068 | |
| 2069 | fi |
| 2070 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2071 | echo $ac_n "checking for working const""... $ac_c" 1>&6 |
| 2072 | echo "configure:2073: checking for working const" >&5 |
| 2073 | if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then |
| 2074 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2075 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2076 | cat > conftest.$ac_ext <<EOF |
| 2077 | #line 2078 "configure" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2078 | #include "confdefs.h" |
| 2079 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2080 | int main() { |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2081 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2082 | /* Ultrix mips cc rejects this. */ |
| 2083 | typedef int charset[2]; const charset x; |
| 2084 | /* SunOS 4.1.1 cc rejects this. */ |
| 2085 | char const *const *ccp; |
| 2086 | char **p; |
| 2087 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 2088 | struct point {int x, y;}; |
| 2089 | static struct point const zero = {0,0}; |
| 2090 | /* AIX XL C 1.02.0.0 rejects this. |
| 2091 | It does not let you subtract one const X* pointer from another in an arm |
| 2092 | of an if-expression whose if-part is not a constant expression */ |
| 2093 | const char *g = "string"; |
| 2094 | ccp = &g + (g ? g-g : 0); |
| 2095 | /* HPUX 7.0 cc rejects these. */ |
| 2096 | ++ccp; |
| 2097 | p = (char**) ccp; |
| 2098 | ccp = (char const *const *) p; |
| 2099 | { /* SCO 3.2v4 cc rejects this. */ |
| 2100 | char *t; |
| 2101 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2102 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2103 | *t++ = 0; |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2104 | } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2105 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 2106 | int x[] = {25, 17}; |
| 2107 | const int *foo = &x[0]; |
| 2108 | ++foo; |
| 2109 | } |
| 2110 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 2111 | typedef const int *iptr; |
| 2112 | iptr p = 0; |
| 2113 | ++p; |
| 2114 | } |
| 2115 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 2116 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 2117 | struct s { int j; const int *ap[3]; }; |
| 2118 | struct s *b; b->j = 5; |
| 2119 | } |
| 2120 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 2121 | const int foo = 10; |
| 2122 | } |
| 2123 | |
| 2124 | ; return 0; } |
| 2125 | EOF |
| 2126 | if { (eval echo configure:2127: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| 2127 | rm -rf conftest* |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2128 | ac_cv_c_const=yes |
| 2129 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2130 | echo "configure: failed program was:" >&5 |
| 2131 | cat conftest.$ac_ext >&5 |
| 2132 | rm -rf conftest* |
| 2133 | ac_cv_c_const=no |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2134 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2135 | rm -f conftest* |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2136 | fi |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2137 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2138 | echo "$ac_t""$ac_cv_c_const" 1>&6 |
| 2139 | if test $ac_cv_c_const = no; then |
| 2140 | cat >> confdefs.h <<\EOF |
| 2141 | #define const |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2142 | EOF |
| 2143 | |
| 2144 | fi |
| 2145 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2146 | echo $ac_n "checking for inline""... $ac_c" 1>&6 |
| 2147 | echo "configure:2148: checking for inline" >&5 |
| 2148 | if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then |
| 2149 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2150 | else |
| 2151 | ac_cv_c_inline=no |
| 2152 | for ac_kw in inline __inline__ __inline; do |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2153 | cat > conftest.$ac_ext <<EOF |
| 2154 | #line 2155 "configure" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2155 | #include "confdefs.h" |
| 2156 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2157 | int main() { |
| 2158 | } $ac_kw foo() { |
| 2159 | ; return 0; } |
| 2160 | EOF |
| 2161 | if { (eval echo configure:2162: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| 2162 | rm -rf conftest* |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2163 | ac_cv_c_inline=$ac_kw; break |
| 2164 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2165 | echo "configure: failed program was:" >&5 |
| 2166 | cat conftest.$ac_ext >&5 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2167 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2168 | rm -f conftest* |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2169 | done |
| 2170 | |
| 2171 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2172 | |
| 2173 | echo "$ac_t""$ac_cv_c_inline" 1>&6 |
| 2174 | case "$ac_cv_c_inline" in |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2175 | inline | yes) ;; |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2176 | no) cat >> confdefs.h <<\EOF |
| 2177 | #define inline |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2178 | EOF |
| 2179 | ;; |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2180 | *) cat >> confdefs.h <<EOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2181 | #define inline $ac_cv_c_inline |
| 2182 | EOF |
| 2183 | ;; |
| 2184 | esac |
| 2185 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2186 | echo $ac_n "checking for off_t""... $ac_c" 1>&6 |
| 2187 | echo "configure:2188: checking for off_t" >&5 |
| 2188 | if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then |
| 2189 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2190 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2191 | cat > conftest.$ac_ext <<EOF |
| 2192 | #line 2193 "configure" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2193 | #include "confdefs.h" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2194 | #include <sys/types.h> |
| 2195 | #if STDC_HEADERS |
| 2196 | #include <stdlib.h> |
| 2197 | #include <stddef.h> |
| 2198 | #endif |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2199 | EOF |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2200 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 2201 | egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then |
| 2202 | rm -rf conftest* |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2203 | ac_cv_type_off_t=yes |
| 2204 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2205 | rm -rf conftest* |
| 2206 | ac_cv_type_off_t=no |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2207 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2208 | rm -f conftest* |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2209 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2210 | fi |
| 2211 | echo "$ac_t""$ac_cv_type_off_t" 1>&6 |
| 2212 | if test $ac_cv_type_off_t = no; then |
| 2213 | cat >> confdefs.h <<\EOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2214 | #define off_t long |
| 2215 | EOF |
| 2216 | |
| 2217 | fi |
| 2218 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2219 | echo $ac_n "checking for size_t""... $ac_c" 1>&6 |
| 2220 | echo "configure:2221: checking for size_t" >&5 |
| 2221 | if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then |
| 2222 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2223 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2224 | cat > conftest.$ac_ext <<EOF |
| 2225 | #line 2226 "configure" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2226 | #include "confdefs.h" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2227 | #include <sys/types.h> |
| 2228 | #if STDC_HEADERS |
| 2229 | #include <stdlib.h> |
| 2230 | #include <stddef.h> |
| 2231 | #endif |
| 2232 | EOF |
| 2233 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 2234 | egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then |
| 2235 | rm -rf conftest* |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2236 | ac_cv_type_size_t=yes |
| 2237 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2238 | rm -rf conftest* |
| 2239 | ac_cv_type_size_t=no |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2240 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2241 | rm -f conftest* |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2242 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2243 | fi |
| 2244 | echo "$ac_t""$ac_cv_type_size_t" 1>&6 |
| 2245 | if test $ac_cv_type_size_t = no; then |
| 2246 | cat >> confdefs.h <<\EOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2247 | #define size_t unsigned |
| 2248 | EOF |
| 2249 | |
| 2250 | fi |
| 2251 | |
| 2252 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
| 2253 | # for constant arguments. Useless! |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2254 | echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6 |
| 2255 | echo "configure:2256: checking for working alloca.h" >&5 |
| 2256 | if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then |
| 2257 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2258 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2259 | cat > conftest.$ac_ext <<EOF |
| 2260 | #line 2261 "configure" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2261 | #include "confdefs.h" |
| 2262 | #include <alloca.h> |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2263 | int main() { |
| 2264 | char *p = alloca(2 * sizeof(int)); |
| 2265 | ; return 0; } |
| 2266 | EOF |
| 2267 | if { (eval echo configure:2268: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 2268 | rm -rf conftest* |
| 2269 | ac_cv_header_alloca_h=yes |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2270 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2271 | echo "configure: failed program was:" >&5 |
| 2272 | cat conftest.$ac_ext >&5 |
| 2273 | rm -rf conftest* |
| 2274 | ac_cv_header_alloca_h=no |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2275 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2276 | rm -f conftest* |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2277 | fi |
| 2278 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2279 | echo "$ac_t""$ac_cv_header_alloca_h" 1>&6 |
| 2280 | if test $ac_cv_header_alloca_h = yes; then |
| 2281 | cat >> confdefs.h <<\EOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2282 | #define HAVE_ALLOCA_H 1 |
| 2283 | EOF |
| 2284 | |
| 2285 | fi |
| 2286 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2287 | echo $ac_n "checking for alloca""... $ac_c" 1>&6 |
| 2288 | echo "configure:2289: checking for alloca" >&5 |
| 2289 | if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then |
| 2290 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2291 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2292 | cat > conftest.$ac_ext <<EOF |
| 2293 | #line 2294 "configure" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2294 | #include "confdefs.h" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2295 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2296 | #ifdef __GNUC__ |
| 2297 | # define alloca __builtin_alloca |
| 2298 | #else |
| 2299 | # ifdef _MSC_VER |
| 2300 | # include <malloc.h> |
| 2301 | # define alloca _alloca |
| 2302 | # else |
| 2303 | # if HAVE_ALLOCA_H |
| 2304 | # include <alloca.h> |
| 2305 | # else |
| 2306 | # ifdef _AIX |
| 2307 | #pragma alloca |
| 2308 | # else |
| 2309 | # ifndef alloca /* predefined by HP cc +Olibcalls */ |
| 2310 | char *alloca (); |
| 2311 | # endif |
| 2312 | # endif |
| 2313 | # endif |
| 2314 | # endif |
| 2315 | #endif |
| 2316 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2317 | int main() { |
| 2318 | char *p = (char *) alloca(1); |
| 2319 | ; return 0; } |
| 2320 | EOF |
| 2321 | if { (eval echo configure:2322: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 2322 | rm -rf conftest* |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2323 | ac_cv_func_alloca_works=yes |
| 2324 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2325 | echo "configure: failed program was:" >&5 |
| 2326 | cat conftest.$ac_ext >&5 |
| 2327 | rm -rf conftest* |
| 2328 | ac_cv_func_alloca_works=no |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2329 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2330 | rm -f conftest* |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2331 | fi |
| 2332 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2333 | echo "$ac_t""$ac_cv_func_alloca_works" 1>&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2334 | if test $ac_cv_func_alloca_works = yes; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2335 | cat >> confdefs.h <<\EOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2336 | #define HAVE_ALLOCA 1 |
| 2337 | EOF |
| 2338 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2339 | fi |
| 2340 | |
| 2341 | if test $ac_cv_func_alloca_works = no; then |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2342 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2343 | # that cause trouble. Some versions do not even contain alloca or |
| 2344 | # contain a buggy version. If you still want to use their alloca, |
| 2345 | # use ar to extract alloca.o from them instead of compiling alloca.c. |
| 2346 | ALLOCA=alloca.${ac_objext} |
| 2347 | cat >> confdefs.h <<\EOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2348 | #define C_ALLOCA 1 |
| 2349 | EOF |
| 2350 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2351 | |
| 2352 | echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 |
| 2353 | echo "configure:2354: checking whether alloca needs Cray hooks" >&5 |
| 2354 | if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then |
| 2355 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2356 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2357 | cat > conftest.$ac_ext <<EOF |
| 2358 | #line 2359 "configure" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2359 | #include "confdefs.h" |
| 2360 | #if defined(CRAY) && ! defined(CRAY2) |
| 2361 | webecray |
| 2362 | #else |
| 2363 | wenotbecray |
| 2364 | #endif |
| 2365 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2366 | EOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2367 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 2368 | egrep "webecray" >/dev/null 2>&1; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2369 | rm -rf conftest* |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2370 | ac_cv_os_cray=yes |
| 2371 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2372 | rm -rf conftest* |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2373 | ac_cv_os_cray=no |
| 2374 | fi |
| 2375 | rm -f conftest* |
| 2376 | |
| 2377 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2378 | |
| 2379 | echo "$ac_t""$ac_cv_os_cray" 1>&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2380 | if test $ac_cv_os_cray = yes; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2381 | for ac_func in _getb67 GETB67 getb67; do |
| 2382 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
| 2383 | echo "configure:2384: checking for $ac_func" >&5 |
| 2384 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
| 2385 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2386 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2387 | cat > conftest.$ac_ext <<EOF |
| 2388 | #line 2389 "configure" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2389 | #include "confdefs.h" |
| 2390 | /* System header to define __stub macros and hopefully few prototypes, |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2391 | which can conflict with char $ac_func(); below. */ |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2392 | #include <assert.h> |
| 2393 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 2394 | /* We use char because int might match the return type of a gcc2 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2395 | builtin and then its argument prototype would still apply. */ |
| 2396 | char $ac_func(); |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2397 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2398 | int main() { |
| 2399 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2400 | /* The GNU C library defines this for functions which it implements |
| 2401 | to always fail with ENOSYS. Some functions are actually named |
| 2402 | something starting with __ and the normal name is an alias. */ |
| 2403 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 2404 | choke me |
| 2405 | #else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2406 | $ac_func(); |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2407 | #endif |
| 2408 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2409 | ; return 0; } |
| 2410 | EOF |
| 2411 | if { (eval echo configure:2412: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 2412 | rm -rf conftest* |
| 2413 | eval "ac_cv_func_$ac_func=yes" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2414 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2415 | echo "configure: failed program was:" >&5 |
| 2416 | cat conftest.$ac_ext >&5 |
| 2417 | rm -rf conftest* |
| 2418 | eval "ac_cv_func_$ac_func=no" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2419 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2420 | rm -f conftest* |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2421 | fi |
| 2422 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2423 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
| 2424 | echo "$ac_t""yes" 1>&6 |
| 2425 | cat >> confdefs.h <<EOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2426 | #define CRAY_STACKSEG_END $ac_func |
| 2427 | EOF |
| 2428 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2429 | break |
| 2430 | else |
| 2431 | echo "$ac_t""no" 1>&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2432 | fi |
| 2433 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2434 | done |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2435 | fi |
| 2436 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2437 | echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 |
| 2438 | echo "configure:2439: checking stack direction for C alloca" >&5 |
| 2439 | if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then |
| 2440 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2441 | else |
| 2442 | if test "$cross_compiling" = yes; then |
| 2443 | ac_cv_c_stack_direction=0 |
| 2444 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2445 | cat > conftest.$ac_ext <<EOF |
| 2446 | #line 2447 "configure" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2447 | #include "confdefs.h" |
| 2448 | find_stack_direction () |
| 2449 | { |
| 2450 | static char *addr = 0; |
| 2451 | auto char dummy; |
| 2452 | if (addr == 0) |
| 2453 | { |
| 2454 | addr = &dummy; |
| 2455 | return find_stack_direction (); |
| 2456 | } |
| 2457 | else |
| 2458 | return (&dummy > addr) ? 1 : -1; |
| 2459 | } |
| 2460 | main () |
| 2461 | { |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2462 | exit (find_stack_direction() < 0); |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2463 | } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2464 | EOF |
| 2465 | if { (eval echo configure:2466: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
| 2466 | then |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2467 | ac_cv_c_stack_direction=1 |
| 2468 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2469 | echo "configure: failed program was:" >&5 |
| 2470 | cat conftest.$ac_ext >&5 |
| 2471 | rm -fr conftest* |
| 2472 | ac_cv_c_stack_direction=-1 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2473 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2474 | rm -fr conftest* |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2475 | fi |
| 2476 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2477 | fi |
| 2478 | |
| 2479 | echo "$ac_t""$ac_cv_c_stack_direction" 1>&6 |
| 2480 | cat >> confdefs.h <<EOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2481 | #define STACK_DIRECTION $ac_cv_c_stack_direction |
| 2482 | EOF |
| 2483 | |
| 2484 | fi |
| 2485 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2486 | for ac_hdr in unistd.h |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2487 | do |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2488 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
| 2489 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
| 2490 | echo "configure:2491: checking for $ac_hdr" >&5 |
| 2491 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
| 2492 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2493 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2494 | cat > conftest.$ac_ext <<EOF |
| 2495 | #line 2496 "configure" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2496 | #include "confdefs.h" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2497 | #include <$ac_hdr> |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2498 | EOF |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2499 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 2500 | { (eval echo configure:2501: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 2501 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 2502 | if test -z "$ac_err"; then |
| 2503 | rm -rf conftest* |
| 2504 | eval "ac_cv_header_$ac_safe=yes" |
| 2505 | else |
| 2506 | echo "$ac_err" >&5 |
| 2507 | echo "configure: failed program was:" >&5 |
| 2508 | cat conftest.$ac_ext >&5 |
| 2509 | rm -rf conftest* |
| 2510 | eval "ac_cv_header_$ac_safe=no" |
| 2511 | fi |
| 2512 | rm -f conftest* |
| 2513 | fi |
| 2514 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 2515 | echo "$ac_t""yes" 1>&6 |
| 2516 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
| 2517 | cat >> confdefs.h <<EOF |
| 2518 | #define $ac_tr_hdr 1 |
| 2519 | EOF |
| 2520 | |
| 2521 | else |
| 2522 | echo "$ac_t""no" 1>&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2523 | fi |
| 2524 | done |
| 2525 | |
| 2526 | for ac_func in getpagesize |
| 2527 | do |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2528 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
| 2529 | echo "configure:2530: checking for $ac_func" >&5 |
| 2530 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
| 2531 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2532 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2533 | cat > conftest.$ac_ext <<EOF |
| 2534 | #line 2535 "configure" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2535 | #include "confdefs.h" |
| 2536 | /* System header to define __stub macros and hopefully few prototypes, |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2537 | which can conflict with char $ac_func(); below. */ |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2538 | #include <assert.h> |
| 2539 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 2540 | /* We use char because int might match the return type of a gcc2 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2541 | builtin and then its argument prototype would still apply. */ |
| 2542 | char $ac_func(); |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2543 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2544 | int main() { |
| 2545 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2546 | /* The GNU C library defines this for functions which it implements |
| 2547 | to always fail with ENOSYS. Some functions are actually named |
| 2548 | something starting with __ and the normal name is an alias. */ |
| 2549 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 2550 | choke me |
| 2551 | #else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2552 | $ac_func(); |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2553 | #endif |
| 2554 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2555 | ; return 0; } |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2556 | EOF |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2557 | if { (eval echo configure:2558: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 2558 | rm -rf conftest* |
| 2559 | eval "ac_cv_func_$ac_func=yes" |
| 2560 | else |
| 2561 | echo "configure: failed program was:" >&5 |
| 2562 | cat conftest.$ac_ext >&5 |
| 2563 | rm -rf conftest* |
| 2564 | eval "ac_cv_func_$ac_func=no" |
| 2565 | fi |
| 2566 | rm -f conftest* |
| 2567 | fi |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2568 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2569 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
| 2570 | echo "$ac_t""yes" 1>&6 |
| 2571 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 2572 | cat >> confdefs.h <<EOF |
| 2573 | #define $ac_tr_func 1 |
| 2574 | EOF |
| 2575 | |
| 2576 | else |
| 2577 | echo "$ac_t""no" 1>&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2578 | fi |
| 2579 | done |
| 2580 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2581 | echo $ac_n "checking for working mmap""... $ac_c" 1>&6 |
| 2582 | echo "configure:2583: checking for working mmap" >&5 |
| 2583 | if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then |
| 2584 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2585 | else |
| 2586 | if test "$cross_compiling" = yes; then |
| 2587 | ac_cv_func_mmap_fixed_mapped=no |
| 2588 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2589 | cat > conftest.$ac_ext <<EOF |
| 2590 | #line 2591 "configure" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2591 | #include "confdefs.h" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2592 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2593 | /* Thanks to Mike Haertel and Jim Avera for this test. |
| 2594 | Here is a matrix of mmap possibilities: |
| 2595 | mmap private not fixed |
| 2596 | mmap private fixed at somewhere currently unmapped |
| 2597 | mmap private fixed at somewhere already mapped |
| 2598 | mmap shared not fixed |
| 2599 | mmap shared fixed at somewhere currently unmapped |
| 2600 | mmap shared fixed at somewhere already mapped |
| 2601 | For private mappings, we should verify that changes cannot be read() |
| 2602 | back from the file, nor mmap's back from the file at a different |
| 2603 | address. (There have been systems where private was not correctly |
| 2604 | implemented like the infamous i386 svr4.0, and systems where the |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2605 | VM page cache was not coherent with the filesystem buffer cache |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2606 | like early versions of FreeBSD and possibly contemporary NetBSD.) |
| 2607 | For shared mappings, we should conversely verify that changes get |
| 2608 | propogated back to all the places they're supposed to be. |
| 2609 | |
| 2610 | Grep wants private fixed already mapped. |
| 2611 | The main things grep needs to know about mmap are: |
| 2612 | * does it exist and is it safe to write into the mmap'd area |
| 2613 | * how to use it (BSD variants) */ |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2614 | #include <sys/types.h> |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2615 | #include <fcntl.h> |
| 2616 | #include <sys/mman.h> |
| 2617 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2618 | /* This mess was copied from the GNU getpagesize.h. */ |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2619 | #ifndef HAVE_GETPAGESIZE |
| 2620 | # ifdef HAVE_UNISTD_H |
| 2621 | # include <unistd.h> |
| 2622 | # endif |
| 2623 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2624 | /* Assume that all systems that can run configure have sys/param.h. */ |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2625 | # ifndef HAVE_SYS_PARAM_H |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2626 | # define HAVE_SYS_PARAM_H 1 |
| 2627 | # endif |
| 2628 | |
| 2629 | # ifdef _SC_PAGESIZE |
| 2630 | # define getpagesize() sysconf(_SC_PAGESIZE) |
| 2631 | # else /* no _SC_PAGESIZE */ |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2632 | # ifdef HAVE_SYS_PARAM_H |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2633 | # include <sys/param.h> |
| 2634 | # ifdef EXEC_PAGESIZE |
| 2635 | # define getpagesize() EXEC_PAGESIZE |
| 2636 | # else /* no EXEC_PAGESIZE */ |
| 2637 | # ifdef NBPG |
| 2638 | # define getpagesize() NBPG * CLSIZE |
| 2639 | # ifndef CLSIZE |
| 2640 | # define CLSIZE 1 |
| 2641 | # endif /* no CLSIZE */ |
| 2642 | # else /* no NBPG */ |
| 2643 | # ifdef NBPC |
| 2644 | # define getpagesize() NBPC |
| 2645 | # else /* no NBPC */ |
| 2646 | # ifdef PAGESIZE |
| 2647 | # define getpagesize() PAGESIZE |
| 2648 | # endif /* PAGESIZE */ |
| 2649 | # endif /* no NBPC */ |
| 2650 | # endif /* no NBPG */ |
| 2651 | # endif /* no EXEC_PAGESIZE */ |
| 2652 | # else /* no HAVE_SYS_PARAM_H */ |
| 2653 | # define getpagesize() 8192 /* punt totally */ |
| 2654 | # endif /* no HAVE_SYS_PARAM_H */ |
| 2655 | # endif /* no _SC_PAGESIZE */ |
| 2656 | |
| 2657 | #endif /* no HAVE_GETPAGESIZE */ |
| 2658 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2659 | #ifdef __cplusplus |
| 2660 | extern "C" { void *malloc(unsigned); } |
| 2661 | #else |
| 2662 | char *malloc(); |
| 2663 | #endif |
| 2664 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2665 | int |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2666 | main() |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2667 | { |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2668 | char *data, *data2, *data3; |
| 2669 | int i, pagesize; |
| 2670 | int fd; |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2671 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2672 | pagesize = getpagesize(); |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2673 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2674 | /* |
| 2675 | * First, make a file with some known garbage in it. |
| 2676 | */ |
| 2677 | data = malloc(pagesize); |
| 2678 | if (!data) |
| 2679 | exit(1); |
| 2680 | for (i = 0; i < pagesize; ++i) |
| 2681 | *(data + i) = rand(); |
| 2682 | umask(0); |
| 2683 | fd = creat("conftestmmap", 0600); |
| 2684 | if (fd < 0) |
| 2685 | exit(1); |
| 2686 | if (write(fd, data, pagesize) != pagesize) |
| 2687 | exit(1); |
| 2688 | close(fd); |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2689 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2690 | /* |
| 2691 | * Next, try to mmap the file at a fixed address which |
| 2692 | * already has something else allocated at it. If we can, |
| 2693 | * also make sure that we see the same garbage. |
| 2694 | */ |
| 2695 | fd = open("conftestmmap", O_RDWR); |
| 2696 | if (fd < 0) |
| 2697 | exit(1); |
| 2698 | data2 = malloc(2 * pagesize); |
| 2699 | if (!data2) |
| 2700 | exit(1); |
| 2701 | data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1); |
| 2702 | if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE, |
| 2703 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) |
| 2704 | exit(1); |
| 2705 | for (i = 0; i < pagesize; ++i) |
| 2706 | if (*(data + i) != *(data2 + i)) |
| 2707 | exit(1); |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2708 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2709 | /* |
| 2710 | * Finally, make sure that changes to the mapped area |
| 2711 | * do not percolate back to the file as seen by read(). |
| 2712 | * (This is a bug on some variants of i386 svr4.0.) |
| 2713 | */ |
| 2714 | for (i = 0; i < pagesize; ++i) |
| 2715 | *(data2 + i) = *(data2 + i) + 1; |
| 2716 | data3 = malloc(pagesize); |
| 2717 | if (!data3) |
| 2718 | exit(1); |
| 2719 | if (read(fd, data3, pagesize) != pagesize) |
| 2720 | exit(1); |
| 2721 | for (i = 0; i < pagesize; ++i) |
| 2722 | if (*(data + i) != *(data3 + i)) |
| 2723 | exit(1); |
| 2724 | close(fd); |
| 2725 | unlink("conftestmmap"); |
| 2726 | exit(0); |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2727 | } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2728 | |
| 2729 | EOF |
| 2730 | if { (eval echo configure:2731: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
| 2731 | then |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2732 | ac_cv_func_mmap_fixed_mapped=yes |
| 2733 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2734 | echo "configure: failed program was:" >&5 |
| 2735 | cat conftest.$ac_ext >&5 |
| 2736 | rm -fr conftest* |
| 2737 | ac_cv_func_mmap_fixed_mapped=no |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2738 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2739 | rm -fr conftest* |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2740 | fi |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2741 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2742 | fi |
| 2743 | |
| 2744 | echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6 |
| 2745 | if test $ac_cv_func_mmap_fixed_mapped = yes; then |
| 2746 | cat >> confdefs.h <<\EOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2747 | #define HAVE_MMAP 1 |
| 2748 | EOF |
| 2749 | |
| 2750 | fi |
| 2751 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2752 | |
| 2753 | echo $ac_n "checking whether we are using the GNU C Library 2.1 or newer""... $ac_c" 1>&6 |
| 2754 | echo "configure:2755: checking whether we are using the GNU C Library 2.1 or newer" >&5 |
| 2755 | if eval "test \"`echo '$''{'ac_cv_gnu_library_2_1'+set}'`\" = set"; then |
| 2756 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2757 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2758 | cat > conftest.$ac_ext <<EOF |
| 2759 | #line 2760 "configure" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2760 | #include "confdefs.h" |
| 2761 | |
| 2762 | #include <features.h> |
| 2763 | #ifdef __GNU_LIBRARY__ |
| 2764 | #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2) |
| 2765 | Lucky GNU user |
| 2766 | #endif |
| 2767 | #endif |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2768 | |
| 2769 | EOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2770 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 2771 | egrep "Lucky GNU user" >/dev/null 2>&1; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2772 | rm -rf conftest* |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2773 | ac_cv_gnu_library_2_1=yes |
| 2774 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2775 | rm -rf conftest* |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2776 | ac_cv_gnu_library_2_1=no |
| 2777 | fi |
| 2778 | rm -f conftest* |
| 2779 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2780 | |
| 2781 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2782 | fi |
| 2783 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2784 | echo "$ac_t""$ac_cv_gnu_library_2_1" 1>&6 |
| 2785 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2786 | GLIBC21="$ac_cv_gnu_library_2_1" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2787 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2788 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2789 | |
| 2790 | |
| 2791 | echo $ac_n "checking whether integer division by zero raises SIGFPE""... $ac_c" 1>&6 |
| 2792 | echo "configure:2793: checking whether integer division by zero raises SIGFPE" >&5 |
| 2793 | if eval "test \"`echo '$''{'gt_cv_int_divbyzero_sigfpe'+set}'`\" = set"; then |
| 2794 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2795 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2796 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2797 | if test "$cross_compiling" = yes; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2798 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2799 | # Guess based on the CPU. |
| 2800 | case "$host_cpu" in |
| 2801 | alpha* | i3456786 | m68k | s390*) |
| 2802 | gt_cv_int_divbyzero_sigfpe="guessing yes";; |
| 2803 | *) |
| 2804 | gt_cv_int_divbyzero_sigfpe="guessing no";; |
| 2805 | esac |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2806 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2807 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2808 | cat > conftest.$ac_ext <<EOF |
| 2809 | #line 2810 "configure" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2810 | #include "confdefs.h" |
| 2811 | |
| 2812 | #include <stdlib.h> |
| 2813 | #include <signal.h> |
| 2814 | |
| 2815 | static void |
| 2816 | #ifdef __cplusplus |
| 2817 | sigfpe_handler (int sig) |
| 2818 | #else |
| 2819 | sigfpe_handler (sig) int sig; |
| 2820 | #endif |
| 2821 | { |
| 2822 | /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */ |
| 2823 | exit (sig != SIGFPE); |
| 2824 | } |
| 2825 | |
| 2826 | int x = 1; |
| 2827 | int y = 0; |
| 2828 | int z; |
| 2829 | int nan; |
| 2830 | |
| 2831 | int main () |
| 2832 | { |
| 2833 | signal (SIGFPE, sigfpe_handler); |
| 2834 | /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */ |
| 2835 | #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP) |
| 2836 | signal (SIGTRAP, sigfpe_handler); |
| 2837 | #endif |
| 2838 | /* Linux/SPARC yields signal SIGILL. */ |
| 2839 | #if defined (__sparc__) && defined (__linux__) |
| 2840 | signal (SIGILL, sigfpe_handler); |
| 2841 | #endif |
| 2842 | |
| 2843 | z = x / y; |
| 2844 | nan = y / y; |
| 2845 | exit (1); |
| 2846 | } |
| 2847 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2848 | EOF |
| 2849 | if { (eval echo configure:2850: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
| 2850 | then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2851 | gt_cv_int_divbyzero_sigfpe=yes |
| 2852 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2853 | echo "configure: failed program was:" >&5 |
| 2854 | cat conftest.$ac_ext >&5 |
| 2855 | rm -fr conftest* |
| 2856 | gt_cv_int_divbyzero_sigfpe=no |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2857 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2858 | rm -fr conftest* |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2859 | fi |
| 2860 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2861 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2862 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2863 | |
| 2864 | echo "$ac_t""$gt_cv_int_divbyzero_sigfpe" 1>&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2865 | case "$gt_cv_int_divbyzero_sigfpe" in |
| 2866 | *yes) value=1;; |
| 2867 | *) value=0;; |
| 2868 | esac |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2869 | cat >> confdefs.h <<EOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2870 | #define INTDIV0_RAISES_SIGFPE $value |
| 2871 | EOF |
| 2872 | |
| 2873 | |
| 2874 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2875 | |
| 2876 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2877 | if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2878 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2879 | test $ac_cv_type_unsigned_long_long = yes \ |
| 2880 | && ac_type='unsigned long long' \ |
| 2881 | || ac_type='unsigned long' |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2882 | cat >> confdefs.h <<EOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2883 | #define uintmax_t $ac_type |
| 2884 | EOF |
| 2885 | |
| 2886 | fi |
| 2887 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2888 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2889 | echo $ac_n "checking for inttypes.h""... $ac_c" 1>&6 |
| 2890 | echo "configure:2891: checking for inttypes.h" >&5 |
| 2891 | if eval "test \"`echo '$''{'gt_cv_header_inttypes_h'+set}'`\" = set"; then |
| 2892 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2893 | else |
| 2894 | |
| 2895 | cat > conftest.$ac_ext <<EOF |
| 2896 | #line 2897 "configure" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2897 | #include "confdefs.h" |
| 2898 | #include <sys/types.h> |
| 2899 | #include <inttypes.h> |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2900 | int main() { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2901 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2902 | ; return 0; } |
| 2903 | EOF |
| 2904 | if { (eval echo configure:2905: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| 2905 | rm -rf conftest* |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2906 | gt_cv_header_inttypes_h=yes |
| 2907 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2908 | echo "configure: failed program was:" >&5 |
| 2909 | cat conftest.$ac_ext >&5 |
| 2910 | rm -rf conftest* |
| 2911 | gt_cv_header_inttypes_h=no |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2912 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2913 | rm -f conftest* |
| 2914 | |
| 2915 | fi |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2916 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2917 | echo "$ac_t""$gt_cv_header_inttypes_h" 1>&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2918 | if test $gt_cv_header_inttypes_h = yes; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2919 | cat >> confdefs.h <<EOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2920 | #define HAVE_INTTYPES_H 1 |
| 2921 | EOF |
| 2922 | |
| 2923 | fi |
| 2924 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2925 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2926 | |
| 2927 | if test $gt_cv_header_inttypes_h = yes; then |
| 2928 | echo $ac_n "checking whether the inttypes.h PRIxNN macros are broken""... $ac_c" 1>&6 |
| 2929 | echo "configure:2930: checking whether the inttypes.h PRIxNN macros are broken" >&5 |
| 2930 | if eval "test \"`echo '$''{'gt_cv_inttypes_pri_broken'+set}'`\" = set"; then |
| 2931 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 2932 | else |
| 2933 | |
| 2934 | cat > conftest.$ac_ext <<EOF |
| 2935 | #line 2936 "configure" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2936 | #include "confdefs.h" |
| 2937 | #include <inttypes.h> |
| 2938 | #ifdef PRId32 |
| 2939 | char *p = PRId32; |
| 2940 | #endif |
| 2941 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2942 | int main() { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2943 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2944 | ; return 0; } |
| 2945 | EOF |
| 2946 | if { (eval echo configure:2947: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| 2947 | rm -rf conftest* |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2948 | gt_cv_inttypes_pri_broken=no |
| 2949 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2950 | echo "configure: failed program was:" >&5 |
| 2951 | cat conftest.$ac_ext >&5 |
| 2952 | rm -rf conftest* |
| 2953 | gt_cv_inttypes_pri_broken=yes |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2954 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2955 | rm -f conftest* |
| 2956 | |
| 2957 | fi |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2958 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2959 | echo "$ac_t""$gt_cv_inttypes_pri_broken" 1>&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2960 | fi |
| 2961 | if test "$gt_cv_inttypes_pri_broken" = yes; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2962 | cat >> confdefs.h <<EOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2963 | #define PRI_MACROS_BROKEN 1 |
| 2964 | EOF |
| 2965 | |
| 2966 | fi |
| 2967 | |
| 2968 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2969 | |
| 2970 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2971 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2972 | |
| 2973 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2974 | use_additional=yes |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2975 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2976 | acl_save_prefix="$prefix" |
| 2977 | prefix="$acl_final_prefix" |
| 2978 | acl_save_exec_prefix="$exec_prefix" |
| 2979 | exec_prefix="$acl_final_exec_prefix" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2980 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2981 | eval additional_includedir=\"$includedir\" |
| 2982 | eval additional_libdir=\"$libdir\" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2983 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2984 | exec_prefix="$acl_save_exec_prefix" |
| 2985 | prefix="$acl_save_prefix" |
| 2986 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2987 | # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given. |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2988 | if test "${with_libiconv_prefix+set}" = set; then |
| 2989 | withval="$with_libiconv_prefix" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2990 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2991 | if test "X$withval" = "Xno"; then |
| 2992 | use_additional=no |
| 2993 | else |
| 2994 | if test "X$withval" = "X"; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2995 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 2996 | acl_save_prefix="$prefix" |
| 2997 | prefix="$acl_final_prefix" |
| 2998 | acl_save_exec_prefix="$exec_prefix" |
| 2999 | exec_prefix="$acl_final_exec_prefix" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3000 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3001 | eval additional_includedir=\"$includedir\" |
| 3002 | eval additional_libdir=\"$libdir\" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3003 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3004 | exec_prefix="$acl_save_exec_prefix" |
| 3005 | prefix="$acl_save_prefix" |
| 3006 | |
| 3007 | else |
| 3008 | additional_includedir="$withval/include" |
| 3009 | additional_libdir="$withval/lib" |
| 3010 | fi |
| 3011 | fi |
| 3012 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3013 | fi |
| 3014 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3015 | LIBICONV= |
| 3016 | LTLIBICONV= |
| 3017 | INCICONV= |
| 3018 | rpathdirs= |
| 3019 | ltrpathdirs= |
| 3020 | names_already_handled= |
| 3021 | names_next_round='iconv ' |
| 3022 | while test -n "$names_next_round"; do |
| 3023 | names_this_round="$names_next_round" |
| 3024 | names_next_round= |
| 3025 | for name in $names_this_round; do |
| 3026 | already_handled= |
| 3027 | for n in $names_already_handled; do |
| 3028 | if test "$n" = "$name"; then |
| 3029 | already_handled=yes |
| 3030 | break |
| 3031 | fi |
| 3032 | done |
| 3033 | if test -z "$already_handled"; then |
| 3034 | names_already_handled="$names_already_handled $name" |
| 3035 | uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` |
| 3036 | eval value=\"\$HAVE_LIB$uppername\" |
| 3037 | if test -n "$value"; then |
| 3038 | if test "$value" = yes; then |
| 3039 | eval value=\"\$LIB$uppername\" |
| 3040 | test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" |
| 3041 | eval value=\"\$LTLIB$uppername\" |
| 3042 | test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" |
| 3043 | else |
| 3044 | : |
| 3045 | fi |
| 3046 | else |
| 3047 | found_dir= |
| 3048 | found_la= |
| 3049 | found_so= |
| 3050 | found_a= |
| 3051 | if test $use_additional = yes; then |
| 3052 | if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then |
| 3053 | found_dir="$additional_libdir" |
| 3054 | found_so="$additional_libdir/lib$name.$shlibext" |
| 3055 | if test -f "$additional_libdir/lib$name.la"; then |
| 3056 | found_la="$additional_libdir/lib$name.la" |
| 3057 | fi |
| 3058 | else |
| 3059 | if test -f "$additional_libdir/lib$name.$libext"; then |
| 3060 | found_dir="$additional_libdir" |
| 3061 | found_a="$additional_libdir/lib$name.$libext" |
| 3062 | if test -f "$additional_libdir/lib$name.la"; then |
| 3063 | found_la="$additional_libdir/lib$name.la" |
| 3064 | fi |
| 3065 | fi |
| 3066 | fi |
| 3067 | fi |
| 3068 | if test "X$found_dir" = "X"; then |
| 3069 | for x in $LDFLAGS $LTLIBICONV; do |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3070 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3071 | acl_save_prefix="$prefix" |
| 3072 | prefix="$acl_final_prefix" |
| 3073 | acl_save_exec_prefix="$exec_prefix" |
| 3074 | exec_prefix="$acl_final_exec_prefix" |
| 3075 | eval x=\"$x\" |
| 3076 | exec_prefix="$acl_save_exec_prefix" |
| 3077 | prefix="$acl_save_prefix" |
| 3078 | |
| 3079 | case "$x" in |
| 3080 | -L*) |
| 3081 | dir=`echo "X$x" | sed -e 's/^X-L//'` |
| 3082 | if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then |
| 3083 | found_dir="$dir" |
| 3084 | found_so="$dir/lib$name.$shlibext" |
| 3085 | if test -f "$dir/lib$name.la"; then |
| 3086 | found_la="$dir/lib$name.la" |
| 3087 | fi |
| 3088 | else |
| 3089 | if test -f "$dir/lib$name.$libext"; then |
| 3090 | found_dir="$dir" |
| 3091 | found_a="$dir/lib$name.$libext" |
| 3092 | if test -f "$dir/lib$name.la"; then |
| 3093 | found_la="$dir/lib$name.la" |
| 3094 | fi |
| 3095 | fi |
| 3096 | fi |
| 3097 | ;; |
| 3098 | esac |
| 3099 | if test "X$found_dir" != "X"; then |
| 3100 | break |
| 3101 | fi |
| 3102 | done |
| 3103 | fi |
| 3104 | if test "X$found_dir" != "X"; then |
| 3105 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" |
| 3106 | if test "X$found_so" != "X"; then |
| 3107 | if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then |
| 3108 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
| 3109 | else |
| 3110 | haveit= |
| 3111 | for x in $ltrpathdirs; do |
| 3112 | if test "X$x" = "X$found_dir"; then |
| 3113 | haveit=yes |
| 3114 | break |
| 3115 | fi |
| 3116 | done |
| 3117 | if test -z "$haveit"; then |
| 3118 | ltrpathdirs="$ltrpathdirs $found_dir" |
| 3119 | fi |
| 3120 | if test "$hardcode_direct" = yes; then |
| 3121 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
| 3122 | else |
| 3123 | if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then |
| 3124 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
| 3125 | haveit= |
| 3126 | for x in $rpathdirs; do |
| 3127 | if test "X$x" = "X$found_dir"; then |
| 3128 | haveit=yes |
| 3129 | break |
| 3130 | fi |
| 3131 | done |
| 3132 | if test -z "$haveit"; then |
| 3133 | rpathdirs="$rpathdirs $found_dir" |
| 3134 | fi |
| 3135 | else |
| 3136 | haveit= |
| 3137 | for x in $LDFLAGS $LIBICONV; do |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3138 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3139 | acl_save_prefix="$prefix" |
| 3140 | prefix="$acl_final_prefix" |
| 3141 | acl_save_exec_prefix="$exec_prefix" |
| 3142 | exec_prefix="$acl_final_exec_prefix" |
| 3143 | eval x=\"$x\" |
| 3144 | exec_prefix="$acl_save_exec_prefix" |
| 3145 | prefix="$acl_save_prefix" |
| 3146 | |
| 3147 | if test "X$x" = "X-L$found_dir"; then |
| 3148 | haveit=yes |
| 3149 | break |
| 3150 | fi |
| 3151 | done |
| 3152 | if test -z "$haveit"; then |
| 3153 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" |
| 3154 | fi |
| 3155 | if test "$hardcode_minus_L" != no; then |
| 3156 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
| 3157 | else |
| 3158 | LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" |
| 3159 | fi |
| 3160 | fi |
| 3161 | fi |
| 3162 | fi |
| 3163 | else |
| 3164 | if test "X$found_a" != "X"; then |
| 3165 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" |
| 3166 | else |
| 3167 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" |
| 3168 | fi |
| 3169 | fi |
| 3170 | additional_includedir= |
| 3171 | case "$found_dir" in |
| 3172 | */lib | */lib/) |
| 3173 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` |
| 3174 | additional_includedir="$basedir/include" |
| 3175 | ;; |
| 3176 | esac |
| 3177 | if test "X$additional_includedir" != "X"; then |
| 3178 | if test "X$additional_includedir" != "X/usr/include"; then |
| 3179 | haveit= |
| 3180 | if test "X$additional_includedir" = "X/usr/local/include"; then |
| 3181 | if test -n "$GCC"; then |
| 3182 | case $host_os in |
| 3183 | linux*) haveit=yes;; |
| 3184 | esac |
| 3185 | fi |
| 3186 | fi |
| 3187 | if test -z "$haveit"; then |
| 3188 | for x in $CPPFLAGS $INCICONV; do |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3189 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3190 | acl_save_prefix="$prefix" |
| 3191 | prefix="$acl_final_prefix" |
| 3192 | acl_save_exec_prefix="$exec_prefix" |
| 3193 | exec_prefix="$acl_final_exec_prefix" |
| 3194 | eval x=\"$x\" |
| 3195 | exec_prefix="$acl_save_exec_prefix" |
| 3196 | prefix="$acl_save_prefix" |
| 3197 | |
| 3198 | if test "X$x" = "X-I$additional_includedir"; then |
| 3199 | haveit=yes |
| 3200 | break |
| 3201 | fi |
| 3202 | done |
| 3203 | if test -z "$haveit"; then |
| 3204 | if test -d "$additional_includedir"; then |
| 3205 | INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" |
| 3206 | fi |
| 3207 | fi |
| 3208 | fi |
| 3209 | fi |
| 3210 | fi |
| 3211 | if test -n "$found_la"; then |
| 3212 | save_libdir="$libdir" |
| 3213 | case "$found_la" in |
| 3214 | */* | *\\*) . "$found_la" ;; |
| 3215 | *) . "./$found_la" ;; |
| 3216 | esac |
| 3217 | libdir="$save_libdir" |
| 3218 | for dep in $dependency_libs; do |
| 3219 | case "$dep" in |
| 3220 | -L*) |
| 3221 | additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` |
| 3222 | if test "X$additional_libdir" != "X/usr/lib"; then |
| 3223 | haveit= |
| 3224 | if test "X$additional_libdir" = "X/usr/local/lib"; then |
| 3225 | if test -n "$GCC"; then |
| 3226 | case $host_os in |
| 3227 | linux*) haveit=yes;; |
| 3228 | esac |
| 3229 | fi |
| 3230 | fi |
| 3231 | if test -z "$haveit"; then |
| 3232 | haveit= |
| 3233 | for x in $LDFLAGS $LIBICONV; do |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3234 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3235 | acl_save_prefix="$prefix" |
| 3236 | prefix="$acl_final_prefix" |
| 3237 | acl_save_exec_prefix="$exec_prefix" |
| 3238 | exec_prefix="$acl_final_exec_prefix" |
| 3239 | eval x=\"$x\" |
| 3240 | exec_prefix="$acl_save_exec_prefix" |
| 3241 | prefix="$acl_save_prefix" |
| 3242 | |
| 3243 | if test "X$x" = "X-L$additional_libdir"; then |
| 3244 | haveit=yes |
| 3245 | break |
| 3246 | fi |
| 3247 | done |
| 3248 | if test -z "$haveit"; then |
| 3249 | if test -d "$additional_libdir"; then |
| 3250 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir" |
| 3251 | fi |
| 3252 | fi |
| 3253 | haveit= |
| 3254 | for x in $LDFLAGS $LTLIBICONV; do |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3255 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3256 | acl_save_prefix="$prefix" |
| 3257 | prefix="$acl_final_prefix" |
| 3258 | acl_save_exec_prefix="$exec_prefix" |
| 3259 | exec_prefix="$acl_final_exec_prefix" |
| 3260 | eval x=\"$x\" |
| 3261 | exec_prefix="$acl_save_exec_prefix" |
| 3262 | prefix="$acl_save_prefix" |
| 3263 | |
| 3264 | if test "X$x" = "X-L$additional_libdir"; then |
| 3265 | haveit=yes |
| 3266 | break |
| 3267 | fi |
| 3268 | done |
| 3269 | if test -z "$haveit"; then |
| 3270 | if test -d "$additional_libdir"; then |
| 3271 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir" |
| 3272 | fi |
| 3273 | fi |
| 3274 | fi |
| 3275 | fi |
| 3276 | ;; |
| 3277 | -R*) |
| 3278 | dir=`echo "X$dep" | sed -e 's/^X-R//'` |
| 3279 | if test "$enable_rpath" != no; then |
| 3280 | haveit= |
| 3281 | for x in $rpathdirs; do |
| 3282 | if test "X$x" = "X$dir"; then |
| 3283 | haveit=yes |
| 3284 | break |
| 3285 | fi |
| 3286 | done |
| 3287 | if test -z "$haveit"; then |
| 3288 | rpathdirs="$rpathdirs $dir" |
| 3289 | fi |
| 3290 | haveit= |
| 3291 | for x in $ltrpathdirs; do |
| 3292 | if test "X$x" = "X$dir"; then |
| 3293 | haveit=yes |
| 3294 | break |
| 3295 | fi |
| 3296 | done |
| 3297 | if test -z "$haveit"; then |
| 3298 | ltrpathdirs="$ltrpathdirs $dir" |
| 3299 | fi |
| 3300 | fi |
| 3301 | ;; |
| 3302 | -l*) |
| 3303 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` |
| 3304 | ;; |
| 3305 | *.la) |
| 3306 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` |
| 3307 | ;; |
| 3308 | *) |
| 3309 | LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" |
| 3310 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" |
| 3311 | ;; |
| 3312 | esac |
| 3313 | done |
| 3314 | fi |
| 3315 | else |
| 3316 | LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" |
| 3317 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" |
| 3318 | fi |
| 3319 | fi |
| 3320 | fi |
| 3321 | done |
| 3322 | done |
| 3323 | if test "X$rpathdirs" != "X"; then |
| 3324 | if test -n "$hardcode_libdir_separator"; then |
| 3325 | alldirs= |
| 3326 | for found_dir in $rpathdirs; do |
| 3327 | alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" |
| 3328 | done |
| 3329 | acl_save_libdir="$libdir" |
| 3330 | libdir="$alldirs" |
| 3331 | eval flag=\"$hardcode_libdir_flag_spec\" |
| 3332 | libdir="$acl_save_libdir" |
| 3333 | LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" |
| 3334 | else |
| 3335 | for found_dir in $rpathdirs; do |
| 3336 | acl_save_libdir="$libdir" |
| 3337 | libdir="$found_dir" |
| 3338 | eval flag=\"$hardcode_libdir_flag_spec\" |
| 3339 | libdir="$acl_save_libdir" |
| 3340 | LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" |
| 3341 | done |
| 3342 | fi |
| 3343 | fi |
| 3344 | if test "X$ltrpathdirs" != "X"; then |
| 3345 | for found_dir in $ltrpathdirs; do |
| 3346 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" |
| 3347 | done |
| 3348 | fi |
| 3349 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3350 | |
| 3351 | |
| 3352 | |
| 3353 | |
| 3354 | # Extract the first word of "msgfmt", so it can be a program name with args. |
| 3355 | set dummy msgfmt; ac_word=$2 |
| 3356 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| 3357 | echo "configure:3358: checking for $ac_word" >&5 |
| 3358 | if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then |
| 3359 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3360 | else |
| 3361 | case "$MSGFMT" in |
| 3362 | /*) |
| 3363 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. |
| 3364 | ;; |
| 3365 | *) |
| 3366 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
| 3367 | for ac_dir in $PATH; do |
| 3368 | test -z "$ac_dir" && ac_dir=. |
| 3369 | if test -f $ac_dir/$ac_word; then |
| 3370 | if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 && |
| 3371 | (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then |
| 3372 | ac_cv_path_MSGFMT="$ac_dir/$ac_word" |
| 3373 | break |
| 3374 | fi |
| 3375 | fi |
| 3376 | done |
| 3377 | IFS="$ac_save_ifs" |
| 3378 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" |
| 3379 | ;; |
| 3380 | esac |
| 3381 | fi |
| 3382 | MSGFMT="$ac_cv_path_MSGFMT" |
| 3383 | if test "$MSGFMT" != ":"; then |
| 3384 | echo "$ac_t""$MSGFMT" 1>&6 |
| 3385 | else |
| 3386 | echo "$ac_t""no" 1>&6 |
| 3387 | fi |
| 3388 | |
| 3389 | # Extract the first word of "gmsgfmt", so it can be a program name with args. |
| 3390 | set dummy gmsgfmt; ac_word=$2 |
| 3391 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| 3392 | echo "configure:3393: checking for $ac_word" >&5 |
| 3393 | if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then |
| 3394 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3395 | else |
| 3396 | case "$GMSGFMT" in |
| 3397 | /*) |
| 3398 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. |
| 3399 | ;; |
| 3400 | ?:/*) |
| 3401 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path. |
| 3402 | ;; |
| 3403 | *) |
| 3404 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 3405 | ac_dummy="$PATH" |
| 3406 | for ac_dir in $ac_dummy; do |
| 3407 | test -z "$ac_dir" && ac_dir=. |
| 3408 | if test -f $ac_dir/$ac_word; then |
| 3409 | ac_cv_path_GMSGFMT="$ac_dir/$ac_word" |
| 3410 | break |
| 3411 | fi |
| 3412 | done |
| 3413 | IFS="$ac_save_ifs" |
| 3414 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" |
| 3415 | ;; |
| 3416 | esac |
| 3417 | fi |
| 3418 | GMSGFMT="$ac_cv_path_GMSGFMT" |
| 3419 | if test -n "$GMSGFMT"; then |
| 3420 | echo "$ac_t""$GMSGFMT" 1>&6 |
| 3421 | else |
| 3422 | echo "$ac_t""no" 1>&6 |
| 3423 | fi |
| 3424 | |
| 3425 | |
| 3426 | # Extract the first word of "xgettext", so it can be a program name with args. |
| 3427 | set dummy xgettext; ac_word=$2 |
| 3428 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| 3429 | echo "configure:3430: checking for $ac_word" >&5 |
| 3430 | if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then |
| 3431 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3432 | else |
| 3433 | case "$XGETTEXT" in |
| 3434 | /*) |
| 3435 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. |
| 3436 | ;; |
| 3437 | *) |
| 3438 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
| 3439 | for ac_dir in $PATH; do |
| 3440 | test -z "$ac_dir" && ac_dir=. |
| 3441 | if test -f $ac_dir/$ac_word; then |
| 3442 | if $ac_dir/$ac_word --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 && |
| 3443 | (if $ac_dir/$ac_word --omit-header --copyright-holder= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then |
| 3444 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word" |
| 3445 | break |
| 3446 | fi |
| 3447 | fi |
| 3448 | done |
| 3449 | IFS="$ac_save_ifs" |
| 3450 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" |
| 3451 | ;; |
| 3452 | esac |
| 3453 | fi |
| 3454 | XGETTEXT="$ac_cv_path_XGETTEXT" |
| 3455 | if test "$XGETTEXT" != ":"; then |
| 3456 | echo "$ac_t""$XGETTEXT" 1>&6 |
| 3457 | else |
| 3458 | echo "$ac_t""no" 1>&6 |
| 3459 | fi |
| 3460 | |
| 3461 | rm -f messages.po |
| 3462 | |
| 3463 | # Extract the first word of "msgmerge", so it can be a program name with args. |
| 3464 | set dummy msgmerge; ac_word=$2 |
| 3465 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| 3466 | echo "configure:3467: checking for $ac_word" >&5 |
| 3467 | if eval "test \"`echo '$''{'ac_cv_path_MSGMERGE'+set}'`\" = set"; then |
| 3468 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3469 | else |
| 3470 | case "$MSGMERGE" in |
| 3471 | /*) |
| 3472 | ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. |
| 3473 | ;; |
| 3474 | *) |
| 3475 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
| 3476 | for ac_dir in $PATH; do |
| 3477 | test -z "$ac_dir" && ac_dir=. |
| 3478 | if test -f $ac_dir/$ac_word; then |
| 3479 | if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then |
| 3480 | ac_cv_path_MSGMERGE="$ac_dir/$ac_word" |
| 3481 | break |
| 3482 | fi |
| 3483 | fi |
| 3484 | done |
| 3485 | IFS="$ac_save_ifs" |
| 3486 | test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" |
| 3487 | ;; |
| 3488 | esac |
| 3489 | fi |
| 3490 | MSGMERGE="$ac_cv_path_MSGMERGE" |
| 3491 | if test "$MSGMERGE" != ":"; then |
| 3492 | echo "$ac_t""$MSGMERGE" 1>&6 |
| 3493 | else |
| 3494 | echo "$ac_t""no" 1>&6 |
| 3495 | fi |
| 3496 | |
| 3497 | |
| 3498 | if test "$GMSGFMT" != ":"; then |
| 3499 | if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 && |
| 3500 | (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then |
| 3501 | : ; |
| 3502 | else |
| 3503 | GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'` |
| 3504 | echo "$ac_t""found $GMSGFMT program is not GNU msgfmt; ignore it" 1>&6 |
| 3505 | GMSGFMT=":" |
| 3506 | fi |
| 3507 | fi |
| 3508 | |
| 3509 | if test "$XGETTEXT" != ":"; then |
| 3510 | if $XGETTEXT --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 && |
| 3511 | (if $XGETTEXT --omit-header --copyright-holder= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then |
| 3512 | : ; |
| 3513 | else |
| 3514 | echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6 |
| 3515 | XGETTEXT=":" |
| 3516 | fi |
| 3517 | rm -f messages.po |
| 3518 | fi |
| 3519 | |
| 3520 | |
| 3521 | |
| 3522 | |
| 3523 | |
| 3524 | for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3525 | stdlib.h string.h unistd.h sys/param.h |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3526 | do |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3527 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
| 3528 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
| 3529 | echo "configure:3530: checking for $ac_hdr" >&5 |
| 3530 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
| 3531 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3532 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3533 | cat > conftest.$ac_ext <<EOF |
| 3534 | #line 3535 "configure" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3535 | #include "confdefs.h" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3536 | #include <$ac_hdr> |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3537 | EOF |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3538 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 3539 | { (eval echo configure:3540: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 3540 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 3541 | if test -z "$ac_err"; then |
| 3542 | rm -rf conftest* |
| 3543 | eval "ac_cv_header_$ac_safe=yes" |
| 3544 | else |
| 3545 | echo "$ac_err" >&5 |
| 3546 | echo "configure: failed program was:" >&5 |
| 3547 | cat conftest.$ac_ext >&5 |
| 3548 | rm -rf conftest* |
| 3549 | eval "ac_cv_header_$ac_safe=no" |
| 3550 | fi |
| 3551 | rm -f conftest* |
| 3552 | fi |
| 3553 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 3554 | echo "$ac_t""yes" 1>&6 |
| 3555 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
| 3556 | cat >> confdefs.h <<EOF |
| 3557 | #define $ac_tr_hdr 1 |
| 3558 | EOF |
| 3559 | |
| 3560 | else |
| 3561 | echo "$ac_t""no" 1>&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3562 | fi |
| 3563 | done |
| 3564 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3565 | for ac_func in feof_unlocked fgets_unlocked getc_unlocked getcwd getegid \ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3566 | geteuid getgid getuid mempcpy munmap putenv setenv setlocale stpcpy \ |
| 3567 | strcasecmp strdup strtoul tsearch __argz_count __argz_stringify __argz_next |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3568 | do |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3569 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
| 3570 | echo "configure:3571: checking for $ac_func" >&5 |
| 3571 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
| 3572 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3573 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3574 | cat > conftest.$ac_ext <<EOF |
| 3575 | #line 3576 "configure" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3576 | #include "confdefs.h" |
| 3577 | /* System header to define __stub macros and hopefully few prototypes, |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3578 | which can conflict with char $ac_func(); below. */ |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3579 | #include <assert.h> |
| 3580 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 3581 | /* We use char because int might match the return type of a gcc2 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3582 | builtin and then its argument prototype would still apply. */ |
| 3583 | char $ac_func(); |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3584 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3585 | int main() { |
| 3586 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3587 | /* The GNU C library defines this for functions which it implements |
| 3588 | to always fail with ENOSYS. Some functions are actually named |
| 3589 | something starting with __ and the normal name is an alias. */ |
| 3590 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 3591 | choke me |
| 3592 | #else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3593 | $ac_func(); |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3594 | #endif |
| 3595 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3596 | ; return 0; } |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 3597 | EOF |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3598 | if { (eval echo configure:3599: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 3599 | rm -rf conftest* |
| 3600 | eval "ac_cv_func_$ac_func=yes" |
| 3601 | else |
| 3602 | echo "configure: failed program was:" >&5 |
| 3603 | cat conftest.$ac_ext >&5 |
| 3604 | rm -rf conftest* |
| 3605 | eval "ac_cv_func_$ac_func=no" |
| 3606 | fi |
| 3607 | rm -f conftest* |
| 3608 | fi |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3609 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3610 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
| 3611 | echo "$ac_t""yes" 1>&6 |
| 3612 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 3613 | cat >> confdefs.h <<EOF |
| 3614 | #define $ac_tr_func 1 |
| 3615 | EOF |
| 3616 | |
| 3617 | else |
| 3618 | echo "$ac_t""no" 1>&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3619 | fi |
| 3620 | done |
| 3621 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 3622 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3623 | |
| 3624 | |
| 3625 | |
| 3626 | |
| 3627 | |
| 3628 | am_save_CPPFLAGS="$CPPFLAGS" |
| 3629 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3630 | for element in $INCICONV; do |
| 3631 | haveit= |
| 3632 | for x in $CPPFLAGS; do |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3633 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3634 | acl_save_prefix="$prefix" |
| 3635 | prefix="$acl_final_prefix" |
| 3636 | acl_save_exec_prefix="$exec_prefix" |
| 3637 | exec_prefix="$acl_final_exec_prefix" |
| 3638 | eval x=\"$x\" |
| 3639 | exec_prefix="$acl_save_exec_prefix" |
| 3640 | prefix="$acl_save_prefix" |
| 3641 | |
| 3642 | if test "X$x" = "X$element"; then |
| 3643 | haveit=yes |
| 3644 | break |
| 3645 | fi |
| 3646 | done |
| 3647 | if test -z "$haveit"; then |
| 3648 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" |
| 3649 | fi |
| 3650 | done |
| 3651 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 3652 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3653 | echo $ac_n "checking for iconv""... $ac_c" 1>&6 |
| 3654 | echo "configure:3655: checking for iconv" >&5 |
| 3655 | if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then |
| 3656 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 3657 | else |
| 3658 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3659 | am_cv_func_iconv="no, consider installing GNU libiconv" |
| 3660 | am_cv_lib_iconv=no |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3661 | cat > conftest.$ac_ext <<EOF |
| 3662 | #line 3663 "configure" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3663 | #include "confdefs.h" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3664 | #include <stdlib.h> |
| 3665 | #include <iconv.h> |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3666 | int main() { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3667 | iconv_t cd = iconv_open("",""); |
| 3668 | iconv(cd,NULL,NULL,NULL,NULL); |
| 3669 | iconv_close(cd); |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3670 | ; return 0; } |
| 3671 | EOF |
| 3672 | if { (eval echo configure:3673: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 3673 | rm -rf conftest* |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3674 | am_cv_func_iconv=yes |
| 3675 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3676 | echo "configure: failed program was:" >&5 |
| 3677 | cat conftest.$ac_ext >&5 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3678 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3679 | rm -f conftest* |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3680 | if test "$am_cv_func_iconv" != yes; then |
| 3681 | am_save_LIBS="$LIBS" |
| 3682 | LIBS="$LIBS $LIBICONV" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3683 | cat > conftest.$ac_ext <<EOF |
| 3684 | #line 3685 "configure" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3685 | #include "confdefs.h" |
| 3686 | #include <stdlib.h> |
| 3687 | #include <iconv.h> |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3688 | int main() { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3689 | iconv_t cd = iconv_open("",""); |
| 3690 | iconv(cd,NULL,NULL,NULL,NULL); |
| 3691 | iconv_close(cd); |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3692 | ; return 0; } |
| 3693 | EOF |
| 3694 | if { (eval echo configure:3695: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 3695 | rm -rf conftest* |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3696 | am_cv_lib_iconv=yes |
| 3697 | am_cv_func_iconv=yes |
| 3698 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3699 | echo "configure: failed program was:" >&5 |
| 3700 | cat conftest.$ac_ext >&5 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3701 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3702 | rm -f conftest* |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3703 | LIBS="$am_save_LIBS" |
| 3704 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3705 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 3706 | fi |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 3707 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3708 | echo "$ac_t""$am_cv_func_iconv" 1>&6 |
| 3709 | if test "$am_cv_func_iconv" = yes; then |
| 3710 | cat >> confdefs.h <<\EOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3711 | #define HAVE_ICONV 1 |
| 3712 | EOF |
| 3713 | |
| 3714 | fi |
| 3715 | if test "$am_cv_lib_iconv" = yes; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3716 | echo $ac_n "checking how to link with libiconv""... $ac_c" 1>&6 |
| 3717 | echo "configure:3718: checking how to link with libiconv" >&5 |
| 3718 | echo "$ac_t""$LIBICONV" 1>&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3719 | else |
| 3720 | CPPFLAGS="$am_save_CPPFLAGS" |
| 3721 | LIBICONV= |
| 3722 | LTLIBICONV= |
| 3723 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3724 | |
| 3725 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3726 | |
| 3727 | if test "$am_cv_func_iconv" = yes; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3728 | echo $ac_n "checking for iconv declaration""... $ac_c" 1>&6 |
| 3729 | echo "configure:3730: checking for iconv declaration" >&5 |
| 3730 | if eval "test \"`echo '$''{'am_cv_proto_iconv'+set}'`\" = set"; then |
| 3731 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3732 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3733 | |
| 3734 | cat > conftest.$ac_ext <<EOF |
| 3735 | #line 3736 "configure" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3736 | #include "confdefs.h" |
| 3737 | |
| 3738 | #include <stdlib.h> |
| 3739 | #include <iconv.h> |
| 3740 | extern |
| 3741 | #ifdef __cplusplus |
| 3742 | "C" |
| 3743 | #endif |
| 3744 | #if defined(__STDC__) || defined(__cplusplus) |
| 3745 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); |
| 3746 | #else |
| 3747 | size_t iconv(); |
| 3748 | #endif |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3749 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3750 | int main() { |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3751 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3752 | ; return 0; } |
| 3753 | EOF |
| 3754 | if { (eval echo configure:3755: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| 3755 | rm -rf conftest* |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3756 | am_cv_proto_iconv_arg1="" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3757 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3758 | echo "configure: failed program was:" >&5 |
| 3759 | cat conftest.$ac_ext >&5 |
| 3760 | rm -rf conftest* |
| 3761 | am_cv_proto_iconv_arg1="const" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3762 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3763 | rm -f conftest* |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3764 | am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3765 | fi |
| 3766 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3767 | am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3768 | echo "$ac_t""${ac_t:- |
| 3769 | }$am_cv_proto_iconv" 1>&6 |
| 3770 | cat >> confdefs.h <<EOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3771 | #define ICONV_CONST $am_cv_proto_iconv_arg1 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3772 | EOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3773 | |
| 3774 | fi |
| 3775 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3776 | |
| 3777 | echo $ac_n "checking for nl_langinfo and CODESET""... $ac_c" 1>&6 |
| 3778 | echo "configure:3779: checking for nl_langinfo and CODESET" >&5 |
| 3779 | if eval "test \"`echo '$''{'am_cv_langinfo_codeset'+set}'`\" = set"; then |
| 3780 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3781 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3782 | cat > conftest.$ac_ext <<EOF |
| 3783 | #line 3784 "configure" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3784 | #include "confdefs.h" |
| 3785 | #include <langinfo.h> |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3786 | int main() { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3787 | char* cs = nl_langinfo(CODESET); |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3788 | ; return 0; } |
| 3789 | EOF |
| 3790 | if { (eval echo configure:3791: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 3791 | rm -rf conftest* |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3792 | am_cv_langinfo_codeset=yes |
| 3793 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3794 | echo "configure: failed program was:" >&5 |
| 3795 | cat conftest.$ac_ext >&5 |
| 3796 | rm -rf conftest* |
| 3797 | am_cv_langinfo_codeset=no |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3798 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3799 | rm -f conftest* |
| 3800 | |
| 3801 | fi |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3802 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3803 | echo "$ac_t""$am_cv_langinfo_codeset" 1>&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3804 | if test $am_cv_langinfo_codeset = yes; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3805 | cat >> confdefs.h <<\EOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3806 | #define HAVE_LANGINFO_CODESET 1 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3807 | EOF |
| 3808 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3809 | fi |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3810 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3811 | if test $ac_cv_header_locale_h = yes; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3812 | |
| 3813 | echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6 |
| 3814 | echo "configure:3815: checking for LC_MESSAGES" >&5 |
| 3815 | if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then |
| 3816 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3817 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3818 | cat > conftest.$ac_ext <<EOF |
| 3819 | #line 3820 "configure" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3820 | #include "confdefs.h" |
| 3821 | #include <locale.h> |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3822 | int main() { |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3823 | return LC_MESSAGES |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3824 | ; return 0; } |
| 3825 | EOF |
| 3826 | if { (eval echo configure:3827: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 3827 | rm -rf conftest* |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3828 | am_cv_val_LC_MESSAGES=yes |
| 3829 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3830 | echo "configure: failed program was:" >&5 |
| 3831 | cat conftest.$ac_ext >&5 |
| 3832 | rm -rf conftest* |
| 3833 | am_cv_val_LC_MESSAGES=no |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3834 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3835 | rm -f conftest* |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3836 | fi |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 3837 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3838 | echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6 |
| 3839 | if test $am_cv_val_LC_MESSAGES = yes; then |
| 3840 | cat >> confdefs.h <<\EOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3841 | #define HAVE_LC_MESSAGES 1 |
| 3842 | EOF |
| 3843 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3844 | fi |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3845 | |
| 3846 | fi |
| 3847 | |
| 3848 | for ac_prog in bison |
| 3849 | do |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3850 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3851 | set dummy $ac_prog; ac_word=$2 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3852 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| 3853 | echo "configure:3854: checking for $ac_word" >&5 |
| 3854 | if eval "test \"`echo '$''{'ac_cv_prog_INTLBISON'+set}'`\" = set"; then |
| 3855 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3856 | else |
| 3857 | if test -n "$INTLBISON"; then |
| 3858 | ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test. |
| 3859 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3860 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 3861 | ac_dummy="$PATH" |
| 3862 | for ac_dir in $ac_dummy; do |
| 3863 | test -z "$ac_dir" && ac_dir=. |
| 3864 | if test -f $ac_dir/$ac_word; then |
| 3865 | ac_cv_prog_INTLBISON="$ac_prog" |
| 3866 | break |
| 3867 | fi |
| 3868 | done |
| 3869 | IFS="$ac_save_ifs" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3870 | fi |
| 3871 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3872 | INTLBISON="$ac_cv_prog_INTLBISON" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3873 | if test -n "$INTLBISON"; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3874 | echo "$ac_t""$INTLBISON" 1>&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3875 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3876 | echo "$ac_t""no" 1>&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3877 | fi |
| 3878 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3879 | test -n "$INTLBISON" && break |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3880 | done |
| 3881 | |
| 3882 | if test -z "$INTLBISON"; then |
| 3883 | ac_verc_fail=yes |
| 3884 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3885 | echo $ac_n "checking version of bison""... $ac_c" 1>&6 |
| 3886 | echo "configure:3887: checking version of bison" >&5 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3887 | ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'` |
| 3888 | case $ac_prog_version in |
| 3889 | '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; |
| 3890 | 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*) |
| 3891 | ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; |
| 3892 | *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; |
| 3893 | esac |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3894 | echo "$ac_t""$ac_prog_version" 1>&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3895 | fi |
| 3896 | if test $ac_verc_fail = yes; then |
| 3897 | INTLBISON=: |
| 3898 | fi |
| 3899 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3900 | |
| 3901 | |
| 3902 | |
| 3903 | |
| 3904 | |
| 3905 | |
| 3906 | |
| 3907 | |
| 3908 | |
| 3909 | |
| 3910 | |
| 3911 | |
| 3912 | |
| 3913 | |
| 3914 | echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6 |
| 3915 | echo "configure:3916: checking whether NLS is requested" >&5 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3916 | # Check whether --enable-nls or --disable-nls was given. |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3917 | if test "${enable_nls+set}" = set; then |
| 3918 | enableval="$enable_nls" |
| 3919 | USE_NLS=$enableval |
| 3920 | else |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3921 | USE_NLS=yes |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3922 | fi |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3923 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3924 | echo "$ac_t""$USE_NLS" 1>&6 |
| 3925 | |
| 3926 | |
| 3927 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3928 | BUILD_INCLUDED_LIBINTL=no |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3929 | USE_INCLUDED_LIBINTL=no |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3930 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3931 | LIBINTL= |
| 3932 | LTLIBINTL= |
| 3933 | POSUB= |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3934 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3935 | if test "$USE_NLS" = "yes"; then |
| 3936 | gt_use_preinstalled_gnugettext=no |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3937 | |
| 3938 | echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6 |
| 3939 | echo "configure:3940: checking whether included gettext is requested" >&5 |
| 3940 | # Check whether --with-included-gettext or --without-included-gettext was given. |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3941 | if test "${with_included_gettext+set}" = set; then |
| 3942 | withval="$with_included_gettext" |
| 3943 | nls_cv_force_use_gnu_gettext=$withval |
| 3944 | else |
| 3945 | nls_cv_force_use_gnu_gettext=no |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3946 | fi |
| 3947 | |
| 3948 | echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3949 | |
| 3950 | nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" |
| 3951 | if test "$nls_cv_force_use_gnu_gettext" != "yes"; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3952 | |
| 3953 | |
| 3954 | |
| 3955 | |
| 3956 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3957 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3958 | echo $ac_n "checking for GNU gettext in libc""... $ac_c" 1>&6 |
| 3959 | echo "configure:3960: checking for GNU gettext in libc" >&5 |
| 3960 | if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libc'+set}'`\" = set"; then |
| 3961 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3962 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3963 | cat > conftest.$ac_ext <<EOF |
| 3964 | #line 3965 "configure" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3965 | #include "confdefs.h" |
| 3966 | #include <libintl.h> |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3967 | extern int _nl_msg_cat_cntr; |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3968 | extern int *_nl_domain_bindings; |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3969 | int main() { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3970 | bindtextdomain ("", ""); |
| 3971 | return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3972 | ; return 0; } |
| 3973 | EOF |
| 3974 | if { (eval echo configure:3975: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 3975 | rm -rf conftest* |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3976 | gt_cv_func_gnugettext1_libc=yes |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3977 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3978 | echo "configure: failed program was:" >&5 |
| 3979 | cat conftest.$ac_ext >&5 |
| 3980 | rm -rf conftest* |
| 3981 | gt_cv_func_gnugettext1_libc=no |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3982 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3983 | rm -f conftest* |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3984 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3985 | |
| 3986 | echo "$ac_t""$gt_cv_func_gnugettext1_libc" 1>&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3987 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3988 | if test "$gt_cv_func_gnugettext1_libc" != "yes"; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3989 | |
| 3990 | |
| 3991 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3992 | use_additional=yes |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3993 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3994 | acl_save_prefix="$prefix" |
| 3995 | prefix="$acl_final_prefix" |
| 3996 | acl_save_exec_prefix="$exec_prefix" |
| 3997 | exec_prefix="$acl_final_exec_prefix" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3998 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 3999 | eval additional_includedir=\"$includedir\" |
| 4000 | eval additional_libdir=\"$libdir\" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4001 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4002 | exec_prefix="$acl_save_exec_prefix" |
| 4003 | prefix="$acl_save_prefix" |
| 4004 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4005 | # Check whether --with-libintl-prefix or --without-libintl-prefix was given. |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4006 | if test "${with_libintl_prefix+set}" = set; then |
| 4007 | withval="$with_libintl_prefix" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4008 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4009 | if test "X$withval" = "Xno"; then |
| 4010 | use_additional=no |
| 4011 | else |
| 4012 | if test "X$withval" = "X"; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4013 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4014 | acl_save_prefix="$prefix" |
| 4015 | prefix="$acl_final_prefix" |
| 4016 | acl_save_exec_prefix="$exec_prefix" |
| 4017 | exec_prefix="$acl_final_exec_prefix" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4018 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4019 | eval additional_includedir=\"$includedir\" |
| 4020 | eval additional_libdir=\"$libdir\" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4021 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4022 | exec_prefix="$acl_save_exec_prefix" |
| 4023 | prefix="$acl_save_prefix" |
| 4024 | |
| 4025 | else |
| 4026 | additional_includedir="$withval/include" |
| 4027 | additional_libdir="$withval/lib" |
| 4028 | fi |
| 4029 | fi |
| 4030 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4031 | fi |
| 4032 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4033 | LIBINTL= |
| 4034 | LTLIBINTL= |
| 4035 | INCINTL= |
| 4036 | rpathdirs= |
| 4037 | ltrpathdirs= |
| 4038 | names_already_handled= |
| 4039 | names_next_round='intl ' |
| 4040 | while test -n "$names_next_round"; do |
| 4041 | names_this_round="$names_next_round" |
| 4042 | names_next_round= |
| 4043 | for name in $names_this_round; do |
| 4044 | already_handled= |
| 4045 | for n in $names_already_handled; do |
| 4046 | if test "$n" = "$name"; then |
| 4047 | already_handled=yes |
| 4048 | break |
| 4049 | fi |
| 4050 | done |
| 4051 | if test -z "$already_handled"; then |
| 4052 | names_already_handled="$names_already_handled $name" |
| 4053 | uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` |
| 4054 | eval value=\"\$HAVE_LIB$uppername\" |
| 4055 | if test -n "$value"; then |
| 4056 | if test "$value" = yes; then |
| 4057 | eval value=\"\$LIB$uppername\" |
| 4058 | test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value" |
| 4059 | eval value=\"\$LTLIB$uppername\" |
| 4060 | test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value" |
| 4061 | else |
| 4062 | : |
| 4063 | fi |
| 4064 | else |
| 4065 | found_dir= |
| 4066 | found_la= |
| 4067 | found_so= |
| 4068 | found_a= |
| 4069 | if test $use_additional = yes; then |
| 4070 | if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then |
| 4071 | found_dir="$additional_libdir" |
| 4072 | found_so="$additional_libdir/lib$name.$shlibext" |
| 4073 | if test -f "$additional_libdir/lib$name.la"; then |
| 4074 | found_la="$additional_libdir/lib$name.la" |
| 4075 | fi |
| 4076 | else |
| 4077 | if test -f "$additional_libdir/lib$name.$libext"; then |
| 4078 | found_dir="$additional_libdir" |
| 4079 | found_a="$additional_libdir/lib$name.$libext" |
| 4080 | if test -f "$additional_libdir/lib$name.la"; then |
| 4081 | found_la="$additional_libdir/lib$name.la" |
| 4082 | fi |
| 4083 | fi |
| 4084 | fi |
| 4085 | fi |
| 4086 | if test "X$found_dir" = "X"; then |
| 4087 | for x in $LDFLAGS $LTLIBINTL; do |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4088 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4089 | acl_save_prefix="$prefix" |
| 4090 | prefix="$acl_final_prefix" |
| 4091 | acl_save_exec_prefix="$exec_prefix" |
| 4092 | exec_prefix="$acl_final_exec_prefix" |
| 4093 | eval x=\"$x\" |
| 4094 | exec_prefix="$acl_save_exec_prefix" |
| 4095 | prefix="$acl_save_prefix" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4096 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4097 | case "$x" in |
| 4098 | -L*) |
| 4099 | dir=`echo "X$x" | sed -e 's/^X-L//'` |
| 4100 | if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then |
| 4101 | found_dir="$dir" |
| 4102 | found_so="$dir/lib$name.$shlibext" |
| 4103 | if test -f "$dir/lib$name.la"; then |
| 4104 | found_la="$dir/lib$name.la" |
| 4105 | fi |
| 4106 | else |
| 4107 | if test -f "$dir/lib$name.$libext"; then |
| 4108 | found_dir="$dir" |
| 4109 | found_a="$dir/lib$name.$libext" |
| 4110 | if test -f "$dir/lib$name.la"; then |
| 4111 | found_la="$dir/lib$name.la" |
| 4112 | fi |
| 4113 | fi |
| 4114 | fi |
| 4115 | ;; |
| 4116 | esac |
| 4117 | if test "X$found_dir" != "X"; then |
| 4118 | break |
| 4119 | fi |
| 4120 | done |
| 4121 | fi |
| 4122 | if test "X$found_dir" != "X"; then |
| 4123 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name" |
| 4124 | if test "X$found_so" != "X"; then |
| 4125 | if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then |
| 4126 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
| 4127 | else |
| 4128 | haveit= |
| 4129 | for x in $ltrpathdirs; do |
| 4130 | if test "X$x" = "X$found_dir"; then |
| 4131 | haveit=yes |
| 4132 | break |
| 4133 | fi |
| 4134 | done |
| 4135 | if test -z "$haveit"; then |
| 4136 | ltrpathdirs="$ltrpathdirs $found_dir" |
| 4137 | fi |
| 4138 | if test "$hardcode_direct" = yes; then |
| 4139 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
| 4140 | else |
| 4141 | if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then |
| 4142 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
| 4143 | haveit= |
| 4144 | for x in $rpathdirs; do |
| 4145 | if test "X$x" = "X$found_dir"; then |
| 4146 | haveit=yes |
| 4147 | break |
| 4148 | fi |
| 4149 | done |
| 4150 | if test -z "$haveit"; then |
| 4151 | rpathdirs="$rpathdirs $found_dir" |
| 4152 | fi |
| 4153 | else |
| 4154 | haveit= |
| 4155 | for x in $LDFLAGS $LIBINTL; do |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4156 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4157 | acl_save_prefix="$prefix" |
| 4158 | prefix="$acl_final_prefix" |
| 4159 | acl_save_exec_prefix="$exec_prefix" |
| 4160 | exec_prefix="$acl_final_exec_prefix" |
| 4161 | eval x=\"$x\" |
| 4162 | exec_prefix="$acl_save_exec_prefix" |
| 4163 | prefix="$acl_save_prefix" |
| 4164 | |
| 4165 | if test "X$x" = "X-L$found_dir"; then |
| 4166 | haveit=yes |
| 4167 | break |
| 4168 | fi |
| 4169 | done |
| 4170 | if test -z "$haveit"; then |
| 4171 | LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir" |
| 4172 | fi |
| 4173 | if test "$hardcode_minus_L" != no; then |
| 4174 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
| 4175 | else |
| 4176 | LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" |
| 4177 | fi |
| 4178 | fi |
| 4179 | fi |
| 4180 | fi |
| 4181 | else |
| 4182 | if test "X$found_a" != "X"; then |
| 4183 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a" |
| 4184 | else |
| 4185 | LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name" |
| 4186 | fi |
| 4187 | fi |
| 4188 | additional_includedir= |
| 4189 | case "$found_dir" in |
| 4190 | */lib | */lib/) |
| 4191 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` |
| 4192 | additional_includedir="$basedir/include" |
| 4193 | ;; |
| 4194 | esac |
| 4195 | if test "X$additional_includedir" != "X"; then |
| 4196 | if test "X$additional_includedir" != "X/usr/include"; then |
| 4197 | haveit= |
| 4198 | if test "X$additional_includedir" = "X/usr/local/include"; then |
| 4199 | if test -n "$GCC"; then |
| 4200 | case $host_os in |
| 4201 | linux*) haveit=yes;; |
| 4202 | esac |
| 4203 | fi |
| 4204 | fi |
| 4205 | if test -z "$haveit"; then |
| 4206 | for x in $CPPFLAGS $INCINTL; do |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4207 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4208 | acl_save_prefix="$prefix" |
| 4209 | prefix="$acl_final_prefix" |
| 4210 | acl_save_exec_prefix="$exec_prefix" |
| 4211 | exec_prefix="$acl_final_exec_prefix" |
| 4212 | eval x=\"$x\" |
| 4213 | exec_prefix="$acl_save_exec_prefix" |
| 4214 | prefix="$acl_save_prefix" |
| 4215 | |
| 4216 | if test "X$x" = "X-I$additional_includedir"; then |
| 4217 | haveit=yes |
| 4218 | break |
| 4219 | fi |
| 4220 | done |
| 4221 | if test -z "$haveit"; then |
| 4222 | if test -d "$additional_includedir"; then |
| 4223 | INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir" |
| 4224 | fi |
| 4225 | fi |
| 4226 | fi |
| 4227 | fi |
| 4228 | fi |
| 4229 | if test -n "$found_la"; then |
| 4230 | save_libdir="$libdir" |
| 4231 | case "$found_la" in |
| 4232 | */* | *\\*) . "$found_la" ;; |
| 4233 | *) . "./$found_la" ;; |
| 4234 | esac |
| 4235 | libdir="$save_libdir" |
| 4236 | for dep in $dependency_libs; do |
| 4237 | case "$dep" in |
| 4238 | -L*) |
| 4239 | additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` |
| 4240 | if test "X$additional_libdir" != "X/usr/lib"; then |
| 4241 | haveit= |
| 4242 | if test "X$additional_libdir" = "X/usr/local/lib"; then |
| 4243 | if test -n "$GCC"; then |
| 4244 | case $host_os in |
| 4245 | linux*) haveit=yes;; |
| 4246 | esac |
| 4247 | fi |
| 4248 | fi |
| 4249 | if test -z "$haveit"; then |
| 4250 | haveit= |
| 4251 | for x in $LDFLAGS $LIBINTL; do |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4252 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4253 | acl_save_prefix="$prefix" |
| 4254 | prefix="$acl_final_prefix" |
| 4255 | acl_save_exec_prefix="$exec_prefix" |
| 4256 | exec_prefix="$acl_final_exec_prefix" |
| 4257 | eval x=\"$x\" |
| 4258 | exec_prefix="$acl_save_exec_prefix" |
| 4259 | prefix="$acl_save_prefix" |
| 4260 | |
| 4261 | if test "X$x" = "X-L$additional_libdir"; then |
| 4262 | haveit=yes |
| 4263 | break |
| 4264 | fi |
| 4265 | done |
| 4266 | if test -z "$haveit"; then |
| 4267 | if test -d "$additional_libdir"; then |
| 4268 | LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir" |
| 4269 | fi |
| 4270 | fi |
| 4271 | haveit= |
| 4272 | for x in $LDFLAGS $LTLIBINTL; do |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4273 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4274 | acl_save_prefix="$prefix" |
| 4275 | prefix="$acl_final_prefix" |
| 4276 | acl_save_exec_prefix="$exec_prefix" |
| 4277 | exec_prefix="$acl_final_exec_prefix" |
| 4278 | eval x=\"$x\" |
| 4279 | exec_prefix="$acl_save_exec_prefix" |
| 4280 | prefix="$acl_save_prefix" |
| 4281 | |
| 4282 | if test "X$x" = "X-L$additional_libdir"; then |
| 4283 | haveit=yes |
| 4284 | break |
| 4285 | fi |
| 4286 | done |
| 4287 | if test -z "$haveit"; then |
| 4288 | if test -d "$additional_libdir"; then |
| 4289 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir" |
| 4290 | fi |
| 4291 | fi |
| 4292 | fi |
| 4293 | fi |
| 4294 | ;; |
| 4295 | -R*) |
| 4296 | dir=`echo "X$dep" | sed -e 's/^X-R//'` |
| 4297 | if test "$enable_rpath" != no; then |
| 4298 | haveit= |
| 4299 | for x in $rpathdirs; do |
| 4300 | if test "X$x" = "X$dir"; then |
| 4301 | haveit=yes |
| 4302 | break |
| 4303 | fi |
| 4304 | done |
| 4305 | if test -z "$haveit"; then |
| 4306 | rpathdirs="$rpathdirs $dir" |
| 4307 | fi |
| 4308 | haveit= |
| 4309 | for x in $ltrpathdirs; do |
| 4310 | if test "X$x" = "X$dir"; then |
| 4311 | haveit=yes |
| 4312 | break |
| 4313 | fi |
| 4314 | done |
| 4315 | if test -z "$haveit"; then |
| 4316 | ltrpathdirs="$ltrpathdirs $dir" |
| 4317 | fi |
| 4318 | fi |
| 4319 | ;; |
| 4320 | -l*) |
| 4321 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` |
| 4322 | ;; |
| 4323 | *.la) |
| 4324 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` |
| 4325 | ;; |
| 4326 | *) |
| 4327 | LIBINTL="${LIBINTL}${LIBINTL:+ }$dep" |
| 4328 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep" |
| 4329 | ;; |
| 4330 | esac |
| 4331 | done |
| 4332 | fi |
| 4333 | else |
| 4334 | LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" |
| 4335 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name" |
| 4336 | fi |
| 4337 | fi |
| 4338 | fi |
| 4339 | done |
| 4340 | done |
| 4341 | if test "X$rpathdirs" != "X"; then |
| 4342 | if test -n "$hardcode_libdir_separator"; then |
| 4343 | alldirs= |
| 4344 | for found_dir in $rpathdirs; do |
| 4345 | alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" |
| 4346 | done |
| 4347 | acl_save_libdir="$libdir" |
| 4348 | libdir="$alldirs" |
| 4349 | eval flag=\"$hardcode_libdir_flag_spec\" |
| 4350 | libdir="$acl_save_libdir" |
| 4351 | LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" |
| 4352 | else |
| 4353 | for found_dir in $rpathdirs; do |
| 4354 | acl_save_libdir="$libdir" |
| 4355 | libdir="$found_dir" |
| 4356 | eval flag=\"$hardcode_libdir_flag_spec\" |
| 4357 | libdir="$acl_save_libdir" |
| 4358 | LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" |
| 4359 | done |
| 4360 | fi |
| 4361 | fi |
| 4362 | if test "X$ltrpathdirs" != "X"; then |
| 4363 | for found_dir in $ltrpathdirs; do |
| 4364 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir" |
| 4365 | done |
| 4366 | fi |
| 4367 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4368 | echo $ac_n "checking for GNU gettext in libintl""... $ac_c" 1>&6 |
| 4369 | echo "configure:4370: checking for GNU gettext in libintl" >&5 |
| 4370 | if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libintl'+set}'`\" = set"; then |
| 4371 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4372 | else |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4373 | gt_save_CPPFLAGS="$CPPFLAGS" |
| 4374 | CPPFLAGS="$CPPFLAGS $INCINTL" |
| 4375 | gt_save_LIBS="$LIBS" |
| 4376 | LIBS="$LIBS $LIBINTL" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4377 | cat > conftest.$ac_ext <<EOF |
| 4378 | #line 4379 "configure" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4379 | #include "confdefs.h" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4380 | #include <libintl.h> |
| 4381 | extern int _nl_msg_cat_cntr; |
| 4382 | extern |
| 4383 | #ifdef __cplusplus |
| 4384 | "C" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4385 | #endif |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4386 | const char *_nl_expand_alias (); |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4387 | int main() { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4388 | bindtextdomain ("", ""); |
| 4389 | return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4390 | ; return 0; } |
| 4391 | EOF |
| 4392 | if { (eval echo configure:4393: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 4393 | rm -rf conftest* |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4394 | gt_cv_func_gnugettext1_libintl=yes |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4395 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4396 | echo "configure: failed program was:" >&5 |
| 4397 | cat conftest.$ac_ext >&5 |
| 4398 | rm -rf conftest* |
| 4399 | gt_cv_func_gnugettext1_libintl=no |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4400 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4401 | rm -f conftest* |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4402 | if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then |
| 4403 | LIBS="$LIBS $LIBICONV" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4404 | cat > conftest.$ac_ext <<EOF |
| 4405 | #line 4406 "configure" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4406 | #include "confdefs.h" |
| 4407 | #include <libintl.h> |
| 4408 | extern int _nl_msg_cat_cntr; |
| 4409 | extern |
| 4410 | #ifdef __cplusplus |
| 4411 | "C" |
| 4412 | #endif |
| 4413 | const char *_nl_expand_alias (); |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4414 | int main() { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4415 | bindtextdomain ("", ""); |
| 4416 | return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4417 | ; return 0; } |
| 4418 | EOF |
| 4419 | if { (eval echo configure:4420: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 4420 | rm -rf conftest* |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4421 | LIBINTL="$LIBINTL $LIBICONV" |
| 4422 | LTLIBINTL="$LTLIBINTL $LTLIBICONV" |
| 4423 | gt_cv_func_gnugettext1_libintl=yes |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4424 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4425 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4426 | echo "configure: failed program was:" >&5 |
| 4427 | cat conftest.$ac_ext >&5 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4428 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4429 | rm -f conftest* |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4430 | fi |
| 4431 | CPPFLAGS="$gt_save_CPPFLAGS" |
| 4432 | LIBS="$gt_save_LIBS" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4433 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4434 | |
| 4435 | echo "$ac_t""$gt_cv_func_gnugettext1_libintl" 1>&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4436 | fi |
| 4437 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4438 | if test "$gt_cv_func_gnugettext1_libc" = "yes" \ |
| 4439 | || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \ |
| 4440 | && test "$PACKAGE" != gettext; }; then |
| 4441 | gt_use_preinstalled_gnugettext=yes |
| 4442 | else |
| 4443 | LIBINTL= |
| 4444 | LTLIBINTL= |
| 4445 | INCINTL= |
| 4446 | fi |
| 4447 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4448 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4449 | if test "$gt_use_preinstalled_gnugettext" != "yes"; then |
| 4450 | nls_cv_use_gnu_gettext=yes |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4451 | fi |
| 4452 | fi |
| 4453 | |
| 4454 | if test "$nls_cv_use_gnu_gettext" = "yes"; then |
| 4455 | INTLOBJS="\$(GETTOBJS)" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4456 | BUILD_INCLUDED_LIBINTL=yes |
| 4457 | USE_INCLUDED_LIBINTL=yes |
| 4458 | LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV" |
| 4459 | LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV" |
| 4460 | LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'` |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4461 | fi |
| 4462 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4463 | if test "$gt_use_preinstalled_gnugettext" = "yes" \ |
| 4464 | || test "$nls_cv_use_gnu_gettext" = "yes"; then |
| 4465 | CATOBJEXT=.gmo |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4466 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4467 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4468 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4469 | if test "$gt_use_preinstalled_gnugettext" = "yes" \ |
| 4470 | || test "$nls_cv_use_gnu_gettext" = "yes"; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4471 | cat >> confdefs.h <<\EOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4472 | #define ENABLE_NLS 1 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4473 | EOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4474 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4475 | else |
| 4476 | USE_NLS=no |
| 4477 | fi |
| 4478 | fi |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4479 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4480 | if test "$USE_NLS" = "yes"; then |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4481 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4482 | if test "$gt_use_preinstalled_gnugettext" = "yes"; then |
| 4483 | if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4484 | echo $ac_n "checking how to link with libintl""... $ac_c" 1>&6 |
| 4485 | echo "configure:4486: checking how to link with libintl" >&5 |
| 4486 | echo "$ac_t""$LIBINTL" 1>&6 |
| 4487 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4488 | for element in $INCINTL; do |
| 4489 | haveit= |
| 4490 | for x in $CPPFLAGS; do |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4491 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4492 | acl_save_prefix="$prefix" |
| 4493 | prefix="$acl_final_prefix" |
| 4494 | acl_save_exec_prefix="$exec_prefix" |
| 4495 | exec_prefix="$acl_final_exec_prefix" |
| 4496 | eval x=\"$x\" |
| 4497 | exec_prefix="$acl_save_exec_prefix" |
| 4498 | prefix="$acl_save_prefix" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4499 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4500 | if test "X$x" = "X$element"; then |
| 4501 | haveit=yes |
| 4502 | break |
| 4503 | fi |
| 4504 | done |
| 4505 | if test -z "$haveit"; then |
| 4506 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" |
| 4507 | fi |
| 4508 | done |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4509 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4510 | fi |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4511 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4512 | cat >> confdefs.h <<\EOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4513 | #define HAVE_GETTEXT 1 |
| 4514 | EOF |
| 4515 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4516 | cat >> confdefs.h <<\EOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4517 | #define HAVE_DCGETTEXT 1 |
| 4518 | EOF |
| 4519 | |
| 4520 | fi |
| 4521 | |
| 4522 | POSUB=po |
| 4523 | fi |
| 4524 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4525 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4526 | if test "$PACKAGE" = gettext; then |
| 4527 | BUILD_INCLUDED_LIBINTL=yes |
| 4528 | fi |
| 4529 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4530 | |
| 4531 | |
| 4532 | |
| 4533 | |
| 4534 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4535 | nls_cv_header_intl= |
| 4536 | nls_cv_header_libgt= |
| 4537 | |
| 4538 | DATADIRNAME=share |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4539 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4540 | |
| 4541 | INSTOBJEXT=.mo |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4542 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4543 | |
| 4544 | GENCAT=gencat |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4545 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4546 | |
| 4547 | INTL_LIBTOOL_SUFFIX_PREFIX= |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4548 | |
| 4549 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4550 | |
| 4551 | INTLLIBS="$LIBINTL" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4552 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 4553 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4554 | |
| 4555 | |
| 4556 | |
| 4557 | |
| 4558 | |
| 4559 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 |
| 4560 | echo "configure:4561: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
| 4561 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` |
| 4562 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then |
| 4563 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4564 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4565 | cat > conftestmake <<\EOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4566 | all: |
| 4567 | @echo 'ac_maketemp="${MAKE}"' |
| 4568 | EOF |
| 4569 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4570 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4571 | if test -n "$ac_maketemp"; then |
| 4572 | eval ac_cv_prog_make_${ac_make}_set=yes |
| 4573 | else |
| 4574 | eval ac_cv_prog_make_${ac_make}_set=no |
| 4575 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4576 | rm -f conftestmake |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4577 | fi |
| 4578 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4579 | echo "$ac_t""yes" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4580 | SET_MAKE= |
| 4581 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4582 | echo "$ac_t""no" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4583 | SET_MAKE="MAKE=${MAKE-make}" |
| 4584 | fi |
| 4585 | |
| 4586 | # Extract the first word of "ln", so it can be a program name with args. |
| 4587 | set dummy ln; ac_word=$2 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4588 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| 4589 | echo "configure:4590: checking for $ac_word" >&5 |
| 4590 | if eval "test \"`echo '$''{'ac_cv_path_LN'+set}'`\" = set"; then |
| 4591 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4592 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4593 | case "$LN" in |
| 4594 | /*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4595 | ac_cv_path_LN="$LN" # Let the user override the test with a path. |
| 4596 | ;; |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4597 | ?:/*) |
| 4598 | ac_cv_path_LN="$LN" # Let the user override the test with a dos path. |
| 4599 | ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4600 | *) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4601 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 4602 | ac_dummy="$PATH" |
| 4603 | for ac_dir in $ac_dummy; do |
| 4604 | test -z "$ac_dir" && ac_dir=. |
| 4605 | if test -f $ac_dir/$ac_word; then |
| 4606 | ac_cv_path_LN="$ac_dir/$ac_word" |
| 4607 | break |
| 4608 | fi |
| 4609 | done |
| 4610 | IFS="$ac_save_ifs" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4611 | test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln" |
| 4612 | ;; |
| 4613 | esac |
| 4614 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4615 | LN="$ac_cv_path_LN" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4616 | if test -n "$LN"; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4617 | echo "$ac_t""$LN" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4618 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4619 | echo "$ac_t""no" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4620 | fi |
| 4621 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4622 | echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 |
| 4623 | echo "configure:4624: checking whether ln -s works" >&5 |
| 4624 | if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then |
| 4625 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 4626 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4627 | rm -f conftestdata |
| 4628 | if ln -s X conftestdata 2>/dev/null |
| 4629 | then |
| 4630 | rm -f conftestdata |
| 4631 | ac_cv_prog_LN_S="ln -s" |
| 4632 | else |
| 4633 | ac_cv_prog_LN_S=ln |
| 4634 | fi |
| 4635 | fi |
| 4636 | LN_S="$ac_cv_prog_LN_S" |
| 4637 | if test "$ac_cv_prog_LN_S" = "ln -s"; then |
| 4638 | echo "$ac_t""yes" 1>&6 |
| 4639 | else |
| 4640 | echo "$ac_t""no" 1>&6 |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 4641 | fi |
| 4642 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4643 | # Extract the first word of "mv", so it can be a program name with args. |
| 4644 | set dummy mv; ac_word=$2 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4645 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| 4646 | echo "configure:4647: checking for $ac_word" >&5 |
| 4647 | if eval "test \"`echo '$''{'ac_cv_path_MV'+set}'`\" = set"; then |
| 4648 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4649 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4650 | case "$MV" in |
| 4651 | /*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4652 | ac_cv_path_MV="$MV" # Let the user override the test with a path. |
| 4653 | ;; |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4654 | ?:/*) |
| 4655 | ac_cv_path_MV="$MV" # Let the user override the test with a dos path. |
| 4656 | ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4657 | *) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4658 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 4659 | ac_dummy="$PATH" |
| 4660 | for ac_dir in $ac_dummy; do |
| 4661 | test -z "$ac_dir" && ac_dir=. |
| 4662 | if test -f $ac_dir/$ac_word; then |
| 4663 | ac_cv_path_MV="$ac_dir/$ac_word" |
| 4664 | break |
| 4665 | fi |
| 4666 | done |
| 4667 | IFS="$ac_save_ifs" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4668 | test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv" |
| 4669 | ;; |
| 4670 | esac |
| 4671 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4672 | MV="$ac_cv_path_MV" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4673 | if test -n "$MV"; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4674 | echo "$ac_t""$MV" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4675 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4676 | echo "$ac_t""no" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4677 | fi |
| 4678 | |
| 4679 | # Extract the first word of "cp", so it can be a program name with args. |
| 4680 | set dummy cp; ac_word=$2 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4681 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| 4682 | echo "configure:4683: checking for $ac_word" >&5 |
| 4683 | if eval "test \"`echo '$''{'ac_cv_path_CP'+set}'`\" = set"; then |
| 4684 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4685 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4686 | case "$CP" in |
| 4687 | /*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4688 | ac_cv_path_CP="$CP" # Let the user override the test with a path. |
| 4689 | ;; |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4690 | ?:/*) |
| 4691 | ac_cv_path_CP="$CP" # Let the user override the test with a dos path. |
| 4692 | ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4693 | *) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4694 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 4695 | ac_dummy="$PATH" |
| 4696 | for ac_dir in $ac_dummy; do |
| 4697 | test -z "$ac_dir" && ac_dir=. |
| 4698 | if test -f $ac_dir/$ac_word; then |
| 4699 | ac_cv_path_CP="$ac_dir/$ac_word" |
| 4700 | break |
| 4701 | fi |
| 4702 | done |
| 4703 | IFS="$ac_save_ifs" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4704 | test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp" |
| 4705 | ;; |
| 4706 | esac |
| 4707 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4708 | CP="$ac_cv_path_CP" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4709 | if test -n "$CP"; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4710 | echo "$ac_t""$CP" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4711 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4712 | echo "$ac_t""no" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4713 | fi |
| 4714 | |
| 4715 | # Extract the first word of "rm", so it can be a program name with args. |
| 4716 | set dummy rm; ac_word=$2 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4717 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| 4718 | echo "configure:4719: checking for $ac_word" >&5 |
| 4719 | if eval "test \"`echo '$''{'ac_cv_path_RM'+set}'`\" = set"; then |
| 4720 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4721 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4722 | case "$RM" in |
| 4723 | /*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4724 | ac_cv_path_RM="$RM" # Let the user override the test with a path. |
| 4725 | ;; |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4726 | ?:/*) |
| 4727 | ac_cv_path_RM="$RM" # Let the user override the test with a dos path. |
| 4728 | ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4729 | *) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4730 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 4731 | ac_dummy="$PATH" |
| 4732 | for ac_dir in $ac_dummy; do |
| 4733 | test -z "$ac_dir" && ac_dir=. |
| 4734 | if test -f $ac_dir/$ac_word; then |
| 4735 | ac_cv_path_RM="$ac_dir/$ac_word" |
| 4736 | break |
| 4737 | fi |
| 4738 | done |
| 4739 | IFS="$ac_save_ifs" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4740 | test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm" |
| 4741 | ;; |
| 4742 | esac |
| 4743 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4744 | RM="$ac_cv_path_RM" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4745 | if test -n "$RM"; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4746 | echo "$ac_t""$RM" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4747 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4748 | echo "$ac_t""no" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4749 | fi |
| 4750 | |
| 4751 | # Extract the first word of "chmod", so it can be a program name with args. |
| 4752 | set dummy chmod; ac_word=$2 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4753 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| 4754 | echo "configure:4755: checking for $ac_word" >&5 |
| 4755 | if eval "test \"`echo '$''{'ac_cv_path_CHMOD'+set}'`\" = set"; then |
| 4756 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4757 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4758 | case "$CHMOD" in |
| 4759 | /*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4760 | ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path. |
| 4761 | ;; |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4762 | ?:/*) |
| 4763 | ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a dos path. |
| 4764 | ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4765 | *) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4766 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 4767 | ac_dummy="$PATH" |
| 4768 | for ac_dir in $ac_dummy; do |
| 4769 | test -z "$ac_dir" && ac_dir=. |
| 4770 | if test -f $ac_dir/$ac_word; then |
| 4771 | ac_cv_path_CHMOD="$ac_dir/$ac_word" |
| 4772 | break |
| 4773 | fi |
| 4774 | done |
| 4775 | IFS="$ac_save_ifs" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4776 | test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":" |
| 4777 | ;; |
| 4778 | esac |
| 4779 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4780 | CHMOD="$ac_cv_path_CHMOD" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4781 | if test -n "$CHMOD"; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4782 | echo "$ac_t""$CHMOD" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4783 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4784 | echo "$ac_t""no" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4785 | fi |
| 4786 | |
| 4787 | # Extract the first word of "awk", so it can be a program name with args. |
| 4788 | set dummy awk; ac_word=$2 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4789 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| 4790 | echo "configure:4791: checking for $ac_word" >&5 |
| 4791 | if eval "test \"`echo '$''{'ac_cv_path_AWK'+set}'`\" = set"; then |
| 4792 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4793 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4794 | case "$AWK" in |
| 4795 | /*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4796 | ac_cv_path_AWK="$AWK" # Let the user override the test with a path. |
| 4797 | ;; |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4798 | ?:/*) |
| 4799 | ac_cv_path_AWK="$AWK" # Let the user override the test with a dos path. |
| 4800 | ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4801 | *) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4802 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 4803 | ac_dummy="$PATH" |
| 4804 | for ac_dir in $ac_dummy; do |
| 4805 | test -z "$ac_dir" && ac_dir=. |
| 4806 | if test -f $ac_dir/$ac_word; then |
| 4807 | ac_cv_path_AWK="$ac_dir/$ac_word" |
| 4808 | break |
| 4809 | fi |
| 4810 | done |
| 4811 | IFS="$ac_save_ifs" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4812 | test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="awk" |
| 4813 | ;; |
| 4814 | esac |
| 4815 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4816 | AWK="$ac_cv_path_AWK" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4817 | if test -n "$AWK"; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4818 | echo "$ac_t""$AWK" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4819 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4820 | echo "$ac_t""no" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4821 | fi |
| 4822 | |
| 4823 | # Extract the first word of "sed", so it can be a program name with args. |
| 4824 | set dummy sed; ac_word=$2 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4825 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| 4826 | echo "configure:4827: checking for $ac_word" >&5 |
| 4827 | if eval "test \"`echo '$''{'ac_cv_path_SED'+set}'`\" = set"; then |
| 4828 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4829 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4830 | case "$SED" in |
| 4831 | /*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4832 | ac_cv_path_SED="$SED" # Let the user override the test with a path. |
| 4833 | ;; |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4834 | ?:/*) |
| 4835 | ac_cv_path_SED="$SED" # Let the user override the test with a dos path. |
| 4836 | ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4837 | *) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4838 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 4839 | ac_dummy="$PATH" |
| 4840 | for ac_dir in $ac_dummy; do |
| 4841 | test -z "$ac_dir" && ac_dir=. |
| 4842 | if test -f $ac_dir/$ac_word; then |
| 4843 | ac_cv_path_SED="$ac_dir/$ac_word" |
| 4844 | break |
| 4845 | fi |
| 4846 | done |
| 4847 | IFS="$ac_save_ifs" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4848 | test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed" |
| 4849 | ;; |
| 4850 | esac |
| 4851 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4852 | SED="$ac_cv_path_SED" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4853 | if test -n "$SED"; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4854 | echo "$ac_t""$SED" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4855 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4856 | echo "$ac_t""no" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4857 | fi |
| 4858 | |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 4859 | # Extract the first word of "perl", so it can be a program name with args. |
| 4860 | set dummy perl; ac_word=$2 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4861 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| 4862 | echo "configure:4863: checking for $ac_word" >&5 |
| 4863 | if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then |
| 4864 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 4865 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4866 | case "$PERL" in |
| 4867 | /*) |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 4868 | ac_cv_path_PERL="$PERL" # Let the user override the test with a path. |
| 4869 | ;; |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4870 | ?:/*) |
| 4871 | ac_cv_path_PERL="$PERL" # Let the user override the test with a dos path. |
| 4872 | ;; |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 4873 | *) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4874 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 4875 | ac_dummy="$PATH" |
| 4876 | for ac_dir in $ac_dummy; do |
| 4877 | test -z "$ac_dir" && ac_dir=. |
| 4878 | if test -f $ac_dir/$ac_word; then |
| 4879 | ac_cv_path_PERL="$ac_dir/$ac_word" |
| 4880 | break |
| 4881 | fi |
| 4882 | done |
| 4883 | IFS="$ac_save_ifs" |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 4884 | test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl" |
| 4885 | ;; |
| 4886 | esac |
| 4887 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4888 | PERL="$ac_cv_path_PERL" |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 4889 | if test -n "$PERL"; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4890 | echo "$ac_t""$PERL" 1>&6 |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 4891 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4892 | echo "$ac_t""no" 1>&6 |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 4893 | fi |
| 4894 | |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 4895 | # Extract the first word of "ldconfig", so it can be a program name with args. |
| 4896 | set dummy ldconfig; ac_word=$2 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4897 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| 4898 | echo "configure:4899: checking for $ac_word" >&5 |
| 4899 | if eval "test \"`echo '$''{'ac_cv_path_LDCONFIG'+set}'`\" = set"; then |
| 4900 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 4901 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4902 | case "$LDCONFIG" in |
| 4903 | /*) |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 4904 | ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path. |
| 4905 | ;; |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4906 | ?:/*) |
| 4907 | ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a dos path. |
| 4908 | ;; |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 4909 | *) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4910 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 4911 | ac_dummy="$PATH" |
| 4912 | for ac_dir in $ac_dummy; do |
| 4913 | test -z "$ac_dir" && ac_dir=. |
| 4914 | if test -f $ac_dir/$ac_word; then |
| 4915 | ac_cv_path_LDCONFIG="$ac_dir/$ac_word" |
| 4916 | break |
| 4917 | fi |
| 4918 | done |
| 4919 | IFS="$ac_save_ifs" |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 4920 | test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":" |
| 4921 | ;; |
| 4922 | esac |
| 4923 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4924 | LDCONFIG="$ac_cv_path_LDCONFIG" |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 4925 | if test -n "$LDCONFIG"; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4926 | echo "$ac_t""$LDCONFIG" 1>&6 |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 4927 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4928 | echo "$ac_t""no" 1>&6 |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 4929 | fi |
| 4930 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4931 | echo $ac_n "checking build system type""... $ac_c" 1>&6 |
| 4932 | echo "configure:4933: checking build system type" >&5 |
| 4933 | |
| 4934 | build_alias=$build |
| 4935 | case "$build_alias" in |
| 4936 | NONE) |
| 4937 | case $nonopt in |
| 4938 | NONE) build_alias=$host_alias ;; |
| 4939 | *) build_alias=$nonopt ;; |
| 4940 | esac ;; |
| 4941 | esac |
| 4942 | |
| 4943 | build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` |
| 4944 | build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
| 4945 | build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
| 4946 | build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
| 4947 | echo "$ac_t""$build" 1>&6 |
| 4948 | |
| 4949 | if test $host != $build; then |
| 4950 | ac_tool_prefix=${host_alias}- |
| 4951 | else |
| 4952 | ac_tool_prefix= |
| 4953 | fi |
| 4954 | |
| 4955 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4956 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4957 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| 4958 | echo "configure:4959: checking for $ac_word" >&5 |
| 4959 | if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then |
| 4960 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4961 | else |
| 4962 | if test -n "$AR"; then |
| 4963 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 4964 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4965 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 4966 | ac_dummy="$PATH" |
| 4967 | for ac_dir in $ac_dummy; do |
| 4968 | test -z "$ac_dir" && ac_dir=. |
| 4969 | if test -f $ac_dir/$ac_word; then |
| 4970 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
| 4971 | break |
| 4972 | fi |
| 4973 | done |
| 4974 | IFS="$ac_save_ifs" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4975 | fi |
| 4976 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4977 | AR="$ac_cv_prog_AR" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4978 | if test -n "$AR"; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4979 | echo "$ac_t""$AR" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4980 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4981 | echo "$ac_t""no" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4982 | fi |
| 4983 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4984 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4985 | if test -z "$ac_cv_prog_AR"; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4986 | if test -n "$ac_tool_prefix"; then |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4987 | # Extract the first word of "ar", so it can be a program name with args. |
| 4988 | set dummy ar; ac_word=$2 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4989 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| 4990 | echo "configure:4991: checking for $ac_word" >&5 |
| 4991 | if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then |
| 4992 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4993 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4994 | if test -n "$AR"; then |
| 4995 | ac_cv_prog_AR="$AR" # Let the user override the test. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4996 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4997 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 4998 | ac_dummy="$PATH" |
| 4999 | for ac_dir in $ac_dummy; do |
| 5000 | test -z "$ac_dir" && ac_dir=. |
| 5001 | if test -f $ac_dir/$ac_word; then |
| 5002 | ac_cv_prog_AR="ar" |
| 5003 | break |
| 5004 | fi |
| 5005 | done |
| 5006 | IFS="$ac_save_ifs" |
| 5007 | test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5008 | fi |
| 5009 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5010 | AR="$ac_cv_prog_AR" |
| 5011 | if test -n "$AR"; then |
| 5012 | echo "$ac_t""$AR" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5013 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5014 | echo "$ac_t""no" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5015 | fi |
| 5016 | |
| 5017 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5018 | AR="ar" |
| 5019 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5020 | fi |
| 5021 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5022 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5023 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5024 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| 5025 | echo "configure:5026: checking for $ac_word" >&5 |
| 5026 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
| 5027 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5028 | else |
| 5029 | if test -n "$RANLIB"; then |
| 5030 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 5031 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5032 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 5033 | ac_dummy="$PATH" |
| 5034 | for ac_dir in $ac_dummy; do |
| 5035 | test -z "$ac_dir" && ac_dir=. |
| 5036 | if test -f $ac_dir/$ac_word; then |
| 5037 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 5038 | break |
| 5039 | fi |
| 5040 | done |
| 5041 | IFS="$ac_save_ifs" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5042 | fi |
| 5043 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5044 | RANLIB="$ac_cv_prog_RANLIB" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5045 | if test -n "$RANLIB"; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5046 | echo "$ac_t""$RANLIB" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5047 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5048 | echo "$ac_t""no" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5049 | fi |
| 5050 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5051 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5052 | if test -z "$ac_cv_prog_RANLIB"; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5053 | if test -n "$ac_tool_prefix"; then |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5054 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 5055 | set dummy ranlib; ac_word=$2 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5056 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| 5057 | echo "configure:5058: checking for $ac_word" >&5 |
| 5058 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
| 5059 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5060 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5061 | if test -n "$RANLIB"; then |
| 5062 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5063 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5064 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 5065 | ac_dummy="$PATH" |
| 5066 | for ac_dir in $ac_dummy; do |
| 5067 | test -z "$ac_dir" && ac_dir=. |
| 5068 | if test -f $ac_dir/$ac_word; then |
| 5069 | ac_cv_prog_RANLIB="ranlib" |
| 5070 | break |
| 5071 | fi |
| 5072 | done |
| 5073 | IFS="$ac_save_ifs" |
| 5074 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5075 | fi |
| 5076 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5077 | RANLIB="$ac_cv_prog_RANLIB" |
| 5078 | if test -n "$RANLIB"; then |
| 5079 | echo "$ac_t""$RANLIB" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5080 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5081 | echo "$ac_t""no" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5082 | fi |
| 5083 | |
| 5084 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5085 | RANLIB=":" |
| 5086 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5087 | fi |
| 5088 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5089 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5090 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5091 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| 5092 | echo "configure:5093: checking for $ac_word" >&5 |
| 5093 | if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then |
| 5094 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5095 | else |
| 5096 | if test -n "$STRIP"; then |
| 5097 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 5098 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5099 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 5100 | ac_dummy="$PATH" |
| 5101 | for ac_dir in $ac_dummy; do |
| 5102 | test -z "$ac_dir" && ac_dir=. |
| 5103 | if test -f $ac_dir/$ac_word; then |
| 5104 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
| 5105 | break |
| 5106 | fi |
| 5107 | done |
| 5108 | IFS="$ac_save_ifs" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5109 | fi |
| 5110 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5111 | STRIP="$ac_cv_prog_STRIP" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5112 | if test -n "$STRIP"; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5113 | echo "$ac_t""$STRIP" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5114 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5115 | echo "$ac_t""no" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5116 | fi |
| 5117 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5118 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5119 | if test -z "$ac_cv_prog_STRIP"; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5120 | if test -n "$ac_tool_prefix"; then |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5121 | # Extract the first word of "strip", so it can be a program name with args. |
| 5122 | set dummy strip; ac_word=$2 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5123 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| 5124 | echo "configure:5125: checking for $ac_word" >&5 |
| 5125 | if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then |
| 5126 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5127 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5128 | if test -n "$STRIP"; then |
| 5129 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5130 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5131 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 5132 | ac_dummy="$PATH" |
| 5133 | for ac_dir in $ac_dummy; do |
| 5134 | test -z "$ac_dir" && ac_dir=. |
| 5135 | if test -f $ac_dir/$ac_word; then |
| 5136 | ac_cv_prog_STRIP="strip" |
| 5137 | break |
| 5138 | fi |
| 5139 | done |
| 5140 | IFS="$ac_save_ifs" |
| 5141 | test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5142 | fi |
| 5143 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5144 | STRIP="$ac_cv_prog_STRIP" |
| 5145 | if test -n "$STRIP"; then |
| 5146 | echo "$ac_t""$STRIP" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5147 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5148 | echo "$ac_t""no" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5149 | fi |
| 5150 | |
| 5151 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5152 | STRIP=":" |
| 5153 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5154 | fi |
| 5155 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5156 | # Find a good install program. We prefer a C program (faster), |
| 5157 | # so one script is as good as another. But avoid the broken or |
| 5158 | # incompatible versions: |
| 5159 | # SysV /etc/install, /usr/sbin/install |
| 5160 | # SunOS /usr/etc/install |
| 5161 | # IRIX /sbin/install |
| 5162 | # AIX /bin/install |
Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame] | 5163 | # 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] | 5164 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 5165 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 5166 | # ./install, which can be erroneously created by make from ./install.sh. |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5167 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 |
| 5168 | echo "configure:5169: checking for a BSD compatible install" >&5 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5169 | if test -z "$INSTALL"; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5170 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then |
| 5171 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5172 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5173 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5174 | for ac_dir in $PATH; do |
| 5175 | # Account for people who put trailing slashes in PATH elements. |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5176 | case "$ac_dir/" in |
| 5177 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5178 | *) |
| 5179 | # 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] | 5180 | # Don't use installbsd from OSF since it installs stuff as root |
| 5181 | # by default. |
| 5182 | for ac_prog in ginstall scoinst install; do |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5183 | if test -f $ac_dir/$ac_prog; then |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5184 | if test $ac_prog = install && |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5185 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5186 | # AIX install. It has an incompatible calling convention. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5187 | : |
| 5188 | else |
| 5189 | ac_cv_path_install="$ac_dir/$ac_prog -c" |
| 5190 | break 2 |
| 5191 | fi |
| 5192 | fi |
| 5193 | done |
| 5194 | ;; |
| 5195 | esac |
| 5196 | done |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5197 | IFS="$ac_save_IFS" |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 5198 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5199 | fi |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 5200 | if test "${ac_cv_path_install+set}" = set; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5201 | INSTALL="$ac_cv_path_install" |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 5202 | else |
| 5203 | # As a last resort, use the slow shell script. We don't cache a |
| 5204 | # path for INSTALL within a source directory, because that will |
| 5205 | # break other packages using the cache if that directory is |
| 5206 | # removed, or if the path is relative. |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5207 | INSTALL="$ac_install_sh" |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 5208 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5209 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5210 | echo "$ac_t""$INSTALL" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5211 | |
| 5212 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 5213 | # It thinks the first close brace ends the variable substitution. |
| 5214 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 5215 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5216 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' |
Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame] | 5217 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5218 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 5219 | |
Theodore Ts'o | 6c13352 | 1999-07-03 20:37:03 +0000 | [diff] [blame] | 5220 | # See if we need a separate native compiler. |
| 5221 | if test $cross_compiling = no; then |
| 5222 | BUILD_CC="$CC" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5223 | |
Theodore Ts'o | 6c13352 | 1999-07-03 20:37:03 +0000 | [diff] [blame] | 5224 | else |
| 5225 | for ac_prog in gcc cc |
| 5226 | do |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5227 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
Theodore Ts'o | 6c13352 | 1999-07-03 20:37:03 +0000 | [diff] [blame] | 5228 | set dummy $ac_prog; ac_word=$2 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5229 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
| 5230 | echo "configure:5231: checking for $ac_word" >&5 |
| 5231 | if eval "test \"`echo '$''{'ac_cv_prog_BUILD_CC'+set}'`\" = set"; then |
| 5232 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | 6c13352 | 1999-07-03 20:37:03 +0000 | [diff] [blame] | 5233 | else |
| 5234 | if test -n "$BUILD_CC"; then |
| 5235 | ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. |
| 5236 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5237 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
| 5238 | ac_dummy="$PATH" |
| 5239 | for ac_dir in $ac_dummy; do |
| 5240 | test -z "$ac_dir" && ac_dir=. |
| 5241 | if test -f $ac_dir/$ac_word; then |
| 5242 | ac_cv_prog_BUILD_CC="$ac_prog" |
| 5243 | break |
| 5244 | fi |
| 5245 | done |
| 5246 | IFS="$ac_save_ifs" |
Theodore Ts'o | 6c13352 | 1999-07-03 20:37:03 +0000 | [diff] [blame] | 5247 | fi |
| 5248 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5249 | BUILD_CC="$ac_cv_prog_BUILD_CC" |
Theodore Ts'o | 6c13352 | 1999-07-03 20:37:03 +0000 | [diff] [blame] | 5250 | if test -n "$BUILD_CC"; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5251 | echo "$ac_t""$BUILD_CC" 1>&6 |
Theodore Ts'o | 6c13352 | 1999-07-03 20:37:03 +0000 | [diff] [blame] | 5252 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5253 | echo "$ac_t""no" 1>&6 |
Theodore Ts'o | 6c13352 | 1999-07-03 20:37:03 +0000 | [diff] [blame] | 5254 | fi |
| 5255 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5256 | test -n "$BUILD_CC" && break |
Theodore Ts'o | 6c13352 | 1999-07-03 20:37:03 +0000 | [diff] [blame] | 5257 | done |
| 5258 | |
| 5259 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5260 | 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/socket.h sys/sysmacros.h sys/time.h sys/stat.h sys/types.h sys/wait.h sys/resource.h net/if.h netinet/in.h |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5261 | do |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5262 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
| 5263 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
| 5264 | echo "configure:5265: checking for $ac_hdr" >&5 |
| 5265 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
| 5266 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5267 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5268 | cat > conftest.$ac_ext <<EOF |
| 5269 | #line 5270 "configure" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5270 | #include "confdefs.h" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5271 | #include <$ac_hdr> |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5272 | EOF |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5273 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
| 5274 | { (eval echo configure:5275: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
| 5275 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
| 5276 | if test -z "$ac_err"; then |
| 5277 | rm -rf conftest* |
| 5278 | eval "ac_cv_header_$ac_safe=yes" |
| 5279 | else |
| 5280 | echo "$ac_err" >&5 |
| 5281 | echo "configure: failed program was:" >&5 |
| 5282 | cat conftest.$ac_ext >&5 |
| 5283 | rm -rf conftest* |
| 5284 | eval "ac_cv_header_$ac_safe=no" |
| 5285 | fi |
| 5286 | rm -f conftest* |
| 5287 | fi |
| 5288 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 5289 | echo "$ac_t""yes" 1>&6 |
| 5290 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
| 5291 | cat >> confdefs.h <<EOF |
| 5292 | #define $ac_tr_hdr 1 |
| 5293 | EOF |
| 5294 | |
| 5295 | else |
| 5296 | echo "$ac_t""no" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5297 | fi |
| 5298 | done |
| 5299 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5300 | echo $ac_n "checking for vprintf""... $ac_c" 1>&6 |
| 5301 | echo "configure:5302: checking for vprintf" >&5 |
| 5302 | if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then |
| 5303 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5304 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5305 | cat > conftest.$ac_ext <<EOF |
| 5306 | #line 5307 "configure" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5307 | #include "confdefs.h" |
| 5308 | /* System header to define __stub macros and hopefully few prototypes, |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5309 | which can conflict with char vprintf(); below. */ |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5310 | #include <assert.h> |
| 5311 | /* Override any gcc2 internal prototype to avoid an error. */ |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 5312 | /* We use char because int might match the return type of a gcc2 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5313 | builtin and then its argument prototype would still apply. */ |
| 5314 | char vprintf(); |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5315 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5316 | int main() { |
| 5317 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5318 | /* The GNU C library defines this for functions which it implements |
| 5319 | to always fail with ENOSYS. Some functions are actually named |
| 5320 | something starting with __ and the normal name is an alias. */ |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5321 | #if defined (__stub_vprintf) || defined (__stub___vprintf) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5322 | choke me |
| 5323 | #else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5324 | vprintf(); |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5325 | #endif |
| 5326 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5327 | ; return 0; } |
| 5328 | EOF |
| 5329 | if { (eval echo configure:5330: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 5330 | rm -rf conftest* |
| 5331 | eval "ac_cv_func_vprintf=yes" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5332 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5333 | echo "configure: failed program was:" >&5 |
| 5334 | cat conftest.$ac_ext >&5 |
| 5335 | rm -rf conftest* |
| 5336 | eval "ac_cv_func_vprintf=no" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5337 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5338 | rm -f conftest* |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5339 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5340 | |
| 5341 | if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then |
| 5342 | echo "$ac_t""yes" 1>&6 |
| 5343 | cat >> confdefs.h <<\EOF |
| 5344 | #define HAVE_VPRINTF 1 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5345 | EOF |
| 5346 | |
| 5347 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5348 | echo "$ac_t""no" 1>&6 |
| 5349 | fi |
| 5350 | |
| 5351 | if test "$ac_cv_func_vprintf" != yes; then |
| 5352 | echo $ac_n "checking for _doprnt""... $ac_c" 1>&6 |
| 5353 | echo "configure:5354: checking for _doprnt" >&5 |
| 5354 | if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then |
| 5355 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5356 | else |
| 5357 | cat > conftest.$ac_ext <<EOF |
| 5358 | #line 5359 "configure" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5359 | #include "confdefs.h" |
| 5360 | /* System header to define __stub macros and hopefully few prototypes, |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5361 | which can conflict with char _doprnt(); below. */ |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5362 | #include <assert.h> |
| 5363 | /* Override any gcc2 internal prototype to avoid an error. */ |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 5364 | /* We use char because int might match the return type of a gcc2 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5365 | builtin and then its argument prototype would still apply. */ |
| 5366 | char _doprnt(); |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5367 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5368 | int main() { |
| 5369 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5370 | /* The GNU C library defines this for functions which it implements |
| 5371 | to always fail with ENOSYS. Some functions are actually named |
| 5372 | something starting with __ and the normal name is an alias. */ |
| 5373 | #if defined (__stub__doprnt) || defined (__stub____doprnt) |
| 5374 | choke me |
| 5375 | #else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5376 | _doprnt(); |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5377 | #endif |
| 5378 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5379 | ; return 0; } |
| 5380 | EOF |
| 5381 | if { (eval echo configure:5382: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 5382 | rm -rf conftest* |
| 5383 | eval "ac_cv_func__doprnt=yes" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5384 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5385 | echo "configure: failed program was:" >&5 |
| 5386 | cat conftest.$ac_ext >&5 |
| 5387 | rm -rf conftest* |
| 5388 | eval "ac_cv_func__doprnt=no" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5389 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5390 | rm -f conftest* |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5391 | fi |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 5392 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5393 | if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then |
| 5394 | echo "$ac_t""yes" 1>&6 |
| 5395 | cat >> confdefs.h <<\EOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5396 | #define HAVE_DOPRNT 1 |
| 5397 | EOF |
| 5398 | |
Theodore Ts'o | b0b9c4d | 1997-10-20 23:36:30 +0000 | [diff] [blame] | 5399 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5400 | echo "$ac_t""no" 1>&6 |
| 5401 | fi |
| 5402 | |
| 5403 | fi |
| 5404 | |
| 5405 | echo $ac_n "checking whether d_reclen declared in dirent""... $ac_c" 1>&6 |
| 5406 | echo "configure:5407: checking whether d_reclen declared in dirent" >&5 |
| 5407 | if eval "test \"`echo '$''{'e2fsprogs_cv_have_d_reclen_dirent'+set}'`\" = set"; then |
| 5408 | echo $ac_n "(cached) $ac_c" 1>&6 |
| 5409 | else |
| 5410 | cat > conftest.$ac_ext <<EOF |
| 5411 | #line 5412 "configure" |
Theodore Ts'o | b0b9c4d | 1997-10-20 23:36:30 +0000 | [diff] [blame] | 5412 | #include "confdefs.h" |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 5413 | #include <dirent.h> |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5414 | int main() { |
| 5415 | struct dirent de; de.d_reclen = 0; |
| 5416 | ; return 0; } |
| 5417 | EOF |
| 5418 | if { (eval echo configure:5419: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| 5419 | rm -rf conftest* |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 5420 | e2fsprogs_cv_have_d_reclen_dirent=yes |
| 5421 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5422 | echo "configure: failed program was:" >&5 |
| 5423 | cat conftest.$ac_ext >&5 |
| 5424 | rm -rf conftest* |
| 5425 | e2fsprogs_cv_have_d_reclen_dirent=no |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 5426 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5427 | rm -f conftest* |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 5428 | fi |
| 5429 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5430 | echo "$ac_t""$e2fsprogs_cv_have_d_reclen_dirent" 1>&6 |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 5431 | if test "$e2fsprogs_cv_have_d_reclen_dirent" = yes; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5432 | cat >> confdefs.h <<\EOF |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 5433 | #define HAVE_RECLEN_DIRENT 1 |
| 5434 | EOF |
| 5435 | |
| 5436 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5437 | echo $ac_n "checking whether ssize_t declared""... $ac_c" 1>&6 |
| 5438 | echo "configure:5439: checking whether ssize_t declared" >&5 |
| 5439 | if eval "test \"`echo '$''{'e2fsprogs_cv_have_ssize_t'+set}'`\" = set"; then |
| 5440 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 5441 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5442 | cat > conftest.$ac_ext <<EOF |
| 5443 | #line 5444 "configure" |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 5444 | #include "confdefs.h" |
| 5445 | #include <sys/types.h> |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5446 | int main() { |
| 5447 | ssize_t a = 0; |
| 5448 | ; return 0; } |
| 5449 | EOF |
| 5450 | if { (eval echo configure:5451: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| 5451 | rm -rf conftest* |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 5452 | e2fsprogs_cv_have_ssize_t=yes |
| 5453 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5454 | echo "configure: failed program was:" >&5 |
| 5455 | cat conftest.$ac_ext >&5 |
| 5456 | rm -rf conftest* |
| 5457 | e2fsprogs_cv_have_ssize_t=no |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 5458 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5459 | rm -f conftest* |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 5460 | fi |
| 5461 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5462 | echo "$ac_t""$e2fsprogs_cv_have_ssize_t" 1>&6 |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 5463 | if test "$e2fsprogs_cv_have_ssize_t" = yes; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5464 | cat >> confdefs.h <<\EOF |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 5465 | #define HAVE_TYPE_SSIZE_T 1 |
| 5466 | EOF |
| 5467 | |
| 5468 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5469 | echo $ac_n "checking whether llseek declared in unistd.h""... $ac_c" 1>&6 |
| 5470 | echo "configure:5471: checking whether llseek declared in unistd.h" >&5 |
| 5471 | if eval "test \"`echo '$''{'e2fsprogs_cv_have_llseek_prototype'+set}'`\" = set"; then |
| 5472 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 5473 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5474 | cat > conftest.$ac_ext <<EOF |
| 5475 | #line 5476 "configure" |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 5476 | #include "confdefs.h" |
Theodore Ts'o | b0b9c4d | 1997-10-20 23:36:30 +0000 | [diff] [blame] | 5477 | #include <unistd.h> |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5478 | int main() { |
Theodore Ts'o | b0b9c4d | 1997-10-20 23:36:30 +0000 | [diff] [blame] | 5479 | extern int llseek(int); |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5480 | ; return 0; } |
| 5481 | EOF |
| 5482 | if { (eval echo configure:5483: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| 5483 | rm -rf conftest* |
Theodore Ts'o | b0b9c4d | 1997-10-20 23:36:30 +0000 | [diff] [blame] | 5484 | e2fsprogs_cv_have_llseek_prototype=no |
| 5485 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5486 | echo "configure: failed program was:" >&5 |
| 5487 | cat conftest.$ac_ext >&5 |
| 5488 | rm -rf conftest* |
| 5489 | e2fsprogs_cv_have_llseek_prototype=yes |
Theodore Ts'o | b0b9c4d | 1997-10-20 23:36:30 +0000 | [diff] [blame] | 5490 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5491 | rm -f conftest* |
Theodore Ts'o | b0b9c4d | 1997-10-20 23:36:30 +0000 | [diff] [blame] | 5492 | fi |
| 5493 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5494 | echo "$ac_t""$e2fsprogs_cv_have_llseek_prototype" 1>&6 |
Theodore Ts'o | b0b9c4d | 1997-10-20 23:36:30 +0000 | [diff] [blame] | 5495 | if test "$e2fsprogs_cv_have_llseek_prototype" = yes; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5496 | cat >> confdefs.h <<\EOF |
Theodore Ts'o | b0b9c4d | 1997-10-20 23:36:30 +0000 | [diff] [blame] | 5497 | #define HAVE_LLSEEK_PROTOTYPE 1 |
| 5498 | EOF |
| 5499 | |
| 5500 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5501 | echo $ac_n "checking whether lseek64 declared in unistd.h""... $ac_c" 1>&6 |
| 5502 | echo "configure:5503: checking whether lseek64 declared in unistd.h" >&5 |
| 5503 | if eval "test \"`echo '$''{'e2fsprogs_cv_have_lseek64_prototype'+set}'`\" = set"; then |
| 5504 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | 6928adc | 2000-05-25 23:28:50 +0000 | [diff] [blame] | 5505 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5506 | cat > conftest.$ac_ext <<EOF |
| 5507 | #line 5508 "configure" |
Theodore Ts'o | 6928adc | 2000-05-25 23:28:50 +0000 | [diff] [blame] | 5508 | #include "confdefs.h" |
| 5509 | #define _LARGEFILE_SOURCE |
| 5510 | #define _LARGEFILE64_SOURCE |
| 5511 | #include <unistd.h> |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5512 | int main() { |
Theodore Ts'o | 6928adc | 2000-05-25 23:28:50 +0000 | [diff] [blame] | 5513 | extern int lseek64(int); |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5514 | ; return 0; } |
| 5515 | EOF |
| 5516 | if { (eval echo configure:5517: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| 5517 | rm -rf conftest* |
Theodore Ts'o | 6928adc | 2000-05-25 23:28:50 +0000 | [diff] [blame] | 5518 | e2fsprogs_cv_have_lseek64_prototype=no |
| 5519 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5520 | echo "configure: failed program was:" >&5 |
| 5521 | cat conftest.$ac_ext >&5 |
| 5522 | rm -rf conftest* |
| 5523 | e2fsprogs_cv_have_lseek64_prototype=yes |
Theodore Ts'o | 6928adc | 2000-05-25 23:28:50 +0000 | [diff] [blame] | 5524 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5525 | rm -f conftest* |
Theodore Ts'o | 6928adc | 2000-05-25 23:28:50 +0000 | [diff] [blame] | 5526 | fi |
| 5527 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5528 | echo "$ac_t""$e2fsprogs_cv_have_lseek64_prototype" 1>&6 |
Theodore Ts'o | 6928adc | 2000-05-25 23:28:50 +0000 | [diff] [blame] | 5529 | if test "$e2fsprogs_cv_have_lseek64_prototype" = yes; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5530 | cat >> confdefs.h <<\EOF |
Theodore Ts'o | 6928adc | 2000-05-25 23:28:50 +0000 | [diff] [blame] | 5531 | #define HAVE_LSEEK64_PROTOTYPE 1 |
| 5532 | EOF |
| 5533 | |
| 5534 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5535 | if test "$cross_compiling" = yes -a "$ac_cv_sizeof_long" = ""; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5536 | # if cross-compiling, with no cached values, just assume something common. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5537 | ac_cv_sizeof_short=2 |
| 5538 | ac_cv_sizeof_int=4 |
| 5539 | ac_cv_sizeof_long=4 |
Theodore Ts'o | 6c13352 | 1999-07-03 20:37:03 +0000 | [diff] [blame] | 5540 | ac_cv_sizeof_long_long=8 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5541 | 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] | 5542 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5543 | echo $ac_n "checking size of short""... $ac_c" 1>&6 |
| 5544 | echo "configure:5545: checking size of short" >&5 |
| 5545 | if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then |
| 5546 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5547 | else |
| 5548 | if test "$cross_compiling" = yes; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5549 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5550 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5551 | cat > conftest.$ac_ext <<EOF |
| 5552 | #line 5553 "configure" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5553 | #include "confdefs.h" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5554 | #include <stdio.h> |
| 5555 | #include <sys/types.h> |
| 5556 | main() |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5557 | { |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5558 | FILE *f=fopen("conftestval", "w"); |
| 5559 | if (!f) exit(1); |
| 5560 | fprintf(f, "%d\n", sizeof(short)); |
| 5561 | exit(0); |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5562 | } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5563 | EOF |
| 5564 | if { (eval echo configure:5565: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
| 5565 | then |
| 5566 | ac_cv_sizeof_short=`cat conftestval` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5567 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5568 | echo "configure: failed program was:" >&5 |
| 5569 | cat conftest.$ac_ext >&5 |
| 5570 | rm -fr conftest* |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5571 | ac_cv_sizeof_short=0 |
| 5572 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5573 | rm -fr conftest* |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5574 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5575 | |
| 5576 | fi |
| 5577 | echo "$ac_t""$ac_cv_sizeof_short" 1>&6 |
| 5578 | cat >> confdefs.h <<EOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5579 | #define SIZEOF_SHORT $ac_cv_sizeof_short |
| 5580 | EOF |
| 5581 | |
| 5582 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5583 | echo $ac_n "checking size of int""... $ac_c" 1>&6 |
| 5584 | echo "configure:5585: checking size of int" >&5 |
| 5585 | if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then |
| 5586 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5587 | else |
| 5588 | if test "$cross_compiling" = yes; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5589 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5590 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5591 | cat > conftest.$ac_ext <<EOF |
| 5592 | #line 5593 "configure" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5593 | #include "confdefs.h" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5594 | #include <stdio.h> |
| 5595 | #include <sys/types.h> |
| 5596 | main() |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5597 | { |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5598 | FILE *f=fopen("conftestval", "w"); |
| 5599 | if (!f) exit(1); |
| 5600 | fprintf(f, "%d\n", sizeof(int)); |
| 5601 | exit(0); |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5602 | } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5603 | EOF |
| 5604 | if { (eval echo configure:5605: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
| 5605 | then |
| 5606 | ac_cv_sizeof_int=`cat conftestval` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5607 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5608 | echo "configure: failed program was:" >&5 |
| 5609 | cat conftest.$ac_ext >&5 |
| 5610 | rm -fr conftest* |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5611 | ac_cv_sizeof_int=0 |
| 5612 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5613 | rm -fr conftest* |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5614 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5615 | |
| 5616 | fi |
| 5617 | echo "$ac_t""$ac_cv_sizeof_int" 1>&6 |
| 5618 | cat >> confdefs.h <<EOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5619 | #define SIZEOF_INT $ac_cv_sizeof_int |
| 5620 | EOF |
| 5621 | |
| 5622 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5623 | echo $ac_n "checking size of long""... $ac_c" 1>&6 |
| 5624 | echo "configure:5625: checking size of long" >&5 |
| 5625 | if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then |
| 5626 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5627 | else |
| 5628 | if test "$cross_compiling" = yes; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5629 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5630 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5631 | cat > conftest.$ac_ext <<EOF |
| 5632 | #line 5633 "configure" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5633 | #include "confdefs.h" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5634 | #include <stdio.h> |
| 5635 | #include <sys/types.h> |
| 5636 | main() |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5637 | { |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5638 | FILE *f=fopen("conftestval", "w"); |
| 5639 | if (!f) exit(1); |
| 5640 | fprintf(f, "%d\n", sizeof(long)); |
| 5641 | exit(0); |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5642 | } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5643 | EOF |
| 5644 | if { (eval echo configure:5645: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
| 5645 | then |
| 5646 | ac_cv_sizeof_long=`cat conftestval` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5647 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5648 | echo "configure: failed program was:" >&5 |
| 5649 | cat conftest.$ac_ext >&5 |
| 5650 | rm -fr conftest* |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5651 | ac_cv_sizeof_long=0 |
| 5652 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5653 | rm -fr conftest* |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5654 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5655 | |
| 5656 | fi |
| 5657 | echo "$ac_t""$ac_cv_sizeof_long" 1>&6 |
| 5658 | cat >> confdefs.h <<EOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5659 | #define SIZEOF_LONG $ac_cv_sizeof_long |
| 5660 | EOF |
| 5661 | |
| 5662 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5663 | echo $ac_n "checking size of long long""... $ac_c" 1>&6 |
| 5664 | echo "configure:5665: checking size of long long" >&5 |
| 5665 | if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then |
| 5666 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 5667 | else |
| 5668 | if test "$cross_compiling" = yes; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5669 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 5670 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5671 | cat > conftest.$ac_ext <<EOF |
| 5672 | #line 5673 "configure" |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 5673 | #include "confdefs.h" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5674 | #include <stdio.h> |
| 5675 | #include <sys/types.h> |
| 5676 | main() |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 5677 | { |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5678 | FILE *f=fopen("conftestval", "w"); |
| 5679 | if (!f) exit(1); |
| 5680 | fprintf(f, "%d\n", sizeof(long long)); |
| 5681 | exit(0); |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 5682 | } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5683 | EOF |
| 5684 | if { (eval echo configure:5685: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
| 5685 | then |
| 5686 | ac_cv_sizeof_long_long=`cat conftestval` |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 5687 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5688 | echo "configure: failed program was:" >&5 |
| 5689 | cat conftest.$ac_ext >&5 |
| 5690 | rm -fr conftest* |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 5691 | ac_cv_sizeof_long_long=0 |
| 5692 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5693 | rm -fr conftest* |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 5694 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5695 | |
| 5696 | fi |
| 5697 | echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6 |
| 5698 | cat >> confdefs.h <<EOF |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 5699 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
| 5700 | EOF |
| 5701 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5702 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5703 | SIZEOF_SHORT=$ac_cv_sizeof_short |
| 5704 | SIZEOF_INT=$ac_cv_sizeof_int |
| 5705 | SIZEOF_LONG=$ac_cv_sizeof_long |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 5706 | SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long |
| 5707 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5708 | |
| 5709 | |
| 5710 | |
| 5711 | echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6 |
| 5712 | echo "configure:5713: checking whether byte ordering is bigendian" >&5 |
| 5713 | if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then |
| 5714 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 5715 | else |
| 5716 | ac_cv_c_bigendian=unknown |
| 5717 | # See if sys/param.h defines the BYTE_ORDER macro. |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5718 | cat > conftest.$ac_ext <<EOF |
| 5719 | #line 5720 "configure" |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 5720 | #include "confdefs.h" |
| 5721 | #include <sys/types.h> |
| 5722 | #include <sys/param.h> |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5723 | int main() { |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 5724 | |
| 5725 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN |
| 5726 | bogus endian macros |
| 5727 | #endif |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5728 | ; return 0; } |
| 5729 | EOF |
| 5730 | if { (eval echo configure:5731: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| 5731 | rm -rf conftest* |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 5732 | # It does; now see whether it defined to BIG_ENDIAN or not. |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5733 | cat > conftest.$ac_ext <<EOF |
| 5734 | #line 5735 "configure" |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 5735 | #include "confdefs.h" |
| 5736 | #include <sys/types.h> |
| 5737 | #include <sys/param.h> |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5738 | int main() { |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 5739 | |
| 5740 | #if BYTE_ORDER != BIG_ENDIAN |
| 5741 | not big endian |
| 5742 | #endif |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5743 | ; return 0; } |
| 5744 | EOF |
| 5745 | if { (eval echo configure:5746: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| 5746 | rm -rf conftest* |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 5747 | ac_cv_c_bigendian=yes |
| 5748 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5749 | echo "configure: failed program was:" >&5 |
| 5750 | cat conftest.$ac_ext >&5 |
| 5751 | rm -rf conftest* |
| 5752 | ac_cv_c_bigendian=no |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 5753 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5754 | rm -f conftest* |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 5755 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5756 | echo "configure: failed program was:" >&5 |
| 5757 | cat conftest.$ac_ext >&5 |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 5758 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5759 | rm -f conftest* |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 5760 | if test $ac_cv_c_bigendian = unknown; then |
| 5761 | if test "$cross_compiling" = yes; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5762 | { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 5763 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5764 | cat > conftest.$ac_ext <<EOF |
| 5765 | #line 5766 "configure" |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 5766 | #include "confdefs.h" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5767 | main () { |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 5768 | /* Are we little or big endian? From Harbison&Steele. */ |
| 5769 | union |
| 5770 | { |
| 5771 | long l; |
| 5772 | char c[sizeof (long)]; |
| 5773 | } u; |
| 5774 | u.l = 1; |
| 5775 | exit (u.c[sizeof (long) - 1] == 1); |
| 5776 | } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5777 | EOF |
| 5778 | if { (eval echo configure:5779: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
| 5779 | then |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 5780 | ac_cv_c_bigendian=no |
| 5781 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5782 | echo "configure: failed program was:" >&5 |
| 5783 | cat conftest.$ac_ext >&5 |
| 5784 | rm -fr conftest* |
| 5785 | ac_cv_c_bigendian=yes |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 5786 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5787 | rm -fr conftest* |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 5788 | fi |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 5789 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5790 | fi |
| 5791 | fi |
| 5792 | |
| 5793 | echo "$ac_t""$ac_cv_c_bigendian" 1>&6 |
| 5794 | if test $ac_cv_c_bigendian = yes; then |
| 5795 | cat >> confdefs.h <<\EOF |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 5796 | #define WORDS_BIGENDIAN 1 |
| 5797 | EOF |
| 5798 | |
| 5799 | fi |
| 5800 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5801 | echo $ac_n "checking whether struct stat has a st_flags field""... $ac_c" 1>&6 |
| 5802 | echo "configure:5803: checking whether struct stat has a st_flags field" >&5 |
| 5803 | if eval "test \"`echo '$''{'e2fsprogs_cv_struct_st_flags'+set}'`\" = set"; then |
| 5804 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5805 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5806 | cat > conftest.$ac_ext <<EOF |
| 5807 | #line 5808 "configure" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5808 | #include "confdefs.h" |
| 5809 | #include <sys/stat.h> |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5810 | int main() { |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5811 | struct stat stat; stat.st_flags = 0; |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5812 | ; return 0; } |
| 5813 | EOF |
| 5814 | if { (eval echo configure:5815: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| 5815 | rm -rf conftest* |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5816 | e2fsprogs_cv_struct_st_flags=yes |
| 5817 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5818 | echo "configure: failed program was:" >&5 |
| 5819 | cat conftest.$ac_ext >&5 |
| 5820 | rm -rf conftest* |
| 5821 | e2fsprogs_cv_struct_st_flags=no |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5822 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5823 | rm -f conftest* |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5824 | fi |
| 5825 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5826 | echo "$ac_t""$e2fsprogs_cv_struct_st_flags" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5827 | if test "$e2fsprogs_cv_struct_st_flags" = yes; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5828 | echo $ac_n "checking whether st_flags field is useful""... $ac_c" 1>&6 |
| 5829 | echo "configure:5830: checking whether st_flags field is useful" >&5 |
| 5830 | if eval "test \"`echo '$''{'e2fsprogs_cv_struct_st_flags_immut'+set}'`\" = set"; then |
| 5831 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 5832 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5833 | cat > conftest.$ac_ext <<EOF |
| 5834 | #line 5835 "configure" |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 5835 | #include "confdefs.h" |
| 5836 | #include <sys/stat.h> |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5837 | int main() { |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 5838 | struct stat stat; stat.st_flags |= UF_IMMUTABLE; |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5839 | ; return 0; } |
| 5840 | EOF |
| 5841 | if { (eval echo configure:5842: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
| 5842 | rm -rf conftest* |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 5843 | e2fsprogs_cv_struct_st_flags_immut=yes |
| 5844 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5845 | echo "configure: failed program was:" >&5 |
| 5846 | cat conftest.$ac_ext >&5 |
| 5847 | rm -rf conftest* |
| 5848 | e2fsprogs_cv_struct_st_flags_immut=no |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 5849 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5850 | rm -f conftest* |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 5851 | fi |
| 5852 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5853 | echo "$ac_t""$e2fsprogs_cv_struct_st_flags_immut" 1>&6 |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 5854 | if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5855 | cat >> confdefs.h <<\EOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5856 | #define HAVE_STAT_FLAGS 1 |
| 5857 | EOF |
| 5858 | |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 5859 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5860 | fi |
Theodore Ts'o | 1c29b09 | 2003-07-12 16:01:45 -0400 | [diff] [blame] | 5861 | for ac_func in chflags getrusage llseek lseek64 open64 getmntinfo strtoull strcasecmp srandom fchown mallinfo fdatasync strnlen strptime sysconf pathconf posix_memalign memalign valloc |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5862 | do |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5863 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
| 5864 | echo "configure:5865: checking for $ac_func" >&5 |
| 5865 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
| 5866 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5867 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5868 | cat > conftest.$ac_ext <<EOF |
| 5869 | #line 5870 "configure" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5870 | #include "confdefs.h" |
| 5871 | /* System header to define __stub macros and hopefully few prototypes, |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5872 | which can conflict with char $ac_func(); below. */ |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5873 | #include <assert.h> |
| 5874 | /* Override any gcc2 internal prototype to avoid an error. */ |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 5875 | /* We use char because int might match the return type of a gcc2 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5876 | builtin and then its argument prototype would still apply. */ |
| 5877 | char $ac_func(); |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5878 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5879 | int main() { |
| 5880 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5881 | /* The GNU C library defines this for functions which it implements |
| 5882 | to always fail with ENOSYS. Some functions are actually named |
| 5883 | something starting with __ and the normal name is an alias. */ |
| 5884 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 5885 | choke me |
| 5886 | #else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5887 | $ac_func(); |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5888 | #endif |
| 5889 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5890 | ; return 0; } |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 5891 | EOF |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5892 | if { (eval echo configure:5893: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 5893 | rm -rf conftest* |
| 5894 | eval "ac_cv_func_$ac_func=yes" |
| 5895 | else |
| 5896 | echo "configure: failed program was:" >&5 |
| 5897 | cat conftest.$ac_ext >&5 |
| 5898 | rm -rf conftest* |
| 5899 | eval "ac_cv_func_$ac_func=no" |
| 5900 | fi |
| 5901 | rm -f conftest* |
| 5902 | fi |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 5903 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5904 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
| 5905 | echo "$ac_t""yes" 1>&6 |
| 5906 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
| 5907 | cat >> confdefs.h <<EOF |
| 5908 | #define $ac_tr_func 1 |
| 5909 | EOF |
| 5910 | |
| 5911 | else |
| 5912 | echo "$ac_t""no" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5913 | fi |
| 5914 | done |
| 5915 | |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 5916 | SOCKET_LIB='' |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5917 | echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6 |
| 5918 | echo "configure:5919: checking for socket in -lsocket" >&5 |
| 5919 | ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'` |
| 5920 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 5921 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 5922 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5923 | ac_save_LIBS="$LIBS" |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 5924 | LIBS="-lsocket $LIBS" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5925 | cat > conftest.$ac_ext <<EOF |
| 5926 | #line 5927 "configure" |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 5927 | #include "confdefs.h" |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 5928 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 5929 | /* We use char because int might match the return type of a gcc2 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5930 | builtin and then its argument prototype would still apply. */ |
| 5931 | char socket(); |
| 5932 | |
| 5933 | int main() { |
| 5934 | socket() |
| 5935 | ; return 0; } |
| 5936 | EOF |
| 5937 | if { (eval echo configure:5938: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 5938 | rm -rf conftest* |
| 5939 | eval "ac_cv_lib_$ac_lib_var=yes" |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 5940 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5941 | echo "configure: failed program was:" >&5 |
| 5942 | cat conftest.$ac_ext >&5 |
| 5943 | rm -rf conftest* |
| 5944 | eval "ac_cv_lib_$ac_lib_var=no" |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 5945 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5946 | rm -f conftest* |
| 5947 | LIBS="$ac_save_LIBS" |
| 5948 | |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 5949 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5950 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 5951 | echo "$ac_t""yes" 1>&6 |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 5952 | SOCKET_LIB=-lsocket |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5953 | else |
| 5954 | echo "$ac_t""no" 1>&6 |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 5955 | fi |
| 5956 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5957 | |
Theodore Ts'o | bbac86b | 2003-03-16 06:27:22 -0500 | [diff] [blame] | 5958 | DLOPEN_LIB='' |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5959 | echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 |
| 5960 | echo "configure:5961: checking for dlopen in -ldl" >&5 |
| 5961 | ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` |
| 5962 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
| 5963 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | bbac86b | 2003-03-16 06:27:22 -0500 | [diff] [blame] | 5964 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5965 | ac_save_LIBS="$LIBS" |
Theodore Ts'o | bbac86b | 2003-03-16 06:27:22 -0500 | [diff] [blame] | 5966 | LIBS="-ldl $LIBS" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5967 | cat > conftest.$ac_ext <<EOF |
| 5968 | #line 5969 "configure" |
Theodore Ts'o | bbac86b | 2003-03-16 06:27:22 -0500 | [diff] [blame] | 5969 | #include "confdefs.h" |
| 5970 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 5971 | /* We use char because int might match the return type of a gcc2 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5972 | builtin and then its argument prototype would still apply. */ |
| 5973 | char dlopen(); |
| 5974 | |
| 5975 | int main() { |
| 5976 | dlopen() |
| 5977 | ; return 0; } |
| 5978 | EOF |
| 5979 | if { (eval echo configure:5980: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 5980 | rm -rf conftest* |
| 5981 | eval "ac_cv_lib_$ac_lib_var=yes" |
Theodore Ts'o | bbac86b | 2003-03-16 06:27:22 -0500 | [diff] [blame] | 5982 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5983 | echo "configure: failed program was:" >&5 |
| 5984 | cat conftest.$ac_ext >&5 |
| 5985 | rm -rf conftest* |
| 5986 | eval "ac_cv_lib_$ac_lib_var=no" |
Theodore Ts'o | bbac86b | 2003-03-16 06:27:22 -0500 | [diff] [blame] | 5987 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5988 | rm -f conftest* |
| 5989 | LIBS="$ac_save_LIBS" |
| 5990 | |
Theodore Ts'o | bbac86b | 2003-03-16 06:27:22 -0500 | [diff] [blame] | 5991 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5992 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then |
| 5993 | echo "$ac_t""yes" 1>&6 |
Theodore Ts'o | bbac86b | 2003-03-16 06:27:22 -0500 | [diff] [blame] | 5994 | DLOPEN_LIB=-ldl |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5995 | cat >> confdefs.h <<\EOF |
Theodore Ts'o | bbac86b | 2003-03-16 06:27:22 -0500 | [diff] [blame] | 5996 | #define HAVE_DLOPEN 1 |
| 5997 | EOF |
| 5998 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5999 | else |
| 6000 | echo "$ac_t""no" 1>&6 |
Theodore Ts'o | bbac86b | 2003-03-16 06:27:22 -0500 | [diff] [blame] | 6001 | fi |
| 6002 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6003 | |
| 6004 | echo $ac_n "checking for optreset""... $ac_c" 1>&6 |
| 6005 | echo "configure:6006: checking for optreset" >&5 |
| 6006 | if eval "test \"`echo '$''{'ac_cv_have_optreset'+set}'`\" = set"; then |
| 6007 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6008 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6009 | cat > conftest.$ac_ext <<EOF |
| 6010 | #line 6011 "configure" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6011 | #include "confdefs.h" |
| 6012 | #include <unistd.h> |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6013 | EOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6014 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 6015 | egrep "optreset" >/dev/null 2>&1; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6016 | rm -rf conftest* |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6017 | ac_cv_have_optreset=yes |
| 6018 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6019 | rm -rf conftest* |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6020 | ac_cv_have_optreset=no |
| 6021 | fi |
| 6022 | rm -f conftest* |
| 6023 | |
| 6024 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6025 | echo "$ac_t""$ac_cv_have_optreset" 1>&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6026 | if test $ac_cv_have_optreset = yes; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6027 | cat >> confdefs.h <<\EOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6028 | #define HAVE_OPTRESET 1 |
| 6029 | EOF |
| 6030 | |
| 6031 | fi |
Theodore Ts'o | 8f3f29d | 2000-02-11 05:04:44 +0000 | [diff] [blame] | 6032 | case "$host_os" in |
| 6033 | linux*) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6034 | cat >> confdefs.h <<\EOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6035 | #define HAVE_EXT2_IOCTLS 1 |
| 6036 | EOF |
| 6037 | |
Theodore Ts'o | 8f3f29d | 2000-02-11 05:04:44 +0000 | [diff] [blame] | 6038 | ;; |
| 6039 | esac |
Theodore Ts'o | e6f2bda | 2002-08-18 03:37:10 -0400 | [diff] [blame] | 6040 | LINUX_CMT="#" |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 6041 | CYGWIN_CMT="#" |
| 6042 | UNIX_CMT= |
Theodore Ts'o | e6f2bda | 2002-08-18 03:37:10 -0400 | [diff] [blame] | 6043 | case "$host_os" in |
| 6044 | linux*) |
| 6045 | LINUX_CMT= |
| 6046 | ;; |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 6047 | cygwin) |
| 6048 | CYGWIN_CMT= |
| 6049 | UNIX_CMT="#" |
Theodore Ts'o | d21ae6c | 2003-05-05 09:00:24 -0400 | [diff] [blame] | 6050 | EVMS_CMT="#" |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 6051 | ;; |
Theodore Ts'o | d21ae6c | 2003-05-05 09:00:24 -0400 | [diff] [blame] | 6052 | *) |
| 6053 | EVMS_CMT="#" |
Theodore Ts'o | e6f2bda | 2002-08-18 03:37:10 -0400 | [diff] [blame] | 6054 | esac |
| 6055 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6056 | |
| 6057 | |
| 6058 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6059 | case "$host_os" in |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6060 | linux* | gnu* | k*bsd*-gnu) |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 6061 | if test "$prefix" = NONE -a "$root_prefix" = NONE ; then |
| 6062 | root_prefix=""; |
| 6063 | echo "On $host_os systems, root_prefix defaults to ''" |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 6064 | fi |
| 6065 | ;; |
| 6066 | esac |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 6067 | case "$host_os" in |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6068 | linux* | gnu* | k*bsd*-gnu) |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 6069 | if test "$prefix" = NONE ; then |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 6070 | prefix="/usr"; |
| 6071 | echo "On $host_os systems, prefix defaults to /usr" |
Theodore Ts'o | bff61a7 | 2002-05-21 22:21:38 -0400 | [diff] [blame] | 6072 | if test "$mandir" = '${prefix}/man' ; then |
| 6073 | echo "...and mandir defaults to /usr/share/man" |
| 6074 | mandir=/usr/share/man |
| 6075 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6076 | fi |
| 6077 | ;; |
| 6078 | esac |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 6079 | if test "$root_prefix" = NONE ; then |
Theodore Ts'o | ffe1991 | 1998-04-08 06:05:49 +0000 | [diff] [blame] | 6080 | if test "$prefix" = NONE ; then |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 6081 | root_prefix="$ac_default_prefix" |
| 6082 | else |
| 6083 | root_prefix="$prefix" |
| 6084 | fi |
Theodore Ts'o | b5ffead | 2002-05-11 19:17:00 -0400 | [diff] [blame] | 6085 | root_bindir=$bindir |
| 6086 | root_sbindir=$sbindir |
| 6087 | root_libdir=$libdir |
| 6088 | root_sysconfdir=$sysconfdir |
| 6089 | else |
| 6090 | root_bindir='${root_prefix}/bin' |
| 6091 | root_sbindir='${root_prefix}/sbin' |
| 6092 | root_libdir='${root_prefix}/lib' |
| 6093 | root_sysconfdir='${root_prefix}/etc' |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 6094 | fi |
| 6095 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6096 | |
| 6097 | |
| 6098 | |
| 6099 | |
| 6100 | echo $ac_n "checking whether linker accepts -static""... $ac_c" 1>&6 |
| 6101 | echo "configure:6102: checking whether linker accepts -static" >&5 |
| 6102 | if eval "test \"`echo '$''{'ac_cv_e2fsprogs_use_static'+set}'`\" = set"; then |
| 6103 | echo $ac_n "(cached) $ac_c" 1>&6 |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 6104 | else |
| 6105 | SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6106 | cat > conftest.$ac_ext <<EOF |
| 6107 | #line 6108 "configure" |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 6108 | #include "confdefs.h" |
| 6109 | #include <stdio.h> |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6110 | int main() { |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 6111 | fflush(stdout); |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6112 | ; return 0; } |
| 6113 | EOF |
| 6114 | if { (eval echo configure:6115: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
| 6115 | rm -rf conftest* |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 6116 | ac_cv_e2fsprogs_use_static=yes |
| 6117 | else |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6118 | echo "configure: failed program was:" >&5 |
| 6119 | cat conftest.$ac_ext >&5 |
| 6120 | rm -rf conftest* |
| 6121 | ac_cv_e2fsprogs_use_static=no |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 6122 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6123 | rm -f conftest* |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 6124 | LDFLAGS=$SAVE_LDFLAGS |
| 6125 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6126 | |
Theodore Ts'o | defde78 | 1999-01-04 07:39:19 +0000 | [diff] [blame] | 6127 | case "$host_os" in |
| 6128 | solaris2.*) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6129 | ac_cv_e2fsprogs_use_static=no |
Theodore Ts'o | defde78 | 1999-01-04 07:39:19 +0000 | [diff] [blame] | 6130 | ;; |
| 6131 | esac |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6132 | echo "$ac_t""$ac_cv_e2fsprogs_use_static" 1>&6 |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 6133 | LDFLAG_STATIC= |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 6134 | if test $ac_cv_e2fsprogs_use_static = yes; then |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6135 | LDFLAG_STATIC=-static |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 6136 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6137 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 6138 | case "$host_os" in |
| 6139 | darwin*) |
| 6140 | echo "Using Apple Darwin / GNU libintl workaround" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6141 | cat >> confdefs.h <<\EOF |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 6142 | #define _INTL_REDIRECT_MACROS 1 |
| 6143 | EOF |
| 6144 | |
| 6145 | ;; |
| 6146 | esac |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6147 | SS_DIR=`cd ${srcdir}/lib/ss; pwd` |
| 6148 | ET_DIR=`cd ${srcdir}/lib/et; pwd` |
| 6149 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6150 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6151 | if test "$cross_compiling" = yes ; then |
| 6152 | DO_TEST_SUITE= |
| 6153 | else |
| 6154 | DO_TEST_SUITE=check |
| 6155 | fi |
| 6156 | |
Theodore Ts'o | c6f35b8 | 2003-05-17 16:29:27 -0400 | [diff] [blame] | 6157 | INTL_FLAGS= |
| 6158 | if test "$USE_INCLUDED_LIBINTL" = "yes" ; then |
| 6159 | INTL_FLAGS='-I$(top_builddir)/intl -I$(top_srcdir)/intl' |
| 6160 | fi |
| 6161 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6162 | test -d lib || mkdir lib |
| 6163 | test -d include || mkdir include |
| 6164 | test -d include/linux || mkdir include/linux |
Theodore Ts'o | defde78 | 1999-01-04 07:39:19 +0000 | [diff] [blame] | 6165 | test -d include/asm || mkdir include/asm |
Theodore Ts'o | bff0cc9 | 2003-03-23 01:37:53 -0500 | [diff] [blame] | 6166 | for i in MCONFIG Makefile e2fsprogs.spec \ |
| 6167 | util/Makefile util/subst.conf util/gen-tarball \ |
| 6168 | lib/et/Makefile lib/ss/Makefile lib/ext2fs/Makefile lib/e2p/Makefile \ |
Theodore Ts'o | 94ba8c7 | 2003-03-02 02:07:14 -0500 | [diff] [blame] | 6169 | lib/uuid/Makefile lib/uuid/uuid_types.h \ |
| 6170 | lib/blkid/Makefile lib/blkid/blkid_types.h \ |
| 6171 | lib/evms/Makefile misc/Makefile ext2ed/Makefile e2fsck/Makefile \ |
| 6172 | debugfs/Makefile tests/Makefile tests/progs/Makefile \ |
| 6173 | resize/Makefile doc/Makefile intl/Makefile po/Makefile.in ; do |
| 6174 | if test -d `dirname ${srcdir}/$i` ; then |
| 6175 | outlist="$outlist $i" |
| 6176 | fi |
| 6177 | done |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6178 | trap '' 1 2 15 |
| 6179 | cat > confcache <<\EOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6180 | # This file is a shell script that caches the results of configure |
| 6181 | # tests run on this system so they can be shared between configure |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6182 | # scripts and configure runs. It is not useful on other systems. |
| 6183 | # If it contains results you don't want to keep, you may remove or edit it. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6184 | # |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6185 | # By default, configure uses ./config.cache as the cache file, |
| 6186 | # creating it if it does not exist already. You can give configure |
| 6187 | # the --cache-file=FILE option to use a different cache file; that is |
| 6188 | # what configure does when it calls configure scripts in |
| 6189 | # subdirectories, so they share the cache. |
| 6190 | # Giving --cache-file=/dev/null disables caching, for debugging configure. |
| 6191 | # config.status only pays attention to the cache file if you give it the |
| 6192 | # --recheck option to rerun configure. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6193 | # |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6194 | EOF |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 6195 | # The following way of writing the cache mishandles newlines in values, |
| 6196 | # but we know of no workaround that is simple, portable, and efficient. |
| 6197 | # So, don't put newlines in cache variables' values. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6198 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 6199 | # and sets the high bit in the cache file unless we assign to the vars. |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6200 | (set) 2>&1 | |
| 6201 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
| 6202 | *ac_space=\ *) |
| 6203 | # `set' does not quote correctly, so add quotes (double-quote substitution |
| 6204 | # turns \\\\ into \\, and sed turns \\ into \). |
| 6205 | sed -n \ |
| 6206 | -e "s/'/'\\\\''/g" \ |
| 6207 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" |
| 6208 | ;; |
| 6209 | *) |
| 6210 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
| 6211 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' |
| 6212 | ;; |
| 6213 | esac >> confcache |
| 6214 | if cmp -s $cache_file confcache; then |
| 6215 | : |
| 6216 | else |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6217 | if test -w $cache_file; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6218 | echo "updating cache $cache_file" |
| 6219 | cat confcache > $cache_file |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6220 | else |
| 6221 | echo "not updating unwritable cache $cache_file" |
| 6222 | fi |
| 6223 | fi |
| 6224 | rm -f confcache |
| 6225 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6226 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
| 6227 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6228 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 6229 | # Let make expand exec_prefix. |
| 6230 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 6231 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6232 | # Any assignment to VPATH causes Sun make to only execute |
| 6233 | # the first set of double-colon rules, so remove it if not needed. |
| 6234 | # If there is a colon in the path, we need to keep it. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6235 | if test "x$srcdir" = x.; then |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6236 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6237 | fi |
| 6238 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6239 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 |
| 6240 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6241 | # Transform confdefs.h into DEFS. |
| 6242 | # Protect against shell expansion while executing Makefile rules. |
| 6243 | # Protect against Makefile macro expansion. |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6244 | cat > conftest.defs <<\EOF |
| 6245 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g |
| 6246 | s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g |
| 6247 | s%\[%\\&%g |
| 6248 | s%\]%\\&%g |
| 6249 | s%\$%$$%g |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6250 | EOF |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6251 | DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '` |
| 6252 | rm -f conftest.defs |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6253 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6254 | |
| 6255 | # Without the "./", some shells look in PATH for config.status. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6256 | : ${CONFIG_STATUS=./config.status} |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6257 | |
| 6258 | echo creating $CONFIG_STATUS |
| 6259 | rm -f $CONFIG_STATUS |
| 6260 | cat > $CONFIG_STATUS <<EOF |
| 6261 | #! /bin/sh |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6262 | # Generated automatically by configure. |
| 6263 | # Run this file to recreate the current configuration. |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6264 | # This directory was configured as follows, |
| 6265 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 6266 | # |
| 6267 | # $0 $ac_configure_args |
| 6268 | # |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6269 | # Compiler output produced by configure, useful for debugging |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6270 | # configure, is in ./config.log if it exists. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6271 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6272 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" |
| 6273 | for ac_option |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 6274 | do |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6275 | case "\$ac_option" in |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 6276 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6277 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" |
| 6278 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; |
| 6279 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) |
| 6280 | echo "$CONFIG_STATUS generated by autoconf version 2.13" |
| 6281 | exit 0 ;; |
| 6282 | -help | --help | --hel | --he | --h) |
| 6283 | echo "\$ac_cs_usage"; exit 0 ;; |
| 6284 | *) echo "\$ac_cs_usage"; exit 1 ;; |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 6285 | esac |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 6286 | done |
| 6287 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6288 | ac_given_srcdir=$srcdir |
| 6289 | ac_given_INSTALL="$INSTALL" |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 6290 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6291 | trap 'rm -fr `echo "$outlist" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 |
| 6292 | EOF |
| 6293 | cat >> $CONFIG_STATUS <<EOF |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 6294 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6295 | # Protect against being on the right side of a sed subst in config.status. |
| 6296 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; |
| 6297 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF |
| 6298 | $ac_vpsub |
| 6299 | $extrasub |
| 6300 | s%@SHELL@%$SHELL%g |
| 6301 | s%@CFLAGS@%$CFLAGS%g |
| 6302 | s%@CPPFLAGS@%$CPPFLAGS%g |
| 6303 | s%@CXXFLAGS@%$CXXFLAGS%g |
| 6304 | s%@FFLAGS@%$FFLAGS%g |
| 6305 | s%@DEFS@%$DEFS%g |
| 6306 | s%@LDFLAGS@%$LDFLAGS%g |
| 6307 | s%@LIBS@%$LIBS%g |
| 6308 | s%@exec_prefix@%$exec_prefix%g |
| 6309 | s%@prefix@%$prefix%g |
| 6310 | s%@program_transform_name@%$program_transform_name%g |
| 6311 | s%@bindir@%$bindir%g |
| 6312 | s%@sbindir@%$sbindir%g |
| 6313 | s%@libexecdir@%$libexecdir%g |
| 6314 | s%@datadir@%$datadir%g |
| 6315 | s%@sysconfdir@%$sysconfdir%g |
| 6316 | s%@sharedstatedir@%$sharedstatedir%g |
| 6317 | s%@localstatedir@%$localstatedir%g |
| 6318 | s%@libdir@%$libdir%g |
| 6319 | s%@includedir@%$includedir%g |
| 6320 | s%@oldincludedir@%$oldincludedir%g |
| 6321 | s%@infodir@%$infodir%g |
| 6322 | s%@mandir@%$mandir%g |
| 6323 | /@MCONFIG@/r $MCONFIG |
| 6324 | s%@MCONFIG@%%g |
| 6325 | s%@E2FSPROGS_YEAR@%$E2FSPROGS_YEAR%g |
| 6326 | s%@E2FSPROGS_MONTH@%$E2FSPROGS_MONTH%g |
| 6327 | s%@E2FSPROGS_DAY@%$E2FSPROGS_DAY%g |
| 6328 | s%@E2FSPROGS_VERSION@%$E2FSPROGS_VERSION%g |
| 6329 | s%@host@%$host%g |
| 6330 | s%@host_alias@%$host_alias%g |
| 6331 | s%@host_cpu@%$host_cpu%g |
| 6332 | s%@host_vendor@%$host_vendor%g |
| 6333 | s%@host_os@%$host_os%g |
| 6334 | s%@CC@%$CC%g |
| 6335 | s%@LD@%$LD%g |
| 6336 | s%@CPP@%$CPP%g |
| 6337 | s%@LINUX_INCLUDE@%$LINUX_INCLUDE%g |
| 6338 | s%@HTREE_CMT@%$HTREE_CMT%g |
| 6339 | s%@HTREE_CLR_CMT@%$HTREE_CLR_CMT%g |
| 6340 | s%@EVMS_ABI_CODE@%$EVMS_ABI_CODE%g |
| 6341 | s%@DLL_CMT@%$DLL_CMT%g |
| 6342 | /@MAKEFILE_DLL@/r $MAKEFILE_DLL |
| 6343 | s%@MAKEFILE_DLL@%%g |
| 6344 | s%@ELF_CMT@%$ELF_CMT%g |
| 6345 | /@MAKEFILE_ELF@/r $MAKEFILE_ELF |
| 6346 | s%@MAKEFILE_ELF@%%g |
| 6347 | s%@BSDLIB_CMT@%$BSDLIB_CMT%g |
| 6348 | /@MAKEFILE_BSDLIB@/r $MAKEFILE_BSDLIB |
| 6349 | s%@MAKEFILE_BSDLIB@%%g |
| 6350 | s%@PROFILE_CMT@%$PROFILE_CMT%g |
| 6351 | /@MAKEFILE_PROFILE@/r $MAKEFILE_PROFILE |
| 6352 | s%@MAKEFILE_PROFILE@%%g |
| 6353 | s%@CHECKER_CMT@%$CHECKER_CMT%g |
| 6354 | /@MAKEFILE_CHECKER@/r $MAKEFILE_CHECKER |
| 6355 | s%@MAKEFILE_CHECKER@%%g |
| 6356 | s%@LIB_EXT@%$LIB_EXT%g |
| 6357 | s%@STATIC_LIB_EXT@%$STATIC_LIB_EXT%g |
| 6358 | s%@PROFILED_LIB_EXT@%$PROFILED_LIB_EXT%g |
| 6359 | s%@SWAPFS_CMT@%$SWAPFS_CMT%g |
| 6360 | s%@DEBUGFS_CMT@%$DEBUGFS_CMT%g |
| 6361 | s%@IMAGER_CMT@%$IMAGER_CMT%g |
| 6362 | s%@RESIZER_CMT@%$RESIZER_CMT%g |
| 6363 | s%@E2FSCK_TYPE@%$E2FSCK_TYPE%g |
| 6364 | s%@FSCK_PROG@%$FSCK_PROG%g |
| 6365 | s%@FSCK_MAN@%$FSCK_MAN%g |
| 6366 | /@MAKEFILE_LIBRARY@/r $MAKEFILE_LIBRARY |
| 6367 | s%@MAKEFILE_LIBRARY@%%g |
| 6368 | s%@PACKAGE@%$PACKAGE%g |
| 6369 | s%@VERSION@%$VERSION%g |
| 6370 | s%@SET_MAKE@%$SET_MAKE%g |
| 6371 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g |
| 6372 | s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g |
| 6373 | s%@INSTALL_DATA@%$INSTALL_DATA%g |
| 6374 | s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g |
| 6375 | s%@MSGFMT@%$MSGFMT%g |
| 6376 | s%@GMSGFMT@%$GMSGFMT%g |
| 6377 | s%@XGETTEXT@%$XGETTEXT%g |
| 6378 | s%@MSGMERGE@%$MSGMERGE%g |
| 6379 | s%@RANLIB@%$RANLIB%g |
| 6380 | s%@ALLOCA@%$ALLOCA%g |
| 6381 | s%@GLIBC21@%$GLIBC21%g |
| 6382 | s%@LIBICONV@%$LIBICONV%g |
| 6383 | s%@LTLIBICONV@%$LTLIBICONV%g |
| 6384 | s%@INTLBISON@%$INTLBISON%g |
| 6385 | s%@USE_NLS@%$USE_NLS%g |
| 6386 | s%@BUILD_INCLUDED_LIBINTL@%$BUILD_INCLUDED_LIBINTL%g |
| 6387 | s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g |
| 6388 | s%@CATOBJEXT@%$CATOBJEXT%g |
| 6389 | s%@INTLOBJS@%$INTLOBJS%g |
| 6390 | s%@DATADIRNAME@%$DATADIRNAME%g |
| 6391 | s%@INSTOBJEXT@%$INSTOBJEXT%g |
| 6392 | s%@GENCAT@%$GENCAT%g |
| 6393 | s%@INTL_LIBTOOL_SUFFIX_PREFIX@%$INTL_LIBTOOL_SUFFIX_PREFIX%g |
| 6394 | s%@INTLLIBS@%$INTLLIBS%g |
| 6395 | s%@LIBINTL@%$LIBINTL%g |
| 6396 | s%@LTLIBINTL@%$LTLIBINTL%g |
| 6397 | s%@POSUB@%$POSUB%g |
| 6398 | s%@BINARY_TYPE@%$BINARY_TYPE%g |
| 6399 | s%@LN@%$LN%g |
| 6400 | s%@LN_S@%$LN_S%g |
| 6401 | s%@MV@%$MV%g |
| 6402 | s%@CP@%$CP%g |
| 6403 | s%@RM@%$RM%g |
| 6404 | s%@CHMOD@%$CHMOD%g |
| 6405 | s%@AWK@%$AWK%g |
| 6406 | s%@SED@%$SED%g |
| 6407 | s%@PERL@%$PERL%g |
| 6408 | s%@LDCONFIG@%$LDCONFIG%g |
| 6409 | s%@build@%$build%g |
| 6410 | s%@build_alias@%$build_alias%g |
| 6411 | s%@build_cpu@%$build_cpu%g |
| 6412 | s%@build_vendor@%$build_vendor%g |
| 6413 | s%@build_os@%$build_os%g |
| 6414 | s%@AR@%$AR%g |
| 6415 | s%@STRIP@%$STRIP%g |
| 6416 | s%@BUILD_CC@%$BUILD_CC%g |
| 6417 | s%@SIZEOF_SHORT@%$SIZEOF_SHORT%g |
| 6418 | s%@SIZEOF_INT@%$SIZEOF_INT%g |
| 6419 | s%@SIZEOF_LONG@%$SIZEOF_LONG%g |
| 6420 | s%@SIZEOF_LONG_LONG@%$SIZEOF_LONG_LONG%g |
| 6421 | s%@SOCKET_LIB@%$SOCKET_LIB%g |
| 6422 | s%@DLOPEN_LIB@%$DLOPEN_LIB%g |
| 6423 | s%@LINUX_CMT@%$LINUX_CMT%g |
| 6424 | s%@CYGWIN_CMT@%$CYGWIN_CMT%g |
| 6425 | s%@UNIX_CMT@%$UNIX_CMT%g |
| 6426 | s%@EVMS_CMT@%$EVMS_CMT%g |
| 6427 | s%@root_prefix@%$root_prefix%g |
| 6428 | s%@root_bindir@%$root_bindir%g |
| 6429 | s%@root_sbindir@%$root_sbindir%g |
| 6430 | s%@root_libdir@%$root_libdir%g |
| 6431 | s%@root_sysconfdir@%$root_sysconfdir%g |
| 6432 | s%@LDFLAG_STATIC@%$LDFLAG_STATIC%g |
| 6433 | s%@SS_DIR@%$SS_DIR%g |
| 6434 | s%@ET_DIR@%$ET_DIR%g |
| 6435 | s%@DO_TEST_SUITE@%$DO_TEST_SUITE%g |
| 6436 | s%@INTL_FLAGS@%$INTL_FLAGS%g |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 6437 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6438 | CEOF |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 6439 | EOF |
| 6440 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6441 | cat >> $CONFIG_STATUS <<\EOF |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 6442 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6443 | # Split the substitutions into bite-sized pieces for seds with |
| 6444 | # small command number limits, like on Digital OSF/1 and HP-UX. |
| 6445 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. |
| 6446 | ac_file=1 # Number of current file. |
| 6447 | ac_beg=1 # First line for current file. |
| 6448 | ac_end=$ac_max_sed_cmds # Line after last line for current file. |
| 6449 | ac_more_lines=: |
| 6450 | ac_sed_cmds="" |
| 6451 | while $ac_more_lines; do |
| 6452 | if test $ac_beg -gt 1; then |
| 6453 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file |
| 6454 | else |
| 6455 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file |
| 6456 | fi |
| 6457 | if test ! -s conftest.s$ac_file; then |
| 6458 | ac_more_lines=false |
| 6459 | rm -f conftest.s$ac_file |
| 6460 | else |
| 6461 | if test -z "$ac_sed_cmds"; then |
| 6462 | ac_sed_cmds="sed -f conftest.s$ac_file" |
| 6463 | else |
| 6464 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" |
| 6465 | fi |
| 6466 | ac_file=`expr $ac_file + 1` |
| 6467 | ac_beg=$ac_end |
| 6468 | ac_end=`expr $ac_end + $ac_max_sed_cmds` |
| 6469 | fi |
| 6470 | done |
| 6471 | if test -z "$ac_sed_cmds"; then |
| 6472 | ac_sed_cmds=cat |
| 6473 | fi |
| 6474 | EOF |
| 6475 | |
| 6476 | cat >> $CONFIG_STATUS <<EOF |
| 6477 | |
| 6478 | CONFIG_FILES=\${CONFIG_FILES-"$outlist"} |
| 6479 | EOF |
| 6480 | cat >> $CONFIG_STATUS <<\EOF |
| 6481 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then |
| 6482 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
| 6483 | case "$ac_file" in |
| 6484 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` |
| 6485 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
| 6486 | *) ac_file_in="${ac_file}.in" ;; |
| 6487 | esac |
| 6488 | |
| 6489 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. |
| 6490 | |
| 6491 | # Remove last slash and all that follows it. Not all systems have dirname. |
| 6492 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` |
| 6493 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
| 6494 | # The file is in a subdirectory. |
| 6495 | test ! -d "$ac_dir" && mkdir "$ac_dir" |
| 6496 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" |
| 6497 | # A "../" for each directory in $ac_dir_suffix. |
| 6498 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` |
| 6499 | else |
| 6500 | ac_dir_suffix= ac_dots= |
| 6501 | fi |
| 6502 | |
| 6503 | case "$ac_given_srcdir" in |
| 6504 | .) srcdir=. |
| 6505 | if test -z "$ac_dots"; then top_srcdir=. |
| 6506 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; |
| 6507 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; |
| 6508 | *) # Relative path. |
| 6509 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" |
| 6510 | top_srcdir="$ac_dots$ac_given_srcdir" ;; |
| 6511 | esac |
| 6512 | |
| 6513 | case "$ac_given_INSTALL" in |
| 6514 | [/$]*) INSTALL="$ac_given_INSTALL" ;; |
| 6515 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; |
| 6516 | esac |
| 6517 | |
| 6518 | echo creating "$ac_file" |
| 6519 | rm -f "$ac_file" |
| 6520 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." |
| 6521 | case "$ac_file" in |
| 6522 | *Makefile*) ac_comsub="1i\\ |
| 6523 | # $configure_input" ;; |
| 6524 | *) ac_comsub= ;; |
| 6525 | esac |
| 6526 | |
| 6527 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` |
| 6528 | sed -e "$ac_comsub |
| 6529 | s%@configure_input@%$configure_input%g |
| 6530 | s%@srcdir@%$srcdir%g |
| 6531 | s%@top_srcdir@%$top_srcdir%g |
| 6532 | s%@INSTALL@%$INSTALL%g |
| 6533 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file |
| 6534 | fi; done |
| 6535 | rm -f conftest.s* |
| 6536 | |
| 6537 | EOF |
| 6538 | cat >> $CONFIG_STATUS <<EOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6539 | # Capture the value of obsolete ALL_LINGUAS because we need it to compute |
| 6540 | # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it |
| 6541 | # from automake. |
| 6542 | eval 'ALL_LINGUAS''="$ALL_LINGUAS"' |
| 6543 | # Capture the value of LINGUAS because we need it to compute CATALOGS. |
| 6544 | LINGUAS="${LINGUAS-%UNSET%}" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6545 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6546 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 6547 | EOF |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6548 | cat >> $CONFIG_STATUS <<\EOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6549 | |
| 6550 | for ac_file in $CONFIG_FILES; do |
| 6551 | # Support "outfile[:infile[:infile...]]" |
| 6552 | case "$ac_file" in |
| 6553 | *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6554 | esac |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 6555 | # PO directories have a Makefile.in generated from Makefile.in.in. |
| 6556 | case "$ac_file" in */Makefile.in) |
| 6557 | # Adjust a relative srcdir. |
| 6558 | ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` |
| 6559 | ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`" |
| 6560 | ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` |
| 6561 | # In autoconf-2.13 it is called $ac_given_srcdir. |
| 6562 | # In autoconf-2.50 it is called $srcdir. |
| 6563 | test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" |
| 6564 | case "$ac_given_srcdir" in |
| 6565 | .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; |
| 6566 | /*) top_srcdir="$ac_given_srcdir" ;; |
| 6567 | *) top_srcdir="$ac_dots$ac_given_srcdir" ;; |
| 6568 | esac |
| 6569 | if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then |
| 6570 | rm -f "$ac_dir/POTFILES" |
| 6571 | test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" |
| 6572 | cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" |
| 6573 | # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend |
| 6574 | # on $ac_dir but don't depend on user-specified configuration |
| 6575 | # parameters. |
| 6576 | if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then |
| 6577 | # The LINGUAS file contains the set of available languages. |
| 6578 | if test -n "$ALL_LINGUAS"; then |
| 6579 | test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" |
| 6580 | fi |
| 6581 | ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"` |
| 6582 | # Hide the ALL_LINGUAS assigment from automake. |
| 6583 | eval 'ALL_LINGUAS''=$ALL_LINGUAS_' |
| 6584 | fi |
| 6585 | case "$ac_given_srcdir" in |
| 6586 | .) srcdirpre= ;; |
| 6587 | *) srcdirpre='$(srcdir)/' ;; |
| 6588 | esac |
| 6589 | POFILES= |
| 6590 | GMOFILES= |
| 6591 | UPDATEPOFILES= |
| 6592 | DUMMYPOFILES= |
| 6593 | for lang in $ALL_LINGUAS; do |
| 6594 | POFILES="$POFILES $srcdirpre$lang.po" |
| 6595 | GMOFILES="$GMOFILES $srcdirpre$lang.gmo" |
| 6596 | UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" |
| 6597 | DUMMYPOFILES="$DUMMYPOFILES $lang.nop" |
| 6598 | done |
| 6599 | # CATALOGS depends on both $ac_dir and the user's LINGUAS |
| 6600 | # environment variable. |
| 6601 | INST_LINGUAS= |
| 6602 | if test -n "$ALL_LINGUAS"; then |
| 6603 | for presentlang in $ALL_LINGUAS; do |
| 6604 | useit=no |
| 6605 | if test "%UNSET%" != "$LINGUAS"; then |
| 6606 | desiredlanguages="$LINGUAS" |
| 6607 | else |
| 6608 | desiredlanguages="$ALL_LINGUAS" |
| 6609 | fi |
| 6610 | for desiredlang in $desiredlanguages; do |
| 6611 | # Use the presentlang catalog if desiredlang is |
| 6612 | # a. equal to presentlang, or |
| 6613 | # b. a variant of presentlang (because in this case, |
| 6614 | # presentlang can be used as a fallback for messages |
| 6615 | # which are not translated in the desiredlang catalog). |
| 6616 | case "$desiredlang" in |
| 6617 | "$presentlang"*) useit=yes;; |
| 6618 | esac |
| 6619 | done |
| 6620 | if test $useit = yes; then |
| 6621 | INST_LINGUAS="$INST_LINGUAS $presentlang" |
| 6622 | fi |
| 6623 | done |
| 6624 | fi |
| 6625 | CATALOGS= |
| 6626 | if test -n "$INST_LINGUAS"; then |
| 6627 | for lang in $INST_LINGUAS; do |
| 6628 | CATALOGS="$CATALOGS $lang.gmo" |
| 6629 | done |
| 6630 | fi |
| 6631 | test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" |
| 6632 | sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile" |
| 6633 | for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do |
| 6634 | if test -f "$f"; then |
| 6635 | case "$f" in |
| 6636 | *.orig | *.bak | *~) ;; |
| 6637 | *) cat "$f" >> "$ac_dir/Makefile" ;; |
| 6638 | esac |
| 6639 | fi |
| 6640 | done |
| 6641 | fi |
| 6642 | ;; |
| 6643 | esac |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6644 | done |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6645 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6646 | exit 0 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6647 | EOF |
| 6648 | chmod +x $CONFIG_STATUS |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6649 | rm -fr confdefs* $ac_clean_files |
| 6650 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6651 | |