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