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