| 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 | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 63 |   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]" | 
 | 64 | ac_help="$ac_help | 
 | 65 |   --disable-rpath         do not hardcode runtime library paths" | 
 | 66 | ac_help="$ac_help | 
 | 67 |   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib | 
 | 68 |   --without-libiconv-prefix     don't search for libiconv in includedir and libdir" | 
 | 69 | ac_help="$ac_help | 
 | 70 |   --disable-nls           do not use Native Language Support" | 
| Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 71 | ac_help="$ac_help | 
 | 72 |   --with-included-gettext use the GNU gettext library included here" | 
 | 73 | ac_help="$ac_help | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 74 |   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib | 
 | 75 |   --without-libintl-prefix     don't search for libintl in includedir and libdir" | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 76 |  | 
 | 77 | # Initialize some variables set by options. | 
 | 78 | # The variables have the same names as the options, with | 
 | 79 | # dashes changed to underlines. | 
 | 80 | build=NONE | 
 | 81 | cache_file=./config.cache | 
 | 82 | exec_prefix=NONE | 
 | 83 | host=NONE | 
 | 84 | no_create= | 
 | 85 | nonopt=NONE | 
 | 86 | no_recursion= | 
 | 87 | prefix=NONE | 
 | 88 | program_prefix=NONE | 
 | 89 | program_suffix=NONE | 
 | 90 | program_transform_name=s,x,x, | 
 | 91 | silent= | 
 | 92 | site= | 
 | 93 | srcdir= | 
 | 94 | target=NONE | 
 | 95 | verbose= | 
 | 96 | x_includes=NONE | 
 | 97 | x_libraries=NONE | 
| Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 98 | bindir='${exec_prefix}/bin' | 
 | 99 | sbindir='${exec_prefix}/sbin' | 
 | 100 | libexecdir='${exec_prefix}/libexec' | 
 | 101 | datadir='${prefix}/share' | 
 | 102 | sysconfdir='${prefix}/etc' | 
 | 103 | sharedstatedir='${prefix}/com' | 
 | 104 | localstatedir='${prefix}/var' | 
 | 105 | libdir='${exec_prefix}/lib' | 
 | 106 | includedir='${prefix}/include' | 
 | 107 | oldincludedir='/usr/include' | 
 | 108 | infodir='${prefix}/info' | 
 | 109 | mandir='${prefix}/man' | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 110 |  | 
 | 111 | # Initialize some other variables. | 
 | 112 | subdirs= | 
| Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 113 | MFLAGS= MAKEFLAGS= | 
| Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame] | 114 | SHELL=${CONFIG_SHELL-/bin/sh} | 
| Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 115 | # Maximum number of lines to put in a shell here document. | 
 | 116 | ac_max_here_lines=12 | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 117 |  | 
 | 118 | ac_prev= | 
 | 119 | for ac_option | 
 | 120 | do | 
 | 121 |  | 
 | 122 |   # If the previous option needs an argument, assign it. | 
 | 123 |   if test -n "$ac_prev"; then | 
 | 124 |     eval "$ac_prev=\$ac_option" | 
 | 125 |     ac_prev= | 
 | 126 |     continue | 
 | 127 |   fi | 
 | 128 |  | 
 | 129 |   case "$ac_option" in | 
 | 130 |   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; | 
 | 131 |   *) ac_optarg= ;; | 
 | 132 |   esac | 
 | 133 |  | 
 | 134 |   # Accept the important Cygnus configure options, so we can diagnose typos. | 
 | 135 |  | 
 | 136 |   case "$ac_option" in | 
 | 137 |  | 
| Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 138 |   -bindir | --bindir | --bindi | --bind | --bin | --bi) | 
 | 139 |     ac_prev=bindir ;; | 
 | 140 |   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | 
 | 141 |     bindir="$ac_optarg" ;; | 
 | 142 |  | 
 | 143 |   -build | --build | --buil | --bui | --bu) | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 144 |     ac_prev=build ;; | 
| Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 145 |   -build=* | --build=* | --buil=* | --bui=* | --bu=*) | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 146 |     build="$ac_optarg" ;; | 
 | 147 |  | 
 | 148 |   -cache-file | --cache-file | --cache-fil | --cache-fi \ | 
 | 149 |   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | 
 | 150 |     ac_prev=cache_file ;; | 
 | 151 |   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | 
 | 152 |   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | 
 | 153 |     cache_file="$ac_optarg" ;; | 
 | 154 |  | 
| Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 155 |   -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | 
 | 156 |     ac_prev=datadir ;; | 
 | 157 |   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | 
 | 158 |   | --da=*) | 
 | 159 |     datadir="$ac_optarg" ;; | 
 | 160 |  | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 161 |   -disable-* | --disable-*) | 
 | 162 |     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` | 
 | 163 |     # Reject names that are not valid shell variable names. | 
 | 164 |     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then | 
 | 165 |       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | 
 | 166 |     fi | 
 | 167 |     ac_feature=`echo $ac_feature| sed 's/-/_/g'` | 
 | 168 |     eval "enable_${ac_feature}=no" ;; | 
 | 169 |  | 
 | 170 |   -enable-* | --enable-*) | 
 | 171 |     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` | 
 | 172 |     # Reject names that are not valid shell variable names. | 
 | 173 |     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then | 
 | 174 |       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | 
 | 175 |     fi | 
 | 176 |     ac_feature=`echo $ac_feature| sed 's/-/_/g'` | 
 | 177 |     case "$ac_option" in | 
 | 178 |       *=*) ;; | 
 | 179 |       *) ac_optarg=yes ;; | 
 | 180 |     esac | 
 | 181 |     eval "enable_${ac_feature}='$ac_optarg'" ;; | 
 | 182 |  | 
 | 183 |   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | 
 | 184 |   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | 
 | 185 |   | --exec | --exe | --ex) | 
 | 186 |     ac_prev=exec_prefix ;; | 
 | 187 |   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | 
 | 188 |   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | 
 | 189 |   | --exec=* | --exe=* | --ex=*) | 
 | 190 |     exec_prefix="$ac_optarg" ;; | 
 | 191 |  | 
 | 192 |   -gas | --gas | --ga | --g) | 
 | 193 |     # Obsolete; use --with-gas. | 
 | 194 |     with_gas=yes ;; | 
 | 195 |  | 
 | 196 |   -help | --help | --hel | --he) | 
 | 197 |     # Omit some internal or obsolete options to make the list less imposing. | 
 | 198 |     # This message is too long to be a string in the A/UX 3.1 sh. | 
 | 199 |     cat << EOF | 
 | 200 | Usage: configure [options] [host] | 
 | 201 | Options: [defaults in brackets after descriptions] | 
 | 202 | Configuration: | 
 | 203 |   --cache-file=FILE       cache test results in FILE | 
 | 204 |   --help                  print this message | 
 | 205 |   --no-create             do not create output files | 
 | 206 |   --quiet, --silent       do not print \`checking...' messages | 
 | 207 |   --version               print the version of autoconf that created configure | 
 | 208 | Directory and file names: | 
 | 209 |   --prefix=PREFIX         install architecture-independent files in PREFIX | 
 | 210 |                           [$ac_default_prefix] | 
| Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 211 |   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 212 |                           [same as prefix] | 
| Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 213 |   --bindir=DIR            user executables in DIR [EPREFIX/bin] | 
 | 214 |   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin] | 
 | 215 |   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec] | 
 | 216 |   --datadir=DIR           read-only architecture-independent data in DIR | 
 | 217 |                           [PREFIX/share] | 
 | 218 |   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc] | 
 | 219 |   --sharedstatedir=DIR    modifiable architecture-independent data in DIR | 
 | 220 |                           [PREFIX/com] | 
 | 221 |   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var] | 
 | 222 |   --libdir=DIR            object code libraries in DIR [EPREFIX/lib] | 
 | 223 |   --includedir=DIR        C header files in DIR [PREFIX/include] | 
 | 224 |   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include] | 
 | 225 |   --infodir=DIR           info documentation in DIR [PREFIX/info] | 
 | 226 |   --mandir=DIR            man documentation in DIR [PREFIX/man] | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 227 |   --srcdir=DIR            find the sources in DIR [configure dir or ..] | 
 | 228 |   --program-prefix=PREFIX prepend PREFIX to installed program names | 
 | 229 |   --program-suffix=SUFFIX append SUFFIX to installed program names | 
| Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 230 |   --program-transform-name=PROGRAM | 
 | 231 |                           run sed PROGRAM on installed program names | 
 | 232 | EOF | 
 | 233 |     cat << EOF | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 234 | Host type: | 
 | 235 |   --build=BUILD           configure for building on BUILD [BUILD=HOST] | 
 | 236 |   --host=HOST             configure for HOST [guessed] | 
 | 237 |   --target=TARGET         configure for TARGET [TARGET=HOST] | 
 | 238 | Features and packages: | 
 | 239 |   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no) | 
 | 240 |   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes] | 
 | 241 |   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes] | 
 | 242 |   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no) | 
 | 243 |   --x-includes=DIR        X include files are in DIR | 
 | 244 |   --x-libraries=DIR       X library files are in DIR | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 245 | EOF | 
| Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 246 |     if test -n "$ac_help"; then | 
 | 247 |       echo "--enable and --with options recognized:$ac_help" | 
 | 248 |     fi | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 249 |     exit 0 ;; | 
 | 250 |  | 
 | 251 |   -host | --host | --hos | --ho) | 
 | 252 |     ac_prev=host ;; | 
 | 253 |   -host=* | --host=* | --hos=* | --ho=*) | 
 | 254 |     host="$ac_optarg" ;; | 
 | 255 |  | 
| Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 256 |   -includedir | --includedir | --includedi | --included | --include \ | 
 | 257 |   | --includ | --inclu | --incl | --inc) | 
 | 258 |     ac_prev=includedir ;; | 
 | 259 |   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | 
 | 260 |   | --includ=* | --inclu=* | --incl=* | --inc=*) | 
 | 261 |     includedir="$ac_optarg" ;; | 
 | 262 |  | 
 | 263 |   -infodir | --infodir | --infodi | --infod | --info | --inf) | 
 | 264 |     ac_prev=infodir ;; | 
 | 265 |   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | 
 | 266 |     infodir="$ac_optarg" ;; | 
 | 267 |  | 
 | 268 |   -libdir | --libdir | --libdi | --libd) | 
 | 269 |     ac_prev=libdir ;; | 
 | 270 |   -libdir=* | --libdir=* | --libdi=* | --libd=*) | 
 | 271 |     libdir="$ac_optarg" ;; | 
 | 272 |  | 
 | 273 |   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | 
 | 274 |   | --libexe | --libex | --libe) | 
 | 275 |     ac_prev=libexecdir ;; | 
 | 276 |   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | 
 | 277 |   | --libexe=* | --libex=* | --libe=*) | 
 | 278 |     libexecdir="$ac_optarg" ;; | 
 | 279 |  | 
 | 280 |   -localstatedir | --localstatedir | --localstatedi | --localstated \ | 
 | 281 |   | --localstate | --localstat | --localsta | --localst \ | 
 | 282 |   | --locals | --local | --loca | --loc | --lo) | 
 | 283 |     ac_prev=localstatedir ;; | 
 | 284 |   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | 
 | 285 |   | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | 
 | 286 |   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | 
 | 287 |     localstatedir="$ac_optarg" ;; | 
 | 288 |  | 
 | 289 |   -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | 
 | 290 |     ac_prev=mandir ;; | 
 | 291 |   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | 
 | 292 |     mandir="$ac_optarg" ;; | 
 | 293 |  | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 294 |   -nfp | --nfp | --nf) | 
 | 295 |     # Obsolete; use --without-fp. | 
 | 296 |     with_fp=no ;; | 
 | 297 |  | 
 | 298 |   -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | 
 | 299 |   | --no-cr | --no-c) | 
 | 300 |     no_create=yes ;; | 
 | 301 |  | 
 | 302 |   -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | 
 | 303 |   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | 
 | 304 |     no_recursion=yes ;; | 
 | 305 |  | 
| Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 306 |   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | 
 | 307 |   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | 
 | 308 |   | --oldin | --oldi | --old | --ol | --o) | 
 | 309 |     ac_prev=oldincludedir ;; | 
 | 310 |   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | 
 | 311 |   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | 
 | 312 |   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | 
 | 313 |     oldincludedir="$ac_optarg" ;; | 
 | 314 |  | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 315 |   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | 
 | 316 |     ac_prev=prefix ;; | 
 | 317 |   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | 
 | 318 |     prefix="$ac_optarg" ;; | 
 | 319 |  | 
 | 320 |   -program-prefix | --program-prefix | --program-prefi | --program-pref \ | 
 | 321 |   | --program-pre | --program-pr | --program-p) | 
 | 322 |     ac_prev=program_prefix ;; | 
 | 323 |   -program-prefix=* | --program-prefix=* | --program-prefi=* \ | 
 | 324 |   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | 
 | 325 |     program_prefix="$ac_optarg" ;; | 
 | 326 |  | 
 | 327 |   -program-suffix | --program-suffix | --program-suffi | --program-suff \ | 
 | 328 |   | --program-suf | --program-su | --program-s) | 
 | 329 |     ac_prev=program_suffix ;; | 
 | 330 |   -program-suffix=* | --program-suffix=* | --program-suffi=* \ | 
 | 331 |   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | 
 | 332 |     program_suffix="$ac_optarg" ;; | 
 | 333 |  | 
 | 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 |     ac_prev=program_transform_name ;; | 
 | 342 |   -program-transform-name=* | --program-transform-name=* \ | 
 | 343 |   | --program-transform-nam=* | --program-transform-na=* \ | 
 | 344 |   | --program-transform-n=* | --program-transform-=* \ | 
 | 345 |   | --program-transform=* | --program-transfor=* \ | 
 | 346 |   | --program-transfo=* | --program-transf=* \ | 
 | 347 |   | --program-trans=* | --program-tran=* \ | 
 | 348 |   | --progr-tra=* | --program-tr=* | --program-t=*) | 
 | 349 |     program_transform_name="$ac_optarg" ;; | 
 | 350 |  | 
 | 351 |   -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | 
 | 352 |   | -silent | --silent | --silen | --sile | --sil) | 
 | 353 |     silent=yes ;; | 
 | 354 |  | 
| Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 355 |   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | 
 | 356 |     ac_prev=sbindir ;; | 
 | 357 |   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | 
 | 358 |   | --sbi=* | --sb=*) | 
 | 359 |     sbindir="$ac_optarg" ;; | 
 | 360 |  | 
 | 361 |   -sharedstatedir | --sharedstatedir | --sharedstatedi \ | 
 | 362 |   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | 
 | 363 |   | --sharedst | --shareds | --shared | --share | --shar \ | 
 | 364 |   | --sha | --sh) | 
 | 365 |     ac_prev=sharedstatedir ;; | 
 | 366 |   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | 
 | 367 |   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | 
 | 368 |   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | 
 | 369 |   | --sha=* | --sh=*) | 
 | 370 |     sharedstatedir="$ac_optarg" ;; | 
 | 371 |  | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 372 |   -site | --site | --sit) | 
 | 373 |     ac_prev=site ;; | 
 | 374 |   -site=* | --site=* | --sit=*) | 
 | 375 |     site="$ac_optarg" ;; | 
 | 376 |  | 
 | 377 |   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | 
 | 378 |     ac_prev=srcdir ;; | 
 | 379 |   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | 
 | 380 |     srcdir="$ac_optarg" ;; | 
 | 381 |  | 
| Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 382 |   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | 
 | 383 |   | --syscon | --sysco | --sysc | --sys | --sy) | 
 | 384 |     ac_prev=sysconfdir ;; | 
 | 385 |   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | 
 | 386 |   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | 
 | 387 |     sysconfdir="$ac_optarg" ;; | 
 | 388 |  | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 389 |   -target | --target | --targe | --targ | --tar | --ta | --t) | 
 | 390 |     ac_prev=target ;; | 
 | 391 |   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | 
 | 392 |     target="$ac_optarg" ;; | 
 | 393 |  | 
 | 394 |   -v | -verbose | --verbose | --verbos | --verbo | --verb) | 
 | 395 |     verbose=yes ;; | 
 | 396 |  | 
 | 397 |   -version | --version | --versio | --versi | --vers) | 
| Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame] | 398 |     echo "configure generated by autoconf version 2.13" | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 399 |     exit 0 ;; | 
 | 400 |  | 
 | 401 |   -with-* | --with-*) | 
 | 402 |     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` | 
 | 403 |     # Reject names that are not valid shell variable names. | 
 | 404 |     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then | 
 | 405 |       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | 
 | 406 |     fi | 
 | 407 |     ac_package=`echo $ac_package| sed 's/-/_/g'` | 
 | 408 |     case "$ac_option" in | 
 | 409 |       *=*) ;; | 
 | 410 |       *) ac_optarg=yes ;; | 
 | 411 |     esac | 
 | 412 |     eval "with_${ac_package}='$ac_optarg'" ;; | 
 | 413 |  | 
 | 414 |   -without-* | --without-*) | 
 | 415 |     ac_package=`echo $ac_option|sed -e 's/-*without-//'` | 
 | 416 |     # Reject names that are not valid shell variable names. | 
 | 417 |     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then | 
 | 418 |       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | 
 | 419 |     fi | 
 | 420 |     ac_package=`echo $ac_package| sed 's/-/_/g'` | 
 | 421 |     eval "with_${ac_package}=no" ;; | 
 | 422 |  | 
 | 423 |   --x) | 
 | 424 |     # Obsolete; use --with-x. | 
 | 425 |     with_x=yes ;; | 
 | 426 |  | 
 | 427 |   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | 
 | 428 |   | --x-incl | --x-inc | --x-in | --x-i) | 
 | 429 |     ac_prev=x_includes ;; | 
 | 430 |   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | 
 | 431 |   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | 
 | 432 |     x_includes="$ac_optarg" ;; | 
 | 433 |  | 
 | 434 |   -x-libraries | --x-libraries | --x-librarie | --x-librari \ | 
 | 435 |   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | 
 | 436 |     ac_prev=x_libraries ;; | 
 | 437 |   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | 
 | 438 |   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | 
 | 439 |     x_libraries="$ac_optarg" ;; | 
 | 440 |  | 
 | 441 |   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } | 
 | 442 |     ;; | 
 | 443 |  | 
| Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 444 |   *) | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 445 |     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then | 
 | 446 |       echo "configure: warning: $ac_option: invalid host type" 1>&2 | 
 | 447 |     fi | 
 | 448 |     if test "x$nonopt" != xNONE; then | 
 | 449 |       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } | 
 | 450 |     fi | 
 | 451 |     nonopt="$ac_option" | 
 | 452 |     ;; | 
 | 453 |  | 
 | 454 |   esac | 
 | 455 | done | 
 | 456 |  | 
 | 457 | if test -n "$ac_prev"; then | 
 | 458 |   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } | 
 | 459 | fi | 
 | 460 |  | 
 | 461 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | 
 | 462 |  | 
 | 463 | # File descriptor usage: | 
 | 464 | # 0 standard input | 
 | 465 | # 1 file creation | 
 | 466 | # 2 errors and warnings | 
 | 467 | # 3 some systems may open it to /dev/tty | 
 | 468 | # 4 used on the Kubota Titan | 
 | 469 | # 6 checking for... messages and results | 
 | 470 | # 5 compiler messages saved in config.log | 
 | 471 | if test "$silent" = yes; then | 
 | 472 |   exec 6>/dev/null | 
 | 473 | else | 
 | 474 |   exec 6>&1 | 
 | 475 | fi | 
 | 476 | exec 5>./config.log | 
 | 477 |  | 
 | 478 | echo "\ | 
 | 479 | This file contains any messages produced by compilers while | 
 | 480 | running configure, to aid debugging if configure makes a mistake. | 
 | 481 | " 1>&5 | 
 | 482 |  | 
 | 483 | # Strip out --no-create and --no-recursion so they do not pile up. | 
 | 484 | # Also quote any args containing shell metacharacters. | 
 | 485 | ac_configure_args= | 
 | 486 | for ac_arg | 
 | 487 | do | 
 | 488 |   case "$ac_arg" in | 
 | 489 |   -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | 
 | 490 |   | --no-cr | --no-c) ;; | 
 | 491 |   -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | 
 | 492 |   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; | 
 | 493 |   *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) | 
 | 494 |   ac_configure_args="$ac_configure_args '$ac_arg'" ;; | 
 | 495 |   *) ac_configure_args="$ac_configure_args $ac_arg" ;; | 
 | 496 |   esac | 
 | 497 | done | 
 | 498 |  | 
 | 499 | # NLS nuisances. | 
| Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 500 | # Only set these to C if already set.  These must not be set unconditionally | 
 | 501 | # because not all systems understand e.g. LANG=C (notably SCO). | 
 | 502 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! | 
 | 503 | # Non-C LC_CTYPE values break the ctype check. | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 504 | if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi | 
| Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 505 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi | 
 | 506 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi | 
 | 507 | 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] | 508 |  | 
 | 509 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | 
 | 510 | rm -rf conftest* confdefs.h | 
 | 511 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | 
 | 512 | echo > confdefs.h | 
 | 513 |  | 
 | 514 | # A filename unique to this package, relative to the directory that | 
 | 515 | # configure is in, which we can look for to find out if srcdir is correct. | 
 | 516 | ac_unique_file=version.h | 
 | 517 |  | 
 | 518 | # Find the source files, if location was not specified. | 
 | 519 | if test -z "$srcdir"; then | 
 | 520 |   ac_srcdir_defaulted=yes | 
 | 521 |   # Try the directory containing this script, then its parent. | 
 | 522 |   ac_prog=$0 | 
 | 523 |   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` | 
 | 524 |   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. | 
 | 525 |   srcdir=$ac_confdir | 
 | 526 |   if test ! -r $srcdir/$ac_unique_file; then | 
 | 527 |     srcdir=.. | 
 | 528 |   fi | 
 | 529 | else | 
 | 530 |   ac_srcdir_defaulted=no | 
 | 531 | fi | 
 | 532 | if test ! -r $srcdir/$ac_unique_file; then | 
 | 533 |   if test "$ac_srcdir_defaulted" = yes; then | 
 | 534 |     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } | 
 | 535 |   else | 
 | 536 |     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } | 
 | 537 |   fi | 
 | 538 | fi | 
 | 539 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` | 
 | 540 |  | 
 | 541 | # Prefer explicitly selected file to automatically selected ones. | 
 | 542 | if test -z "$CONFIG_SITE"; then | 
 | 543 |   if test "x$prefix" != xNONE; then | 
 | 544 |     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | 
 | 545 |   else | 
 | 546 |     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | 
 | 547 |   fi | 
 | 548 | fi | 
 | 549 | for ac_site_file in $CONFIG_SITE; do | 
 | 550 |   if test -r "$ac_site_file"; then | 
 | 551 |     echo "loading site script $ac_site_file" | 
 | 552 |     . "$ac_site_file" | 
 | 553 |   fi | 
 | 554 | done | 
 | 555 |  | 
 | 556 | if test -r "$cache_file"; then | 
 | 557 |   echo "loading cache $cache_file" | 
 | 558 |   . $cache_file | 
 | 559 | else | 
 | 560 |   echo "creating cache $cache_file" | 
 | 561 |   > $cache_file | 
 | 562 | fi | 
 | 563 |  | 
 | 564 | ac_ext=c | 
 | 565 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | 
 | 566 | ac_cpp='$CPP $CPPFLAGS' | 
| Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 567 | 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] | 568 | 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] | 569 | cross_compiling=$ac_cv_prog_cc_cross | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 570 |  | 
| Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame] | 571 | ac_exeext= | 
 | 572 | ac_objext=o | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 573 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then | 
 | 574 |   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. | 
 | 575 |   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then | 
 | 576 |     ac_n= ac_c=' | 
 | 577 | ' ac_t='	' | 
 | 578 |   else | 
 | 579 |     ac_n=-n ac_c= ac_t= | 
 | 580 |   fi | 
 | 581 | else | 
 | 582 |   ac_n= ac_c='\c' ac_t= | 
 | 583 | fi | 
 | 584 |  | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 585 | # Check whether --with-gnu-ld or --without-gnu-ld was given. | 
 | 586 | if test "${with_gnu_ld+set}" = set; then | 
 | 587 |   withval="$with_gnu_ld" | 
 | 588 |   test "$withval" = no || with_gnu_ld=yes | 
 | 589 | else | 
 | 590 |   with_gnu_ld=no | 
 | 591 | fi | 
 | 592 |  | 
 | 593 | ac_prog=ld | 
 | 594 | if test "$GCC" = yes; then | 
 | 595 |   # Check if gcc -print-prog-name=ld gives a path. | 
 | 596 |   echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6 | 
 | 597 | echo "configure:598: checking for ld used by GCC" >&5 | 
 | 598 |   case $host in | 
 | 599 |   *-*-mingw*) | 
 | 600 |     # gcc leaves a trailing carriage return which upsets mingw | 
 | 601 |     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | 
 | 602 |   *) | 
 | 603 |     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | 
 | 604 |   esac | 
 | 605 |   case $ac_prog in | 
 | 606 |     # Accept absolute paths. | 
 | 607 |     [\\/]* | [A-Za-z]:[\\/]*) | 
 | 608 |       re_direlt='/[^/][^/]*/\.\./' | 
 | 609 |       # Canonicalize the path of ld | 
 | 610 |       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` | 
 | 611 |       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do | 
 | 612 | 	ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` | 
 | 613 |       done | 
 | 614 |       test -z "$LD" && LD="$ac_prog" | 
 | 615 |       ;; | 
 | 616 |   "") | 
 | 617 |     # If it fails, then pretend we aren't using GCC. | 
 | 618 |     ac_prog=ld | 
 | 619 |     ;; | 
 | 620 |   *) | 
 | 621 |     # If it is relative, then search for the first ld in PATH. | 
 | 622 |     with_gnu_ld=unknown | 
 | 623 |     ;; | 
 | 624 |   esac | 
 | 625 | elif test "$with_gnu_ld" = yes; then | 
 | 626 |   echo $ac_n "checking for GNU ld""... $ac_c" 1>&6 | 
 | 627 | echo "configure:628: checking for GNU ld" >&5 | 
 | 628 | else | 
 | 629 |   echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6 | 
 | 630 | echo "configure:631: checking for non-GNU ld" >&5 | 
 | 631 | fi | 
 | 632 | if eval "test \"`echo '$''{'acl_cv_path_LD'+set}'`\" = set"; then | 
 | 633 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
 | 634 | else | 
 | 635 |   if test -z "$LD"; then | 
 | 636 |   IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" | 
 | 637 |   for ac_dir in $PATH; do | 
 | 638 |     test -z "$ac_dir" && ac_dir=. | 
 | 639 |     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | 
 | 640 |       acl_cv_path_LD="$ac_dir/$ac_prog" | 
 | 641 |       # Check to see if the program is GNU ld.  I'd rather use --version, | 
 | 642 |       # but apparently some GNU ld's only accept -v. | 
 | 643 |       # Break only if it was the GNU/non-GNU ld that we prefer. | 
 | 644 |       if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then | 
 | 645 | 	test "$with_gnu_ld" != no && break | 
 | 646 |       else | 
 | 647 | 	test "$with_gnu_ld" != yes && break | 
 | 648 |       fi | 
 | 649 |     fi | 
 | 650 |   done | 
 | 651 |   IFS="$ac_save_ifs" | 
 | 652 | else | 
 | 653 |   acl_cv_path_LD="$LD" # Let the user override the test with a path. | 
 | 654 | fi | 
 | 655 | fi | 
 | 656 |  | 
 | 657 | LD="$acl_cv_path_LD" | 
 | 658 | if test -n "$LD"; then | 
 | 659 |   echo "$ac_t""$LD" 1>&6 | 
 | 660 | else | 
 | 661 |   echo "$ac_t""no" 1>&6 | 
 | 662 | fi | 
 | 663 | test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; } | 
 | 664 | echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6 | 
 | 665 | echo "configure:666: checking if the linker ($LD) is GNU ld" >&5 | 
 | 666 | if eval "test \"`echo '$''{'acl_cv_prog_gnu_ld'+set}'`\" = set"; then | 
 | 667 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
 | 668 | else | 
 | 669 |   # I'd rather use --version here, but apparently some GNU ld's only accept -v. | 
 | 670 | if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then | 
 | 671 |   acl_cv_prog_gnu_ld=yes | 
 | 672 | else | 
 | 673 |   acl_cv_prog_gnu_ld=no | 
 | 674 | fi | 
 | 675 | fi | 
 | 676 |  | 
 | 677 | echo "$ac_t""$acl_cv_prog_gnu_ld" 1>&6 | 
 | 678 | with_gnu_ld=$acl_cv_prog_gnu_ld | 
 | 679 |  | 
 | 680 |  | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 681 |  | 
| Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 682 |  | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 683 | MCONFIG=./MCONFIG | 
 | 684 |  | 
| Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 685 | BINARY_TYPE=bin | 
 | 686 | E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h  \ | 
 | 687 | 	| awk '{print $3}' | tr \" " " | awk '{print $1}'` | 
 | 688 | DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \ | 
 | 689 | 	| tr \" " "` | 
| Theodore Ts'o | bff0cc9 | 2003-03-23 01:37:53 -0500 | [diff] [blame] | 690 | E2FSPROGS_DAY=`echo $DATE | awk -F- '{print $1}'` | 
| Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 691 | MONTH=`echo $DATE | awk -F- '{print $2}'` | 
 | 692 | YEAR=`echo $DATE | awk -F- '{print $3}'` | 
 | 693 |  | 
| Theodore Ts'o | 14790ed | 1999-01-12 23:32:52 +0000 | [diff] [blame] | 694 | if expr $YEAR ">" 1900 > /dev/null ; then | 
 | 695 | 	E2FSPROGS_YEAR=$YEAR | 
 | 696 | elif expr $YEAR ">" 90 >/dev/null ; then | 
| Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 697 | 	E2FSPROGS_YEAR=19$YEAR | 
 | 698 | else | 
 | 699 | 	E2FSPROGS_YEAR=20$YEAR | 
 | 700 | fi | 
 | 701 |  | 
 | 702 | case $MONTH in | 
 | 703 | Jan)	E2FSPROGS_MONTH="January" ;; | 
 | 704 | Feb)	E2FSPROGS_MONTH="February" ;; | 
 | 705 | Mar)	E2FSPROGS_MONTH="March" ;; | 
 | 706 | Apr)	E2FSPROGS_MONTH="April" ;; | 
 | 707 | May)	E2FSPROGS_MONTH="May" ;; | 
 | 708 | Jun)	E2FSPROGS_MONTH="June" ;; | 
 | 709 | Jul)	E2FSPROGS_MONTH="July" ;; | 
 | 710 | Aug)	E2FSPROGS_MONTH="August" ;; | 
 | 711 | Sep)	E2FSPROGS_MONTH="September" ;; | 
 | 712 | Oct)	E2FSPROGS_MONTH="October" ;; | 
 | 713 | Nov)	E2FSPROGS_MONTH="November" ;; | 
 | 714 | Dec)	E2FSPROGS_MONTH="December" ;; | 
 | 715 | *)	echo "Unknown month $MONTH??" ;; | 
 | 716 | esac | 
 | 717 |  | 
 | 718 | unset DATE MONTH YEAR | 
 | 719 | echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" | 
 | 720 | echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" | 
 | 721 |  | 
 | 722 |  | 
 | 723 |  | 
| Theodore Ts'o | bff0cc9 | 2003-03-23 01:37:53 -0500 | [diff] [blame] | 724 |  | 
| Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 725 | ac_aux_dir= | 
 | 726 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | 
 | 727 |   if test -f $ac_dir/install-sh; then | 
 | 728 |     ac_aux_dir=$ac_dir | 
 | 729 |     ac_install_sh="$ac_aux_dir/install-sh -c" | 
 | 730 |     break | 
 | 731 |   elif test -f $ac_dir/install.sh; then | 
 | 732 |     ac_aux_dir=$ac_dir | 
 | 733 |     ac_install_sh="$ac_aux_dir/install.sh -c" | 
 | 734 |     break | 
 | 735 |   fi | 
 | 736 | done | 
 | 737 | if test -z "$ac_aux_dir"; then | 
 | 738 |   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } | 
 | 739 | fi | 
 | 740 | ac_config_guess=$ac_aux_dir/config.guess | 
 | 741 | ac_config_sub=$ac_aux_dir/config.sub | 
 | 742 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. | 
 | 743 |  | 
 | 744 |  | 
 | 745 | # Make sure we can run config.sub. | 
| Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame] | 746 | 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] | 747 | else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } | 
 | 748 | fi | 
 | 749 |  | 
 | 750 | echo $ac_n "checking host system type""... $ac_c" 1>&6 | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 751 | echo "configure:752: checking host system type" >&5 | 
| Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 752 |  | 
 | 753 | host_alias=$host | 
 | 754 | case "$host_alias" in | 
 | 755 | NONE) | 
 | 756 |   case $nonopt in | 
 | 757 |   NONE) | 
| Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame] | 758 |     if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : | 
| Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 759 |     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } | 
 | 760 |     fi ;; | 
 | 761 |   *) host_alias=$nonopt ;; | 
 | 762 |   esac ;; | 
 | 763 | esac | 
 | 764 |  | 
| Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame] | 765 | host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` | 
| Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 766 | host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | 
 | 767 | host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | 
 | 768 | host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | 
| Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 769 | echo "$ac_t""$host" 1>&6 | 
 | 770 |  | 
| Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 771 | # Check whether --with-cc or --without-cc was given. | 
| Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 772 | if test "${with_cc+set}" = set; then | 
 | 773 |   withval="$with_cc" | 
| Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 774 |   echo "$ac_t""CC=$withval" 1>&6 | 
 | 775 | CC=$withval | 
 | 776 | else | 
 | 777 |   if test -z "$CC" ; then CC=cc; fi | 
 | 778 | echo "$ac_t""CC defaults to $CC" 1>&6 | 
 | 779 | fi | 
 | 780 | export CC | 
 | 781 |  | 
| Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 782 | # Extract the first word of "gcc", so it can be a program name with args. | 
 | 783 | set dummy gcc; ac_word=$2 | 
 | 784 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 785 | echo "configure:786: checking for $ac_word" >&5 | 
| Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 786 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then | 
 | 787 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
 | 788 | else | 
 | 789 |   if test -n "$CC"; then | 
 | 790 |   ac_cv_prog_CC="$CC" # Let the user override the test. | 
 | 791 | else | 
 | 792 |   IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":" | 
 | 793 |   ac_dummy="$PATH" | 
 | 794 |   for ac_dir in $ac_dummy; do | 
 | 795 |     test -z "$ac_dir" && ac_dir=. | 
 | 796 |     if test -f $ac_dir/$ac_word; then | 
 | 797 |       ac_cv_prog_CC="gcc" | 
 | 798 |       break | 
 | 799 |     fi | 
 | 800 |   done | 
 | 801 |   IFS="$ac_save_ifs" | 
 | 802 | fi | 
 | 803 | fi | 
 | 804 | CC="$ac_cv_prog_CC" | 
 | 805 | if test -n "$CC"; then | 
 | 806 |   echo "$ac_t""$CC" 1>&6 | 
 | 807 | else | 
 | 808 |   echo "$ac_t""no" 1>&6 | 
 | 809 | fi | 
 | 810 |  | 
 | 811 | if test -z "$CC"; then | 
 | 812 |   # Extract the first word of "cc", so it can be a program name with args. | 
 | 813 | set dummy cc; ac_word=$2 | 
 | 814 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 815 | echo "configure:816: checking for $ac_word" >&5 | 
| Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 816 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then | 
 | 817 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
 | 818 | else | 
 | 819 |   if test -n "$CC"; then | 
 | 820 |   ac_cv_prog_CC="$CC" # Let the user override the test. | 
 | 821 | else | 
 | 822 |   IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":" | 
 | 823 |   ac_prog_rejected=no | 
 | 824 |   ac_dummy="$PATH" | 
 | 825 |   for ac_dir in $ac_dummy; do | 
 | 826 |     test -z "$ac_dir" && ac_dir=. | 
 | 827 |     if test -f $ac_dir/$ac_word; then | 
 | 828 |       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then | 
 | 829 |         ac_prog_rejected=yes | 
 | 830 | 	continue | 
 | 831 |       fi | 
 | 832 |       ac_cv_prog_CC="cc" | 
 | 833 |       break | 
 | 834 |     fi | 
 | 835 |   done | 
 | 836 |   IFS="$ac_save_ifs" | 
 | 837 | if test $ac_prog_rejected = yes; then | 
 | 838 |   # We found a bogon in the path, so make sure we never use it. | 
 | 839 |   set dummy $ac_cv_prog_CC | 
 | 840 |   shift | 
 | 841 |   if test $# -gt 0; then | 
 | 842 |     # We chose a different compiler from the bogus one. | 
 | 843 |     # However, it has the same basename, so the bogon will be chosen | 
 | 844 |     # first if we set CC to just the basename; use the full file name. | 
 | 845 |     shift | 
 | 846 |     set dummy "$ac_dir/$ac_word" "$@" | 
 | 847 |     shift | 
 | 848 |     ac_cv_prog_CC="$@" | 
 | 849 |   fi | 
 | 850 | fi | 
 | 851 | fi | 
 | 852 | fi | 
 | 853 | CC="$ac_cv_prog_CC" | 
 | 854 | if test -n "$CC"; then | 
 | 855 |   echo "$ac_t""$CC" 1>&6 | 
 | 856 | else | 
 | 857 |   echo "$ac_t""no" 1>&6 | 
 | 858 | fi | 
 | 859 |  | 
 | 860 |   if test -z "$CC"; then | 
 | 861 |     case "`uname -s`" in | 
 | 862 |     *win32* | *WIN32*) | 
 | 863 |       # Extract the first word of "cl", so it can be a program name with args. | 
 | 864 | set dummy cl; ac_word=$2 | 
 | 865 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 866 | echo "configure:867: checking for $ac_word" >&5 | 
| Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 867 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then | 
 | 868 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
 | 869 | else | 
 | 870 |   if test -n "$CC"; then | 
 | 871 |   ac_cv_prog_CC="$CC" # Let the user override the test. | 
 | 872 | else | 
 | 873 |   IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":" | 
 | 874 |   ac_dummy="$PATH" | 
 | 875 |   for ac_dir in $ac_dummy; do | 
 | 876 |     test -z "$ac_dir" && ac_dir=. | 
 | 877 |     if test -f $ac_dir/$ac_word; then | 
 | 878 |       ac_cv_prog_CC="cl" | 
 | 879 |       break | 
 | 880 |     fi | 
 | 881 |   done | 
 | 882 |   IFS="$ac_save_ifs" | 
 | 883 | fi | 
 | 884 | fi | 
 | 885 | CC="$ac_cv_prog_CC" | 
 | 886 | if test -n "$CC"; then | 
 | 887 |   echo "$ac_t""$CC" 1>&6 | 
 | 888 | else | 
 | 889 |   echo "$ac_t""no" 1>&6 | 
 | 890 | fi | 
 | 891 |  ;; | 
 | 892 |     esac | 
 | 893 |   fi | 
 | 894 |   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } | 
 | 895 | fi | 
 | 896 |  | 
 | 897 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 898 | echo "configure:899: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 | 
| Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 899 |  | 
 | 900 | ac_ext=c | 
 | 901 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | 
 | 902 | ac_cpp='$CPP $CPPFLAGS' | 
 | 903 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | 
 | 904 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | 
 | 905 | cross_compiling=$ac_cv_prog_cc_cross | 
 | 906 |  | 
 | 907 | cat > conftest.$ac_ext << EOF | 
 | 908 |  | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 909 | #line 910 "configure" | 
| Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 910 | #include "confdefs.h" | 
 | 911 |  | 
 | 912 | main(){return(0);} | 
 | 913 | EOF | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 914 | if { (eval echo configure:915: \"$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] | 915 |   ac_cv_prog_cc_works=yes | 
 | 916 |   # If we can't run a trivial program, we are probably using a cross compiler. | 
 | 917 |   if (./conftest; exit) 2>/dev/null; then | 
 | 918 |     ac_cv_prog_cc_cross=no | 
 | 919 |   else | 
 | 920 |     ac_cv_prog_cc_cross=yes | 
 | 921 |   fi | 
 | 922 | else | 
 | 923 |   echo "configure: failed program was:" >&5 | 
 | 924 |   cat conftest.$ac_ext >&5 | 
 | 925 |   ac_cv_prog_cc_works=no | 
 | 926 | fi | 
 | 927 | rm -fr conftest* | 
 | 928 | ac_ext=c | 
 | 929 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | 
 | 930 | ac_cpp='$CPP $CPPFLAGS' | 
 | 931 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | 
 | 932 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | 
 | 933 | cross_compiling=$ac_cv_prog_cc_cross | 
 | 934 |  | 
 | 935 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 | 
 | 936 | if test $ac_cv_prog_cc_works = no; then | 
 | 937 |   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } | 
 | 938 | fi | 
 | 939 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 940 | echo "configure:941: 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] | 941 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 | 
 | 942 | cross_compiling=$ac_cv_prog_cc_cross | 
 | 943 |  | 
 | 944 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 945 | echo "configure:946: checking whether we are using GNU C" >&5 | 
| Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 946 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then | 
 | 947 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
 | 948 | else | 
 | 949 |   cat > conftest.c <<EOF | 
 | 950 | #ifdef __GNUC__ | 
 | 951 |   yes; | 
 | 952 | #endif | 
 | 953 | EOF | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 954 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:955: \"$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] | 955 |   ac_cv_prog_gcc=yes | 
 | 956 | else | 
 | 957 |   ac_cv_prog_gcc=no | 
 | 958 | fi | 
 | 959 | fi | 
 | 960 |  | 
 | 961 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 | 
 | 962 |  | 
 | 963 | if test $ac_cv_prog_gcc = yes; then | 
 | 964 |   GCC=yes | 
 | 965 | else | 
 | 966 |   GCC= | 
 | 967 | fi | 
 | 968 |  | 
 | 969 | ac_test_CFLAGS="${CFLAGS+set}" | 
 | 970 | ac_save_CFLAGS="$CFLAGS" | 
 | 971 | CFLAGS= | 
 | 972 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 973 | echo "configure:974: checking whether ${CC-cc} accepts -g" >&5 | 
| Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 974 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then | 
 | 975 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
 | 976 | else | 
 | 977 |   echo 'void f(){}' > conftest.c | 
 | 978 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then | 
 | 979 |   ac_cv_prog_cc_g=yes | 
 | 980 | else | 
 | 981 |   ac_cv_prog_cc_g=no | 
 | 982 | fi | 
 | 983 | rm -f conftest* | 
 | 984 |  | 
 | 985 | fi | 
 | 986 |  | 
 | 987 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 | 
 | 988 | if test "$ac_test_CFLAGS" = set; then | 
 | 989 |   CFLAGS="$ac_save_CFLAGS" | 
 | 990 | elif test $ac_cv_prog_cc_g = yes; then | 
 | 991 |   if test "$GCC" = yes; then | 
 | 992 |     CFLAGS="-g -O2" | 
 | 993 |   else | 
 | 994 |     CFLAGS="-g" | 
 | 995 |   fi | 
 | 996 | else | 
 | 997 |   if test "$GCC" = yes; then | 
 | 998 |     CFLAGS="-O2" | 
 | 999 |   else | 
 | 1000 |     CFLAGS= | 
 | 1001 |   fi | 
 | 1002 | fi | 
 | 1003 |  | 
| Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 1004 | # Check whether --with-linker or --without-linker was given. | 
| Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1005 | if test "${with_linker+set}" = set; then | 
 | 1006 |   withval="$with_linker" | 
| Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 1007 |   echo "$ac_t""LD=$withval" 1>&6 | 
 | 1008 | LD=$withval | 
 | 1009 | else | 
 | 1010 |   if test -z "$LD" ; then LD=$CC; fi | 
 | 1011 | echo "$ac_t""LD defaults to $LD" 1>&6 | 
 | 1012 | fi | 
 | 1013 | export LD | 
 | 1014 |  | 
 | 1015 | # Check whether --with-ccopts or --without-ccopts was given. | 
| Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1016 | if test "${with_ccopts+set}" = set; then | 
 | 1017 |   withval="$with_ccopts" | 
| Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 1018 |   echo "$ac_t""CCOPTS is $withval" 1>&6 | 
| Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 1019 | CFLAGS=$withval | 
| Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 1020 | fi | 
| Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 1021 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 1022 | echo "configure:1023: checking how to run the C preprocessor" >&5 | 
| Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 1023 | # On Suns, sometimes $CPP names a directory. | 
 | 1024 | if test -n "$CPP" && test -d "$CPP"; then | 
 | 1025 |   CPP= | 
 | 1026 | fi | 
 | 1027 | if test -z "$CPP"; then | 
 | 1028 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then | 
 | 1029 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
 | 1030 | else | 
 | 1031 |     # This must be in double quotes, not single quotes, because CPP may get | 
 | 1032 |   # substituted into the Makefile and "${CC-cc}" will confuse make. | 
 | 1033 |   CPP="${CC-cc} -E" | 
 | 1034 |   # On the NeXT, cc -E runs the code through the compiler's parser, | 
 | 1035 |   # not just through cpp. | 
 | 1036 |   cat > conftest.$ac_ext <<EOF | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 1037 | #line 1038 "configure" | 
| Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 1038 | #include "confdefs.h" | 
 | 1039 | #include <assert.h> | 
 | 1040 | Syntax Error | 
 | 1041 | EOF | 
 | 1042 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 1043 | { (eval echo configure:1044: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 
| Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 1044 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 
 | 1045 | if test -z "$ac_err"; then | 
 | 1046 |   : | 
 | 1047 | else | 
 | 1048 |   echo "$ac_err" >&5 | 
 | 1049 |   echo "configure: failed program was:" >&5 | 
 | 1050 |   cat conftest.$ac_ext >&5 | 
 | 1051 |   rm -rf conftest* | 
 | 1052 |   CPP="${CC-cc} -E -traditional-cpp" | 
 | 1053 |   cat > conftest.$ac_ext <<EOF | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 1054 | #line 1055 "configure" | 
| Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 1055 | #include "confdefs.h" | 
 | 1056 | #include <assert.h> | 
 | 1057 | Syntax Error | 
 | 1058 | EOF | 
 | 1059 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 1060 | { (eval echo configure:1061: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 
| Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 1061 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 
 | 1062 | if test -z "$ac_err"; then | 
 | 1063 |   : | 
 | 1064 | else | 
 | 1065 |   echo "$ac_err" >&5 | 
 | 1066 |   echo "configure: failed program was:" >&5 | 
 | 1067 |   cat conftest.$ac_ext >&5 | 
 | 1068 |   rm -rf conftest* | 
 | 1069 |   CPP="${CC-cc} -nologo -E" | 
 | 1070 |   cat > conftest.$ac_ext <<EOF | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 1071 | #line 1072 "configure" | 
| Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 1072 | #include "confdefs.h" | 
 | 1073 | #include <assert.h> | 
 | 1074 | Syntax Error | 
 | 1075 | EOF | 
 | 1076 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 1077 | { (eval echo configure:1078: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 
| Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 1078 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 
 | 1079 | if test -z "$ac_err"; then | 
 | 1080 |   : | 
 | 1081 | else | 
 | 1082 |   echo "$ac_err" >&5 | 
 | 1083 |   echo "configure: failed program was:" >&5 | 
 | 1084 |   cat conftest.$ac_ext >&5 | 
 | 1085 |   rm -rf conftest* | 
 | 1086 |   CPP=/lib/cpp | 
 | 1087 | fi | 
 | 1088 | rm -f conftest* | 
 | 1089 | fi | 
 | 1090 | rm -f conftest* | 
 | 1091 | fi | 
 | 1092 | rm -f conftest* | 
 | 1093 |   ac_cv_prog_CPP="$CPP" | 
 | 1094 | fi | 
 | 1095 |   CPP="$ac_cv_prog_CPP" | 
 | 1096 | else | 
 | 1097 |   ac_cv_prog_CPP="$CPP" | 
 | 1098 | fi | 
 | 1099 | echo "$ac_t""$CPP" 1>&6 | 
 | 1100 |  | 
 | 1101 | ac_safe=`echo "linux/fs.h" | sed 'y%./+-%__p_%'` | 
 | 1102 | echo $ac_n "checking for linux/fs.h""... $ac_c" 1>&6 | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 1103 | echo "configure:1104: checking for linux/fs.h" >&5 | 
| Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 1104 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 
 | 1105 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
 | 1106 | else | 
 | 1107 |   cat > conftest.$ac_ext <<EOF | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 1108 | #line 1109 "configure" | 
| Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 1109 | #include "confdefs.h" | 
 | 1110 | #include <linux/fs.h> | 
 | 1111 | EOF | 
 | 1112 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 1113 | { (eval echo configure:1114: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 
| Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 1114 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 
 | 1115 | if test -z "$ac_err"; then | 
 | 1116 |   rm -rf conftest* | 
 | 1117 |   eval "ac_cv_header_$ac_safe=yes" | 
 | 1118 | else | 
 | 1119 |   echo "$ac_err" >&5 | 
 | 1120 |   echo "configure: failed program was:" >&5 | 
 | 1121 |   cat conftest.$ac_ext >&5 | 
 | 1122 |   rm -rf conftest* | 
 | 1123 |   eval "ac_cv_header_$ac_safe=no" | 
 | 1124 | fi | 
 | 1125 | rm -f conftest* | 
 | 1126 | fi | 
 | 1127 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | 
 | 1128 |   echo "$ac_t""yes" 1>&6 | 
 | 1129 |   linux_headers=yes | 
 | 1130 | else | 
 | 1131 |   echo "$ac_t""no" 1>&6 | 
 | 1132 | linux_headers=no | 
 | 1133 | fi | 
 | 1134 |  | 
| Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 1135 | if test "$linux_headers" != yes; then | 
 | 1136 |   LINUX_INCLUDE='-I$(top_builddir)/include' | 
| Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 1137 | fi | 
 | 1138 |  | 
| Theodore Ts'o | a4d0961 | 1997-04-29 14:28:00 +0000 | [diff] [blame] | 1139 | LIB_EXT=.a | 
 | 1140 | STATIC_LIB_EXT=.a | 
 | 1141 | PROFILE_LIB_EXT=.a | 
| Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 1142 | # Check whether --with-ldopts or --without-ldopts was given. | 
| Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1143 | if test "${with_ldopts+set}" = set; then | 
 | 1144 |   withval="$with_ldopts" | 
| Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 1145 |   echo "$ac_t""LDFLAGS is $withval" 1>&6 | 
 | 1146 | LDFLAGS=$withval | 
 | 1147 | else | 
 | 1148 |   LDFLAGS= | 
 | 1149 | fi | 
 | 1150 |  | 
| Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 1151 | # Check whether --with-root-prefix or --without-root-prefix was given. | 
 | 1152 | if test "${with_root_prefix+set}" = set; then | 
 | 1153 |   withval="$with_root_prefix" | 
 | 1154 |   root_prefix=$withval | 
| Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 1155 | else | 
| Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 1156 |   root_prefix=NONE | 
| Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 1157 | fi | 
| Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 1158 | # Check whether --enable-compression or --disable-compression was given. | 
 | 1159 | if test "${enable_compression+set}" = set; then | 
 | 1160 |   enableval="$enable_compression" | 
 | 1161 |   if test "$enableval" = "no" | 
 | 1162 | then | 
 | 1163 | 	echo "Disabling compression support" | 
 | 1164 | else | 
 | 1165 | 	cat >> confdefs.h <<\EOF | 
 | 1166 | #define ENABLE_COMPRESSION 1 | 
 | 1167 | EOF | 
 | 1168 |  | 
 | 1169 | 	echo "Enabling compression support" | 
 | 1170 | 	echo "WARNING: Compression support is experimental" | 
 | 1171 | fi | 
 | 1172 |  | 
 | 1173 | else | 
 | 1174 |   echo "Disabling compression support by default" | 
 | 1175 |  | 
 | 1176 | fi | 
 | 1177 |  | 
| Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 1178 | # Check whether --enable-htree or --disable-htree was given. | 
 | 1179 | if test "${enable_htree+set}" = set; then | 
 | 1180 |   enableval="$enable_htree" | 
 | 1181 |   if test "$enableval" = "no" | 
 | 1182 | then | 
 | 1183 | 	HTREE_CMT=# | 
 | 1184 | 	echo "Disabling htree directory support" | 
 | 1185 | else | 
 | 1186 | 	HTREE_CMT= | 
 | 1187 | 	cat >> confdefs.h <<\EOF | 
 | 1188 | #define ENABLE_HTREE 1 | 
 | 1189 | EOF | 
 | 1190 |  | 
 | 1191 | 	echo "Enabling htree directory support" | 
| Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 1192 | fi | 
 | 1193 |  | 
 | 1194 | else | 
| Theodore Ts'o | 559ca6c | 2002-08-18 03:48:55 -0400 | [diff] [blame] | 1195 |   HTREE_CMT= | 
 | 1196 | cat >> confdefs.h <<\EOF | 
 | 1197 | #define ENABLE_HTREE 1 | 
 | 1198 | EOF | 
 | 1199 |  | 
 | 1200 | echo "Enabling htree directory support by default" | 
| Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 1201 |  | 
 | 1202 | fi | 
 | 1203 |  | 
 | 1204 |  | 
 | 1205 | # Check whether --enable-htree-clear or --disable-htree-clear was given. | 
 | 1206 | if test "${enable_htree_clear+set}" = set; then | 
 | 1207 |   enableval="$enable_htree_clear" | 
 | 1208 |   if test "$enableval" = "no" | 
 | 1209 | then | 
 | 1210 | 	HTREE_CLR_CMT=# | 
 | 1211 | 	echo "Disabling htree clearing" | 
 | 1212 | else | 
 | 1213 | 	HTREE_CLR_CMT= | 
 | 1214 | 	cat >> confdefs.h <<\EOF | 
 | 1215 | #define ENABLE_HTREE_CLEAR 1 | 
 | 1216 | EOF | 
 | 1217 |  | 
 | 1218 | 	echo "Enabling htree clearing" | 
 | 1219 | fi | 
 | 1220 |  | 
 | 1221 | else | 
 | 1222 |   HTREE_CLR_CMT=# | 
 | 1223 | echo "Disabling htree clearing by default" | 
 | 1224 |  | 
 | 1225 | fi | 
 | 1226 |  | 
 | 1227 |  | 
| Theodore Ts'o | a9d799a | 2002-11-08 13:50:51 -0500 | [diff] [blame] | 1228 | EVMS_ABI_CODE=120 | 
 | 1229 | # Check whether --enable-evms-10 or --disable-evms-10 was given. | 
 | 1230 | if test "${enable_evms_10+set}" = set; then | 
 | 1231 |   enableval="$enable_evms_10" | 
 | 1232 |   if test "$enableval" != "no" | 
| Theodore Ts'o | ff6dbcc | 2002-05-24 22:44:42 -0400 | [diff] [blame] | 1233 | then | 
| Theodore Ts'o | a9d799a | 2002-11-08 13:50:51 -0500 | [diff] [blame] | 1234 | 	EVMS_ABI_CODE=100 | 
| Theodore Ts'o | ff6dbcc | 2002-05-24 22:44:42 -0400 | [diff] [blame] | 1235 | 	echo "Enabling EVMS 1.0.0 ABI" | 
 | 1236 | fi | 
 | 1237 |  | 
| Theodore Ts'o | a9d799a | 2002-11-08 13:50:51 -0500 | [diff] [blame] | 1238 | fi | 
| Theodore Ts'o | ff6dbcc | 2002-05-24 22:44:42 -0400 | [diff] [blame] | 1239 |  | 
| Theodore Ts'o | a9d799a | 2002-11-08 13:50:51 -0500 | [diff] [blame] | 1240 | # Check whether --enable-evms-11 or --disable-evms-11 was given. | 
 | 1241 | if test "${enable_evms_11+set}" = set; then | 
 | 1242 |   enableval="$enable_evms_11" | 
 | 1243 |   if test "$enableval" != "no" | 
 | 1244 | then | 
 | 1245 | 	EVMS_ABI_CODE=110 | 
 | 1246 | 	echo "Enabling EVMS 1.1.0 ABI" | 
 | 1247 | fi | 
 | 1248 |  | 
 | 1249 | fi | 
 | 1250 |  | 
 | 1251 | if test "$EVMS_ABI_CODE" = "120" | 
 | 1252 | then | 
 | 1253 | 	echo "Using EVMS 1.2.0 ABI by default" | 
| Theodore Ts'o | ff6dbcc | 2002-05-24 22:44:42 -0400 | [diff] [blame] | 1254 | fi | 
 | 1255 |  | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1256 | # Check whether --enable-dll-shlibs or --disable-dll-shlibs was given. | 
| Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1257 | if test "${enable_dll_shlibs+set}" = set; then | 
 | 1258 |   enableval="$enable_dll_shlibs" | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1259 |   if test "$enableval" = "no" | 
 | 1260 | then | 
 | 1261 | 	DLL_CMT=# | 
 | 1262 | 	MAKEFILE_DLL=/dev/null | 
 | 1263 | 	echo "Disabling DLL shared libraries" | 
 | 1264 | else | 
 | 1265 | 	DLL_CMT= | 
 | 1266 | 	MAKEFILE_DLL=$srcdir/lib/Makefile.dll-lib | 
| Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 1267 | 	BINARY_TYPE=dllbin | 
| Theodore Ts'o | a4d0961 | 1997-04-29 14:28:00 +0000 | [diff] [blame] | 1268 | 	LIB_EXT=.sa | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1269 | 	echo "Enabling DLL shared libraries" | 
 | 1270 | fi | 
 | 1271 |  | 
 | 1272 | else | 
 | 1273 |   MAKEFILE_DLL=/dev/null | 
 | 1274 | DLL_CMT=# | 
 | 1275 | echo "Disabling DLL shared libraries by default" | 
 | 1276 |  | 
 | 1277 | fi | 
 | 1278 |  | 
 | 1279 |  | 
 | 1280 |  | 
 | 1281 | # Check whether --enable-elf-shlibs or --disable-elf-shlibs was given. | 
| Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1282 | if test "${enable_elf_shlibs+set}" = set; then | 
 | 1283 |   enableval="$enable_elf_shlibs" | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1284 |   if test "$enableval" = "no" | 
 | 1285 | then | 
 | 1286 | 	ELF_CMT=# | 
 | 1287 | 	MAKEFILE_ELF=/dev/null | 
 | 1288 | 	echo "Disabling ELF shared libraries" | 
 | 1289 | else | 
 | 1290 | 	ELF_CMT= | 
 | 1291 | 	MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib | 
| Theodore Ts'o | f5955dd | 2000-10-25 02:38:39 +0000 | [diff] [blame] | 1292 | 	case "$host_os" in | 
 | 1293 | 	solaris2.*) | 
 | 1294 | 		MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib | 
 | 1295 | 	;; | 
 | 1296 | 	esac | 
| Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 1297 | 	BINARY_TYPE=elfbin | 
| Theodore Ts'o | a4d0961 | 1997-04-29 14:28:00 +0000 | [diff] [blame] | 1298 | 	LIB_EXT=.so | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1299 | 	echo "Enabling ELF shared libraries" | 
 | 1300 | fi | 
 | 1301 |  | 
 | 1302 | else | 
 | 1303 |   MAKEFILE_ELF=/dev/null | 
 | 1304 | ELF_CMT=# | 
 | 1305 | echo "Disabling ELF shared libraries by default" | 
 | 1306 |  | 
 | 1307 | fi | 
 | 1308 |  | 
 | 1309 |  | 
 | 1310 |  | 
 | 1311 | # Check whether --enable-bsd-shlibs or --disable-bsd-shlibs was given. | 
| Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1312 | if test "${enable_bsd_shlibs+set}" = set; then | 
 | 1313 |   enableval="$enable_bsd_shlibs" | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1314 |   if test "$enableval" = "no" | 
 | 1315 | then | 
 | 1316 | 	BSDLIB_CMT=# | 
 | 1317 | 	MAKEFILE_BSDLIB=/dev/null | 
 | 1318 | 	echo "Disabling BSD shared libraries" | 
 | 1319 | else | 
 | 1320 | 	BSDLIB_CMT= | 
 | 1321 | 	MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib | 
| Theodore Ts'o | a4d0961 | 1997-04-29 14:28:00 +0000 | [diff] [blame] | 1322 | 	LIB_EXT=.so | 
| Theodore Ts'o | e1f0722 | 2003-03-14 02:25:36 -0500 | [diff] [blame] | 1323 | 	case "$host_os" in | 
| Theodore Ts'o | aa75ecc | 2003-03-17 10:01:22 -0500 | [diff] [blame] | 1324 | 	darwin*) | 
| Theodore Ts'o | e1f0722 | 2003-03-14 02:25:36 -0500 | [diff] [blame] | 1325 | 		MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib | 
 | 1326 | 		LIB_EXT=.dylib | 
 | 1327 | 	;; | 
 | 1328 | 	esac | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1329 | 	echo "Enabling BSD shared libraries" | 
 | 1330 | fi | 
 | 1331 |  | 
 | 1332 | else | 
 | 1333 |   MAKEFILE_BSDLIB=/dev/null | 
 | 1334 | BSDLIB_CMT=# | 
 | 1335 | echo "Disabling BSD shared libraries by default" | 
 | 1336 |  | 
 | 1337 | fi | 
 | 1338 |  | 
 | 1339 |  | 
 | 1340 |  | 
| Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 1341 | # Check whether --enable-profile or --disable-profile was given. | 
 | 1342 | if test "${enable_profile+set}" = set; then | 
 | 1343 |   enableval="$enable_profile" | 
 | 1344 |   if test "$enableval" = "no" | 
 | 1345 | then | 
 | 1346 | 	PROFILE_CMT=# | 
 | 1347 | 	MAKEFILE_PROFILE=/dev/null | 
 | 1348 | 	echo "Disabling profiling libraries" | 
 | 1349 | else | 
 | 1350 | 	PROFILE_CMT= | 
 | 1351 | 	MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile | 
 | 1352 | 	PROFILED_LIB_EXT=_p.a | 
 | 1353 | 	echo "Building profiling libraries" | 
 | 1354 | fi | 
 | 1355 |  | 
 | 1356 | else | 
 | 1357 |   PROFILE_CMT=# | 
 | 1358 | MAKEFILE_PROFILE=/dev/null | 
 | 1359 | echo "Disabling profiling libraries by default" | 
 | 1360 |  | 
 | 1361 | fi | 
 | 1362 |  | 
 | 1363 |  | 
 | 1364 |  | 
 | 1365 | # Check whether --enable-checker or --disable-checker was given. | 
 | 1366 | if test "${enable_checker+set}" = set; then | 
 | 1367 |   enableval="$enable_checker" | 
 | 1368 |   if test "$enableval" = "no" | 
 | 1369 | then | 
 | 1370 | 	CHECKER_CMT=# | 
 | 1371 | 	MAKEFILE_CHECKER=/dev/null | 
 | 1372 | 	echo "Disabling checker libraries" | 
 | 1373 | else | 
 | 1374 | 	CHECKER_CMT= | 
 | 1375 | 	MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker | 
 | 1376 | 	echo "Building checker libraries" | 
 | 1377 | fi | 
 | 1378 |  | 
 | 1379 | else | 
 | 1380 |   CHECKER_CMT=# | 
 | 1381 | MAKEFILE_CHECKER=/dev/null | 
 | 1382 | echo "Disabling checker libraries by default" | 
 | 1383 |  | 
 | 1384 | fi | 
 | 1385 |  | 
 | 1386 |  | 
 | 1387 |  | 
 | 1388 |  | 
 | 1389 |  | 
 | 1390 |  | 
| Theodore Ts'o | 782bebf | 2002-11-08 18:46:45 -0500 | [diff] [blame] | 1391 | # Check whether --enable-jbd-debug or --disable-jbd-debug was given. | 
 | 1392 | if test "${enable_jbd_debug+set}" = set; then | 
 | 1393 |   enableval="$enable_jbd_debug" | 
| Theodore Ts'o | 80bfaa3 | 2000-08-18 15:08:37 +0000 | [diff] [blame] | 1394 |   if test "$enableval" = "no" | 
 | 1395 | then | 
 | 1396 | 	echo "Disabling journal debugging" | 
 | 1397 | else | 
 | 1398 | 	cat >> confdefs.h <<\EOF | 
| Theodore Ts'o | 8cf9333 | 2001-12-16 02:23:36 -0500 | [diff] [blame] | 1399 | #define CONFIG_JBD_DEBUG 1 | 
| Theodore Ts'o | 80bfaa3 | 2000-08-18 15:08:37 +0000 | [diff] [blame] | 1400 | EOF | 
 | 1401 |  | 
 | 1402 | 	echo "Enabling journal debugging" | 
 | 1403 | fi | 
 | 1404 |  | 
 | 1405 | else | 
 | 1406 |   echo "Disabling journal debugging by default" | 
 | 1407 |  | 
 | 1408 | fi | 
 | 1409 |  | 
| Theodore Ts'o | f0a22d0 | 2003-02-22 13:19:53 -0500 | [diff] [blame] | 1410 | # Check whether --enable-blkid-debug or --disable-blkid-debug was given. | 
 | 1411 | if test "${enable_blkid_debug+set}" = set; then | 
 | 1412 |   enableval="$enable_blkid_debug" | 
 | 1413 |   if test "$enableval" = "no" | 
 | 1414 | then | 
 | 1415 | 	echo "Disabling blkid debugging" | 
 | 1416 | else | 
 | 1417 | 	cat >> confdefs.h <<\EOF | 
 | 1418 | #define CONFIG_BLKID_DEBUG 1 | 
 | 1419 | EOF | 
 | 1420 |  | 
 | 1421 | 	echo "Enabling blkid debugging" | 
 | 1422 | fi | 
 | 1423 |  | 
 | 1424 | else | 
 | 1425 |   echo "Disabling blkid debugging by default" | 
 | 1426 |  | 
 | 1427 | fi | 
 | 1428 |  | 
| Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 1429 | # Check whether --enable-swapfs or --disable-swapfs was given. | 
 | 1430 | if test "${enable_swapfs+set}" = set; then | 
 | 1431 |   enableval="$enable_swapfs" | 
 | 1432 |   if test "$enableval" = "no" | 
 | 1433 | then | 
| Theodore Ts'o | feb44c6 | 2002-11-08 14:55:38 -0500 | [diff] [blame] | 1434 | 	SWAPFS_CMT=# | 
| Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 1435 | 	echo "Disabling swapfs support" | 
| Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 1436 | else | 
| Theodore Ts'o | feb44c6 | 2002-11-08 14:55:38 -0500 | [diff] [blame] | 1437 | 	SWAPFS_CMT= | 
| Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 1438 | 	cat >> confdefs.h <<\EOF | 
 | 1439 | #define ENABLE_SWAPFS 1 | 
 | 1440 | EOF | 
 | 1441 |  | 
| Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 1442 | 	echo "Enabling swapfs support" | 
 | 1443 | fi | 
 | 1444 |  | 
 | 1445 | else | 
| Theodore Ts'o | feb44c6 | 2002-11-08 14:55:38 -0500 | [diff] [blame] | 1446 |   SWAPFS_CMT= | 
 | 1447 | echo "Enabling swapfs support by default" | 
| Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 1448 | cat >> confdefs.h <<\EOF | 
 | 1449 | #define ENABLE_SWAPFS 1 | 
 | 1450 | EOF | 
 | 1451 |  | 
| Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 1452 |  | 
 | 1453 | fi | 
 | 1454 |  | 
| Theodore Ts'o | feb44c6 | 2002-11-08 14:55:38 -0500 | [diff] [blame] | 1455 |  | 
| Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 1456 | # Check whether --enable-debugfs or --disable-debugfs was given. | 
 | 1457 | if test "${enable_debugfs+set}" = set; then | 
 | 1458 |   enableval="$enable_debugfs" | 
 | 1459 |   if test "$enableval" = "no" | 
 | 1460 | then | 
 | 1461 | 	echo "Disabling debugfs support" | 
 | 1462 | 	DEBUGFS_CMT="#" | 
 | 1463 | else | 
| Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 1464 | 	DEBUGFS_CMT= | 
 | 1465 | 	echo "Enabling debugfs support" | 
 | 1466 | fi | 
 | 1467 |  | 
 | 1468 | else | 
 | 1469 |   echo "Enabling debugfs support by default" | 
| Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 1470 | DEBUGFS_CMT= | 
 | 1471 |  | 
 | 1472 | fi | 
 | 1473 |  | 
 | 1474 |  | 
 | 1475 | # Check whether --enable-imager or --disable-imager was given. | 
 | 1476 | if test "${enable_imager+set}" = set; then | 
 | 1477 |   enableval="$enable_imager" | 
 | 1478 |   if test "$enableval" = "no" | 
 | 1479 | then | 
 | 1480 | 	echo "Disabling e2image support" | 
 | 1481 | 	IMAGER_CMT="#" | 
 | 1482 | else | 
| Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 1483 | 	IMAGER_CMT= | 
 | 1484 | 	echo "Enabling e2image support" | 
 | 1485 | fi | 
 | 1486 |  | 
 | 1487 | else | 
 | 1488 |   echo "Enabling e2image support by default" | 
| Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 1489 | IMAGER_CMT= | 
 | 1490 |  | 
 | 1491 | fi | 
 | 1492 |  | 
 | 1493 |  | 
 | 1494 | # Check whether --enable-resizer or --disable-resizer was given. | 
 | 1495 | if test "${enable_resizer+set}" = set; then | 
 | 1496 |   enableval="$enable_resizer" | 
 | 1497 |   if test "$enableval" = "no" | 
 | 1498 | then | 
 | 1499 | 	echo "Disabling e2resize support" | 
 | 1500 | 	RESIZER_CMT="#" | 
 | 1501 | else | 
| Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 1502 | 	RESIZER_CMT= | 
 | 1503 | 	echo "Enabling e2resize support" | 
 | 1504 | fi | 
 | 1505 |  | 
 | 1506 | else | 
 | 1507 |   echo "Enabling e2resize support by default" | 
| Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 1508 | RESIZER_CMT= | 
 | 1509 |  | 
 | 1510 | fi | 
 | 1511 |  | 
 | 1512 |  | 
 | 1513 | # Check whether --enable-dynamic-e2fsck or --disable-dynamic-e2fsck was given. | 
 | 1514 | if test "${enable_dynamic_e2fsck+set}" = set; then | 
 | 1515 |   enableval="$enable_dynamic_e2fsck" | 
 | 1516 |   if test "$enableval" = "no" | 
 | 1517 | then | 
 | 1518 | 	E2FSCK_TYPE=static | 
 | 1519 | 	echo "Building e2fsck statically" | 
 | 1520 | else | 
 | 1521 | 	E2FSCK_TYPE=shared | 
 | 1522 | 	echo "Building e2fsck dynamically" | 
 | 1523 | fi | 
 | 1524 |  | 
 | 1525 | else | 
 | 1526 |   E2FSCK_TYPE=static | 
 | 1527 | echo "Building e2fsck statically by default" | 
 | 1528 |  | 
 | 1529 | fi | 
 | 1530 |  | 
 | 1531 |  | 
 | 1532 | # Check whether --enable-fsck or --disable-fsck was given. | 
 | 1533 | if test "${enable_fsck+set}" = set; then | 
 | 1534 |   enableval="$enable_fsck" | 
 | 1535 |   if test "$enableval" = "no" | 
 | 1536 | then | 
 | 1537 | 	FSCK_PROG='' FSCK_MAN='' | 
 | 1538 | 	echo "Not building fsck wrapper" | 
 | 1539 | else | 
 | 1540 | 	FSCK_PROG=fsck FSCK_MAN=fsck.8 | 
 | 1541 | 	echo "Building fsck wrapper" | 
 | 1542 | fi | 
 | 1543 |  | 
 | 1544 | else | 
 | 1545 |   case "$host_os" in | 
 | 1546 |   gnu*) | 
 | 1547 |     FSCK_PROG='' FSCK_MAN='' | 
 | 1548 |     echo "Not building fsck wrapper by default" | 
 | 1549 |     ;; | 
 | 1550 |   *) | 
 | 1551 |     FSCK_PROG=fsck FSCK_MAN=fsck.8 | 
 | 1552 |     echo "Building fsck wrapper by default" | 
 | 1553 | esac | 
 | 1554 |  | 
 | 1555 | fi | 
 | 1556 |  | 
 | 1557 |  | 
 | 1558 |  | 
 | 1559 | MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library | 
 | 1560 |  | 
 | 1561 | # Check whether --enable-old-bitops or --disable-old-bitops was given. | 
 | 1562 | if test "${enable_old_bitops+set}" = set; then | 
 | 1563 |   enableval="$enable_old_bitops" | 
 | 1564 |   if test "$enableval" = "no" | 
 | 1565 | then | 
 | 1566 | 	echo "Using new (standard) bitmask operations" | 
 | 1567 | else | 
 | 1568 | 	cat >> confdefs.h <<\EOF | 
 | 1569 | #define EXT2_OLD_BITOPS 1 | 
 | 1570 | EOF | 
 | 1571 |  | 
 | 1572 | 	echo "Using old (native) bitmask operations" | 
 | 1573 |  | 
 | 1574 | fi | 
 | 1575 |  | 
 | 1576 | else | 
 | 1577 |   echo "Using standard bitmask operations by default" | 
 | 1578 |  | 
 | 1579 | fi | 
| Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 1580 |  | 
| Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 1581 | PACKAGE=e2fsprogs | 
 | 1582 | VERSION="$E2FSPROGS_VERSION" | 
 | 1583 | cat >> confdefs.h <<EOF | 
 | 1584 | #define PACKAGE "$PACKAGE" | 
 | 1585 | EOF | 
 | 1586 |  | 
 | 1587 | cat >> confdefs.h <<EOF | 
 | 1588 | #define VERSION "$VERSION" | 
 | 1589 | EOF | 
 | 1590 |  | 
 | 1591 |  | 
 | 1592 |  | 
 | 1593 |  | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 1594 |  | 
 | 1595 |   echo $ac_n "checking for inttypes.h""... $ac_c" 1>&6 | 
 | 1596 | echo "configure:1597: checking for inttypes.h" >&5 | 
 | 1597 | if eval "test \"`echo '$''{'jm_ac_cv_header_inttypes_h'+set}'`\" = set"; then | 
 | 1598 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
 | 1599 | else | 
 | 1600 |   cat > conftest.$ac_ext <<EOF | 
 | 1601 | #line 1602 "configure" | 
 | 1602 | #include "confdefs.h" | 
 | 1603 | #include <sys/types.h> | 
 | 1604 | #include <inttypes.h> | 
 | 1605 | int main() { | 
 | 1606 | uintmax_t i = (uintmax_t) -1; | 
 | 1607 | ; return 0; } | 
 | 1608 | EOF | 
 | 1609 | if { (eval echo configure:1610: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 
 | 1610 |   rm -rf conftest* | 
 | 1611 |   jm_ac_cv_header_inttypes_h=yes | 
 | 1612 | else | 
 | 1613 |   echo "configure: failed program was:" >&5 | 
 | 1614 |   cat conftest.$ac_ext >&5 | 
 | 1615 |   rm -rf conftest* | 
 | 1616 |   jm_ac_cv_header_inttypes_h=no | 
 | 1617 | fi | 
 | 1618 | rm -f conftest* | 
 | 1619 | fi | 
 | 1620 |  | 
 | 1621 | echo "$ac_t""$jm_ac_cv_header_inttypes_h" 1>&6 | 
 | 1622 |   if test $jm_ac_cv_header_inttypes_h = yes; then | 
 | 1623 |     cat >> confdefs.h <<EOF | 
 | 1624 | #define HAVE_INTTYPES_H_WITH_UINTMAX 1 | 
 | 1625 | EOF | 
 | 1626 |  | 
 | 1627 |   fi | 
 | 1628 |  | 
 | 1629 |  | 
 | 1630 |   echo $ac_n "checking for stdint.h""... $ac_c" 1>&6 | 
 | 1631 | echo "configure:1632: checking for stdint.h" >&5 | 
 | 1632 | if eval "test \"`echo '$''{'jm_ac_cv_header_stdint_h'+set}'`\" = set"; then | 
 | 1633 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
 | 1634 | else | 
 | 1635 |   cat > conftest.$ac_ext <<EOF | 
 | 1636 | #line 1637 "configure" | 
 | 1637 | #include "confdefs.h" | 
 | 1638 | #include <sys/types.h> | 
 | 1639 | #include <stdint.h> | 
 | 1640 | int main() { | 
 | 1641 | uintmax_t i = (uintmax_t) -1; | 
 | 1642 | ; return 0; } | 
 | 1643 | EOF | 
 | 1644 | if { (eval echo configure:1645: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 
 | 1645 |   rm -rf conftest* | 
 | 1646 |   jm_ac_cv_header_stdint_h=yes | 
 | 1647 | else | 
 | 1648 |   echo "configure: failed program was:" >&5 | 
 | 1649 |   cat conftest.$ac_ext >&5 | 
 | 1650 |   rm -rf conftest* | 
 | 1651 |   jm_ac_cv_header_stdint_h=no | 
 | 1652 | fi | 
 | 1653 | rm -f conftest* | 
 | 1654 | fi | 
 | 1655 |  | 
 | 1656 | echo "$ac_t""$jm_ac_cv_header_stdint_h" 1>&6 | 
 | 1657 |   if test $jm_ac_cv_header_stdint_h = yes; then | 
 | 1658 |     cat >> confdefs.h <<EOF | 
 | 1659 | #define HAVE_STDINT_H_WITH_UINTMAX 1 | 
 | 1660 | EOF | 
 | 1661 |  | 
 | 1662 |   fi | 
 | 1663 |  | 
 | 1664 |  | 
 | 1665 |   echo $ac_n "checking for unsigned long long""... $ac_c" 1>&6 | 
 | 1666 | echo "configure:1667: checking for unsigned long long" >&5 | 
 | 1667 | if eval "test \"`echo '$''{'ac_cv_type_unsigned_long_long'+set}'`\" = set"; then | 
 | 1668 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
 | 1669 | else | 
 | 1670 |   cat > conftest.$ac_ext <<EOF | 
 | 1671 | #line 1672 "configure" | 
 | 1672 | #include "confdefs.h" | 
 | 1673 | unsigned long long ull = 1; int i = 63; | 
 | 1674 | int main() { | 
 | 1675 | unsigned long long ullmax = (unsigned long long) -1; | 
 | 1676 |      return ull << i | ull >> i | ullmax / ull | ullmax % ull; | 
 | 1677 | ; return 0; } | 
 | 1678 | EOF | 
 | 1679 | if { (eval echo configure:1680: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 
 | 1680 |   rm -rf conftest* | 
 | 1681 |   ac_cv_type_unsigned_long_long=yes | 
 | 1682 | else | 
 | 1683 |   echo "configure: failed program was:" >&5 | 
 | 1684 |   cat conftest.$ac_ext >&5 | 
 | 1685 |   rm -rf conftest* | 
 | 1686 |   ac_cv_type_unsigned_long_long=no | 
 | 1687 | fi | 
 | 1688 | rm -f conftest* | 
 | 1689 | fi | 
 | 1690 |  | 
 | 1691 | echo "$ac_t""$ac_cv_type_unsigned_long_long" 1>&6 | 
 | 1692 |   if test $ac_cv_type_unsigned_long_long = yes; then | 
 | 1693 |     cat >> confdefs.h <<\EOF | 
 | 1694 | #define HAVE_UNSIGNED_LONG_LONG 1 | 
 | 1695 | EOF | 
 | 1696 |  | 
 | 1697 |   fi | 
 | 1698 |  | 
 | 1699 |  | 
 | 1700 |       if test "X$prefix" = "XNONE"; then | 
 | 1701 |     acl_final_prefix="$ac_default_prefix" | 
 | 1702 |   else | 
 | 1703 |     acl_final_prefix="$prefix" | 
 | 1704 |   fi | 
 | 1705 |   if test "X$exec_prefix" = "XNONE"; then | 
 | 1706 |     acl_final_exec_prefix='${prefix}' | 
 | 1707 |   else | 
 | 1708 |     acl_final_exec_prefix="$exec_prefix" | 
 | 1709 |   fi | 
 | 1710 |   acl_save_prefix="$prefix" | 
 | 1711 |   prefix="$acl_final_prefix" | 
 | 1712 |   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" | 
 | 1713 |   prefix="$acl_save_prefix" | 
 | 1714 |  | 
 | 1715 |  | 
 | 1716 |                                                 echo $ac_n "checking for shared library run path origin""... $ac_c" 1>&6 | 
 | 1717 | echo "configure:1718: checking for shared library run path origin" >&5 | 
 | 1718 | if eval "test \"`echo '$''{'acl_cv_rpath'+set}'`\" = set"; then | 
 | 1719 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
 | 1720 | else | 
 | 1721 |    | 
 | 1722 |     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ | 
 | 1723 |     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh | 
 | 1724 |     . ./conftest.sh | 
 | 1725 |     rm -f ./conftest.sh | 
 | 1726 |     acl_cv_rpath=done | 
 | 1727 |    | 
 | 1728 | fi | 
 | 1729 |  | 
 | 1730 | echo "$ac_t""$acl_cv_rpath" 1>&6 | 
 | 1731 |   wl="$acl_cv_wl" | 
 | 1732 |   libext="$acl_cv_libext" | 
 | 1733 |   shlibext="$acl_cv_shlibext" | 
 | 1734 |   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" | 
 | 1735 |   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" | 
 | 1736 |   hardcode_direct="$acl_cv_hardcode_direct" | 
 | 1737 |   hardcode_minus_L="$acl_cv_hardcode_minus_L" | 
 | 1738 |   sys_lib_search_path_spec="$acl_cv_sys_lib_search_path_spec" | 
 | 1739 |   sys_lib_dlsearch_path_spec="$acl_cv_sys_lib_dlsearch_path_spec" | 
 | 1740 |     # Check whether --enable-rpath or --disable-rpath was given. | 
 | 1741 | if test "${enable_rpath+set}" = set; then | 
 | 1742 |   enableval="$enable_rpath" | 
 | 1743 |   : | 
 | 1744 | else | 
 | 1745 |   enable_rpath=yes | 
 | 1746 | fi | 
 | 1747 |  | 
 | 1748 |  | 
| Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 1749 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 1750 | echo "configure:1751: checking whether ${MAKE-make} sets \${MAKE}" >&5 | 
| Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 1751 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` | 
 | 1752 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then | 
 | 1753 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
 | 1754 | else | 
 | 1755 |   cat > conftestmake <<\EOF | 
 | 1756 | all: | 
 | 1757 | 	@echo 'ac_maketemp="${MAKE}"' | 
 | 1758 | EOF | 
 | 1759 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | 
 | 1760 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` | 
 | 1761 | if test -n "$ac_maketemp"; then | 
 | 1762 |   eval ac_cv_prog_make_${ac_make}_set=yes | 
 | 1763 | else | 
 | 1764 |   eval ac_cv_prog_make_${ac_make}_set=no | 
 | 1765 | fi | 
 | 1766 | rm -f conftestmake | 
 | 1767 | fi | 
 | 1768 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | 
 | 1769 |   echo "$ac_t""yes" 1>&6 | 
 | 1770 |   SET_MAKE= | 
 | 1771 | else | 
 | 1772 |   echo "$ac_t""no" 1>&6 | 
 | 1773 |   SET_MAKE="MAKE=${MAKE-make}" | 
 | 1774 | fi | 
 | 1775 |  | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 1776 | # Find a good install program.  We prefer a C program (faster), | 
 | 1777 | # so one script is as good as another.  But avoid the broken or | 
 | 1778 | # incompatible versions: | 
 | 1779 | # SysV /etc/install, /usr/sbin/install | 
 | 1780 | # SunOS /usr/etc/install | 
 | 1781 | # IRIX /sbin/install | 
 | 1782 | # AIX /bin/install | 
 | 1783 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | 
 | 1784 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | 
 | 1785 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | 
 | 1786 | # ./install, which can be erroneously created by make from ./install.sh. | 
 | 1787 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 | 
 | 1788 | echo "configure:1789: checking for a BSD compatible install" >&5 | 
 | 1789 | if test -z "$INSTALL"; then | 
 | 1790 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then | 
 | 1791 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
 | 1792 | else | 
 | 1793 |     IFS="${IFS= 	}"; ac_save_IFS="$IFS"; IFS=":" | 
 | 1794 |   for ac_dir in $PATH; do | 
 | 1795 |     # Account for people who put trailing slashes in PATH elements. | 
 | 1796 |     case "$ac_dir/" in | 
 | 1797 |     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; | 
 | 1798 |     *) | 
 | 1799 |       # OSF1 and SCO ODT 3.0 have their own names for install. | 
 | 1800 |       # Don't use installbsd from OSF since it installs stuff as root | 
 | 1801 |       # by default. | 
 | 1802 |       for ac_prog in ginstall scoinst install; do | 
 | 1803 |         if test -f $ac_dir/$ac_prog; then | 
 | 1804 | 	  if test $ac_prog = install && | 
 | 1805 |             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then | 
 | 1806 | 	    # AIX install.  It has an incompatible calling convention. | 
 | 1807 | 	    : | 
 | 1808 | 	  else | 
 | 1809 | 	    ac_cv_path_install="$ac_dir/$ac_prog -c" | 
 | 1810 | 	    break 2 | 
 | 1811 | 	  fi | 
 | 1812 | 	fi | 
 | 1813 |       done | 
 | 1814 |       ;; | 
 | 1815 |     esac | 
 | 1816 |   done | 
 | 1817 |   IFS="$ac_save_IFS" | 
 | 1818 |  | 
 | 1819 | fi | 
 | 1820 |   if test "${ac_cv_path_install+set}" = set; then | 
 | 1821 |     INSTALL="$ac_cv_path_install" | 
 | 1822 |   else | 
 | 1823 |     # As a last resort, use the slow shell script.  We don't cache a | 
 | 1824 |     # path for INSTALL within a source directory, because that will | 
 | 1825 |     # break other packages using the cache if that directory is | 
 | 1826 |     # removed, or if the path is relative. | 
 | 1827 |     INSTALL="$ac_install_sh" | 
 | 1828 |   fi | 
 | 1829 | fi | 
 | 1830 | echo "$ac_t""$INSTALL" 1>&6 | 
 | 1831 |  | 
 | 1832 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | 
 | 1833 | # It thinks the first close brace ends the variable substitution. | 
 | 1834 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | 
 | 1835 |  | 
 | 1836 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' | 
 | 1837 |  | 
 | 1838 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | 
 | 1839 |  | 
 | 1840 |  | 
 | 1841 |         MKINSTALLDIRS= | 
 | 1842 |   if test -n "$ac_aux_dir"; then | 
 | 1843 |     MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" | 
 | 1844 |   fi | 
 | 1845 |   if test -z "$MKINSTALLDIRS"; then | 
 | 1846 |     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" | 
 | 1847 |   fi | 
 | 1848 |    | 
 | 1849 |  | 
| Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 1850 | # Extract the first word of "ranlib", so it can be a program name with args. | 
 | 1851 | set dummy ranlib; ac_word=$2 | 
 | 1852 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 1853 | echo "configure:1854: checking for $ac_word" >&5 | 
| Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 1854 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then | 
 | 1855 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
 | 1856 | else | 
 | 1857 |   if test -n "$RANLIB"; then | 
 | 1858 |   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | 
 | 1859 | else | 
 | 1860 |   IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":" | 
 | 1861 |   ac_dummy="$PATH" | 
 | 1862 |   for ac_dir in $ac_dummy; do | 
 | 1863 |     test -z "$ac_dir" && ac_dir=. | 
 | 1864 |     if test -f $ac_dir/$ac_word; then | 
 | 1865 |       ac_cv_prog_RANLIB="ranlib" | 
 | 1866 |       break | 
 | 1867 |     fi | 
 | 1868 |   done | 
 | 1869 |   IFS="$ac_save_ifs" | 
 | 1870 |   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" | 
 | 1871 | fi | 
 | 1872 | fi | 
 | 1873 | RANLIB="$ac_cv_prog_RANLIB" | 
 | 1874 | if test -n "$RANLIB"; then | 
 | 1875 |   echo "$ac_t""$RANLIB" 1>&6 | 
 | 1876 | else | 
 | 1877 |   echo "$ac_t""no" 1>&6 | 
 | 1878 | fi | 
 | 1879 |  | 
| Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 1880 |  | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 1881 |         echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6 | 
 | 1882 | echo "configure:1883: checking for strerror in -lcposix" >&5 | 
 | 1883 | ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'` | 
 | 1884 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 
 | 1885 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
 | 1886 | else | 
 | 1887 |   ac_save_LIBS="$LIBS" | 
 | 1888 | LIBS="-lcposix  $LIBS" | 
 | 1889 | cat > conftest.$ac_ext <<EOF | 
 | 1890 | #line 1891 "configure" | 
 | 1891 | #include "confdefs.h" | 
 | 1892 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 1893 | /* We use char because int might match the return type of a gcc2 | 
 | 1894 |     builtin and then its argument prototype would still apply.  */ | 
 | 1895 | char strerror(); | 
 | 1896 |  | 
 | 1897 | int main() { | 
 | 1898 | strerror() | 
 | 1899 | ; return 0; } | 
 | 1900 | EOF | 
 | 1901 | if { (eval echo configure:1902: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 
 | 1902 |   rm -rf conftest* | 
 | 1903 |   eval "ac_cv_lib_$ac_lib_var=yes" | 
 | 1904 | else | 
 | 1905 |   echo "configure: failed program was:" >&5 | 
 | 1906 |   cat conftest.$ac_ext >&5 | 
 | 1907 |   rm -rf conftest* | 
 | 1908 |   eval "ac_cv_lib_$ac_lib_var=no" | 
 | 1909 | fi | 
 | 1910 | rm -f conftest* | 
 | 1911 | LIBS="$ac_save_LIBS" | 
 | 1912 |  | 
 | 1913 | fi | 
 | 1914 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | 
 | 1915 |   echo "$ac_t""yes" 1>&6 | 
 | 1916 |   LIBS="$LIBS -lcposix" | 
| Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 1917 | else | 
 | 1918 |   echo "$ac_t""no" 1>&6 | 
| Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 1919 | fi | 
 | 1920 |  | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 1921 |    | 
 | 1922 |  | 
| Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 1923 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 1924 | echo "configure:1925: checking for ANSI C header files" >&5 | 
| Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 1925 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then | 
 | 1926 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
 | 1927 | else | 
 | 1928 |   cat > conftest.$ac_ext <<EOF | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 1929 | #line 1930 "configure" | 
| Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 1930 | #include "confdefs.h" | 
 | 1931 | #include <stdlib.h> | 
 | 1932 | #include <stdarg.h> | 
 | 1933 | #include <string.h> | 
 | 1934 | #include <float.h> | 
 | 1935 | EOF | 
 | 1936 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 1937 | { (eval echo configure:1938: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 
| Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 1938 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 
 | 1939 | if test -z "$ac_err"; then | 
 | 1940 |   rm -rf conftest* | 
 | 1941 |   ac_cv_header_stdc=yes | 
 | 1942 | else | 
 | 1943 |   echo "$ac_err" >&5 | 
 | 1944 |   echo "configure: failed program was:" >&5 | 
 | 1945 |   cat conftest.$ac_ext >&5 | 
 | 1946 |   rm -rf conftest* | 
 | 1947 |   ac_cv_header_stdc=no | 
 | 1948 | fi | 
 | 1949 | rm -f conftest* | 
 | 1950 |  | 
 | 1951 | if test $ac_cv_header_stdc = yes; then | 
 | 1952 |   # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | 
 | 1953 | cat > conftest.$ac_ext <<EOF | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 1954 | #line 1955 "configure" | 
| Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 1955 | #include "confdefs.h" | 
 | 1956 | #include <string.h> | 
 | 1957 | EOF | 
 | 1958 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
 | 1959 |   egrep "memchr" >/dev/null 2>&1; then | 
 | 1960 |   : | 
 | 1961 | else | 
 | 1962 |   rm -rf conftest* | 
 | 1963 |   ac_cv_header_stdc=no | 
 | 1964 | fi | 
 | 1965 | rm -f conftest* | 
 | 1966 |  | 
 | 1967 | fi | 
 | 1968 |  | 
 | 1969 | if test $ac_cv_header_stdc = yes; then | 
 | 1970 |   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | 
 | 1971 | cat > conftest.$ac_ext <<EOF | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 1972 | #line 1973 "configure" | 
| Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 1973 | #include "confdefs.h" | 
 | 1974 | #include <stdlib.h> | 
 | 1975 | EOF | 
 | 1976 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
 | 1977 |   egrep "free" >/dev/null 2>&1; then | 
 | 1978 |   : | 
 | 1979 | else | 
 | 1980 |   rm -rf conftest* | 
 | 1981 |   ac_cv_header_stdc=no | 
 | 1982 | fi | 
 | 1983 | rm -f conftest* | 
 | 1984 |  | 
 | 1985 | fi | 
 | 1986 |  | 
 | 1987 | if test $ac_cv_header_stdc = yes; then | 
 | 1988 |   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | 
 | 1989 | if test "$cross_compiling" = yes; then | 
 | 1990 |   : | 
 | 1991 | else | 
 | 1992 |   cat > conftest.$ac_ext <<EOF | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 1993 | #line 1994 "configure" | 
| Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 1994 | #include "confdefs.h" | 
 | 1995 | #include <ctype.h> | 
 | 1996 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | 
 | 1997 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | 
 | 1998 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | 
 | 1999 | int main () { int i; for (i = 0; i < 256; i++) | 
 | 2000 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); | 
 | 2001 | exit (0); } | 
 | 2002 |  | 
 | 2003 | EOF | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 2004 | if { (eval echo configure:2005: \"$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] | 2005 | then | 
 | 2006 |   : | 
 | 2007 | else | 
 | 2008 |   echo "configure: failed program was:" >&5 | 
 | 2009 |   cat conftest.$ac_ext >&5 | 
 | 2010 |   rm -fr conftest* | 
 | 2011 |   ac_cv_header_stdc=no | 
 | 2012 | fi | 
 | 2013 | rm -fr conftest* | 
 | 2014 | fi | 
 | 2015 |  | 
 | 2016 | fi | 
 | 2017 | fi | 
 | 2018 |  | 
 | 2019 | echo "$ac_t""$ac_cv_header_stdc" 1>&6 | 
 | 2020 | if test $ac_cv_header_stdc = yes; then | 
 | 2021 |   cat >> confdefs.h <<\EOF | 
 | 2022 | #define STDC_HEADERS 1 | 
 | 2023 | EOF | 
 | 2024 |  | 
 | 2025 | fi | 
 | 2026 |  | 
 | 2027 | echo $ac_n "checking for working const""... $ac_c" 1>&6 | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 2028 | echo "configure:2029: checking for working const" >&5 | 
| Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2029 | if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then | 
 | 2030 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
 | 2031 | else | 
 | 2032 |   cat > conftest.$ac_ext <<EOF | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 2033 | #line 2034 "configure" | 
| Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2034 | #include "confdefs.h" | 
 | 2035 |  | 
 | 2036 | int main() { | 
 | 2037 |  | 
 | 2038 | /* Ultrix mips cc rejects this.  */ | 
| Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 2039 | typedef int charset[2]; const charset x; | 
| Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2040 | /* SunOS 4.1.1 cc rejects this.  */ | 
 | 2041 | char const *const *ccp; | 
 | 2042 | char **p; | 
 | 2043 | /* NEC SVR4.0.2 mips cc rejects this.  */ | 
 | 2044 | struct point {int x, y;}; | 
 | 2045 | static struct point const zero = {0,0}; | 
 | 2046 | /* AIX XL C 1.02.0.0 rejects this. | 
 | 2047 |    It does not let you subtract one const X* pointer from another in an arm | 
 | 2048 |    of an if-expression whose if-part is not a constant expression */ | 
 | 2049 | const char *g = "string"; | 
 | 2050 | ccp = &g + (g ? g-g : 0); | 
 | 2051 | /* HPUX 7.0 cc rejects these. */ | 
 | 2052 | ++ccp; | 
 | 2053 | p = (char**) ccp; | 
 | 2054 | ccp = (char const *const *) p; | 
 | 2055 | { /* SCO 3.2v4 cc rejects this.  */ | 
 | 2056 |   char *t; | 
 | 2057 |   char const *s = 0 ? (char *) 0 : (char const *) 0; | 
 | 2058 |  | 
 | 2059 |   *t++ = 0; | 
 | 2060 | } | 
 | 2061 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */ | 
 | 2062 |   int x[] = {25, 17}; | 
 | 2063 |   const int *foo = &x[0]; | 
 | 2064 |   ++foo; | 
 | 2065 | } | 
 | 2066 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | 
 | 2067 |   typedef const int *iptr; | 
 | 2068 |   iptr p = 0; | 
 | 2069 |   ++p; | 
 | 2070 | } | 
 | 2071 | { /* AIX XL C 1.02.0.0 rejects this saying | 
 | 2072 |      "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | 
 | 2073 |   struct s { int j; const int *ap[3]; }; | 
 | 2074 |   struct s *b; b->j = 5; | 
 | 2075 | } | 
 | 2076 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | 
 | 2077 |   const int foo = 10; | 
 | 2078 | } | 
 | 2079 |  | 
 | 2080 | ; return 0; } | 
 | 2081 | EOF | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 2082 | if { (eval echo configure:2083: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 
| Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2083 |   rm -rf conftest* | 
 | 2084 |   ac_cv_c_const=yes | 
 | 2085 | else | 
 | 2086 |   echo "configure: failed program was:" >&5 | 
 | 2087 |   cat conftest.$ac_ext >&5 | 
 | 2088 |   rm -rf conftest* | 
 | 2089 |   ac_cv_c_const=no | 
 | 2090 | fi | 
 | 2091 | rm -f conftest* | 
 | 2092 | fi | 
 | 2093 |  | 
 | 2094 | echo "$ac_t""$ac_cv_c_const" 1>&6 | 
 | 2095 | if test $ac_cv_c_const = no; then | 
 | 2096 |   cat >> confdefs.h <<\EOF | 
 | 2097 | #define const  | 
 | 2098 | EOF | 
 | 2099 |  | 
 | 2100 | fi | 
 | 2101 |  | 
 | 2102 | echo $ac_n "checking for inline""... $ac_c" 1>&6 | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 2103 | echo "configure:2104: checking for inline" >&5 | 
| Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2104 | if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then | 
 | 2105 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
 | 2106 | else | 
 | 2107 |   ac_cv_c_inline=no | 
 | 2108 | for ac_kw in inline __inline__ __inline; do | 
 | 2109 |   cat > conftest.$ac_ext <<EOF | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 2110 | #line 2111 "configure" | 
| Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2111 | #include "confdefs.h" | 
 | 2112 |  | 
 | 2113 | int main() { | 
| Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 2114 | } $ac_kw foo() { | 
| Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2115 | ; return 0; } | 
 | 2116 | EOF | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 2117 | if { (eval echo configure:2118: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 
| Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2118 |   rm -rf conftest* | 
 | 2119 |   ac_cv_c_inline=$ac_kw; break | 
 | 2120 | else | 
 | 2121 |   echo "configure: failed program was:" >&5 | 
 | 2122 |   cat conftest.$ac_ext >&5 | 
 | 2123 | fi | 
 | 2124 | rm -f conftest* | 
 | 2125 | done | 
 | 2126 |  | 
 | 2127 | fi | 
 | 2128 |  | 
 | 2129 | echo "$ac_t""$ac_cv_c_inline" 1>&6 | 
 | 2130 | case "$ac_cv_c_inline" in | 
 | 2131 |   inline | yes) ;; | 
 | 2132 |   no) cat >> confdefs.h <<\EOF | 
 | 2133 | #define inline  | 
 | 2134 | EOF | 
 | 2135 |  ;; | 
 | 2136 |   *)  cat >> confdefs.h <<EOF | 
 | 2137 | #define inline $ac_cv_c_inline | 
 | 2138 | EOF | 
 | 2139 |  ;; | 
 | 2140 | esac | 
 | 2141 |  | 
 | 2142 | echo $ac_n "checking for off_t""... $ac_c" 1>&6 | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 2143 | echo "configure:2144: checking for off_t" >&5 | 
| Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2144 | if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then | 
 | 2145 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
 | 2146 | else | 
 | 2147 |   cat > conftest.$ac_ext <<EOF | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 2148 | #line 2149 "configure" | 
| Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2149 | #include "confdefs.h" | 
 | 2150 | #include <sys/types.h> | 
 | 2151 | #if STDC_HEADERS | 
 | 2152 | #include <stdlib.h> | 
 | 2153 | #include <stddef.h> | 
 | 2154 | #endif | 
 | 2155 | EOF | 
 | 2156 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
 | 2157 |   egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | 
 | 2158 |   rm -rf conftest* | 
 | 2159 |   ac_cv_type_off_t=yes | 
 | 2160 | else | 
 | 2161 |   rm -rf conftest* | 
 | 2162 |   ac_cv_type_off_t=no | 
 | 2163 | fi | 
 | 2164 | rm -f conftest* | 
 | 2165 |  | 
 | 2166 | fi | 
 | 2167 | echo "$ac_t""$ac_cv_type_off_t" 1>&6 | 
 | 2168 | if test $ac_cv_type_off_t = no; then | 
 | 2169 |   cat >> confdefs.h <<\EOF | 
 | 2170 | #define off_t long | 
 | 2171 | EOF | 
 | 2172 |  | 
 | 2173 | fi | 
 | 2174 |  | 
 | 2175 | echo $ac_n "checking for size_t""... $ac_c" 1>&6 | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 2176 | echo "configure:2177: checking for size_t" >&5 | 
| Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2177 | if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then | 
 | 2178 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
 | 2179 | else | 
 | 2180 |   cat > conftest.$ac_ext <<EOF | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 2181 | #line 2182 "configure" | 
| Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2182 | #include "confdefs.h" | 
 | 2183 | #include <sys/types.h> | 
 | 2184 | #if STDC_HEADERS | 
 | 2185 | #include <stdlib.h> | 
 | 2186 | #include <stddef.h> | 
 | 2187 | #endif | 
 | 2188 | EOF | 
 | 2189 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
 | 2190 |   egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | 
 | 2191 |   rm -rf conftest* | 
 | 2192 |   ac_cv_type_size_t=yes | 
 | 2193 | else | 
 | 2194 |   rm -rf conftest* | 
 | 2195 |   ac_cv_type_size_t=no | 
 | 2196 | fi | 
 | 2197 | rm -f conftest* | 
 | 2198 |  | 
 | 2199 | fi | 
 | 2200 | echo "$ac_t""$ac_cv_type_size_t" 1>&6 | 
 | 2201 | if test $ac_cv_type_size_t = no; then | 
 | 2202 |   cat >> confdefs.h <<\EOF | 
 | 2203 | #define size_t unsigned | 
 | 2204 | EOF | 
 | 2205 |  | 
 | 2206 | fi | 
 | 2207 |  | 
 | 2208 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works | 
 | 2209 | # for constant arguments.  Useless! | 
 | 2210 | echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6 | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 2211 | echo "configure:2212: checking for working alloca.h" >&5 | 
| Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2212 | if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then | 
 | 2213 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
 | 2214 | else | 
 | 2215 |   cat > conftest.$ac_ext <<EOF | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 2216 | #line 2217 "configure" | 
| Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2217 | #include "confdefs.h" | 
 | 2218 | #include <alloca.h> | 
 | 2219 | int main() { | 
| Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 2220 | char *p = alloca(2 * sizeof(int)); | 
| Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2221 | ; return 0; } | 
 | 2222 | EOF | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 2223 | if { (eval echo configure:2224: \"$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] | 2224 |   rm -rf conftest* | 
 | 2225 |   ac_cv_header_alloca_h=yes | 
 | 2226 | else | 
 | 2227 |   echo "configure: failed program was:" >&5 | 
 | 2228 |   cat conftest.$ac_ext >&5 | 
 | 2229 |   rm -rf conftest* | 
 | 2230 |   ac_cv_header_alloca_h=no | 
 | 2231 | fi | 
 | 2232 | rm -f conftest* | 
 | 2233 | fi | 
 | 2234 |  | 
 | 2235 | echo "$ac_t""$ac_cv_header_alloca_h" 1>&6 | 
 | 2236 | if test $ac_cv_header_alloca_h = yes; then | 
 | 2237 |   cat >> confdefs.h <<\EOF | 
 | 2238 | #define HAVE_ALLOCA_H 1 | 
 | 2239 | EOF | 
 | 2240 |  | 
 | 2241 | fi | 
 | 2242 |  | 
 | 2243 | echo $ac_n "checking for alloca""... $ac_c" 1>&6 | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 2244 | echo "configure:2245: checking for alloca" >&5 | 
| Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2245 | if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then | 
 | 2246 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
 | 2247 | else | 
 | 2248 |   cat > conftest.$ac_ext <<EOF | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 2249 | #line 2250 "configure" | 
| Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2250 | #include "confdefs.h" | 
 | 2251 |  | 
 | 2252 | #ifdef __GNUC__ | 
 | 2253 | # define alloca __builtin_alloca | 
 | 2254 | #else | 
 | 2255 | # ifdef _MSC_VER | 
 | 2256 | #  include <malloc.h> | 
 | 2257 | #  define alloca _alloca | 
 | 2258 | # else | 
 | 2259 | #  if HAVE_ALLOCA_H | 
 | 2260 | #   include <alloca.h> | 
 | 2261 | #  else | 
 | 2262 | #   ifdef _AIX | 
 | 2263 |  #pragma alloca | 
 | 2264 | #   else | 
 | 2265 | #    ifndef alloca /* predefined by HP cc +Olibcalls */ | 
 | 2266 | char *alloca (); | 
 | 2267 | #    endif | 
 | 2268 | #   endif | 
 | 2269 | #  endif | 
 | 2270 | # endif | 
 | 2271 | #endif | 
 | 2272 |  | 
 | 2273 | int main() { | 
 | 2274 | char *p = (char *) alloca(1); | 
 | 2275 | ; return 0; } | 
 | 2276 | EOF | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 2277 | if { (eval echo configure:2278: \"$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] | 2278 |   rm -rf conftest* | 
 | 2279 |   ac_cv_func_alloca_works=yes | 
 | 2280 | else | 
 | 2281 |   echo "configure: failed program was:" >&5 | 
 | 2282 |   cat conftest.$ac_ext >&5 | 
 | 2283 |   rm -rf conftest* | 
 | 2284 |   ac_cv_func_alloca_works=no | 
 | 2285 | fi | 
 | 2286 | rm -f conftest* | 
 | 2287 | fi | 
 | 2288 |  | 
 | 2289 | echo "$ac_t""$ac_cv_func_alloca_works" 1>&6 | 
 | 2290 | if test $ac_cv_func_alloca_works = yes; then | 
 | 2291 |   cat >> confdefs.h <<\EOF | 
 | 2292 | #define HAVE_ALLOCA 1 | 
 | 2293 | EOF | 
 | 2294 |  | 
 | 2295 | fi | 
 | 2296 |  | 
 | 2297 | if test $ac_cv_func_alloca_works = no; then | 
 | 2298 |   # The SVR3 libPW and SVR4 libucb both contain incompatible functions | 
 | 2299 |   # that cause trouble.  Some versions do not even contain alloca or | 
 | 2300 |   # contain a buggy version.  If you still want to use their alloca, | 
 | 2301 |   # use ar to extract alloca.o from them instead of compiling alloca.c. | 
 | 2302 |   ALLOCA=alloca.${ac_objext} | 
 | 2303 |   cat >> confdefs.h <<\EOF | 
 | 2304 | #define C_ALLOCA 1 | 
 | 2305 | EOF | 
 | 2306 |  | 
 | 2307 |  | 
 | 2308 | echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 2309 | echo "configure:2310: checking whether alloca needs Cray hooks" >&5 | 
| Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2310 | if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then | 
 | 2311 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
 | 2312 | else | 
 | 2313 |   cat > conftest.$ac_ext <<EOF | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 2314 | #line 2315 "configure" | 
| Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2315 | #include "confdefs.h" | 
 | 2316 | #if defined(CRAY) && ! defined(CRAY2) | 
 | 2317 | webecray | 
 | 2318 | #else | 
 | 2319 | wenotbecray | 
 | 2320 | #endif | 
 | 2321 |  | 
 | 2322 | EOF | 
 | 2323 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
 | 2324 |   egrep "webecray" >/dev/null 2>&1; then | 
 | 2325 |   rm -rf conftest* | 
 | 2326 |   ac_cv_os_cray=yes | 
 | 2327 | else | 
 | 2328 |   rm -rf conftest* | 
 | 2329 |   ac_cv_os_cray=no | 
 | 2330 | fi | 
 | 2331 | rm -f conftest* | 
 | 2332 |  | 
 | 2333 | fi | 
 | 2334 |  | 
 | 2335 | echo "$ac_t""$ac_cv_os_cray" 1>&6 | 
 | 2336 | if test $ac_cv_os_cray = yes; then | 
 | 2337 | for ac_func in _getb67 GETB67 getb67; do | 
 | 2338 |   echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 2339 | echo "configure:2340: checking for $ac_func" >&5 | 
| Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2340 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | 
 | 2341 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
 | 2342 | else | 
 | 2343 |   cat > conftest.$ac_ext <<EOF | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 2344 | #line 2345 "configure" | 
| Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2345 | #include "confdefs.h" | 
 | 2346 | /* System header to define __stub macros and hopefully few prototypes, | 
 | 2347 |     which can conflict with char $ac_func(); below.  */ | 
 | 2348 | #include <assert.h> | 
 | 2349 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 2350 | /* We use char because int might match the return type of a gcc2 | 
 | 2351 |     builtin and then its argument prototype would still apply.  */ | 
 | 2352 | char $ac_func(); | 
 | 2353 |  | 
 | 2354 | int main() { | 
 | 2355 |  | 
 | 2356 | /* The GNU C library defines this for functions which it implements | 
 | 2357 |     to always fail with ENOSYS.  Some functions are actually named | 
 | 2358 |     something starting with __ and the normal name is an alias.  */ | 
 | 2359 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | 
 | 2360 | choke me | 
 | 2361 | #else | 
 | 2362 | $ac_func(); | 
 | 2363 | #endif | 
 | 2364 |  | 
 | 2365 | ; return 0; } | 
 | 2366 | EOF | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 2367 | if { (eval echo configure:2368: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 
| Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2368 |   rm -rf conftest* | 
 | 2369 |   eval "ac_cv_func_$ac_func=yes" | 
 | 2370 | else | 
 | 2371 |   echo "configure: failed program was:" >&5 | 
 | 2372 |   cat conftest.$ac_ext >&5 | 
 | 2373 |   rm -rf conftest* | 
 | 2374 |   eval "ac_cv_func_$ac_func=no" | 
 | 2375 | fi | 
 | 2376 | rm -f conftest* | 
 | 2377 | fi | 
 | 2378 |  | 
 | 2379 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | 
 | 2380 |   echo "$ac_t""yes" 1>&6 | 
 | 2381 |   cat >> confdefs.h <<EOF | 
 | 2382 | #define CRAY_STACKSEG_END $ac_func | 
 | 2383 | EOF | 
 | 2384 |  | 
 | 2385 |   break | 
 | 2386 | else | 
 | 2387 |   echo "$ac_t""no" 1>&6 | 
 | 2388 | fi | 
 | 2389 |  | 
 | 2390 | done | 
 | 2391 | fi | 
 | 2392 |  | 
 | 2393 | echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 2394 | echo "configure:2395: checking stack direction for C alloca" >&5 | 
| Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2395 | if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then | 
 | 2396 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
 | 2397 | else | 
 | 2398 |   if test "$cross_compiling" = yes; then | 
 | 2399 |   ac_cv_c_stack_direction=0 | 
 | 2400 | else | 
 | 2401 |   cat > conftest.$ac_ext <<EOF | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 2402 | #line 2403 "configure" | 
| Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2403 | #include "confdefs.h" | 
 | 2404 | find_stack_direction () | 
 | 2405 | { | 
 | 2406 |   static char *addr = 0; | 
 | 2407 |   auto char dummy; | 
 | 2408 |   if (addr == 0) | 
 | 2409 |     { | 
 | 2410 |       addr = &dummy; | 
 | 2411 |       return find_stack_direction (); | 
 | 2412 |     } | 
 | 2413 |   else | 
 | 2414 |     return (&dummy > addr) ? 1 : -1; | 
 | 2415 | } | 
 | 2416 | main () | 
 | 2417 | { | 
 | 2418 |   exit (find_stack_direction() < 0); | 
 | 2419 | } | 
 | 2420 | EOF | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 2421 | if { (eval echo configure:2422: \"$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] | 2422 | then | 
 | 2423 |   ac_cv_c_stack_direction=1 | 
 | 2424 | else | 
 | 2425 |   echo "configure: failed program was:" >&5 | 
 | 2426 |   cat conftest.$ac_ext >&5 | 
 | 2427 |   rm -fr conftest* | 
 | 2428 |   ac_cv_c_stack_direction=-1 | 
 | 2429 | fi | 
 | 2430 | rm -fr conftest* | 
 | 2431 | fi | 
 | 2432 |  | 
 | 2433 | fi | 
 | 2434 |  | 
 | 2435 | echo "$ac_t""$ac_cv_c_stack_direction" 1>&6 | 
 | 2436 | cat >> confdefs.h <<EOF | 
 | 2437 | #define STACK_DIRECTION $ac_cv_c_stack_direction | 
 | 2438 | EOF | 
 | 2439 |  | 
 | 2440 | fi | 
 | 2441 |  | 
 | 2442 | for ac_hdr in unistd.h | 
 | 2443 | do | 
 | 2444 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | 
 | 2445 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 2446 | echo "configure:2447: checking for $ac_hdr" >&5 | 
| Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2447 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 
 | 2448 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
 | 2449 | else | 
 | 2450 |   cat > conftest.$ac_ext <<EOF | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 2451 | #line 2452 "configure" | 
| Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2452 | #include "confdefs.h" | 
 | 2453 | #include <$ac_hdr> | 
 | 2454 | EOF | 
 | 2455 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 2456 | { (eval echo configure:2457: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 
| Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2457 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 
 | 2458 | if test -z "$ac_err"; then | 
 | 2459 |   rm -rf conftest* | 
 | 2460 |   eval "ac_cv_header_$ac_safe=yes" | 
 | 2461 | else | 
 | 2462 |   echo "$ac_err" >&5 | 
 | 2463 |   echo "configure: failed program was:" >&5 | 
 | 2464 |   cat conftest.$ac_ext >&5 | 
 | 2465 |   rm -rf conftest* | 
 | 2466 |   eval "ac_cv_header_$ac_safe=no" | 
 | 2467 | fi | 
 | 2468 | rm -f conftest* | 
 | 2469 | fi | 
 | 2470 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | 
 | 2471 |   echo "$ac_t""yes" 1>&6 | 
 | 2472 |     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | 
 | 2473 |   cat >> confdefs.h <<EOF | 
 | 2474 | #define $ac_tr_hdr 1 | 
 | 2475 | EOF | 
 | 2476 |   | 
 | 2477 | else | 
 | 2478 |   echo "$ac_t""no" 1>&6 | 
 | 2479 | fi | 
 | 2480 | done | 
 | 2481 |  | 
 | 2482 | for ac_func in getpagesize | 
 | 2483 | do | 
 | 2484 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 2485 | echo "configure:2486: checking for $ac_func" >&5 | 
| Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2486 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | 
 | 2487 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
 | 2488 | else | 
 | 2489 |   cat > conftest.$ac_ext <<EOF | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 2490 | #line 2491 "configure" | 
| Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2491 | #include "confdefs.h" | 
 | 2492 | /* System header to define __stub macros and hopefully few prototypes, | 
 | 2493 |     which can conflict with char $ac_func(); below.  */ | 
 | 2494 | #include <assert.h> | 
 | 2495 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 2496 | /* We use char because int might match the return type of a gcc2 | 
 | 2497 |     builtin and then its argument prototype would still apply.  */ | 
 | 2498 | char $ac_func(); | 
 | 2499 |  | 
 | 2500 | int main() { | 
 | 2501 |  | 
 | 2502 | /* The GNU C library defines this for functions which it implements | 
 | 2503 |     to always fail with ENOSYS.  Some functions are actually named | 
 | 2504 |     something starting with __ and the normal name is an alias.  */ | 
 | 2505 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | 
 | 2506 | choke me | 
 | 2507 | #else | 
 | 2508 | $ac_func(); | 
 | 2509 | #endif | 
 | 2510 |  | 
 | 2511 | ; return 0; } | 
 | 2512 | EOF | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 2513 | if { (eval echo configure:2514: \"$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] | 2514 |   rm -rf conftest* | 
 | 2515 |   eval "ac_cv_func_$ac_func=yes" | 
 | 2516 | else | 
 | 2517 |   echo "configure: failed program was:" >&5 | 
 | 2518 |   cat conftest.$ac_ext >&5 | 
 | 2519 |   rm -rf conftest* | 
 | 2520 |   eval "ac_cv_func_$ac_func=no" | 
 | 2521 | fi | 
 | 2522 | rm -f conftest* | 
 | 2523 | fi | 
 | 2524 |  | 
 | 2525 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | 
 | 2526 |   echo "$ac_t""yes" 1>&6 | 
 | 2527 |     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | 
 | 2528 |   cat >> confdefs.h <<EOF | 
 | 2529 | #define $ac_tr_func 1 | 
 | 2530 | EOF | 
 | 2531 |   | 
 | 2532 | else | 
 | 2533 |   echo "$ac_t""no" 1>&6 | 
 | 2534 | fi | 
 | 2535 | done | 
 | 2536 |  | 
 | 2537 | echo $ac_n "checking for working mmap""... $ac_c" 1>&6 | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 2538 | echo "configure:2539: checking for working mmap" >&5 | 
| Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2539 | if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then | 
 | 2540 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
 | 2541 | else | 
 | 2542 |   if test "$cross_compiling" = yes; then | 
 | 2543 |   ac_cv_func_mmap_fixed_mapped=no | 
 | 2544 | else | 
 | 2545 |   cat > conftest.$ac_ext <<EOF | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 2546 | #line 2547 "configure" | 
| Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2547 | #include "confdefs.h" | 
 | 2548 |  | 
 | 2549 | /* Thanks to Mike Haertel and Jim Avera for this test. | 
 | 2550 |    Here is a matrix of mmap possibilities: | 
 | 2551 | 	mmap private not fixed | 
 | 2552 | 	mmap private fixed at somewhere currently unmapped | 
 | 2553 | 	mmap private fixed at somewhere already mapped | 
 | 2554 | 	mmap shared not fixed | 
 | 2555 | 	mmap shared fixed at somewhere currently unmapped | 
 | 2556 | 	mmap shared fixed at somewhere already mapped | 
 | 2557 |    For private mappings, we should verify that changes cannot be read() | 
 | 2558 |    back from the file, nor mmap's back from the file at a different | 
 | 2559 |    address.  (There have been systems where private was not correctly | 
 | 2560 |    implemented like the infamous i386 svr4.0, and systems where the | 
 | 2561 |    VM page cache was not coherent with the filesystem buffer cache | 
 | 2562 |    like early versions of FreeBSD and possibly contemporary NetBSD.) | 
 | 2563 |    For shared mappings, we should conversely verify that changes get | 
 | 2564 |    propogated back to all the places they're supposed to be. | 
 | 2565 |  | 
 | 2566 |    Grep wants private fixed already mapped. | 
 | 2567 |    The main things grep needs to know about mmap are: | 
 | 2568 |    * does it exist and is it safe to write into the mmap'd area | 
 | 2569 |    * how to use it (BSD variants)  */ | 
 | 2570 | #include <sys/types.h> | 
 | 2571 | #include <fcntl.h> | 
 | 2572 | #include <sys/mman.h> | 
 | 2573 |  | 
 | 2574 | /* This mess was copied from the GNU getpagesize.h.  */ | 
 | 2575 | #ifndef HAVE_GETPAGESIZE | 
| Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 2576 | # ifdef HAVE_UNISTD_H | 
 | 2577 | #  include <unistd.h> | 
 | 2578 | # endif | 
| Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2579 |  | 
 | 2580 | /* Assume that all systems that can run configure have sys/param.h.  */ | 
 | 2581 | # ifndef HAVE_SYS_PARAM_H | 
 | 2582 | #  define HAVE_SYS_PARAM_H 1 | 
 | 2583 | # endif | 
 | 2584 |  | 
 | 2585 | # ifdef _SC_PAGESIZE | 
 | 2586 | #  define getpagesize() sysconf(_SC_PAGESIZE) | 
 | 2587 | # else /* no _SC_PAGESIZE */ | 
 | 2588 | #  ifdef HAVE_SYS_PARAM_H | 
 | 2589 | #   include <sys/param.h> | 
 | 2590 | #   ifdef EXEC_PAGESIZE | 
 | 2591 | #    define getpagesize() EXEC_PAGESIZE | 
 | 2592 | #   else /* no EXEC_PAGESIZE */ | 
 | 2593 | #    ifdef NBPG | 
 | 2594 | #     define getpagesize() NBPG * CLSIZE | 
 | 2595 | #     ifndef CLSIZE | 
 | 2596 | #      define CLSIZE 1 | 
 | 2597 | #     endif /* no CLSIZE */ | 
 | 2598 | #    else /* no NBPG */ | 
 | 2599 | #     ifdef NBPC | 
 | 2600 | #      define getpagesize() NBPC | 
 | 2601 | #     else /* no NBPC */ | 
 | 2602 | #      ifdef PAGESIZE | 
 | 2603 | #       define getpagesize() PAGESIZE | 
 | 2604 | #      endif /* PAGESIZE */ | 
 | 2605 | #     endif /* no NBPC */ | 
 | 2606 | #    endif /* no NBPG */ | 
 | 2607 | #   endif /* no EXEC_PAGESIZE */ | 
 | 2608 | #  else /* no HAVE_SYS_PARAM_H */ | 
 | 2609 | #   define getpagesize() 8192	/* punt totally */ | 
 | 2610 | #  endif /* no HAVE_SYS_PARAM_H */ | 
 | 2611 | # endif /* no _SC_PAGESIZE */ | 
 | 2612 |  | 
 | 2613 | #endif /* no HAVE_GETPAGESIZE */ | 
 | 2614 |  | 
 | 2615 | #ifdef __cplusplus | 
 | 2616 | extern "C" { void *malloc(unsigned); } | 
 | 2617 | #else | 
 | 2618 | char *malloc(); | 
 | 2619 | #endif | 
 | 2620 |  | 
 | 2621 | int | 
 | 2622 | main() | 
 | 2623 | { | 
 | 2624 | 	char *data, *data2, *data3; | 
 | 2625 | 	int i, pagesize; | 
 | 2626 | 	int fd; | 
 | 2627 |  | 
 | 2628 | 	pagesize = getpagesize(); | 
 | 2629 |  | 
 | 2630 | 	/* | 
 | 2631 | 	 * First, make a file with some known garbage in it. | 
 | 2632 | 	 */ | 
| Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 2633 | 	data = malloc(pagesize); | 
| Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2634 | 	if (!data) | 
 | 2635 | 		exit(1); | 
 | 2636 | 	for (i = 0; i < pagesize; ++i) | 
 | 2637 | 		*(data + i) = rand(); | 
 | 2638 | 	umask(0); | 
 | 2639 | 	fd = creat("conftestmmap", 0600); | 
 | 2640 | 	if (fd < 0) | 
 | 2641 | 		exit(1); | 
 | 2642 | 	if (write(fd, data, pagesize) != pagesize) | 
 | 2643 | 		exit(1); | 
 | 2644 | 	close(fd); | 
 | 2645 |  | 
 | 2646 | 	/* | 
 | 2647 | 	 * Next, try to mmap the file at a fixed address which | 
 | 2648 | 	 * already has something else allocated at it.  If we can, | 
 | 2649 | 	 * also make sure that we see the same garbage. | 
 | 2650 | 	 */ | 
 | 2651 | 	fd = open("conftestmmap", O_RDWR); | 
 | 2652 | 	if (fd < 0) | 
 | 2653 | 		exit(1); | 
| Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 2654 | 	data2 = malloc(2 * pagesize); | 
| Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2655 | 	if (!data2) | 
 | 2656 | 		exit(1); | 
 | 2657 | 	data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1); | 
 | 2658 | 	if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE, | 
 | 2659 | 	    MAP_PRIVATE | MAP_FIXED, fd, 0L)) | 
 | 2660 | 		exit(1); | 
 | 2661 | 	for (i = 0; i < pagesize; ++i) | 
 | 2662 | 		if (*(data + i) != *(data2 + i)) | 
 | 2663 | 			exit(1); | 
 | 2664 |  | 
 | 2665 | 	/* | 
 | 2666 | 	 * Finally, make sure that changes to the mapped area | 
 | 2667 | 	 * do not percolate back to the file as seen by read(). | 
 | 2668 | 	 * (This is a bug on some variants of i386 svr4.0.) | 
 | 2669 | 	 */ | 
 | 2670 | 	for (i = 0; i < pagesize; ++i) | 
 | 2671 | 		*(data2 + i) = *(data2 + i) + 1; | 
| Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 2672 | 	data3 = malloc(pagesize); | 
| Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 2673 | 	if (!data3) | 
 | 2674 | 		exit(1); | 
 | 2675 | 	if (read(fd, data3, pagesize) != pagesize) | 
 | 2676 | 		exit(1); | 
 | 2677 | 	for (i = 0; i < pagesize; ++i) | 
 | 2678 | 		if (*(data + i) != *(data3 + i)) | 
 | 2679 | 			exit(1); | 
 | 2680 | 	close(fd); | 
 | 2681 | 	unlink("conftestmmap"); | 
 | 2682 | 	exit(0); | 
 | 2683 | } | 
 | 2684 |  | 
 | 2685 | EOF | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 2686 | if { (eval echo configure:2687: \"$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] | 2687 | then | 
 | 2688 |   ac_cv_func_mmap_fixed_mapped=yes | 
 | 2689 | else | 
 | 2690 |   echo "configure: failed program was:" >&5 | 
 | 2691 |   cat conftest.$ac_ext >&5 | 
 | 2692 |   rm -fr conftest* | 
 | 2693 |   ac_cv_func_mmap_fixed_mapped=no | 
 | 2694 | fi | 
 | 2695 | rm -fr conftest* | 
 | 2696 | fi | 
 | 2697 |  | 
 | 2698 | fi | 
 | 2699 |  | 
 | 2700 | echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6 | 
 | 2701 | if test $ac_cv_func_mmap_fixed_mapped = yes; then | 
 | 2702 |   cat >> confdefs.h <<\EOF | 
 | 2703 | #define HAVE_MMAP 1 | 
 | 2704 | EOF | 
 | 2705 |  | 
 | 2706 | fi | 
 | 2707 |  | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 2708 |  | 
 | 2709 |     echo $ac_n "checking whether we are using the GNU C Library 2.1 or newer""... $ac_c" 1>&6 | 
 | 2710 | echo "configure:2711: checking whether we are using the GNU C Library 2.1 or newer" >&5 | 
 | 2711 | if eval "test \"`echo '$''{'ac_cv_gnu_library_2_1'+set}'`\" = set"; then | 
 | 2712 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
 | 2713 | else | 
 | 2714 |   cat > conftest.$ac_ext <<EOF | 
 | 2715 | #line 2716 "configure" | 
 | 2716 | #include "confdefs.h" | 
 | 2717 |  | 
 | 2718 | #include <features.h> | 
 | 2719 | #ifdef __GNU_LIBRARY__ | 
 | 2720 |  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2) | 
 | 2721 |   Lucky GNU user | 
 | 2722 |  #endif | 
 | 2723 | #endif | 
 | 2724 | 	 | 
 | 2725 | EOF | 
 | 2726 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
 | 2727 |   egrep "Lucky GNU user" >/dev/null 2>&1; then | 
 | 2728 |   rm -rf conftest* | 
 | 2729 |   ac_cv_gnu_library_2_1=yes | 
 | 2730 | else | 
 | 2731 |   rm -rf conftest* | 
 | 2732 |   ac_cv_gnu_library_2_1=no | 
 | 2733 | fi | 
 | 2734 | rm -f conftest* | 
 | 2735 |  | 
 | 2736 |        | 
 | 2737 |      | 
 | 2738 | fi | 
 | 2739 |  | 
 | 2740 | echo "$ac_t""$ac_cv_gnu_library_2_1" 1>&6 | 
 | 2741 |      | 
 | 2742 |     GLIBC21="$ac_cv_gnu_library_2_1" | 
 | 2743 |    | 
 | 2744 |  | 
 | 2745 |  | 
 | 2746 |      | 
 | 2747 |   echo $ac_n "checking whether integer division by zero raises SIGFPE""... $ac_c" 1>&6 | 
 | 2748 | echo "configure:2749: checking whether integer division by zero raises SIGFPE" >&5 | 
 | 2749 | if eval "test \"`echo '$''{'gt_cv_int_divbyzero_sigfpe'+set}'`\" = set"; then | 
 | 2750 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
 | 2751 | else | 
 | 2752 |    | 
 | 2753 |       if test "$cross_compiling" = yes; then | 
 | 2754 |    | 
 | 2755 |           # Guess based on the CPU. | 
 | 2756 |           case "$host_cpu" in | 
 | 2757 |             alpha* | i3456786 | m68k | s390*) | 
 | 2758 |               gt_cv_int_divbyzero_sigfpe="guessing yes";; | 
 | 2759 |             *) | 
 | 2760 |               gt_cv_int_divbyzero_sigfpe="guessing no";; | 
 | 2761 |           esac | 
 | 2762 |          | 
 | 2763 | else | 
 | 2764 |   cat > conftest.$ac_ext <<EOF | 
 | 2765 | #line 2766 "configure" | 
 | 2766 | #include "confdefs.h" | 
 | 2767 |  | 
 | 2768 | #include <stdlib.h> | 
 | 2769 | #include <signal.h> | 
 | 2770 |  | 
 | 2771 | static void | 
 | 2772 | #ifdef __cplusplus | 
 | 2773 | sigfpe_handler (int sig) | 
 | 2774 | #else | 
 | 2775 | sigfpe_handler (sig) int sig; | 
 | 2776 | #endif | 
 | 2777 | { | 
 | 2778 |   /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */ | 
 | 2779 |   exit (sig != SIGFPE); | 
 | 2780 | } | 
 | 2781 |  | 
 | 2782 | int x = 1; | 
 | 2783 | int y = 0; | 
 | 2784 | int z; | 
 | 2785 | int nan; | 
 | 2786 |  | 
 | 2787 | int main () | 
 | 2788 | { | 
 | 2789 |   signal (SIGFPE, sigfpe_handler); | 
 | 2790 | /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */ | 
 | 2791 | #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP) | 
 | 2792 |   signal (SIGTRAP, sigfpe_handler); | 
 | 2793 | #endif | 
 | 2794 | /* Linux/SPARC yields signal SIGILL.  */ | 
 | 2795 | #if defined (__sparc__) && defined (__linux__) | 
 | 2796 |   signal (SIGILL, sigfpe_handler); | 
 | 2797 | #endif | 
 | 2798 |  | 
 | 2799 |   z = x / y; | 
 | 2800 |   nan = y / y; | 
 | 2801 |   exit (1); | 
 | 2802 | } | 
 | 2803 |  | 
 | 2804 | EOF | 
 | 2805 | if { (eval echo configure:2806: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | 
 | 2806 | then | 
 | 2807 |   gt_cv_int_divbyzero_sigfpe=yes | 
 | 2808 | else | 
 | 2809 |   echo "configure: failed program was:" >&5 | 
 | 2810 |   cat conftest.$ac_ext >&5 | 
 | 2811 |   rm -fr conftest* | 
 | 2812 |   gt_cv_int_divbyzero_sigfpe=no | 
 | 2813 | fi | 
 | 2814 | rm -fr conftest* | 
 | 2815 | fi | 
 | 2816 |  | 
 | 2817 |      | 
 | 2818 | fi | 
 | 2819 |  | 
 | 2820 | echo "$ac_t""$gt_cv_int_divbyzero_sigfpe" 1>&6 | 
 | 2821 |   case "$gt_cv_int_divbyzero_sigfpe" in | 
 | 2822 |     *yes) value=1;; | 
 | 2823 |     *) value=0;; | 
 | 2824 |   esac | 
 | 2825 |   cat >> confdefs.h <<EOF | 
 | 2826 | #define INTDIV0_RAISES_SIGFPE $value | 
 | 2827 | EOF | 
 | 2828 |  | 
 | 2829 |  | 
 | 2830 |  | 
 | 2831 |    | 
 | 2832 |    | 
 | 2833 |   if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then | 
 | 2834 |      | 
 | 2835 |     test $ac_cv_type_unsigned_long_long = yes \ | 
 | 2836 |       && ac_type='unsigned long long' \ | 
 | 2837 |       || ac_type='unsigned long' | 
 | 2838 |     cat >> confdefs.h <<EOF | 
 | 2839 | #define uintmax_t $ac_type | 
 | 2840 | EOF | 
 | 2841 |  | 
 | 2842 |   fi | 
 | 2843 |  | 
 | 2844 |  | 
 | 2845 |   echo $ac_n "checking for inttypes.h""... $ac_c" 1>&6 | 
 | 2846 | echo "configure:2847: checking for inttypes.h" >&5 | 
 | 2847 | if eval "test \"`echo '$''{'gt_cv_header_inttypes_h'+set}'`\" = set"; then | 
 | 2848 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
 | 2849 | else | 
 | 2850 |    | 
 | 2851 |     cat > conftest.$ac_ext <<EOF | 
 | 2852 | #line 2853 "configure" | 
 | 2853 | #include "confdefs.h" | 
 | 2854 | #include <sys/types.h> | 
 | 2855 | #include <inttypes.h> | 
 | 2856 | int main() { | 
 | 2857 |  | 
 | 2858 | ; return 0; } | 
 | 2859 | EOF | 
 | 2860 | if { (eval echo configure:2861: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 
 | 2861 |   rm -rf conftest* | 
 | 2862 |   gt_cv_header_inttypes_h=yes | 
 | 2863 | else | 
 | 2864 |   echo "configure: failed program was:" >&5 | 
 | 2865 |   cat conftest.$ac_ext >&5 | 
 | 2866 |   rm -rf conftest* | 
 | 2867 |   gt_cv_header_inttypes_h=no | 
 | 2868 | fi | 
 | 2869 | rm -f conftest* | 
 | 2870 |    | 
 | 2871 | fi | 
 | 2872 |  | 
 | 2873 | echo "$ac_t""$gt_cv_header_inttypes_h" 1>&6 | 
 | 2874 |   if test $gt_cv_header_inttypes_h = yes; then | 
 | 2875 |     cat >> confdefs.h <<EOF | 
 | 2876 | #define HAVE_INTTYPES_H 1 | 
 | 2877 | EOF | 
 | 2878 |  | 
 | 2879 |   fi | 
 | 2880 |  | 
 | 2881 |  | 
 | 2882 |    | 
 | 2883 |   if test $gt_cv_header_inttypes_h = yes; then | 
 | 2884 |     echo $ac_n "checking whether the inttypes.h PRIxNN macros are broken""... $ac_c" 1>&6 | 
 | 2885 | echo "configure:2886: checking whether the inttypes.h PRIxNN macros are broken" >&5 | 
 | 2886 | if eval "test \"`echo '$''{'gt_cv_inttypes_pri_broken'+set}'`\" = set"; then | 
 | 2887 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
 | 2888 | else | 
 | 2889 |    | 
 | 2890 |         cat > conftest.$ac_ext <<EOF | 
 | 2891 | #line 2892 "configure" | 
 | 2892 | #include "confdefs.h" | 
 | 2893 | #include <inttypes.h> | 
 | 2894 | #ifdef PRId32 | 
 | 2895 | char *p = PRId32; | 
 | 2896 | #endif | 
 | 2897 |  | 
 | 2898 | int main() { | 
 | 2899 |  | 
 | 2900 | ; return 0; } | 
 | 2901 | EOF | 
 | 2902 | if { (eval echo configure:2903: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 
 | 2903 |   rm -rf conftest* | 
 | 2904 |   gt_cv_inttypes_pri_broken=no | 
 | 2905 | else | 
 | 2906 |   echo "configure: failed program was:" >&5 | 
 | 2907 |   cat conftest.$ac_ext >&5 | 
 | 2908 |   rm -rf conftest* | 
 | 2909 |   gt_cv_inttypes_pri_broken=yes | 
 | 2910 | fi | 
 | 2911 | rm -f conftest* | 
 | 2912 |        | 
 | 2913 | fi | 
 | 2914 |  | 
 | 2915 | echo "$ac_t""$gt_cv_inttypes_pri_broken" 1>&6 | 
 | 2916 |   fi | 
 | 2917 |   if test "$gt_cv_inttypes_pri_broken" = yes; then | 
 | 2918 |     cat >> confdefs.h <<EOF | 
 | 2919 | #define PRI_MACROS_BROKEN 1 | 
 | 2920 | EOF | 
 | 2921 |  | 
 | 2922 |   fi | 
 | 2923 |  | 
 | 2924 |  | 
 | 2925 |      | 
 | 2926 |    | 
 | 2927 |  | 
 | 2928 |        | 
 | 2929 |    | 
 | 2930 |     use_additional=yes | 
 | 2931 |    | 
 | 2932 |   acl_save_prefix="$prefix" | 
 | 2933 |   prefix="$acl_final_prefix" | 
 | 2934 |   acl_save_exec_prefix="$exec_prefix" | 
 | 2935 |   exec_prefix="$acl_final_exec_prefix" | 
 | 2936 |    | 
 | 2937 |     eval additional_includedir=\"$includedir\" | 
 | 2938 |     eval additional_libdir=\"$libdir\" | 
 | 2939 |    | 
 | 2940 |   exec_prefix="$acl_save_exec_prefix" | 
 | 2941 |   prefix="$acl_save_prefix" | 
 | 2942 |  | 
 | 2943 |   # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given. | 
 | 2944 | if test "${with_libiconv_prefix+set}" = set; then | 
 | 2945 |   withval="$with_libiconv_prefix" | 
 | 2946 |    | 
 | 2947 |     if test "X$withval" = "Xno"; then | 
 | 2948 |       use_additional=no | 
 | 2949 |     else | 
 | 2950 |       if test "X$withval" = "X"; then | 
 | 2951 |          | 
 | 2952 |   acl_save_prefix="$prefix" | 
 | 2953 |   prefix="$acl_final_prefix" | 
 | 2954 |   acl_save_exec_prefix="$exec_prefix" | 
 | 2955 |   exec_prefix="$acl_final_exec_prefix" | 
 | 2956 |    | 
 | 2957 |           eval additional_includedir=\"$includedir\" | 
 | 2958 |           eval additional_libdir=\"$libdir\" | 
 | 2959 |          | 
 | 2960 |   exec_prefix="$acl_save_exec_prefix" | 
 | 2961 |   prefix="$acl_save_prefix" | 
 | 2962 |  | 
 | 2963 |       else | 
 | 2964 |         additional_includedir="$withval/include" | 
 | 2965 |         additional_libdir="$withval/lib" | 
 | 2966 |       fi | 
 | 2967 |     fi | 
 | 2968 |  | 
 | 2969 | fi | 
 | 2970 |  | 
 | 2971 |       LIBICONV= | 
 | 2972 |   LTLIBICONV= | 
 | 2973 |   INCICONV= | 
 | 2974 |   rpathdirs= | 
 | 2975 |   ltrpathdirs= | 
 | 2976 |   names_already_handled= | 
 | 2977 |   names_next_round='iconv ' | 
 | 2978 |   while test -n "$names_next_round"; do | 
 | 2979 |     names_this_round="$names_next_round" | 
 | 2980 |     names_next_round= | 
 | 2981 |     for name in $names_this_round; do | 
 | 2982 |       already_handled= | 
 | 2983 |       for n in $names_already_handled; do | 
 | 2984 |         if test "$n" = "$name"; then | 
 | 2985 |           already_handled=yes | 
 | 2986 |           break | 
 | 2987 |         fi | 
 | 2988 |       done | 
 | 2989 |       if test -z "$already_handled"; then | 
 | 2990 |         names_already_handled="$names_already_handled $name" | 
 | 2991 |                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` | 
 | 2992 |         eval value=\"\$HAVE_LIB$uppername\" | 
 | 2993 |         if test -n "$value"; then | 
 | 2994 |           if test "$value" = yes; then | 
 | 2995 |             eval value=\"\$LIB$uppername\" | 
 | 2996 |             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" | 
 | 2997 |             eval value=\"\$LTLIB$uppername\" | 
 | 2998 |             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" | 
 | 2999 |           else | 
 | 3000 |                                     : | 
 | 3001 |           fi | 
 | 3002 |         else | 
 | 3003 |                               found_dir= | 
 | 3004 |           found_la= | 
 | 3005 |           found_so= | 
 | 3006 |           found_a= | 
 | 3007 |           if test $use_additional = yes; then | 
 | 3008 |             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then | 
 | 3009 |               found_dir="$additional_libdir" | 
 | 3010 |               found_so="$additional_libdir/lib$name.$shlibext" | 
 | 3011 |               if test -f "$additional_libdir/lib$name.la"; then | 
 | 3012 |                 found_la="$additional_libdir/lib$name.la" | 
 | 3013 |               fi | 
 | 3014 |             else | 
 | 3015 |               if test -f "$additional_libdir/lib$name.$libext"; then | 
 | 3016 |                 found_dir="$additional_libdir" | 
 | 3017 |                 found_a="$additional_libdir/lib$name.$libext" | 
 | 3018 |                 if test -f "$additional_libdir/lib$name.la"; then | 
 | 3019 |                   found_la="$additional_libdir/lib$name.la" | 
 | 3020 |                 fi | 
 | 3021 |               fi | 
 | 3022 |             fi | 
 | 3023 |           fi | 
 | 3024 |           if test "X$found_dir" = "X"; then | 
 | 3025 |             for x in $LDFLAGS $LTLIBICONV; do | 
 | 3026 |                | 
 | 3027 |   acl_save_prefix="$prefix" | 
 | 3028 |   prefix="$acl_final_prefix" | 
 | 3029 |   acl_save_exec_prefix="$exec_prefix" | 
 | 3030 |   exec_prefix="$acl_final_exec_prefix" | 
 | 3031 |   eval x=\"$x\" | 
 | 3032 |   exec_prefix="$acl_save_exec_prefix" | 
 | 3033 |   prefix="$acl_save_prefix" | 
 | 3034 |  | 
 | 3035 |               case "$x" in | 
 | 3036 |                 -L*) | 
 | 3037 |                   dir=`echo "X$x" | sed -e 's/^X-L//'` | 
 | 3038 |                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then | 
 | 3039 |                     found_dir="$dir" | 
 | 3040 |                     found_so="$dir/lib$name.$shlibext" | 
 | 3041 |                     if test -f "$dir/lib$name.la"; then | 
 | 3042 |                       found_la="$dir/lib$name.la" | 
 | 3043 |                     fi | 
 | 3044 |                   else | 
 | 3045 |                     if test -f "$dir/lib$name.$libext"; then | 
 | 3046 |                       found_dir="$dir" | 
 | 3047 |                       found_a="$dir/lib$name.$libext" | 
 | 3048 |                       if test -f "$dir/lib$name.la"; then | 
 | 3049 |                         found_la="$dir/lib$name.la" | 
 | 3050 |                       fi | 
 | 3051 |                     fi | 
 | 3052 |                   fi | 
 | 3053 |                   ;; | 
 | 3054 |               esac | 
 | 3055 |               if test "X$found_dir" != "X"; then | 
 | 3056 |                 break | 
 | 3057 |               fi | 
 | 3058 |             done | 
 | 3059 |           fi | 
 | 3060 |           if test "X$found_dir" != "X"; then | 
 | 3061 |                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" | 
 | 3062 |             if test "X$found_so" != "X"; then | 
 | 3063 |                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then | 
 | 3064 |                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" | 
 | 3065 |               else | 
 | 3066 |                                                                                 haveit= | 
 | 3067 |                 for x in $ltrpathdirs; do | 
 | 3068 |                   if test "X$x" = "X$found_dir"; then | 
 | 3069 |                     haveit=yes | 
 | 3070 |                     break | 
 | 3071 |                   fi | 
 | 3072 |                 done | 
 | 3073 |                 if test -z "$haveit"; then | 
 | 3074 |                   ltrpathdirs="$ltrpathdirs $found_dir" | 
 | 3075 |                 fi | 
 | 3076 |                                 if test "$hardcode_direct" = yes; then | 
 | 3077 |                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" | 
 | 3078 |                 else | 
 | 3079 |                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then | 
 | 3080 |                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" | 
 | 3081 |                                                             haveit= | 
 | 3082 |                     for x in $rpathdirs; do | 
 | 3083 |                       if test "X$x" = "X$found_dir"; then | 
 | 3084 |                         haveit=yes | 
 | 3085 |                         break | 
 | 3086 |                       fi | 
 | 3087 |                     done | 
 | 3088 |                     if test -z "$haveit"; then | 
 | 3089 |                       rpathdirs="$rpathdirs $found_dir" | 
 | 3090 |                     fi | 
 | 3091 |                   else | 
 | 3092 |                                                                                 haveit= | 
 | 3093 |                     for x in $LDFLAGS $LIBICONV; do | 
 | 3094 |                        | 
 | 3095 |   acl_save_prefix="$prefix" | 
 | 3096 |   prefix="$acl_final_prefix" | 
 | 3097 |   acl_save_exec_prefix="$exec_prefix" | 
 | 3098 |   exec_prefix="$acl_final_exec_prefix" | 
 | 3099 |   eval x=\"$x\" | 
 | 3100 |   exec_prefix="$acl_save_exec_prefix" | 
 | 3101 |   prefix="$acl_save_prefix" | 
 | 3102 |  | 
 | 3103 |                       if test "X$x" = "X-L$found_dir"; then | 
 | 3104 |                         haveit=yes | 
 | 3105 |                         break | 
 | 3106 |                       fi | 
 | 3107 |                     done | 
 | 3108 |                     if test -z "$haveit"; then | 
 | 3109 |                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" | 
 | 3110 |                     fi | 
 | 3111 |                     if test "$hardcode_minus_L" != no; then | 
 | 3112 |                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" | 
 | 3113 |                     else | 
 | 3114 |                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" | 
 | 3115 |                     fi | 
 | 3116 |                   fi | 
 | 3117 |                 fi | 
 | 3118 |               fi | 
 | 3119 |             else | 
 | 3120 |               if test "X$found_a" != "X"; then | 
 | 3121 |                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" | 
 | 3122 |               else | 
 | 3123 |                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" | 
 | 3124 |               fi | 
 | 3125 |             fi | 
 | 3126 |                         additional_includedir= | 
 | 3127 |             case "$found_dir" in | 
 | 3128 |               */lib | */lib/) | 
 | 3129 |                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` | 
 | 3130 |                 additional_includedir="$basedir/include" | 
 | 3131 |                 ;; | 
 | 3132 |             esac | 
 | 3133 |             if test "X$additional_includedir" != "X"; then | 
 | 3134 |                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then | 
 | 3135 |                 haveit= | 
 | 3136 |                 if test "X$additional_includedir" = "X/usr/local/include"; then | 
 | 3137 |                   if test -n "$GCC"; then | 
 | 3138 |                     case $host_os in | 
 | 3139 |                       linux*) haveit=yes;; | 
 | 3140 |                     esac | 
 | 3141 |                   fi | 
 | 3142 |                 fi | 
 | 3143 |                 if test -z "$haveit"; then | 
 | 3144 |                   for x in $CPPFLAGS $INCICONV; do | 
 | 3145 |                      | 
 | 3146 |   acl_save_prefix="$prefix" | 
 | 3147 |   prefix="$acl_final_prefix" | 
 | 3148 |   acl_save_exec_prefix="$exec_prefix" | 
 | 3149 |   exec_prefix="$acl_final_exec_prefix" | 
 | 3150 |   eval x=\"$x\" | 
 | 3151 |   exec_prefix="$acl_save_exec_prefix" | 
 | 3152 |   prefix="$acl_save_prefix" | 
 | 3153 |  | 
 | 3154 |                     if test "X$x" = "X-I$additional_includedir"; then | 
 | 3155 |                       haveit=yes | 
 | 3156 |                       break | 
 | 3157 |                     fi | 
 | 3158 |                   done | 
 | 3159 |                   if test -z "$haveit"; then | 
 | 3160 |                     if test -d "$additional_includedir"; then | 
 | 3161 |                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" | 
 | 3162 |                     fi | 
 | 3163 |                   fi | 
 | 3164 |                 fi | 
 | 3165 |               fi | 
 | 3166 |             fi | 
 | 3167 |                         if test -n "$found_la"; then | 
 | 3168 |                                                         save_libdir="$libdir" | 
 | 3169 |               case "$found_la" in | 
 | 3170 |                 */* | *\\*) . "$found_la" ;; | 
 | 3171 |                 *) . "./$found_la" ;; | 
 | 3172 |               esac | 
 | 3173 |               libdir="$save_libdir" | 
 | 3174 |                             for dep in $dependency_libs; do | 
 | 3175 |                 case "$dep" in | 
 | 3176 |                   -L*) | 
 | 3177 |                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` | 
 | 3178 |                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then | 
 | 3179 |                       haveit= | 
 | 3180 |                       if test "X$additional_libdir" = "X/usr/local/lib"; then | 
 | 3181 |                         if test -n "$GCC"; then | 
 | 3182 |                           case $host_os in | 
 | 3183 |                             linux*) haveit=yes;; | 
 | 3184 |                           esac | 
 | 3185 |                         fi | 
 | 3186 |                       fi | 
 | 3187 |                       if test -z "$haveit"; then | 
 | 3188 |                         haveit= | 
 | 3189 |                         for x in $LDFLAGS $LIBICONV; do | 
 | 3190 |                            | 
 | 3191 |   acl_save_prefix="$prefix" | 
 | 3192 |   prefix="$acl_final_prefix" | 
 | 3193 |   acl_save_exec_prefix="$exec_prefix" | 
 | 3194 |   exec_prefix="$acl_final_exec_prefix" | 
 | 3195 |   eval x=\"$x\" | 
 | 3196 |   exec_prefix="$acl_save_exec_prefix" | 
 | 3197 |   prefix="$acl_save_prefix" | 
 | 3198 |  | 
 | 3199 |                           if test "X$x" = "X-L$additional_libdir"; then | 
 | 3200 |                             haveit=yes | 
 | 3201 |                             break | 
 | 3202 |                           fi | 
 | 3203 |                         done | 
 | 3204 |                         if test -z "$haveit"; then | 
 | 3205 |                           if test -d "$additional_libdir"; then | 
 | 3206 |                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir" | 
 | 3207 |                           fi | 
 | 3208 |                         fi | 
 | 3209 |                         haveit= | 
 | 3210 |                         for x in $LDFLAGS $LTLIBICONV; do | 
 | 3211 |                            | 
 | 3212 |   acl_save_prefix="$prefix" | 
 | 3213 |   prefix="$acl_final_prefix" | 
 | 3214 |   acl_save_exec_prefix="$exec_prefix" | 
 | 3215 |   exec_prefix="$acl_final_exec_prefix" | 
 | 3216 |   eval x=\"$x\" | 
 | 3217 |   exec_prefix="$acl_save_exec_prefix" | 
 | 3218 |   prefix="$acl_save_prefix" | 
 | 3219 |  | 
 | 3220 |                           if test "X$x" = "X-L$additional_libdir"; then | 
 | 3221 |                             haveit=yes | 
 | 3222 |                             break | 
 | 3223 |                           fi | 
 | 3224 |                         done | 
 | 3225 |                         if test -z "$haveit"; then | 
 | 3226 |                           if test -d "$additional_libdir"; then | 
 | 3227 |                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir" | 
 | 3228 |                           fi | 
 | 3229 |                         fi | 
 | 3230 |                       fi | 
 | 3231 |                     fi | 
 | 3232 |                     ;; | 
 | 3233 |                   -R*) | 
 | 3234 |                     dir=`echo "X$dep" | sed -e 's/^X-R//'` | 
 | 3235 |                     if test "$enable_rpath" != no; then | 
 | 3236 |                                                                   haveit= | 
 | 3237 |                       for x in $rpathdirs; do | 
 | 3238 |                         if test "X$x" = "X$dir"; then | 
 | 3239 |                           haveit=yes | 
 | 3240 |                           break | 
 | 3241 |                         fi | 
 | 3242 |                       done | 
 | 3243 |                       if test -z "$haveit"; then | 
 | 3244 |                         rpathdirs="$rpathdirs $dir" | 
 | 3245 |                       fi | 
 | 3246 |                                                                   haveit= | 
 | 3247 |                       for x in $ltrpathdirs; do | 
 | 3248 |                         if test "X$x" = "X$dir"; then | 
 | 3249 |                           haveit=yes | 
 | 3250 |                           break | 
 | 3251 |                         fi | 
 | 3252 |                       done | 
 | 3253 |                       if test -z "$haveit"; then | 
 | 3254 |                         ltrpathdirs="$ltrpathdirs $dir" | 
 | 3255 |                       fi | 
 | 3256 |                     fi | 
 | 3257 |                     ;; | 
 | 3258 |                   -l*) | 
 | 3259 |                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` | 
 | 3260 |                     ;; | 
 | 3261 |                   *.la) | 
 | 3262 |                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` | 
 | 3263 |                     ;; | 
 | 3264 |                   *) | 
 | 3265 |                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" | 
 | 3266 |                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" | 
 | 3267 |                     ;; | 
 | 3268 |                 esac | 
 | 3269 |               done | 
 | 3270 |             fi | 
 | 3271 |           else | 
 | 3272 |                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" | 
 | 3273 |             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" | 
 | 3274 |           fi | 
 | 3275 |         fi | 
 | 3276 |       fi | 
 | 3277 |     done | 
 | 3278 |   done | 
 | 3279 |   if test "X$rpathdirs" != "X"; then | 
 | 3280 |     if test -n "$hardcode_libdir_separator"; then | 
 | 3281 |                         alldirs= | 
 | 3282 |       for found_dir in $rpathdirs; do | 
 | 3283 |         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" | 
 | 3284 |       done | 
 | 3285 |             acl_save_libdir="$libdir" | 
 | 3286 |       libdir="$alldirs" | 
 | 3287 |       eval flag=\"$hardcode_libdir_flag_spec\" | 
 | 3288 |       libdir="$acl_save_libdir" | 
 | 3289 |       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" | 
 | 3290 |     else | 
 | 3291 |             for found_dir in $rpathdirs; do | 
 | 3292 |         acl_save_libdir="$libdir" | 
 | 3293 |         libdir="$found_dir" | 
 | 3294 |         eval flag=\"$hardcode_libdir_flag_spec\" | 
 | 3295 |         libdir="$acl_save_libdir" | 
 | 3296 |         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" | 
 | 3297 |       done | 
 | 3298 |     fi | 
 | 3299 |   fi | 
 | 3300 |   if test "X$ltrpathdirs" != "X"; then | 
 | 3301 |             for found_dir in $ltrpathdirs; do | 
 | 3302 |       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" | 
 | 3303 |     done | 
 | 3304 |   fi | 
 | 3305 |  | 
 | 3306 |  | 
 | 3307 |  | 
 | 3308 |        | 
 | 3309 |      | 
 | 3310 |         # Extract the first word of "msgfmt", so it can be a program name with args. | 
 | 3311 | set dummy msgfmt; ac_word=$2 | 
 | 3312 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | 
 | 3313 | echo "configure:3314: checking for $ac_word" >&5 | 
 | 3314 | if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then | 
 | 3315 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
 | 3316 | else | 
 | 3317 |   case "$MSGFMT" in | 
 | 3318 |   /*) | 
 | 3319 |   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | 
 | 3320 |   ;; | 
 | 3321 |   *) | 
 | 3322 |   IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:" | 
 | 3323 |   for ac_dir in $PATH; do | 
 | 3324 |     test -z "$ac_dir" && ac_dir=. | 
 | 3325 |     if test -f $ac_dir/$ac_word; then | 
 | 3326 |       if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 && | 
 | 3327 |      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then | 
 | 3328 | 	ac_cv_path_MSGFMT="$ac_dir/$ac_word" | 
 | 3329 | 	break | 
 | 3330 |       fi | 
 | 3331 |     fi | 
 | 3332 |   done | 
 | 3333 |   IFS="$ac_save_ifs" | 
 | 3334 |   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" | 
 | 3335 |   ;; | 
 | 3336 | esac | 
 | 3337 | fi | 
 | 3338 | MSGFMT="$ac_cv_path_MSGFMT" | 
 | 3339 | if test "$MSGFMT" != ":"; then | 
 | 3340 |   echo "$ac_t""$MSGFMT" 1>&6 | 
 | 3341 | else | 
 | 3342 |   echo "$ac_t""no" 1>&6 | 
 | 3343 | fi | 
 | 3344 |  | 
 | 3345 |   # Extract the first word of "gmsgfmt", so it can be a program name with args. | 
 | 3346 | set dummy gmsgfmt; ac_word=$2 | 
 | 3347 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | 
 | 3348 | echo "configure:3349: checking for $ac_word" >&5 | 
 | 3349 | if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then | 
 | 3350 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
 | 3351 | else | 
 | 3352 |   case "$GMSGFMT" in | 
 | 3353 |   /*) | 
 | 3354 |   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. | 
 | 3355 |   ;; | 
 | 3356 |   ?:/*)			  | 
 | 3357 |   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path. | 
 | 3358 |   ;; | 
 | 3359 |   *) | 
 | 3360 |   IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":" | 
 | 3361 |   ac_dummy="$PATH" | 
 | 3362 |   for ac_dir in $ac_dummy; do  | 
 | 3363 |     test -z "$ac_dir" && ac_dir=. | 
 | 3364 |     if test -f $ac_dir/$ac_word; then | 
 | 3365 |       ac_cv_path_GMSGFMT="$ac_dir/$ac_word" | 
 | 3366 |       break | 
 | 3367 |     fi | 
 | 3368 |   done | 
 | 3369 |   IFS="$ac_save_ifs" | 
 | 3370 |   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" | 
 | 3371 |   ;; | 
 | 3372 | esac | 
 | 3373 | fi | 
 | 3374 | GMSGFMT="$ac_cv_path_GMSGFMT" | 
 | 3375 | if test -n "$GMSGFMT"; then | 
 | 3376 |   echo "$ac_t""$GMSGFMT" 1>&6 | 
 | 3377 | else | 
 | 3378 |   echo "$ac_t""no" 1>&6 | 
 | 3379 | fi | 
 | 3380 |  | 
 | 3381 |  | 
 | 3382 |         # Extract the first word of "xgettext", so it can be a program name with args. | 
 | 3383 | set dummy xgettext; ac_word=$2 | 
 | 3384 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | 
 | 3385 | echo "configure:3386: checking for $ac_word" >&5 | 
 | 3386 | if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then | 
 | 3387 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
 | 3388 | else | 
 | 3389 |   case "$XGETTEXT" in | 
 | 3390 |   /*) | 
 | 3391 |   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. | 
 | 3392 |   ;; | 
 | 3393 |   *) | 
 | 3394 |   IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:" | 
 | 3395 |   for ac_dir in $PATH; do | 
 | 3396 |     test -z "$ac_dir" && ac_dir=. | 
 | 3397 |     if test -f $ac_dir/$ac_word; then | 
 | 3398 |       if $ac_dir/$ac_word --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 && | 
 | 3399 |      (if $ac_dir/$ac_word --omit-header --copyright-holder= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then | 
 | 3400 | 	ac_cv_path_XGETTEXT="$ac_dir/$ac_word" | 
 | 3401 | 	break | 
 | 3402 |       fi | 
 | 3403 |     fi | 
 | 3404 |   done | 
 | 3405 |   IFS="$ac_save_ifs" | 
 | 3406 |   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" | 
 | 3407 |   ;; | 
 | 3408 | esac | 
 | 3409 | fi | 
 | 3410 | XGETTEXT="$ac_cv_path_XGETTEXT" | 
 | 3411 | if test "$XGETTEXT" != ":"; then | 
 | 3412 |   echo "$ac_t""$XGETTEXT" 1>&6 | 
 | 3413 | else | 
 | 3414 |   echo "$ac_t""no" 1>&6 | 
 | 3415 | fi | 
 | 3416 |  | 
 | 3417 |     rm -f messages.po | 
 | 3418 |  | 
 | 3419 |     # Extract the first word of "msgmerge", so it can be a program name with args. | 
 | 3420 | set dummy msgmerge; ac_word=$2 | 
 | 3421 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | 
 | 3422 | echo "configure:3423: checking for $ac_word" >&5 | 
 | 3423 | if eval "test \"`echo '$''{'ac_cv_path_MSGMERGE'+set}'`\" = set"; then | 
 | 3424 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
 | 3425 | else | 
 | 3426 |   case "$MSGMERGE" in | 
 | 3427 |   /*) | 
 | 3428 |   ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. | 
 | 3429 |   ;; | 
 | 3430 |   *) | 
 | 3431 |   IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:" | 
 | 3432 |   for ac_dir in $PATH; do | 
 | 3433 |     test -z "$ac_dir" && ac_dir=. | 
 | 3434 |     if test -f $ac_dir/$ac_word; then | 
 | 3435 |       if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then | 
 | 3436 | 	ac_cv_path_MSGMERGE="$ac_dir/$ac_word" | 
 | 3437 | 	break | 
 | 3438 |       fi | 
 | 3439 |     fi | 
 | 3440 |   done | 
 | 3441 |   IFS="$ac_save_ifs" | 
 | 3442 |   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" | 
 | 3443 |   ;; | 
 | 3444 | esac | 
 | 3445 | fi | 
 | 3446 | MSGMERGE="$ac_cv_path_MSGMERGE" | 
 | 3447 | if test "$MSGMERGE" != ":"; then | 
 | 3448 |   echo "$ac_t""$MSGMERGE" 1>&6 | 
 | 3449 | else | 
 | 3450 |   echo "$ac_t""no" 1>&6 | 
 | 3451 | fi | 
 | 3452 |  | 
 | 3453 |  | 
 | 3454 |       if test "$GMSGFMT" != ":"; then | 
 | 3455 |             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 && | 
 | 3456 |        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then | 
 | 3457 |       : ; | 
 | 3458 |     else | 
 | 3459 |       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'` | 
 | 3460 |       echo "$ac_t""found $GMSGFMT program is not GNU msgfmt; ignore it" 1>&6 | 
 | 3461 |       GMSGFMT=":" | 
 | 3462 |     fi | 
 | 3463 |   fi | 
 | 3464 |  | 
 | 3465 |       if test "$XGETTEXT" != ":"; then | 
 | 3466 |             if $XGETTEXT --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 && | 
 | 3467 |        (if $XGETTEXT --omit-header --copyright-holder= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then | 
 | 3468 |       : ; | 
 | 3469 |     else | 
 | 3470 |       echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6 | 
 | 3471 |       XGETTEXT=":" | 
 | 3472 |     fi | 
 | 3473 |         rm -f messages.po | 
 | 3474 |   fi | 
 | 3475 |  | 
 | 3476 |    | 
 | 3477 |  | 
 | 3478 |  | 
 | 3479 |                                      | 
 | 3480 |   for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \ | 
 | 3481 | stdlib.h string.h unistd.h sys/param.h | 
| Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3482 | do | 
 | 3483 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | 
 | 3484 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 3485 | echo "configure:3486: checking for $ac_hdr" >&5 | 
| Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3486 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 
 | 3487 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
 | 3488 | else | 
 | 3489 |   cat > conftest.$ac_ext <<EOF | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 3490 | #line 3491 "configure" | 
| Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3491 | #include "confdefs.h" | 
 | 3492 | #include <$ac_hdr> | 
 | 3493 | EOF | 
 | 3494 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 3495 | { (eval echo configure:3496: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 
| Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3496 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 
 | 3497 | if test -z "$ac_err"; then | 
 | 3498 |   rm -rf conftest* | 
 | 3499 |   eval "ac_cv_header_$ac_safe=yes" | 
 | 3500 | else | 
 | 3501 |   echo "$ac_err" >&5 | 
 | 3502 |   echo "configure: failed program was:" >&5 | 
 | 3503 |   cat conftest.$ac_ext >&5 | 
 | 3504 |   rm -rf conftest* | 
 | 3505 |   eval "ac_cv_header_$ac_safe=no" | 
 | 3506 | fi | 
 | 3507 | rm -f conftest* | 
 | 3508 | fi | 
 | 3509 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | 
 | 3510 |   echo "$ac_t""yes" 1>&6 | 
 | 3511 |     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | 
 | 3512 |   cat >> confdefs.h <<EOF | 
 | 3513 | #define $ac_tr_hdr 1 | 
 | 3514 | EOF | 
 | 3515 |   | 
 | 3516 | else | 
 | 3517 |   echo "$ac_t""no" 1>&6 | 
 | 3518 | fi | 
 | 3519 | done | 
 | 3520 |  | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 3521 |   for ac_func in feof_unlocked fgets_unlocked getc_unlocked getcwd getegid \ | 
 | 3522 | geteuid getgid getuid mempcpy munmap putenv setenv setlocale stpcpy \ | 
 | 3523 | strcasecmp strdup strtoul tsearch __argz_count __argz_stringify __argz_next | 
| Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3524 | do | 
 | 3525 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 3526 | echo "configure:3527: checking for $ac_func" >&5 | 
| Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3527 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | 
 | 3528 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
 | 3529 | else | 
 | 3530 |   cat > conftest.$ac_ext <<EOF | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 3531 | #line 3532 "configure" | 
| Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3532 | #include "confdefs.h" | 
 | 3533 | /* System header to define __stub macros and hopefully few prototypes, | 
 | 3534 |     which can conflict with char $ac_func(); below.  */ | 
 | 3535 | #include <assert.h> | 
 | 3536 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 3537 | /* We use char because int might match the return type of a gcc2 | 
 | 3538 |     builtin and then its argument prototype would still apply.  */ | 
 | 3539 | char $ac_func(); | 
 | 3540 |  | 
 | 3541 | int main() { | 
 | 3542 |  | 
 | 3543 | /* The GNU C library defines this for functions which it implements | 
 | 3544 |     to always fail with ENOSYS.  Some functions are actually named | 
 | 3545 |     something starting with __ and the normal name is an alias.  */ | 
 | 3546 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | 
 | 3547 | choke me | 
 | 3548 | #else | 
 | 3549 | $ac_func(); | 
 | 3550 | #endif | 
 | 3551 |  | 
 | 3552 | ; return 0; } | 
 | 3553 | EOF | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 3554 | if { (eval echo configure:3555: \"$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] | 3555 |   rm -rf conftest* | 
 | 3556 |   eval "ac_cv_func_$ac_func=yes" | 
 | 3557 | else | 
 | 3558 |   echo "configure: failed program was:" >&5 | 
 | 3559 |   cat conftest.$ac_ext >&5 | 
 | 3560 |   rm -rf conftest* | 
 | 3561 |   eval "ac_cv_func_$ac_func=no" | 
 | 3562 | fi | 
 | 3563 | rm -f conftest* | 
 | 3564 | fi | 
 | 3565 |  | 
 | 3566 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | 
 | 3567 |   echo "$ac_t""yes" 1>&6 | 
 | 3568 |     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | 
 | 3569 |   cat >> confdefs.h <<EOF | 
 | 3570 | #define $ac_tr_func 1 | 
 | 3571 | EOF | 
 | 3572 |   | 
 | 3573 | else | 
 | 3574 |   echo "$ac_t""no" 1>&6 | 
 | 3575 | fi | 
 | 3576 | done | 
 | 3577 |  | 
 | 3578 |  | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 3579 |    | 
 | 3580 |    | 
 | 3581 |      | 
 | 3582 |        | 
 | 3583 |  | 
 | 3584 |           am_save_CPPFLAGS="$CPPFLAGS" | 
 | 3585 |    | 
 | 3586 |   for element in $INCICONV; do | 
 | 3587 |     haveit= | 
 | 3588 |     for x in $CPPFLAGS; do | 
 | 3589 |        | 
 | 3590 |   acl_save_prefix="$prefix" | 
 | 3591 |   prefix="$acl_final_prefix" | 
 | 3592 |   acl_save_exec_prefix="$exec_prefix" | 
 | 3593 |   exec_prefix="$acl_final_exec_prefix" | 
 | 3594 |   eval x=\"$x\" | 
 | 3595 |   exec_prefix="$acl_save_exec_prefix" | 
 | 3596 |   prefix="$acl_save_prefix" | 
 | 3597 |  | 
 | 3598 |       if test "X$x" = "X$element"; then | 
 | 3599 |         haveit=yes | 
 | 3600 |         break | 
 | 3601 |       fi | 
 | 3602 |     done | 
 | 3603 |     if test -z "$haveit"; then | 
 | 3604 |       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" | 
 | 3605 |     fi | 
 | 3606 |   done | 
 | 3607 |  | 
 | 3608 |  | 
 | 3609 |   echo $ac_n "checking for iconv""... $ac_c" 1>&6 | 
 | 3610 | echo "configure:3611: checking for iconv" >&5 | 
 | 3611 | if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then | 
| Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3612 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
 | 3613 | else | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 3614 |    | 
 | 3615 |     am_cv_func_iconv="no, consider installing GNU libiconv" | 
 | 3616 |     am_cv_lib_iconv=no | 
 | 3617 |     cat > conftest.$ac_ext <<EOF | 
 | 3618 | #line 3619 "configure" | 
| Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3619 | #include "confdefs.h" | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 3620 | #include <stdlib.h> | 
 | 3621 | #include <iconv.h> | 
 | 3622 | int main() { | 
 | 3623 | iconv_t cd = iconv_open("",""); | 
 | 3624 |        iconv(cd,NULL,NULL,NULL,NULL); | 
 | 3625 |        iconv_close(cd); | 
 | 3626 | ; return 0; } | 
 | 3627 | EOF | 
 | 3628 | if { (eval echo configure:3629: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 
 | 3629 |   rm -rf conftest* | 
 | 3630 |   am_cv_func_iconv=yes | 
 | 3631 | else | 
 | 3632 |   echo "configure: failed program was:" >&5 | 
 | 3633 |   cat conftest.$ac_ext >&5 | 
 | 3634 | fi | 
 | 3635 | rm -f conftest* | 
 | 3636 |     if test "$am_cv_func_iconv" != yes; then | 
 | 3637 |       am_save_LIBS="$LIBS" | 
 | 3638 |       LIBS="$LIBS $LIBICONV" | 
 | 3639 |       cat > conftest.$ac_ext <<EOF | 
 | 3640 | #line 3641 "configure" | 
 | 3641 | #include "confdefs.h" | 
 | 3642 | #include <stdlib.h> | 
 | 3643 | #include <iconv.h> | 
 | 3644 | int main() { | 
 | 3645 | iconv_t cd = iconv_open("",""); | 
 | 3646 |          iconv(cd,NULL,NULL,NULL,NULL); | 
 | 3647 |          iconv_close(cd); | 
 | 3648 | ; return 0; } | 
 | 3649 | EOF | 
 | 3650 | if { (eval echo configure:3651: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 
 | 3651 |   rm -rf conftest* | 
 | 3652 |   am_cv_lib_iconv=yes | 
 | 3653 |         am_cv_func_iconv=yes | 
 | 3654 | else | 
 | 3655 |   echo "configure: failed program was:" >&5 | 
 | 3656 |   cat conftest.$ac_ext >&5 | 
 | 3657 | fi | 
 | 3658 | rm -f conftest* | 
 | 3659 |       LIBS="$am_save_LIBS" | 
 | 3660 |     fi | 
 | 3661 |    | 
 | 3662 | fi | 
 | 3663 |  | 
 | 3664 | echo "$ac_t""$am_cv_func_iconv" 1>&6 | 
 | 3665 |   if test "$am_cv_func_iconv" = yes; then | 
 | 3666 |     cat >> confdefs.h <<\EOF | 
 | 3667 | #define HAVE_ICONV 1 | 
 | 3668 | EOF | 
 | 3669 |  | 
 | 3670 |   fi | 
 | 3671 |   if test "$am_cv_lib_iconv" = yes; then | 
 | 3672 |     echo $ac_n "checking how to link with libiconv""... $ac_c" 1>&6 | 
 | 3673 | echo "configure:3674: checking how to link with libiconv" >&5 | 
 | 3674 |     echo "$ac_t""$LIBICONV" 1>&6 | 
 | 3675 |   else | 
 | 3676 |             CPPFLAGS="$am_save_CPPFLAGS" | 
 | 3677 |     LIBICONV= | 
 | 3678 |     LTLIBICONV= | 
 | 3679 |   fi | 
 | 3680 |    | 
 | 3681 |    | 
 | 3682 |  | 
 | 3683 |   if test "$am_cv_func_iconv" = yes; then | 
 | 3684 |     echo $ac_n "checking for iconv declaration""... $ac_c" 1>&6 | 
 | 3685 | echo "configure:3686: checking for iconv declaration" >&5 | 
 | 3686 |     if eval "test \"`echo '$''{'am_cv_proto_iconv'+set}'`\" = set"; then | 
 | 3687 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
 | 3688 | else | 
 | 3689 |    | 
 | 3690 |       cat > conftest.$ac_ext <<EOF | 
 | 3691 | #line 3692 "configure" | 
 | 3692 | #include "confdefs.h" | 
 | 3693 |  | 
 | 3694 | #include <stdlib.h> | 
 | 3695 | #include <iconv.h> | 
 | 3696 | extern | 
 | 3697 | #ifdef __cplusplus | 
 | 3698 | "C" | 
 | 3699 | #endif | 
 | 3700 | #if defined(__STDC__) || defined(__cplusplus) | 
 | 3701 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); | 
 | 3702 | #else | 
 | 3703 | size_t iconv(); | 
 | 3704 | #endif | 
| Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3705 |  | 
 | 3706 | int main() { | 
 | 3707 |  | 
| Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3708 | ; return 0; } | 
 | 3709 | EOF | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 3710 | if { (eval echo configure:3711: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 
| Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3711 |   rm -rf conftest* | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 3712 |   am_cv_proto_iconv_arg1="" | 
| Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3713 | else | 
 | 3714 |   echo "configure: failed program was:" >&5 | 
 | 3715 |   cat conftest.$ac_ext >&5 | 
 | 3716 |   rm -rf conftest* | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 3717 |   am_cv_proto_iconv_arg1="const" | 
| Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3718 | fi | 
 | 3719 | rm -f conftest* | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 3720 |       am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);" | 
| Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3721 | fi | 
 | 3722 |  | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 3723 |     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` | 
 | 3724 |     echo "$ac_t""${ac_t:- | 
 | 3725 |          }$am_cv_proto_iconv" 1>&6 | 
 | 3726 |     cat >> confdefs.h <<EOF | 
 | 3727 | #define ICONV_CONST $am_cv_proto_iconv_arg1 | 
| Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3728 | EOF | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 3729 |  | 
 | 3730 |   fi | 
 | 3731 |  | 
 | 3732 |    | 
 | 3733 |   echo $ac_n "checking for nl_langinfo and CODESET""... $ac_c" 1>&6 | 
 | 3734 | echo "configure:3735: checking for nl_langinfo and CODESET" >&5 | 
 | 3735 | if eval "test \"`echo '$''{'am_cv_langinfo_codeset'+set}'`\" = set"; then | 
 | 3736 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
| Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3737 | else | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 3738 |   cat > conftest.$ac_ext <<EOF | 
 | 3739 | #line 3740 "configure" | 
 | 3740 | #include "confdefs.h" | 
 | 3741 | #include <langinfo.h> | 
 | 3742 | int main() { | 
 | 3743 | char* cs = nl_langinfo(CODESET); | 
 | 3744 | ; return 0; } | 
 | 3745 | EOF | 
 | 3746 | if { (eval echo configure:3747: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 
 | 3747 |   rm -rf conftest* | 
 | 3748 |   am_cv_langinfo_codeset=yes | 
 | 3749 | else | 
 | 3750 |   echo "configure: failed program was:" >&5 | 
 | 3751 |   cat conftest.$ac_ext >&5 | 
 | 3752 |   rm -rf conftest* | 
 | 3753 |   am_cv_langinfo_codeset=no | 
| Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3754 | fi | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 3755 | rm -f conftest* | 
 | 3756 |      | 
 | 3757 | fi | 
| Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3758 |  | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 3759 | echo "$ac_t""$am_cv_langinfo_codeset" 1>&6 | 
 | 3760 |   if test $am_cv_langinfo_codeset = yes; then | 
 | 3761 |     cat >> confdefs.h <<\EOF | 
 | 3762 | #define HAVE_LANGINFO_CODESET 1 | 
| Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3763 | EOF | 
 | 3764 |  | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 3765 |   fi | 
| Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3766 |  | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 3767 |   if test $ac_cv_header_locale_h = yes; then | 
 | 3768 |      | 
 | 3769 |   echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6 | 
 | 3770 | echo "configure:3771: checking for LC_MESSAGES" >&5 | 
| Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3771 | if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then | 
 | 3772 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
 | 3773 | else | 
 | 3774 |   cat > conftest.$ac_ext <<EOF | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 3775 | #line 3776 "configure" | 
| Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3776 | #include "confdefs.h" | 
 | 3777 | #include <locale.h> | 
 | 3778 | int main() { | 
 | 3779 | return LC_MESSAGES | 
 | 3780 | ; return 0; } | 
 | 3781 | EOF | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 3782 | if { (eval echo configure:3783: \"$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] | 3783 |   rm -rf conftest* | 
 | 3784 |   am_cv_val_LC_MESSAGES=yes | 
 | 3785 | else | 
 | 3786 |   echo "configure: failed program was:" >&5 | 
 | 3787 |   cat conftest.$ac_ext >&5 | 
 | 3788 |   rm -rf conftest* | 
 | 3789 |   am_cv_val_LC_MESSAGES=no | 
 | 3790 | fi | 
 | 3791 | rm -f conftest* | 
 | 3792 | fi | 
 | 3793 |  | 
 | 3794 | echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6 | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 3795 |   if test $am_cv_val_LC_MESSAGES = yes; then | 
 | 3796 |     cat >> confdefs.h <<\EOF | 
| Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3797 | #define HAVE_LC_MESSAGES 1 | 
 | 3798 | EOF | 
 | 3799 |  | 
| Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3800 |   fi | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 3801 |  | 
 | 3802 |   fi | 
 | 3803 |  | 
 | 3804 |                       for ac_prog in bison | 
 | 3805 | do | 
 | 3806 | # Extract the first word of "$ac_prog", so it can be a program name with args. | 
 | 3807 | set dummy $ac_prog; ac_word=$2 | 
 | 3808 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | 
 | 3809 | echo "configure:3810: checking for $ac_word" >&5 | 
 | 3810 | if eval "test \"`echo '$''{'ac_cv_prog_INTLBISON'+set}'`\" = set"; then | 
 | 3811 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
 | 3812 | else | 
 | 3813 |   if test -n "$INTLBISON"; then | 
 | 3814 |   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test. | 
 | 3815 | else | 
 | 3816 |   IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":" | 
 | 3817 |   ac_dummy="$PATH" | 
 | 3818 |   for ac_dir in $ac_dummy; do | 
 | 3819 |     test -z "$ac_dir" && ac_dir=. | 
 | 3820 |     if test -f $ac_dir/$ac_word; then | 
 | 3821 |       ac_cv_prog_INTLBISON="$ac_prog" | 
 | 3822 |       break | 
 | 3823 |     fi | 
 | 3824 |   done | 
 | 3825 |   IFS="$ac_save_ifs" | 
 | 3826 | fi | 
 | 3827 | fi | 
 | 3828 | INTLBISON="$ac_cv_prog_INTLBISON" | 
 | 3829 | if test -n "$INTLBISON"; then | 
 | 3830 |   echo "$ac_t""$INTLBISON" 1>&6 | 
 | 3831 | else | 
 | 3832 |   echo "$ac_t""no" 1>&6 | 
 | 3833 | fi | 
 | 3834 |  | 
 | 3835 | test -n "$INTLBISON" && break | 
 | 3836 | done | 
 | 3837 |  | 
 | 3838 |   if test -z "$INTLBISON"; then | 
 | 3839 |     ac_verc_fail=yes | 
 | 3840 |   else | 
 | 3841 |         echo $ac_n "checking version of bison""... $ac_c" 1>&6 | 
 | 3842 | echo "configure:3843: checking version of bison" >&5 | 
 | 3843 |     ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'` | 
 | 3844 |     case $ac_prog_version in | 
 | 3845 |       '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; | 
 | 3846 |       1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*) | 
 | 3847 |          ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; | 
 | 3848 |       *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; | 
 | 3849 |     esac | 
 | 3850 |     echo "$ac_t""$ac_prog_version" 1>&6 | 
 | 3851 |   fi | 
 | 3852 |   if test $ac_verc_fail = yes; then | 
 | 3853 |     INTLBISON=: | 
 | 3854 |   fi | 
 | 3855 |  | 
 | 3856 |  | 
 | 3857 |      | 
 | 3858 |    | 
 | 3859 |    | 
 | 3860 |    | 
 | 3861 |  | 
 | 3862 |      | 
 | 3863 |        | 
 | 3864 |  | 
 | 3865 |      | 
 | 3866 |    | 
 | 3867 |  | 
 | 3868 |                          | 
 | 3869 |  | 
 | 3870 |   echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6 | 
 | 3871 | echo "configure:3872: checking whether NLS is requested" >&5 | 
 | 3872 |     # Check whether --enable-nls or --disable-nls was given. | 
| Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3873 | if test "${enable_nls+set}" = set; then | 
 | 3874 |   enableval="$enable_nls" | 
 | 3875 |   USE_NLS=$enableval | 
 | 3876 | else | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 3877 |   USE_NLS=yes | 
| Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3878 | fi | 
 | 3879 |  | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 3880 |   echo "$ac_t""$USE_NLS" 1>&6 | 
 | 3881 |    | 
| Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3882 |  | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 3883 |    | 
 | 3884 |     BUILD_INCLUDED_LIBINTL=no | 
| Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3885 |     USE_INCLUDED_LIBINTL=no | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 3886 |    | 
 | 3887 |   LIBINTL= | 
 | 3888 |   LTLIBINTL= | 
 | 3889 |   POSUB= | 
| Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3890 |  | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 3891 |     if test "$USE_NLS" = "yes"; then | 
 | 3892 |     gt_use_preinstalled_gnugettext=no | 
 | 3893 |      | 
| Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3894 |       echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6 | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 3895 | echo "configure:3896: checking whether included gettext is requested" >&5 | 
| Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3896 |       # Check whether --with-included-gettext or --without-included-gettext was given. | 
 | 3897 | if test "${with_included_gettext+set}" = set; then | 
 | 3898 |   withval="$with_included_gettext" | 
 | 3899 |   nls_cv_force_use_gnu_gettext=$withval | 
 | 3900 | else | 
 | 3901 |   nls_cv_force_use_gnu_gettext=no | 
 | 3902 | fi | 
 | 3903 |  | 
 | 3904 |       echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6 | 
 | 3905 |  | 
 | 3906 |       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" | 
 | 3907 |       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 3908 |      | 
 | 3909 |                          | 
 | 3910 |                  | 
 | 3911 |          | 
 | 3912 |          | 
| Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3913 |  | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 3914 |         echo $ac_n "checking for GNU gettext in libc""... $ac_c" 1>&6 | 
 | 3915 | echo "configure:3916: checking for GNU gettext in libc" >&5 | 
 | 3916 | if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libc'+set}'`\" = set"; then | 
| Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3917 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
 | 3918 | else | 
 | 3919 |   cat > conftest.$ac_ext <<EOF | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 3920 | #line 3921 "configure" | 
| Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3921 | #include "confdefs.h" | 
 | 3922 | #include <libintl.h> | 
| Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3923 | extern int _nl_msg_cat_cntr; | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 3924 | extern int *_nl_domain_bindings; | 
 | 3925 | int main() { | 
 | 3926 | bindtextdomain ("", ""); | 
 | 3927 | return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings | 
| Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3928 | ; return 0; } | 
 | 3929 | EOF | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 3930 | if { (eval echo configure:3931: \"$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] | 3931 |   rm -rf conftest* | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 3932 |   gt_cv_func_gnugettext1_libc=yes | 
| Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3933 | else | 
 | 3934 |   echo "configure: failed program was:" >&5 | 
 | 3935 |   cat conftest.$ac_ext >&5 | 
 | 3936 |   rm -rf conftest* | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 3937 |   gt_cv_func_gnugettext1_libc=no | 
| Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3938 | fi | 
 | 3939 | rm -f conftest* | 
| Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3940 | fi | 
 | 3941 |  | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 3942 | echo "$ac_t""$gt_cv_func_gnugettext1_libc" 1>&6 | 
| Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3943 |  | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 3944 |         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then | 
 | 3945 |                      | 
 | 3946 |                                                    | 
 | 3947 |    | 
 | 3948 |     use_additional=yes | 
 | 3949 |    | 
 | 3950 |   acl_save_prefix="$prefix" | 
 | 3951 |   prefix="$acl_final_prefix" | 
 | 3952 |   acl_save_exec_prefix="$exec_prefix" | 
 | 3953 |   exec_prefix="$acl_final_exec_prefix" | 
 | 3954 |    | 
 | 3955 |     eval additional_includedir=\"$includedir\" | 
 | 3956 |     eval additional_libdir=\"$libdir\" | 
 | 3957 |    | 
 | 3958 |   exec_prefix="$acl_save_exec_prefix" | 
 | 3959 |   prefix="$acl_save_prefix" | 
 | 3960 |  | 
 | 3961 |   # Check whether --with-libintl-prefix or --without-libintl-prefix was given. | 
 | 3962 | if test "${with_libintl_prefix+set}" = set; then | 
 | 3963 |   withval="$with_libintl_prefix" | 
 | 3964 |    | 
 | 3965 |     if test "X$withval" = "Xno"; then | 
 | 3966 |       use_additional=no | 
 | 3967 |     else | 
 | 3968 |       if test "X$withval" = "X"; then | 
 | 3969 |          | 
 | 3970 |   acl_save_prefix="$prefix" | 
 | 3971 |   prefix="$acl_final_prefix" | 
 | 3972 |   acl_save_exec_prefix="$exec_prefix" | 
 | 3973 |   exec_prefix="$acl_final_exec_prefix" | 
 | 3974 |    | 
 | 3975 |           eval additional_includedir=\"$includedir\" | 
 | 3976 |           eval additional_libdir=\"$libdir\" | 
 | 3977 |          | 
 | 3978 |   exec_prefix="$acl_save_exec_prefix" | 
 | 3979 |   prefix="$acl_save_prefix" | 
 | 3980 |  | 
 | 3981 |       else | 
 | 3982 |         additional_includedir="$withval/include" | 
 | 3983 |         additional_libdir="$withval/lib" | 
 | 3984 |       fi | 
 | 3985 |     fi | 
 | 3986 |  | 
| Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 3987 | fi | 
 | 3988 |  | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 3989 |       LIBINTL= | 
 | 3990 |   LTLIBINTL= | 
 | 3991 |   INCINTL= | 
 | 3992 |   rpathdirs= | 
 | 3993 |   ltrpathdirs= | 
 | 3994 |   names_already_handled= | 
 | 3995 |   names_next_round='intl ' | 
 | 3996 |   while test -n "$names_next_round"; do | 
 | 3997 |     names_this_round="$names_next_round" | 
 | 3998 |     names_next_round= | 
 | 3999 |     for name in $names_this_round; do | 
 | 4000 |       already_handled= | 
 | 4001 |       for n in $names_already_handled; do | 
 | 4002 |         if test "$n" = "$name"; then | 
 | 4003 |           already_handled=yes | 
 | 4004 |           break | 
 | 4005 |         fi | 
 | 4006 |       done | 
 | 4007 |       if test -z "$already_handled"; then | 
 | 4008 |         names_already_handled="$names_already_handled $name" | 
 | 4009 |                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` | 
 | 4010 |         eval value=\"\$HAVE_LIB$uppername\" | 
 | 4011 |         if test -n "$value"; then | 
 | 4012 |           if test "$value" = yes; then | 
 | 4013 |             eval value=\"\$LIB$uppername\" | 
 | 4014 |             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value" | 
 | 4015 |             eval value=\"\$LTLIB$uppername\" | 
 | 4016 |             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value" | 
 | 4017 |           else | 
 | 4018 |                                     : | 
 | 4019 |           fi | 
 | 4020 |         else | 
 | 4021 |                               found_dir= | 
 | 4022 |           found_la= | 
 | 4023 |           found_so= | 
 | 4024 |           found_a= | 
 | 4025 |           if test $use_additional = yes; then | 
 | 4026 |             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then | 
 | 4027 |               found_dir="$additional_libdir" | 
 | 4028 |               found_so="$additional_libdir/lib$name.$shlibext" | 
 | 4029 |               if test -f "$additional_libdir/lib$name.la"; then | 
 | 4030 |                 found_la="$additional_libdir/lib$name.la" | 
 | 4031 |               fi | 
 | 4032 |             else | 
 | 4033 |               if test -f "$additional_libdir/lib$name.$libext"; then | 
 | 4034 |                 found_dir="$additional_libdir" | 
 | 4035 |                 found_a="$additional_libdir/lib$name.$libext" | 
 | 4036 |                 if test -f "$additional_libdir/lib$name.la"; then | 
 | 4037 |                   found_la="$additional_libdir/lib$name.la" | 
 | 4038 |                 fi | 
 | 4039 |               fi | 
 | 4040 |             fi | 
 | 4041 |           fi | 
 | 4042 |           if test "X$found_dir" = "X"; then | 
 | 4043 |             for x in $LDFLAGS $LTLIBINTL; do | 
 | 4044 |                | 
 | 4045 |   acl_save_prefix="$prefix" | 
 | 4046 |   prefix="$acl_final_prefix" | 
 | 4047 |   acl_save_exec_prefix="$exec_prefix" | 
 | 4048 |   exec_prefix="$acl_final_exec_prefix" | 
 | 4049 |   eval x=\"$x\" | 
 | 4050 |   exec_prefix="$acl_save_exec_prefix" | 
 | 4051 |   prefix="$acl_save_prefix" | 
| Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4052 |  | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 4053 |               case "$x" in | 
 | 4054 |                 -L*) | 
 | 4055 |                   dir=`echo "X$x" | sed -e 's/^X-L//'` | 
 | 4056 |                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then | 
 | 4057 |                     found_dir="$dir" | 
 | 4058 |                     found_so="$dir/lib$name.$shlibext" | 
 | 4059 |                     if test -f "$dir/lib$name.la"; then | 
 | 4060 |                       found_la="$dir/lib$name.la" | 
 | 4061 |                     fi | 
 | 4062 |                   else | 
 | 4063 |                     if test -f "$dir/lib$name.$libext"; then | 
 | 4064 |                       found_dir="$dir" | 
 | 4065 |                       found_a="$dir/lib$name.$libext" | 
 | 4066 |                       if test -f "$dir/lib$name.la"; then | 
 | 4067 |                         found_la="$dir/lib$name.la" | 
 | 4068 |                       fi | 
 | 4069 |                     fi | 
 | 4070 |                   fi | 
 | 4071 |                   ;; | 
 | 4072 |               esac | 
 | 4073 |               if test "X$found_dir" != "X"; then | 
 | 4074 |                 break | 
 | 4075 |               fi | 
 | 4076 |             done | 
 | 4077 |           fi | 
 | 4078 |           if test "X$found_dir" != "X"; then | 
 | 4079 |                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name" | 
 | 4080 |             if test "X$found_so" != "X"; then | 
 | 4081 |                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then | 
 | 4082 |                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" | 
 | 4083 |               else | 
 | 4084 |                                                                                 haveit= | 
 | 4085 |                 for x in $ltrpathdirs; do | 
 | 4086 |                   if test "X$x" = "X$found_dir"; then | 
 | 4087 |                     haveit=yes | 
 | 4088 |                     break | 
 | 4089 |                   fi | 
 | 4090 |                 done | 
 | 4091 |                 if test -z "$haveit"; then | 
 | 4092 |                   ltrpathdirs="$ltrpathdirs $found_dir" | 
 | 4093 |                 fi | 
 | 4094 |                                 if test "$hardcode_direct" = yes; then | 
 | 4095 |                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" | 
 | 4096 |                 else | 
 | 4097 |                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then | 
 | 4098 |                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" | 
 | 4099 |                                                             haveit= | 
 | 4100 |                     for x in $rpathdirs; do | 
 | 4101 |                       if test "X$x" = "X$found_dir"; then | 
 | 4102 |                         haveit=yes | 
 | 4103 |                         break | 
 | 4104 |                       fi | 
 | 4105 |                     done | 
 | 4106 |                     if test -z "$haveit"; then | 
 | 4107 |                       rpathdirs="$rpathdirs $found_dir" | 
 | 4108 |                     fi | 
 | 4109 |                   else | 
 | 4110 |                                                                                 haveit= | 
 | 4111 |                     for x in $LDFLAGS $LIBINTL; do | 
 | 4112 |                        | 
 | 4113 |   acl_save_prefix="$prefix" | 
 | 4114 |   prefix="$acl_final_prefix" | 
 | 4115 |   acl_save_exec_prefix="$exec_prefix" | 
 | 4116 |   exec_prefix="$acl_final_exec_prefix" | 
 | 4117 |   eval x=\"$x\" | 
 | 4118 |   exec_prefix="$acl_save_exec_prefix" | 
 | 4119 |   prefix="$acl_save_prefix" | 
 | 4120 |  | 
 | 4121 |                       if test "X$x" = "X-L$found_dir"; then | 
 | 4122 |                         haveit=yes | 
 | 4123 |                         break | 
 | 4124 |                       fi | 
 | 4125 |                     done | 
 | 4126 |                     if test -z "$haveit"; then | 
 | 4127 |                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir" | 
 | 4128 |                     fi | 
 | 4129 |                     if test "$hardcode_minus_L" != no; then | 
 | 4130 |                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" | 
 | 4131 |                     else | 
 | 4132 |                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" | 
 | 4133 |                     fi | 
 | 4134 |                   fi | 
 | 4135 |                 fi | 
 | 4136 |               fi | 
 | 4137 |             else | 
 | 4138 |               if test "X$found_a" != "X"; then | 
 | 4139 |                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a" | 
 | 4140 |               else | 
 | 4141 |                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name" | 
 | 4142 |               fi | 
 | 4143 |             fi | 
 | 4144 |                         additional_includedir= | 
 | 4145 |             case "$found_dir" in | 
 | 4146 |               */lib | */lib/) | 
 | 4147 |                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` | 
 | 4148 |                 additional_includedir="$basedir/include" | 
 | 4149 |                 ;; | 
 | 4150 |             esac | 
 | 4151 |             if test "X$additional_includedir" != "X"; then | 
 | 4152 |                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then | 
 | 4153 |                 haveit= | 
 | 4154 |                 if test "X$additional_includedir" = "X/usr/local/include"; then | 
 | 4155 |                   if test -n "$GCC"; then | 
 | 4156 |                     case $host_os in | 
 | 4157 |                       linux*) haveit=yes;; | 
 | 4158 |                     esac | 
 | 4159 |                   fi | 
 | 4160 |                 fi | 
 | 4161 |                 if test -z "$haveit"; then | 
 | 4162 |                   for x in $CPPFLAGS $INCINTL; do | 
 | 4163 |                      | 
 | 4164 |   acl_save_prefix="$prefix" | 
 | 4165 |   prefix="$acl_final_prefix" | 
 | 4166 |   acl_save_exec_prefix="$exec_prefix" | 
 | 4167 |   exec_prefix="$acl_final_exec_prefix" | 
 | 4168 |   eval x=\"$x\" | 
 | 4169 |   exec_prefix="$acl_save_exec_prefix" | 
 | 4170 |   prefix="$acl_save_prefix" | 
 | 4171 |  | 
 | 4172 |                     if test "X$x" = "X-I$additional_includedir"; then | 
 | 4173 |                       haveit=yes | 
 | 4174 |                       break | 
 | 4175 |                     fi | 
 | 4176 |                   done | 
 | 4177 |                   if test -z "$haveit"; then | 
 | 4178 |                     if test -d "$additional_includedir"; then | 
 | 4179 |                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir" | 
 | 4180 |                     fi | 
 | 4181 |                   fi | 
 | 4182 |                 fi | 
 | 4183 |               fi | 
 | 4184 |             fi | 
 | 4185 |                         if test -n "$found_la"; then | 
 | 4186 |                                                         save_libdir="$libdir" | 
 | 4187 |               case "$found_la" in | 
 | 4188 |                 */* | *\\*) . "$found_la" ;; | 
 | 4189 |                 *) . "./$found_la" ;; | 
 | 4190 |               esac | 
 | 4191 |               libdir="$save_libdir" | 
 | 4192 |                             for dep in $dependency_libs; do | 
 | 4193 |                 case "$dep" in | 
 | 4194 |                   -L*) | 
 | 4195 |                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` | 
 | 4196 |                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then | 
 | 4197 |                       haveit= | 
 | 4198 |                       if test "X$additional_libdir" = "X/usr/local/lib"; then | 
 | 4199 |                         if test -n "$GCC"; then | 
 | 4200 |                           case $host_os in | 
 | 4201 |                             linux*) haveit=yes;; | 
 | 4202 |                           esac | 
 | 4203 |                         fi | 
 | 4204 |                       fi | 
 | 4205 |                       if test -z "$haveit"; then | 
 | 4206 |                         haveit= | 
 | 4207 |                         for x in $LDFLAGS $LIBINTL; do | 
 | 4208 |                            | 
 | 4209 |   acl_save_prefix="$prefix" | 
 | 4210 |   prefix="$acl_final_prefix" | 
 | 4211 |   acl_save_exec_prefix="$exec_prefix" | 
 | 4212 |   exec_prefix="$acl_final_exec_prefix" | 
 | 4213 |   eval x=\"$x\" | 
 | 4214 |   exec_prefix="$acl_save_exec_prefix" | 
 | 4215 |   prefix="$acl_save_prefix" | 
 | 4216 |  | 
 | 4217 |                           if test "X$x" = "X-L$additional_libdir"; then | 
 | 4218 |                             haveit=yes | 
 | 4219 |                             break | 
 | 4220 |                           fi | 
 | 4221 |                         done | 
 | 4222 |                         if test -z "$haveit"; then | 
 | 4223 |                           if test -d "$additional_libdir"; then | 
 | 4224 |                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir" | 
 | 4225 |                           fi | 
 | 4226 |                         fi | 
 | 4227 |                         haveit= | 
 | 4228 |                         for x in $LDFLAGS $LTLIBINTL; do | 
 | 4229 |                            | 
 | 4230 |   acl_save_prefix="$prefix" | 
 | 4231 |   prefix="$acl_final_prefix" | 
 | 4232 |   acl_save_exec_prefix="$exec_prefix" | 
 | 4233 |   exec_prefix="$acl_final_exec_prefix" | 
 | 4234 |   eval x=\"$x\" | 
 | 4235 |   exec_prefix="$acl_save_exec_prefix" | 
 | 4236 |   prefix="$acl_save_prefix" | 
 | 4237 |  | 
 | 4238 |                           if test "X$x" = "X-L$additional_libdir"; then | 
 | 4239 |                             haveit=yes | 
 | 4240 |                             break | 
 | 4241 |                           fi | 
 | 4242 |                         done | 
 | 4243 |                         if test -z "$haveit"; then | 
 | 4244 |                           if test -d "$additional_libdir"; then | 
 | 4245 |                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir" | 
 | 4246 |                           fi | 
 | 4247 |                         fi | 
 | 4248 |                       fi | 
 | 4249 |                     fi | 
 | 4250 |                     ;; | 
 | 4251 |                   -R*) | 
 | 4252 |                     dir=`echo "X$dep" | sed -e 's/^X-R//'` | 
 | 4253 |                     if test "$enable_rpath" != no; then | 
 | 4254 |                                                                   haveit= | 
 | 4255 |                       for x in $rpathdirs; do | 
 | 4256 |                         if test "X$x" = "X$dir"; then | 
 | 4257 |                           haveit=yes | 
 | 4258 |                           break | 
 | 4259 |                         fi | 
 | 4260 |                       done | 
 | 4261 |                       if test -z "$haveit"; then | 
 | 4262 |                         rpathdirs="$rpathdirs $dir" | 
 | 4263 |                       fi | 
 | 4264 |                                                                   haveit= | 
 | 4265 |                       for x in $ltrpathdirs; do | 
 | 4266 |                         if test "X$x" = "X$dir"; then | 
 | 4267 |                           haveit=yes | 
 | 4268 |                           break | 
 | 4269 |                         fi | 
 | 4270 |                       done | 
 | 4271 |                       if test -z "$haveit"; then | 
 | 4272 |                         ltrpathdirs="$ltrpathdirs $dir" | 
 | 4273 |                       fi | 
 | 4274 |                     fi | 
 | 4275 |                     ;; | 
 | 4276 |                   -l*) | 
 | 4277 |                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` | 
 | 4278 |                     ;; | 
 | 4279 |                   *.la) | 
 | 4280 |                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` | 
 | 4281 |                     ;; | 
 | 4282 |                   *) | 
 | 4283 |                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep" | 
 | 4284 |                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep" | 
 | 4285 |                     ;; | 
 | 4286 |                 esac | 
 | 4287 |               done | 
 | 4288 |             fi | 
 | 4289 |           else | 
 | 4290 |                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" | 
 | 4291 |             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name" | 
 | 4292 |           fi | 
 | 4293 |         fi | 
 | 4294 |       fi | 
 | 4295 |     done | 
 | 4296 |   done | 
 | 4297 |   if test "X$rpathdirs" != "X"; then | 
 | 4298 |     if test -n "$hardcode_libdir_separator"; then | 
 | 4299 |                         alldirs= | 
 | 4300 |       for found_dir in $rpathdirs; do | 
 | 4301 |         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" | 
 | 4302 |       done | 
 | 4303 |             acl_save_libdir="$libdir" | 
 | 4304 |       libdir="$alldirs" | 
 | 4305 |       eval flag=\"$hardcode_libdir_flag_spec\" | 
 | 4306 |       libdir="$acl_save_libdir" | 
 | 4307 |       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" | 
 | 4308 |     else | 
 | 4309 |             for found_dir in $rpathdirs; do | 
 | 4310 |         acl_save_libdir="$libdir" | 
 | 4311 |         libdir="$found_dir" | 
 | 4312 |         eval flag=\"$hardcode_libdir_flag_spec\" | 
 | 4313 |         libdir="$acl_save_libdir" | 
 | 4314 |         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" | 
 | 4315 |       done | 
 | 4316 |     fi | 
 | 4317 |   fi | 
 | 4318 |   if test "X$ltrpathdirs" != "X"; then | 
 | 4319 |             for found_dir in $ltrpathdirs; do | 
 | 4320 |       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir" | 
 | 4321 |     done | 
 | 4322 |   fi | 
 | 4323 |  | 
 | 4324 |           echo $ac_n "checking for GNU gettext in libintl""... $ac_c" 1>&6 | 
 | 4325 | echo "configure:4326: checking for GNU gettext in libintl" >&5 | 
 | 4326 | if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libintl'+set}'`\" = set"; then | 
| Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4327 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
 | 4328 | else | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 4329 |   gt_save_CPPFLAGS="$CPPFLAGS" | 
 | 4330 |             CPPFLAGS="$CPPFLAGS $INCINTL" | 
 | 4331 |             gt_save_LIBS="$LIBS" | 
 | 4332 |             LIBS="$LIBS $LIBINTL" | 
 | 4333 |                         cat > conftest.$ac_ext <<EOF | 
 | 4334 | #line 4335 "configure" | 
| Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4335 | #include "confdefs.h" | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 4336 | #include <libintl.h> | 
 | 4337 | extern int _nl_msg_cat_cntr; | 
 | 4338 | extern | 
 | 4339 | #ifdef __cplusplus | 
 | 4340 | "C" | 
| Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4341 | #endif | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 4342 | const char *_nl_expand_alias (); | 
 | 4343 | int main() { | 
 | 4344 | bindtextdomain ("", ""); | 
 | 4345 | return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0) | 
| Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4346 | ; return 0; } | 
 | 4347 | EOF | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 4348 | if { (eval echo configure:4349: \"$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] | 4349 |   rm -rf conftest* | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 4350 |   gt_cv_func_gnugettext1_libintl=yes | 
| Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4351 | else | 
 | 4352 |   echo "configure: failed program was:" >&5 | 
 | 4353 |   cat conftest.$ac_ext >&5 | 
 | 4354 |   rm -rf conftest* | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 4355 |   gt_cv_func_gnugettext1_libintl=no | 
| Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4356 | fi | 
 | 4357 | rm -f conftest* | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 4358 |                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then | 
 | 4359 |               LIBS="$LIBS $LIBICONV" | 
 | 4360 |               cat > conftest.$ac_ext <<EOF | 
 | 4361 | #line 4362 "configure" | 
 | 4362 | #include "confdefs.h" | 
 | 4363 | #include <libintl.h> | 
 | 4364 | extern int _nl_msg_cat_cntr; | 
 | 4365 | extern | 
 | 4366 | #ifdef __cplusplus | 
 | 4367 | "C" | 
 | 4368 | #endif | 
 | 4369 | const char *_nl_expand_alias (); | 
 | 4370 | int main() { | 
 | 4371 | bindtextdomain ("", ""); | 
 | 4372 | return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0) | 
 | 4373 | ; return 0; } | 
| Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4374 | EOF | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 4375 | if { (eval echo configure:4376: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 
 | 4376 |   rm -rf conftest* | 
 | 4377 |   LIBINTL="$LIBINTL $LIBICONV" | 
 | 4378 |                 LTLIBINTL="$LTLIBINTL $LTLIBICONV" | 
 | 4379 |                 gt_cv_func_gnugettext1_libintl=yes | 
 | 4380 |                 | 
| Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4381 | else | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 4382 |   echo "configure: failed program was:" >&5 | 
 | 4383 |   cat conftest.$ac_ext >&5 | 
| Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4384 | fi | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 4385 | rm -f conftest* | 
 | 4386 |             fi | 
 | 4387 |             CPPFLAGS="$gt_save_CPPFLAGS" | 
 | 4388 |             LIBS="$gt_save_LIBS" | 
| Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4389 | fi | 
 | 4390 |  | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 4391 | echo "$ac_t""$gt_cv_func_gnugettext1_libintl" 1>&6 | 
| Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4392 |         fi | 
 | 4393 |  | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 4394 |                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \ | 
 | 4395 |            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \ | 
 | 4396 |                 && test "$PACKAGE" != gettext; }; then | 
 | 4397 |           gt_use_preinstalled_gnugettext=yes | 
 | 4398 |         else | 
 | 4399 |                     LIBINTL= | 
 | 4400 |           LTLIBINTL= | 
 | 4401 |           INCINTL= | 
 | 4402 |         fi | 
 | 4403 |  | 
 | 4404 |      | 
 | 4405 |         if test "$gt_use_preinstalled_gnugettext" != "yes"; then | 
 | 4406 |                               nls_cv_use_gnu_gettext=yes | 
| Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4407 |         fi | 
 | 4408 |       fi | 
 | 4409 |  | 
 | 4410 |       if test "$nls_cv_use_gnu_gettext" = "yes"; then | 
 | 4411 |                 INTLOBJS="\$(GETTOBJS)" | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 4412 |         BUILD_INCLUDED_LIBINTL=yes | 
 | 4413 |         USE_INCLUDED_LIBINTL=yes | 
 | 4414 |         LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV" | 
 | 4415 |         LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV" | 
 | 4416 |         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'` | 
| Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4417 |       fi | 
 | 4418 |  | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 4419 |       if test "$gt_use_preinstalled_gnugettext" = "yes" \ | 
 | 4420 |          || test "$nls_cv_use_gnu_gettext" = "yes"; then | 
 | 4421 |                 CATOBJEXT=.gmo | 
| Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4422 |       fi | 
| Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4423 |      | 
 | 4424 |  | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 4425 |     if test "$gt_use_preinstalled_gnugettext" = "yes" \ | 
 | 4426 |        || test "$nls_cv_use_gnu_gettext" = "yes"; then | 
 | 4427 |       cat >> confdefs.h <<\EOF | 
 | 4428 | #define ENABLE_NLS 1 | 
| Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4429 | EOF | 
| Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4430 |  | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 4431 |     else | 
 | 4432 |       USE_NLS=no | 
 | 4433 |     fi | 
 | 4434 |   fi | 
| Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4435 |  | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 4436 |   if test "$USE_NLS" = "yes"; then | 
| Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4437 |  | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 4438 |     if test "$gt_use_preinstalled_gnugettext" = "yes"; then | 
 | 4439 |       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then | 
 | 4440 |         echo $ac_n "checking how to link with libintl""... $ac_c" 1>&6 | 
 | 4441 | echo "configure:4442: checking how to link with libintl" >&5 | 
 | 4442 |         echo "$ac_t""$LIBINTL" 1>&6 | 
 | 4443 |          | 
 | 4444 |   for element in $INCINTL; do | 
 | 4445 |     haveit= | 
 | 4446 |     for x in $CPPFLAGS; do | 
 | 4447 |        | 
 | 4448 |   acl_save_prefix="$prefix" | 
 | 4449 |   prefix="$acl_final_prefix" | 
 | 4450 |   acl_save_exec_prefix="$exec_prefix" | 
 | 4451 |   exec_prefix="$acl_final_exec_prefix" | 
 | 4452 |   eval x=\"$x\" | 
 | 4453 |   exec_prefix="$acl_save_exec_prefix" | 
 | 4454 |   prefix="$acl_save_prefix" | 
| Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4455 |  | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 4456 |       if test "X$x" = "X$element"; then | 
 | 4457 |         haveit=yes | 
 | 4458 |         break | 
 | 4459 |       fi | 
 | 4460 |     done | 
 | 4461 |     if test -z "$haveit"; then | 
 | 4462 |       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" | 
 | 4463 |     fi | 
 | 4464 |   done | 
| Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4465 |  | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 4466 |       fi | 
| Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4467 |  | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 4468 |             cat >> confdefs.h <<\EOF | 
 | 4469 | #define HAVE_GETTEXT 1 | 
 | 4470 | EOF | 
 | 4471 |  | 
 | 4472 |       cat >> confdefs.h <<\EOF | 
 | 4473 | #define HAVE_DCGETTEXT 1 | 
 | 4474 | EOF | 
 | 4475 |  | 
 | 4476 |     fi | 
 | 4477 |  | 
 | 4478 |         POSUB=po | 
 | 4479 |   fi | 
 | 4480 |  | 
| Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 4481 |    | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 4482 |             if test "$PACKAGE" = gettext; then | 
 | 4483 |       BUILD_INCLUDED_LIBINTL=yes | 
 | 4484 |     fi | 
 | 4485 |  | 
 | 4486 |          | 
 | 4487 |      | 
 | 4488 |      | 
 | 4489 |      | 
 | 4490 |  | 
 | 4491 |         nls_cv_header_intl= | 
 | 4492 |     nls_cv_header_libgt= | 
 | 4493 |  | 
 | 4494 |         DATADIRNAME=share | 
 | 4495 |      | 
 | 4496 |  | 
 | 4497 |         INSTOBJEXT=.mo | 
 | 4498 |      | 
 | 4499 |  | 
 | 4500 |         GENCAT=gencat | 
 | 4501 |      | 
 | 4502 |  | 
 | 4503 |         INTL_LIBTOOL_SUFFIX_PREFIX= | 
 | 4504 |      | 
 | 4505 |    | 
 | 4506 |  | 
 | 4507 |     INTLLIBS="$LIBINTL" | 
 | 4508 |    | 
 | 4509 |  | 
 | 4510 |      | 
 | 4511 |    | 
 | 4512 |    | 
 | 4513 |  | 
| Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 4514 |  | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4515 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 4516 | echo "configure:4517: checking whether ${MAKE-make} sets \${MAKE}" >&5 | 
| Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 4517 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4518 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then | 
 | 4519 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
 | 4520 | else | 
 | 4521 |   cat > conftestmake <<\EOF | 
 | 4522 | all: | 
 | 4523 | 	@echo 'ac_maketemp="${MAKE}"' | 
 | 4524 | EOF | 
 | 4525 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | 
 | 4526 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` | 
 | 4527 | if test -n "$ac_maketemp"; then | 
 | 4528 |   eval ac_cv_prog_make_${ac_make}_set=yes | 
 | 4529 | else | 
 | 4530 |   eval ac_cv_prog_make_${ac_make}_set=no | 
 | 4531 | fi | 
 | 4532 | rm -f conftestmake | 
 | 4533 | fi | 
 | 4534 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | 
 | 4535 |   echo "$ac_t""yes" 1>&6 | 
 | 4536 |   SET_MAKE= | 
 | 4537 | else | 
 | 4538 |   echo "$ac_t""no" 1>&6 | 
 | 4539 |   SET_MAKE="MAKE=${MAKE-make}" | 
 | 4540 | fi | 
 | 4541 |  | 
 | 4542 | # Extract the first word of "ln", so it can be a program name with args. | 
 | 4543 | set dummy ln; ac_word=$2 | 
 | 4544 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 4545 | echo "configure:4546: checking for $ac_word" >&5 | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4546 | if eval "test \"`echo '$''{'ac_cv_path_LN'+set}'`\" = set"; then | 
 | 4547 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
 | 4548 | else | 
 | 4549 |   case "$LN" in | 
 | 4550 |   /*) | 
 | 4551 |   ac_cv_path_LN="$LN" # Let the user override the test with a path. | 
 | 4552 |   ;; | 
| Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame] | 4553 |   ?:/*)			  | 
 | 4554 |   ac_cv_path_LN="$LN" # Let the user override the test with a dos path. | 
 | 4555 |   ;; | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4556 |   *) | 
| Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame] | 4557 |   IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":" | 
 | 4558 |   ac_dummy="$PATH" | 
 | 4559 |   for ac_dir in $ac_dummy; do  | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4560 |     test -z "$ac_dir" && ac_dir=. | 
 | 4561 |     if test -f $ac_dir/$ac_word; then | 
 | 4562 |       ac_cv_path_LN="$ac_dir/$ac_word" | 
 | 4563 |       break | 
 | 4564 |     fi | 
 | 4565 |   done | 
 | 4566 |   IFS="$ac_save_ifs" | 
 | 4567 |   test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln" | 
 | 4568 |   ;; | 
 | 4569 | esac | 
 | 4570 | fi | 
 | 4571 | LN="$ac_cv_path_LN" | 
 | 4572 | if test -n "$LN"; then | 
 | 4573 |   echo "$ac_t""$LN" 1>&6 | 
 | 4574 | else | 
 | 4575 |   echo "$ac_t""no" 1>&6 | 
 | 4576 | fi | 
 | 4577 |  | 
| Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 4578 | echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 4579 | echo "configure:4580: checking whether ln -s works" >&5 | 
| Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 4580 | if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then | 
 | 4581 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
 | 4582 | else | 
 | 4583 |   rm -f conftestdata | 
 | 4584 | if ln -s X conftestdata 2>/dev/null | 
 | 4585 | then | 
 | 4586 |   rm -f conftestdata | 
 | 4587 |   ac_cv_prog_LN_S="ln -s" | 
 | 4588 | else | 
 | 4589 |   ac_cv_prog_LN_S=ln | 
 | 4590 | fi | 
 | 4591 | fi | 
 | 4592 | LN_S="$ac_cv_prog_LN_S" | 
 | 4593 | if test "$ac_cv_prog_LN_S" = "ln -s"; then | 
 | 4594 |   echo "$ac_t""yes" 1>&6 | 
 | 4595 | else | 
 | 4596 |   echo "$ac_t""no" 1>&6 | 
 | 4597 | fi | 
 | 4598 |  | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4599 | # Extract the first word of "mv", so it can be a program name with args. | 
 | 4600 | set dummy mv; ac_word=$2 | 
 | 4601 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 4602 | echo "configure:4603: checking for $ac_word" >&5 | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4603 | if eval "test \"`echo '$''{'ac_cv_path_MV'+set}'`\" = set"; then | 
 | 4604 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
 | 4605 | else | 
 | 4606 |   case "$MV" in | 
 | 4607 |   /*) | 
 | 4608 |   ac_cv_path_MV="$MV" # Let the user override the test with a path. | 
 | 4609 |   ;; | 
| Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame] | 4610 |   ?:/*)			  | 
 | 4611 |   ac_cv_path_MV="$MV" # Let the user override the test with a dos path. | 
 | 4612 |   ;; | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4613 |   *) | 
| Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame] | 4614 |   IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":" | 
 | 4615 |   ac_dummy="$PATH" | 
 | 4616 |   for ac_dir in $ac_dummy; do  | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4617 |     test -z "$ac_dir" && ac_dir=. | 
 | 4618 |     if test -f $ac_dir/$ac_word; then | 
 | 4619 |       ac_cv_path_MV="$ac_dir/$ac_word" | 
 | 4620 |       break | 
 | 4621 |     fi | 
 | 4622 |   done | 
 | 4623 |   IFS="$ac_save_ifs" | 
 | 4624 |   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv" | 
 | 4625 |   ;; | 
 | 4626 | esac | 
 | 4627 | fi | 
 | 4628 | MV="$ac_cv_path_MV" | 
 | 4629 | if test -n "$MV"; then | 
 | 4630 |   echo "$ac_t""$MV" 1>&6 | 
 | 4631 | else | 
 | 4632 |   echo "$ac_t""no" 1>&6 | 
 | 4633 | fi | 
 | 4634 |  | 
 | 4635 | # Extract the first word of "cp", so it can be a program name with args. | 
 | 4636 | set dummy cp; ac_word=$2 | 
 | 4637 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 4638 | echo "configure:4639: checking for $ac_word" >&5 | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4639 | if eval "test \"`echo '$''{'ac_cv_path_CP'+set}'`\" = set"; then | 
 | 4640 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
 | 4641 | else | 
 | 4642 |   case "$CP" in | 
 | 4643 |   /*) | 
 | 4644 |   ac_cv_path_CP="$CP" # Let the user override the test with a path. | 
 | 4645 |   ;; | 
| Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame] | 4646 |   ?:/*)			  | 
 | 4647 |   ac_cv_path_CP="$CP" # Let the user override the test with a dos path. | 
 | 4648 |   ;; | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4649 |   *) | 
| Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame] | 4650 |   IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":" | 
 | 4651 |   ac_dummy="$PATH" | 
 | 4652 |   for ac_dir in $ac_dummy; do  | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4653 |     test -z "$ac_dir" && ac_dir=. | 
 | 4654 |     if test -f $ac_dir/$ac_word; then | 
 | 4655 |       ac_cv_path_CP="$ac_dir/$ac_word" | 
 | 4656 |       break | 
 | 4657 |     fi | 
 | 4658 |   done | 
 | 4659 |   IFS="$ac_save_ifs" | 
 | 4660 |   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp" | 
 | 4661 |   ;; | 
 | 4662 | esac | 
 | 4663 | fi | 
 | 4664 | CP="$ac_cv_path_CP" | 
 | 4665 | if test -n "$CP"; then | 
 | 4666 |   echo "$ac_t""$CP" 1>&6 | 
 | 4667 | else | 
 | 4668 |   echo "$ac_t""no" 1>&6 | 
 | 4669 | fi | 
 | 4670 |  | 
 | 4671 | # Extract the first word of "rm", so it can be a program name with args. | 
 | 4672 | set dummy rm; ac_word=$2 | 
 | 4673 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 4674 | echo "configure:4675: checking for $ac_word" >&5 | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4675 | if eval "test \"`echo '$''{'ac_cv_path_RM'+set}'`\" = set"; then | 
 | 4676 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
 | 4677 | else | 
 | 4678 |   case "$RM" in | 
 | 4679 |   /*) | 
 | 4680 |   ac_cv_path_RM="$RM" # Let the user override the test with a path. | 
 | 4681 |   ;; | 
| Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame] | 4682 |   ?:/*)			  | 
 | 4683 |   ac_cv_path_RM="$RM" # Let the user override the test with a dos path. | 
 | 4684 |   ;; | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4685 |   *) | 
| Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame] | 4686 |   IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":" | 
 | 4687 |   ac_dummy="$PATH" | 
 | 4688 |   for ac_dir in $ac_dummy; do  | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4689 |     test -z "$ac_dir" && ac_dir=. | 
 | 4690 |     if test -f $ac_dir/$ac_word; then | 
 | 4691 |       ac_cv_path_RM="$ac_dir/$ac_word" | 
 | 4692 |       break | 
 | 4693 |     fi | 
 | 4694 |   done | 
 | 4695 |   IFS="$ac_save_ifs" | 
 | 4696 |   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm" | 
 | 4697 |   ;; | 
 | 4698 | esac | 
 | 4699 | fi | 
 | 4700 | RM="$ac_cv_path_RM" | 
 | 4701 | if test -n "$RM"; then | 
 | 4702 |   echo "$ac_t""$RM" 1>&6 | 
 | 4703 | else | 
 | 4704 |   echo "$ac_t""no" 1>&6 | 
 | 4705 | fi | 
 | 4706 |  | 
 | 4707 | # Extract the first word of "chmod", so it can be a program name with args. | 
 | 4708 | set dummy chmod; ac_word=$2 | 
 | 4709 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 4710 | echo "configure:4711: checking for $ac_word" >&5 | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4711 | if eval "test \"`echo '$''{'ac_cv_path_CHMOD'+set}'`\" = set"; then | 
 | 4712 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
 | 4713 | else | 
 | 4714 |   case "$CHMOD" in | 
 | 4715 |   /*) | 
 | 4716 |   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path. | 
 | 4717 |   ;; | 
| Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame] | 4718 |   ?:/*)			  | 
 | 4719 |   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a dos path. | 
 | 4720 |   ;; | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4721 |   *) | 
| Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame] | 4722 |   IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":" | 
 | 4723 |   ac_dummy="$PATH" | 
 | 4724 |   for ac_dir in $ac_dummy; do  | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4725 |     test -z "$ac_dir" && ac_dir=. | 
 | 4726 |     if test -f $ac_dir/$ac_word; then | 
 | 4727 |       ac_cv_path_CHMOD="$ac_dir/$ac_word" | 
 | 4728 |       break | 
 | 4729 |     fi | 
 | 4730 |   done | 
 | 4731 |   IFS="$ac_save_ifs" | 
 | 4732 |   test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":" | 
 | 4733 |   ;; | 
 | 4734 | esac | 
 | 4735 | fi | 
 | 4736 | CHMOD="$ac_cv_path_CHMOD" | 
 | 4737 | if test -n "$CHMOD"; then | 
 | 4738 |   echo "$ac_t""$CHMOD" 1>&6 | 
 | 4739 | else | 
 | 4740 |   echo "$ac_t""no" 1>&6 | 
 | 4741 | fi | 
 | 4742 |  | 
 | 4743 | # Extract the first word of "awk", so it can be a program name with args. | 
 | 4744 | set dummy awk; ac_word=$2 | 
 | 4745 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 4746 | echo "configure:4747: checking for $ac_word" >&5 | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4747 | if eval "test \"`echo '$''{'ac_cv_path_AWK'+set}'`\" = set"; then | 
 | 4748 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
 | 4749 | else | 
 | 4750 |   case "$AWK" in | 
 | 4751 |   /*) | 
 | 4752 |   ac_cv_path_AWK="$AWK" # Let the user override the test with a path. | 
 | 4753 |   ;; | 
| Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame] | 4754 |   ?:/*)			  | 
 | 4755 |   ac_cv_path_AWK="$AWK" # Let the user override the test with a dos path. | 
 | 4756 |   ;; | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4757 |   *) | 
| Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame] | 4758 |   IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":" | 
 | 4759 |   ac_dummy="$PATH" | 
 | 4760 |   for ac_dir in $ac_dummy; do  | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4761 |     test -z "$ac_dir" && ac_dir=. | 
 | 4762 |     if test -f $ac_dir/$ac_word; then | 
 | 4763 |       ac_cv_path_AWK="$ac_dir/$ac_word" | 
 | 4764 |       break | 
 | 4765 |     fi | 
 | 4766 |   done | 
 | 4767 |   IFS="$ac_save_ifs" | 
 | 4768 |   test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="awk" | 
 | 4769 |   ;; | 
 | 4770 | esac | 
 | 4771 | fi | 
 | 4772 | AWK="$ac_cv_path_AWK" | 
 | 4773 | if test -n "$AWK"; then | 
 | 4774 |   echo "$ac_t""$AWK" 1>&6 | 
 | 4775 | else | 
 | 4776 |   echo "$ac_t""no" 1>&6 | 
 | 4777 | fi | 
 | 4778 |  | 
 | 4779 | # Extract the first word of "sed", so it can be a program name with args. | 
 | 4780 | set dummy sed; ac_word=$2 | 
 | 4781 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 4782 | echo "configure:4783: checking for $ac_word" >&5 | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4783 | if eval "test \"`echo '$''{'ac_cv_path_SED'+set}'`\" = set"; then | 
 | 4784 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
 | 4785 | else | 
 | 4786 |   case "$SED" in | 
 | 4787 |   /*) | 
 | 4788 |   ac_cv_path_SED="$SED" # Let the user override the test with a path. | 
 | 4789 |   ;; | 
| Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame] | 4790 |   ?:/*)			  | 
 | 4791 |   ac_cv_path_SED="$SED" # Let the user override the test with a dos path. | 
 | 4792 |   ;; | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4793 |   *) | 
| Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame] | 4794 |   IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":" | 
 | 4795 |   ac_dummy="$PATH" | 
 | 4796 |   for ac_dir in $ac_dummy; do  | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4797 |     test -z "$ac_dir" && ac_dir=. | 
 | 4798 |     if test -f $ac_dir/$ac_word; then | 
 | 4799 |       ac_cv_path_SED="$ac_dir/$ac_word" | 
 | 4800 |       break | 
 | 4801 |     fi | 
 | 4802 |   done | 
 | 4803 |   IFS="$ac_save_ifs" | 
 | 4804 |   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed" | 
 | 4805 |   ;; | 
 | 4806 | esac | 
 | 4807 | fi | 
 | 4808 | SED="$ac_cv_path_SED" | 
 | 4809 | if test -n "$SED"; then | 
 | 4810 |   echo "$ac_t""$SED" 1>&6 | 
 | 4811 | else | 
 | 4812 |   echo "$ac_t""no" 1>&6 | 
 | 4813 | fi | 
 | 4814 |  | 
| Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 4815 | # Extract the first word of "perl", so it can be a program name with args. | 
 | 4816 | set dummy perl; ac_word=$2 | 
 | 4817 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 4818 | echo "configure:4819: checking for $ac_word" >&5 | 
| Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 4819 | if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then | 
 | 4820 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
 | 4821 | else | 
 | 4822 |   case "$PERL" in | 
 | 4823 |   /*) | 
 | 4824 |   ac_cv_path_PERL="$PERL" # Let the user override the test with a path. | 
 | 4825 |   ;; | 
 | 4826 |   ?:/*)			  | 
 | 4827 |   ac_cv_path_PERL="$PERL" # Let the user override the test with a dos path. | 
 | 4828 |   ;; | 
 | 4829 |   *) | 
 | 4830 |   IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":" | 
 | 4831 |   ac_dummy="$PATH" | 
 | 4832 |   for ac_dir in $ac_dummy; do  | 
 | 4833 |     test -z "$ac_dir" && ac_dir=. | 
 | 4834 |     if test -f $ac_dir/$ac_word; then | 
 | 4835 |       ac_cv_path_PERL="$ac_dir/$ac_word" | 
 | 4836 |       break | 
 | 4837 |     fi | 
 | 4838 |   done | 
 | 4839 |   IFS="$ac_save_ifs" | 
 | 4840 |   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl" | 
 | 4841 |   ;; | 
 | 4842 | esac | 
 | 4843 | fi | 
 | 4844 | PERL="$ac_cv_path_PERL" | 
 | 4845 | if test -n "$PERL"; then | 
 | 4846 |   echo "$ac_t""$PERL" 1>&6 | 
 | 4847 | else | 
 | 4848 |   echo "$ac_t""no" 1>&6 | 
 | 4849 | fi | 
 | 4850 |  | 
| Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 4851 | # Extract the first word of "ldconfig", so it can be a program name with args. | 
 | 4852 | set dummy ldconfig; ac_word=$2 | 
 | 4853 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 4854 | echo "configure:4855: checking for $ac_word" >&5 | 
| Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 4855 | if eval "test \"`echo '$''{'ac_cv_path_LDCONFIG'+set}'`\" = set"; then | 
 | 4856 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
 | 4857 | else | 
 | 4858 |   case "$LDCONFIG" in | 
 | 4859 |   /*) | 
 | 4860 |   ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path. | 
 | 4861 |   ;; | 
 | 4862 |   ?:/*)			  | 
 | 4863 |   ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a dos path. | 
 | 4864 |   ;; | 
 | 4865 |   *) | 
 | 4866 |   IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":" | 
 | 4867 |   ac_dummy="$PATH" | 
 | 4868 |   for ac_dir in $ac_dummy; do  | 
 | 4869 |     test -z "$ac_dir" && ac_dir=. | 
 | 4870 |     if test -f $ac_dir/$ac_word; then | 
 | 4871 |       ac_cv_path_LDCONFIG="$ac_dir/$ac_word" | 
 | 4872 |       break | 
 | 4873 |     fi | 
 | 4874 |   done | 
 | 4875 |   IFS="$ac_save_ifs" | 
 | 4876 |   test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":" | 
 | 4877 |   ;; | 
 | 4878 | esac | 
 | 4879 | fi | 
 | 4880 | LDCONFIG="$ac_cv_path_LDCONFIG" | 
 | 4881 | if test -n "$LDCONFIG"; then | 
 | 4882 |   echo "$ac_t""$LDCONFIG" 1>&6 | 
 | 4883 | else | 
 | 4884 |   echo "$ac_t""no" 1>&6 | 
 | 4885 | fi | 
 | 4886 |  | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4887 | echo $ac_n "checking build system type""... $ac_c" 1>&6 | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 4888 | echo "configure:4889: checking build system type" >&5 | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4889 |  | 
 | 4890 | build_alias=$build | 
 | 4891 | case "$build_alias" in | 
 | 4892 | NONE) | 
 | 4893 |   case $nonopt in | 
 | 4894 |   NONE) build_alias=$host_alias ;; | 
 | 4895 |   *) build_alias=$nonopt ;; | 
 | 4896 |   esac ;; | 
 | 4897 | esac | 
 | 4898 |  | 
| Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame] | 4899 | build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` | 
| Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 4900 | build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | 
 | 4901 | build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | 
 | 4902 | build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4903 | echo "$ac_t""$build" 1>&6 | 
 | 4904 |  | 
 | 4905 | if test $host != $build; then | 
 | 4906 |   ac_tool_prefix=${host_alias}- | 
 | 4907 | else | 
 | 4908 |   ac_tool_prefix= | 
 | 4909 | fi | 
 | 4910 |  | 
 | 4911 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | 
 | 4912 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | 
 | 4913 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 4914 | echo "configure:4915: checking for $ac_word" >&5 | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4915 | if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then | 
 | 4916 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
 | 4917 | else | 
 | 4918 |   if test -n "$AR"; then | 
 | 4919 |   ac_cv_prog_AR="$AR" # Let the user override the test. | 
 | 4920 | else | 
| Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame] | 4921 |   IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":" | 
 | 4922 |   ac_dummy="$PATH" | 
 | 4923 |   for ac_dir in $ac_dummy; do | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4924 |     test -z "$ac_dir" && ac_dir=. | 
 | 4925 |     if test -f $ac_dir/$ac_word; then | 
 | 4926 |       ac_cv_prog_AR="${ac_tool_prefix}ar" | 
 | 4927 |       break | 
 | 4928 |     fi | 
 | 4929 |   done | 
 | 4930 |   IFS="$ac_save_ifs" | 
 | 4931 | fi | 
 | 4932 | fi | 
 | 4933 | AR="$ac_cv_prog_AR" | 
 | 4934 | if test -n "$AR"; then | 
 | 4935 |   echo "$ac_t""$AR" 1>&6 | 
 | 4936 | else | 
 | 4937 |   echo "$ac_t""no" 1>&6 | 
 | 4938 | fi | 
 | 4939 |  | 
 | 4940 |  | 
 | 4941 | if test -z "$ac_cv_prog_AR"; then | 
 | 4942 | if test -n "$ac_tool_prefix"; then | 
 | 4943 |   # Extract the first word of "ar", so it can be a program name with args. | 
 | 4944 | set dummy ar; ac_word=$2 | 
 | 4945 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 4946 | echo "configure:4947: checking for $ac_word" >&5 | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4947 | if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then | 
 | 4948 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
 | 4949 | else | 
 | 4950 |   if test -n "$AR"; then | 
 | 4951 |   ac_cv_prog_AR="$AR" # Let the user override the test. | 
 | 4952 | else | 
| Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame] | 4953 |   IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":" | 
 | 4954 |   ac_dummy="$PATH" | 
 | 4955 |   for ac_dir in $ac_dummy; do | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4956 |     test -z "$ac_dir" && ac_dir=. | 
 | 4957 |     if test -f $ac_dir/$ac_word; then | 
 | 4958 |       ac_cv_prog_AR="ar" | 
 | 4959 |       break | 
 | 4960 |     fi | 
 | 4961 |   done | 
 | 4962 |   IFS="$ac_save_ifs" | 
 | 4963 |   test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar" | 
 | 4964 | fi | 
 | 4965 | fi | 
 | 4966 | AR="$ac_cv_prog_AR" | 
 | 4967 | if test -n "$AR"; then | 
 | 4968 |   echo "$ac_t""$AR" 1>&6 | 
 | 4969 | else | 
 | 4970 |   echo "$ac_t""no" 1>&6 | 
 | 4971 | fi | 
 | 4972 |  | 
 | 4973 | else | 
 | 4974 |   AR="ar" | 
 | 4975 | fi | 
 | 4976 | fi | 
 | 4977 |  | 
 | 4978 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | 
 | 4979 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | 
 | 4980 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 4981 | echo "configure:4982: checking for $ac_word" >&5 | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4982 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then | 
 | 4983 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
 | 4984 | else | 
 | 4985 |   if test -n "$RANLIB"; then | 
 | 4986 |   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | 
 | 4987 | else | 
| Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame] | 4988 |   IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":" | 
 | 4989 |   ac_dummy="$PATH" | 
 | 4990 |   for ac_dir in $ac_dummy; do | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4991 |     test -z "$ac_dir" && ac_dir=. | 
 | 4992 |     if test -f $ac_dir/$ac_word; then | 
 | 4993 |       ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | 
 | 4994 |       break | 
 | 4995 |     fi | 
 | 4996 |   done | 
 | 4997 |   IFS="$ac_save_ifs" | 
 | 4998 | fi | 
 | 4999 | fi | 
 | 5000 | RANLIB="$ac_cv_prog_RANLIB" | 
 | 5001 | if test -n "$RANLIB"; then | 
 | 5002 |   echo "$ac_t""$RANLIB" 1>&6 | 
 | 5003 | else | 
 | 5004 |   echo "$ac_t""no" 1>&6 | 
 | 5005 | fi | 
 | 5006 |  | 
 | 5007 |  | 
 | 5008 | if test -z "$ac_cv_prog_RANLIB"; then | 
 | 5009 | if test -n "$ac_tool_prefix"; then | 
 | 5010 |   # Extract the first word of "ranlib", so it can be a program name with args. | 
 | 5011 | set dummy ranlib; ac_word=$2 | 
 | 5012 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 5013 | echo "configure:5014: checking for $ac_word" >&5 | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5014 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then | 
 | 5015 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
 | 5016 | else | 
 | 5017 |   if test -n "$RANLIB"; then | 
 | 5018 |   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | 
 | 5019 | else | 
| Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame] | 5020 |   IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":" | 
 | 5021 |   ac_dummy="$PATH" | 
 | 5022 |   for ac_dir in $ac_dummy; do | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5023 |     test -z "$ac_dir" && ac_dir=. | 
 | 5024 |     if test -f $ac_dir/$ac_word; then | 
 | 5025 |       ac_cv_prog_RANLIB="ranlib" | 
 | 5026 |       break | 
 | 5027 |     fi | 
 | 5028 |   done | 
 | 5029 |   IFS="$ac_save_ifs" | 
 | 5030 |   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" | 
 | 5031 | fi | 
 | 5032 | fi | 
 | 5033 | RANLIB="$ac_cv_prog_RANLIB" | 
 | 5034 | if test -n "$RANLIB"; then | 
 | 5035 |   echo "$ac_t""$RANLIB" 1>&6 | 
 | 5036 | else | 
 | 5037 |   echo "$ac_t""no" 1>&6 | 
 | 5038 | fi | 
 | 5039 |  | 
 | 5040 | else | 
 | 5041 |   RANLIB=":" | 
 | 5042 | fi | 
 | 5043 | fi | 
 | 5044 |  | 
 | 5045 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | 
 | 5046 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | 
 | 5047 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 5048 | echo "configure:5049: checking for $ac_word" >&5 | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5049 | if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then | 
 | 5050 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
 | 5051 | else | 
 | 5052 |   if test -n "$STRIP"; then | 
 | 5053 |   ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | 
 | 5054 | else | 
| Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame] | 5055 |   IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":" | 
 | 5056 |   ac_dummy="$PATH" | 
 | 5057 |   for ac_dir in $ac_dummy; do | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5058 |     test -z "$ac_dir" && ac_dir=. | 
 | 5059 |     if test -f $ac_dir/$ac_word; then | 
 | 5060 |       ac_cv_prog_STRIP="${ac_tool_prefix}strip" | 
 | 5061 |       break | 
 | 5062 |     fi | 
 | 5063 |   done | 
 | 5064 |   IFS="$ac_save_ifs" | 
 | 5065 | fi | 
 | 5066 | fi | 
 | 5067 | STRIP="$ac_cv_prog_STRIP" | 
 | 5068 | if test -n "$STRIP"; then | 
 | 5069 |   echo "$ac_t""$STRIP" 1>&6 | 
 | 5070 | else | 
 | 5071 |   echo "$ac_t""no" 1>&6 | 
 | 5072 | fi | 
 | 5073 |  | 
 | 5074 |  | 
 | 5075 | if test -z "$ac_cv_prog_STRIP"; then | 
 | 5076 | if test -n "$ac_tool_prefix"; then | 
 | 5077 |   # Extract the first word of "strip", so it can be a program name with args. | 
 | 5078 | set dummy strip; ac_word=$2 | 
 | 5079 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 5080 | echo "configure:5081: checking for $ac_word" >&5 | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5081 | if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then | 
 | 5082 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
 | 5083 | else | 
 | 5084 |   if test -n "$STRIP"; then | 
 | 5085 |   ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | 
 | 5086 | else | 
| Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame] | 5087 |   IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":" | 
 | 5088 |   ac_dummy="$PATH" | 
 | 5089 |   for ac_dir in $ac_dummy; do | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5090 |     test -z "$ac_dir" && ac_dir=. | 
 | 5091 |     if test -f $ac_dir/$ac_word; then | 
 | 5092 |       ac_cv_prog_STRIP="strip" | 
 | 5093 |       break | 
 | 5094 |     fi | 
 | 5095 |   done | 
 | 5096 |   IFS="$ac_save_ifs" | 
 | 5097 |   test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":" | 
 | 5098 | fi | 
 | 5099 | fi | 
 | 5100 | STRIP="$ac_cv_prog_STRIP" | 
 | 5101 | if test -n "$STRIP"; then | 
 | 5102 |   echo "$ac_t""$STRIP" 1>&6 | 
 | 5103 | else | 
 | 5104 |   echo "$ac_t""no" 1>&6 | 
 | 5105 | fi | 
 | 5106 |  | 
 | 5107 | else | 
 | 5108 |   STRIP=":" | 
 | 5109 | fi | 
 | 5110 | fi | 
 | 5111 |  | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5112 | # Find a good install program.  We prefer a C program (faster), | 
 | 5113 | # so one script is as good as another.  But avoid the broken or | 
 | 5114 | # incompatible versions: | 
 | 5115 | # SysV /etc/install, /usr/sbin/install | 
 | 5116 | # SunOS /usr/etc/install | 
 | 5117 | # IRIX /sbin/install | 
 | 5118 | # AIX /bin/install | 
| Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame] | 5119 | # 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] | 5120 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | 
 | 5121 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | 
 | 5122 | # ./install, which can be erroneously created by make from ./install.sh. | 
 | 5123 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 5124 | echo "configure:5125: checking for a BSD compatible install" >&5 | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5125 | if test -z "$INSTALL"; then | 
 | 5126 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then | 
 | 5127 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
 | 5128 | else | 
| Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame] | 5129 |     IFS="${IFS= 	}"; ac_save_IFS="$IFS"; IFS=":" | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5130 |   for ac_dir in $PATH; do | 
 | 5131 |     # Account for people who put trailing slashes in PATH elements. | 
 | 5132 |     case "$ac_dir/" in | 
 | 5133 |     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; | 
 | 5134 |     *) | 
 | 5135 |       # 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] | 5136 |       # Don't use installbsd from OSF since it installs stuff as root | 
 | 5137 |       # by default. | 
 | 5138 |       for ac_prog in ginstall scoinst install; do | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5139 |         if test -f $ac_dir/$ac_prog; then | 
 | 5140 | 	  if test $ac_prog = install && | 
 | 5141 |             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then | 
 | 5142 | 	    # AIX install.  It has an incompatible calling convention. | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5143 | 	    : | 
 | 5144 | 	  else | 
 | 5145 | 	    ac_cv_path_install="$ac_dir/$ac_prog -c" | 
 | 5146 | 	    break 2 | 
 | 5147 | 	  fi | 
 | 5148 | 	fi | 
 | 5149 |       done | 
 | 5150 |       ;; | 
 | 5151 |     esac | 
 | 5152 |   done | 
| Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 5153 |   IFS="$ac_save_IFS" | 
 | 5154 |  | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5155 | fi | 
| Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 5156 |   if test "${ac_cv_path_install+set}" = set; then | 
 | 5157 |     INSTALL="$ac_cv_path_install" | 
 | 5158 |   else | 
 | 5159 |     # As a last resort, use the slow shell script.  We don't cache a | 
 | 5160 |     # path for INSTALL within a source directory, because that will | 
 | 5161 |     # break other packages using the cache if that directory is | 
 | 5162 |     # removed, or if the path is relative. | 
 | 5163 |     INSTALL="$ac_install_sh" | 
 | 5164 |   fi | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5165 | fi | 
 | 5166 | echo "$ac_t""$INSTALL" 1>&6 | 
 | 5167 |  | 
 | 5168 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | 
 | 5169 | # It thinks the first close brace ends the variable substitution. | 
 | 5170 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | 
 | 5171 |  | 
| Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame] | 5172 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' | 
 | 5173 |  | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5174 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | 
 | 5175 |  | 
| Theodore Ts'o | 6c13352 | 1999-07-03 20:37:03 +0000 | [diff] [blame] | 5176 | # See if we need a separate native compiler. | 
 | 5177 | if test $cross_compiling = no; then | 
 | 5178 |   BUILD_CC="$CC" | 
 | 5179 |    | 
 | 5180 | else | 
 | 5181 |   for ac_prog in gcc cc | 
 | 5182 | do | 
 | 5183 | # Extract the first word of "$ac_prog", so it can be a program name with args. | 
 | 5184 | set dummy $ac_prog; ac_word=$2 | 
 | 5185 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 5186 | echo "configure:5187: checking for $ac_word" >&5 | 
| Theodore Ts'o | 6c13352 | 1999-07-03 20:37:03 +0000 | [diff] [blame] | 5187 | if eval "test \"`echo '$''{'ac_cv_prog_BUILD_CC'+set}'`\" = set"; then | 
 | 5188 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
 | 5189 | else | 
 | 5190 |   if test -n "$BUILD_CC"; then | 
 | 5191 |   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. | 
 | 5192 | else | 
 | 5193 |   IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":" | 
 | 5194 |   ac_dummy="$PATH" | 
 | 5195 |   for ac_dir in $ac_dummy; do | 
 | 5196 |     test -z "$ac_dir" && ac_dir=. | 
 | 5197 |     if test -f $ac_dir/$ac_word; then | 
 | 5198 |       ac_cv_prog_BUILD_CC="$ac_prog" | 
 | 5199 |       break | 
 | 5200 |     fi | 
 | 5201 |   done | 
 | 5202 |   IFS="$ac_save_ifs" | 
 | 5203 | fi | 
 | 5204 | fi | 
 | 5205 | BUILD_CC="$ac_cv_prog_BUILD_CC" | 
 | 5206 | if test -n "$BUILD_CC"; then | 
 | 5207 |   echo "$ac_t""$BUILD_CC" 1>&6 | 
 | 5208 | else | 
 | 5209 |   echo "$ac_t""no" 1>&6 | 
 | 5210 | fi | 
 | 5211 |  | 
 | 5212 | test -n "$BUILD_CC" && break | 
 | 5213 | done | 
 | 5214 |  | 
 | 5215 | fi | 
| Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 5216 | 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] | 5217 | do | 
| Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 5218 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5219 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 5220 | echo "configure:5221: checking for $ac_hdr" >&5 | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5221 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 
 | 5222 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
 | 5223 | else | 
 | 5224 |   cat > conftest.$ac_ext <<EOF | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 5225 | #line 5226 "configure" | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5226 | #include "confdefs.h" | 
 | 5227 | #include <$ac_hdr> | 
 | 5228 | EOF | 
| Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 5229 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 5230 | { (eval echo configure:5231: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 
| Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame] | 5231 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5232 | if test -z "$ac_err"; then | 
 | 5233 |   rm -rf conftest* | 
 | 5234 |   eval "ac_cv_header_$ac_safe=yes" | 
 | 5235 | else | 
 | 5236 |   echo "$ac_err" >&5 | 
| Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 5237 |   echo "configure: failed program was:" >&5 | 
 | 5238 |   cat conftest.$ac_ext >&5 | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5239 |   rm -rf conftest* | 
 | 5240 |   eval "ac_cv_header_$ac_safe=no" | 
 | 5241 | fi | 
 | 5242 | rm -f conftest* | 
 | 5243 | fi | 
 | 5244 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | 
 | 5245 |   echo "$ac_t""yes" 1>&6 | 
| Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 5246 |     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5247 |   cat >> confdefs.h <<EOF | 
 | 5248 | #define $ac_tr_hdr 1 | 
 | 5249 | EOF | 
 | 5250 |   | 
 | 5251 | else | 
 | 5252 |   echo "$ac_t""no" 1>&6 | 
 | 5253 | fi | 
 | 5254 | done | 
 | 5255 |  | 
 | 5256 | echo $ac_n "checking for vprintf""... $ac_c" 1>&6 | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 5257 | echo "configure:5258: checking for vprintf" >&5 | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5258 | if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then | 
 | 5259 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
 | 5260 | else | 
 | 5261 |   cat > conftest.$ac_ext <<EOF | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 5262 | #line 5263 "configure" | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5263 | #include "confdefs.h" | 
 | 5264 | /* System header to define __stub macros and hopefully few prototypes, | 
 | 5265 |     which can conflict with char vprintf(); below.  */ | 
 | 5266 | #include <assert.h> | 
 | 5267 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
| Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 5268 | /* We use char because int might match the return type of a gcc2 | 
 | 5269 |     builtin and then its argument prototype would still apply.  */ | 
 | 5270 | char vprintf(); | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5271 |  | 
| Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 5272 | int main() { | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5273 |  | 
 | 5274 | /* The GNU C library defines this for functions which it implements | 
 | 5275 |     to always fail with ENOSYS.  Some functions are actually named | 
 | 5276 |     something starting with __ and the normal name is an alias.  */ | 
 | 5277 | #if defined (__stub_vprintf) || defined (__stub___vprintf) | 
 | 5278 | choke me | 
 | 5279 | #else | 
 | 5280 | vprintf(); | 
 | 5281 | #endif | 
 | 5282 |  | 
 | 5283 | ; return 0; } | 
 | 5284 | EOF | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 5285 | if { (eval echo configure:5286: \"$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] | 5286 |   rm -rf conftest* | 
 | 5287 |   eval "ac_cv_func_vprintf=yes" | 
 | 5288 | else | 
| Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 5289 |   echo "configure: failed program was:" >&5 | 
 | 5290 |   cat conftest.$ac_ext >&5 | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5291 |   rm -rf conftest* | 
 | 5292 |   eval "ac_cv_func_vprintf=no" | 
 | 5293 | fi | 
 | 5294 | rm -f conftest* | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5295 | fi | 
| Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 5296 |  | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5297 | if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then | 
 | 5298 |   echo "$ac_t""yes" 1>&6 | 
 | 5299 |   cat >> confdefs.h <<\EOF | 
 | 5300 | #define HAVE_VPRINTF 1 | 
 | 5301 | EOF | 
 | 5302 |  | 
 | 5303 | else | 
 | 5304 |   echo "$ac_t""no" 1>&6 | 
 | 5305 | fi | 
 | 5306 |  | 
 | 5307 | if test "$ac_cv_func_vprintf" != yes; then | 
 | 5308 | echo $ac_n "checking for _doprnt""... $ac_c" 1>&6 | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 5309 | echo "configure:5310: checking for _doprnt" >&5 | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5310 | if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then | 
 | 5311 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
 | 5312 | else | 
 | 5313 |   cat > conftest.$ac_ext <<EOF | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 5314 | #line 5315 "configure" | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5315 | #include "confdefs.h" | 
 | 5316 | /* System header to define __stub macros and hopefully few prototypes, | 
 | 5317 |     which can conflict with char _doprnt(); below.  */ | 
 | 5318 | #include <assert.h> | 
 | 5319 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
| Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 5320 | /* We use char because int might match the return type of a gcc2 | 
 | 5321 |     builtin and then its argument prototype would still apply.  */ | 
 | 5322 | char _doprnt(); | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5323 |  | 
| Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 5324 | int main() { | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5325 |  | 
 | 5326 | /* The GNU C library defines this for functions which it implements | 
 | 5327 |     to always fail with ENOSYS.  Some functions are actually named | 
 | 5328 |     something starting with __ and the normal name is an alias.  */ | 
 | 5329 | #if defined (__stub__doprnt) || defined (__stub____doprnt) | 
 | 5330 | choke me | 
 | 5331 | #else | 
 | 5332 | _doprnt(); | 
 | 5333 | #endif | 
 | 5334 |  | 
 | 5335 | ; return 0; } | 
 | 5336 | EOF | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 5337 | if { (eval echo configure:5338: \"$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] | 5338 |   rm -rf conftest* | 
 | 5339 |   eval "ac_cv_func__doprnt=yes" | 
 | 5340 | else | 
| Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 5341 |   echo "configure: failed program was:" >&5 | 
 | 5342 |   cat conftest.$ac_ext >&5 | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5343 |   rm -rf conftest* | 
 | 5344 |   eval "ac_cv_func__doprnt=no" | 
 | 5345 | fi | 
 | 5346 | rm -f conftest* | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5347 | fi | 
| Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 5348 |  | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5349 | if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then | 
 | 5350 |   echo "$ac_t""yes" 1>&6 | 
 | 5351 |   cat >> confdefs.h <<\EOF | 
 | 5352 | #define HAVE_DOPRNT 1 | 
 | 5353 | EOF | 
 | 5354 |  | 
 | 5355 | else | 
 | 5356 |   echo "$ac_t""no" 1>&6 | 
 | 5357 | fi | 
 | 5358 |  | 
 | 5359 | fi | 
 | 5360 |  | 
| Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 5361 | echo $ac_n "checking whether d_reclen declared in dirent""... $ac_c" 1>&6 | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 5362 | echo "configure:5363: checking whether d_reclen declared in dirent" >&5 | 
| Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 5363 | 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] | 5364 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
 | 5365 | else | 
 | 5366 |   cat > conftest.$ac_ext <<EOF | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 5367 | #line 5368 "configure" | 
| Theodore Ts'o | b0b9c4d | 1997-10-20 23:36:30 +0000 | [diff] [blame] | 5368 | #include "confdefs.h" | 
| Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 5369 | #include <dirent.h> | 
 | 5370 | int main() { | 
 | 5371 | struct dirent de; de.d_reclen = 0;  | 
 | 5372 | ; return 0; } | 
 | 5373 | EOF | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 5374 | if { (eval echo configure:5375: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 
| Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 5375 |   rm -rf conftest* | 
 | 5376 |   e2fsprogs_cv_have_d_reclen_dirent=yes | 
 | 5377 | else | 
 | 5378 |   echo "configure: failed program was:" >&5 | 
 | 5379 |   cat conftest.$ac_ext >&5 | 
 | 5380 |   rm -rf conftest* | 
 | 5381 |   e2fsprogs_cv_have_d_reclen_dirent=no | 
 | 5382 | fi | 
 | 5383 | rm -f conftest* | 
 | 5384 | fi | 
 | 5385 |  | 
 | 5386 | echo "$ac_t""$e2fsprogs_cv_have_d_reclen_dirent" 1>&6 | 
 | 5387 | if test "$e2fsprogs_cv_have_d_reclen_dirent" = yes; then | 
 | 5388 |    cat >> confdefs.h <<\EOF | 
 | 5389 | #define HAVE_RECLEN_DIRENT 1 | 
 | 5390 | EOF | 
 | 5391 |  | 
 | 5392 | fi | 
 | 5393 | echo $ac_n "checking whether ssize_t declared""... $ac_c" 1>&6 | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 5394 | echo "configure:5395: checking whether ssize_t declared" >&5 | 
| Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 5395 | if eval "test \"`echo '$''{'e2fsprogs_cv_have_ssize_t'+set}'`\" = set"; then | 
 | 5396 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
 | 5397 | else | 
 | 5398 |   cat > conftest.$ac_ext <<EOF | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 5399 | #line 5400 "configure" | 
| Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 5400 | #include "confdefs.h" | 
 | 5401 | #include <sys/types.h> | 
 | 5402 | int main() { | 
 | 5403 | ssize_t a = 0;  | 
 | 5404 | ; return 0; } | 
 | 5405 | EOF | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 5406 | if { (eval echo configure:5407: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 
| Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 5407 |   rm -rf conftest* | 
 | 5408 |   e2fsprogs_cv_have_ssize_t=yes | 
 | 5409 | else | 
 | 5410 |   echo "configure: failed program was:" >&5 | 
 | 5411 |   cat conftest.$ac_ext >&5 | 
 | 5412 |   rm -rf conftest* | 
 | 5413 |   e2fsprogs_cv_have_ssize_t=no | 
 | 5414 | fi | 
 | 5415 | rm -f conftest* | 
 | 5416 | fi | 
 | 5417 |  | 
 | 5418 | echo "$ac_t""$e2fsprogs_cv_have_ssize_t" 1>&6 | 
 | 5419 | if test "$e2fsprogs_cv_have_ssize_t" = yes; then | 
 | 5420 |    cat >> confdefs.h <<\EOF | 
 | 5421 | #define HAVE_TYPE_SSIZE_T 1 | 
 | 5422 | EOF | 
 | 5423 |  | 
 | 5424 | fi | 
 | 5425 | echo $ac_n "checking whether llseek declared in unistd.h""... $ac_c" 1>&6 | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 5426 | echo "configure:5427: checking whether llseek declared in unistd.h" >&5 | 
| Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 5427 | if eval "test \"`echo '$''{'e2fsprogs_cv_have_llseek_prototype'+set}'`\" = set"; then | 
 | 5428 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
 | 5429 | else | 
 | 5430 |   cat > conftest.$ac_ext <<EOF | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 5431 | #line 5432 "configure" | 
| Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 5432 | #include "confdefs.h" | 
| Theodore Ts'o | b0b9c4d | 1997-10-20 23:36:30 +0000 | [diff] [blame] | 5433 | #include <unistd.h> | 
 | 5434 | int main() { | 
 | 5435 | extern int llseek(int); | 
 | 5436 | ; return 0; } | 
 | 5437 | EOF | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 5438 | if { (eval echo configure:5439: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 
| Theodore Ts'o | b0b9c4d | 1997-10-20 23:36:30 +0000 | [diff] [blame] | 5439 |   rm -rf conftest* | 
 | 5440 |   e2fsprogs_cv_have_llseek_prototype=no | 
 | 5441 | else | 
 | 5442 |   echo "configure: failed program was:" >&5 | 
 | 5443 |   cat conftest.$ac_ext >&5 | 
 | 5444 |   rm -rf conftest* | 
 | 5445 |   e2fsprogs_cv_have_llseek_prototype=yes | 
 | 5446 | fi | 
 | 5447 | rm -f conftest* | 
 | 5448 | fi | 
 | 5449 |  | 
 | 5450 | echo "$ac_t""$e2fsprogs_cv_have_llseek_prototype" 1>&6 | 
 | 5451 | if test "$e2fsprogs_cv_have_llseek_prototype" = yes; then | 
 | 5452 |    cat >> confdefs.h <<\EOF | 
 | 5453 | #define HAVE_LLSEEK_PROTOTYPE 1 | 
 | 5454 | EOF | 
 | 5455 |  | 
 | 5456 | fi | 
| Theodore Ts'o | 6928adc | 2000-05-25 23:28:50 +0000 | [diff] [blame] | 5457 | echo $ac_n "checking whether lseek64 declared in unistd.h""... $ac_c" 1>&6 | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 5458 | echo "configure:5459: checking whether lseek64 declared in unistd.h" >&5 | 
| Theodore Ts'o | 6928adc | 2000-05-25 23:28:50 +0000 | [diff] [blame] | 5459 | if eval "test \"`echo '$''{'e2fsprogs_cv_have_lseek64_prototype'+set}'`\" = set"; then | 
 | 5460 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
 | 5461 | else | 
 | 5462 |   cat > conftest.$ac_ext <<EOF | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 5463 | #line 5464 "configure" | 
| Theodore Ts'o | 6928adc | 2000-05-25 23:28:50 +0000 | [diff] [blame] | 5464 | #include "confdefs.h" | 
 | 5465 | #define _LARGEFILE_SOURCE | 
 | 5466 | #define _LARGEFILE64_SOURCE | 
 | 5467 | #include <unistd.h> | 
 | 5468 | int main() { | 
 | 5469 | extern int lseek64(int); | 
 | 5470 | ; return 0; } | 
 | 5471 | EOF | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 5472 | if { (eval echo configure:5473: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 
| Theodore Ts'o | 6928adc | 2000-05-25 23:28:50 +0000 | [diff] [blame] | 5473 |   rm -rf conftest* | 
 | 5474 |   e2fsprogs_cv_have_lseek64_prototype=no | 
 | 5475 | else | 
 | 5476 |   echo "configure: failed program was:" >&5 | 
 | 5477 |   cat conftest.$ac_ext >&5 | 
 | 5478 |   rm -rf conftest* | 
 | 5479 |   e2fsprogs_cv_have_lseek64_prototype=yes | 
 | 5480 | fi | 
 | 5481 | rm -f conftest* | 
 | 5482 | fi | 
 | 5483 |  | 
 | 5484 | echo "$ac_t""$e2fsprogs_cv_have_lseek64_prototype" 1>&6 | 
 | 5485 | if test "$e2fsprogs_cv_have_lseek64_prototype" = yes; then | 
 | 5486 |    cat >> confdefs.h <<\EOF | 
 | 5487 | #define HAVE_LSEEK64_PROTOTYPE 1 | 
 | 5488 | EOF | 
 | 5489 |  | 
 | 5490 | fi | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5491 | if test "$cross_compiling" = yes -a "$ac_cv_sizeof_long" = ""; then | 
 | 5492 |   # if cross-compiling, with no cached values, just assume something common.  | 
 | 5493 |   ac_cv_sizeof_short=2 | 
 | 5494 |   ac_cv_sizeof_int=4 | 
 | 5495 |   ac_cv_sizeof_long=4 | 
| Theodore Ts'o | 6c13352 | 1999-07-03 20:37:03 +0000 | [diff] [blame] | 5496 |   ac_cv_sizeof_long_long=8 | 
 | 5497 |   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] | 5498 | fi | 
 | 5499 | echo $ac_n "checking size of short""... $ac_c" 1>&6 | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 5500 | echo "configure:5501: checking size of short" >&5 | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5501 | if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then | 
 | 5502 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
 | 5503 | else | 
 | 5504 |   if test "$cross_compiling" = yes; then | 
 | 5505 |     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } | 
 | 5506 | else | 
| Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 5507 |   cat > conftest.$ac_ext <<EOF | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 5508 | #line 5509 "configure" | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5509 | #include "confdefs.h" | 
 | 5510 | #include <stdio.h> | 
| Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 5511 | #include <sys/types.h> | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5512 | main() | 
 | 5513 | { | 
 | 5514 |   FILE *f=fopen("conftestval", "w"); | 
 | 5515 |   if (!f) exit(1); | 
 | 5516 |   fprintf(f, "%d\n", sizeof(short)); | 
 | 5517 |   exit(0); | 
 | 5518 | } | 
 | 5519 | EOF | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 5520 | if { (eval echo configure:5521: \"$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] | 5521 | then | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5522 |   ac_cv_sizeof_short=`cat conftestval` | 
 | 5523 | else | 
| Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 5524 |   echo "configure: failed program was:" >&5 | 
 | 5525 |   cat conftest.$ac_ext >&5 | 
 | 5526 |   rm -fr conftest* | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5527 |   ac_cv_sizeof_short=0 | 
 | 5528 | fi | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5529 | rm -fr conftest* | 
 | 5530 | fi | 
| Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 5531 |  | 
 | 5532 | fi | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5533 | echo "$ac_t""$ac_cv_sizeof_short" 1>&6 | 
 | 5534 | cat >> confdefs.h <<EOF | 
 | 5535 | #define SIZEOF_SHORT $ac_cv_sizeof_short | 
 | 5536 | EOF | 
 | 5537 |  | 
 | 5538 |  | 
 | 5539 | echo $ac_n "checking size of int""... $ac_c" 1>&6 | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 5540 | echo "configure:5541: checking size of int" >&5 | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5541 | if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then | 
 | 5542 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
 | 5543 | else | 
 | 5544 |   if test "$cross_compiling" = yes; then | 
 | 5545 |     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } | 
 | 5546 | else | 
| Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 5547 |   cat > conftest.$ac_ext <<EOF | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 5548 | #line 5549 "configure" | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5549 | #include "confdefs.h" | 
 | 5550 | #include <stdio.h> | 
| Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 5551 | #include <sys/types.h> | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5552 | main() | 
 | 5553 | { | 
 | 5554 |   FILE *f=fopen("conftestval", "w"); | 
 | 5555 |   if (!f) exit(1); | 
 | 5556 |   fprintf(f, "%d\n", sizeof(int)); | 
 | 5557 |   exit(0); | 
 | 5558 | } | 
 | 5559 | EOF | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 5560 | if { (eval echo configure:5561: \"$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] | 5561 | then | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5562 |   ac_cv_sizeof_int=`cat conftestval` | 
 | 5563 | else | 
| Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 5564 |   echo "configure: failed program was:" >&5 | 
 | 5565 |   cat conftest.$ac_ext >&5 | 
 | 5566 |   rm -fr conftest* | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5567 |   ac_cv_sizeof_int=0 | 
 | 5568 | fi | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5569 | rm -fr conftest* | 
 | 5570 | fi | 
| Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 5571 |  | 
 | 5572 | fi | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5573 | echo "$ac_t""$ac_cv_sizeof_int" 1>&6 | 
 | 5574 | cat >> confdefs.h <<EOF | 
 | 5575 | #define SIZEOF_INT $ac_cv_sizeof_int | 
 | 5576 | EOF | 
 | 5577 |  | 
 | 5578 |  | 
 | 5579 | echo $ac_n "checking size of long""... $ac_c" 1>&6 | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 5580 | echo "configure:5581: checking size of long" >&5 | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5581 | if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then | 
 | 5582 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
 | 5583 | else | 
 | 5584 |   if test "$cross_compiling" = yes; then | 
 | 5585 |     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } | 
 | 5586 | else | 
| Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 5587 |   cat > conftest.$ac_ext <<EOF | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 5588 | #line 5589 "configure" | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5589 | #include "confdefs.h" | 
 | 5590 | #include <stdio.h> | 
| Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 5591 | #include <sys/types.h> | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5592 | main() | 
 | 5593 | { | 
 | 5594 |   FILE *f=fopen("conftestval", "w"); | 
 | 5595 |   if (!f) exit(1); | 
 | 5596 |   fprintf(f, "%d\n", sizeof(long)); | 
 | 5597 |   exit(0); | 
 | 5598 | } | 
 | 5599 | EOF | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 5600 | if { (eval echo configure:5601: \"$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] | 5601 | then | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5602 |   ac_cv_sizeof_long=`cat conftestval` | 
 | 5603 | else | 
| Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 5604 |   echo "configure: failed program was:" >&5 | 
 | 5605 |   cat conftest.$ac_ext >&5 | 
 | 5606 |   rm -fr conftest* | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5607 |   ac_cv_sizeof_long=0 | 
 | 5608 | fi | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5609 | rm -fr conftest* | 
 | 5610 | fi | 
| Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 5611 |  | 
 | 5612 | fi | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5613 | echo "$ac_t""$ac_cv_sizeof_long" 1>&6 | 
 | 5614 | cat >> confdefs.h <<EOF | 
 | 5615 | #define SIZEOF_LONG $ac_cv_sizeof_long | 
 | 5616 | EOF | 
 | 5617 |  | 
 | 5618 |  | 
| Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 5619 | echo $ac_n "checking size of long long""... $ac_c" 1>&6 | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 5620 | echo "configure:5621: checking size of long long" >&5 | 
| Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 5621 | if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then | 
 | 5622 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
 | 5623 | else | 
 | 5624 |   if test "$cross_compiling" = yes; then | 
 | 5625 |     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } | 
 | 5626 | else | 
| Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 5627 |   cat > conftest.$ac_ext <<EOF | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 5628 | #line 5629 "configure" | 
| Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 5629 | #include "confdefs.h" | 
 | 5630 | #include <stdio.h> | 
| Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 5631 | #include <sys/types.h> | 
| Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 5632 | main() | 
 | 5633 | { | 
 | 5634 |   FILE *f=fopen("conftestval", "w"); | 
 | 5635 |   if (!f) exit(1); | 
 | 5636 |   fprintf(f, "%d\n", sizeof(long long)); | 
 | 5637 |   exit(0); | 
 | 5638 | } | 
 | 5639 | EOF | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 5640 | if { (eval echo configure:5641: \"$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] | 5641 | then | 
| Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 5642 |   ac_cv_sizeof_long_long=`cat conftestval` | 
 | 5643 | else | 
| Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 5644 |   echo "configure: failed program was:" >&5 | 
 | 5645 |   cat conftest.$ac_ext >&5 | 
 | 5646 |   rm -fr conftest* | 
| Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 5647 |   ac_cv_sizeof_long_long=0 | 
 | 5648 | fi | 
| Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 5649 | rm -fr conftest* | 
 | 5650 | fi | 
| Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 5651 |  | 
 | 5652 | fi | 
| Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 5653 | echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6 | 
 | 5654 | cat >> confdefs.h <<EOF | 
 | 5655 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | 
 | 5656 | EOF | 
 | 5657 |  | 
 | 5658 |  | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5659 | SIZEOF_SHORT=$ac_cv_sizeof_short | 
 | 5660 | SIZEOF_INT=$ac_cv_sizeof_int | 
 | 5661 | SIZEOF_LONG=$ac_cv_sizeof_long | 
| Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 5662 | SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long | 
 | 5663 |  | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5664 |  | 
 | 5665 |  | 
 | 5666 |  | 
| Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 5667 | echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6 | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 5668 | echo "configure:5669: checking whether byte ordering is bigendian" >&5 | 
| Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 5669 | if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then | 
 | 5670 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
 | 5671 | else | 
 | 5672 |   ac_cv_c_bigendian=unknown | 
 | 5673 | # See if sys/param.h defines the BYTE_ORDER macro. | 
 | 5674 | cat > conftest.$ac_ext <<EOF | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 5675 | #line 5676 "configure" | 
| Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 5676 | #include "confdefs.h" | 
 | 5677 | #include <sys/types.h> | 
 | 5678 | #include <sys/param.h> | 
 | 5679 | int main() { | 
 | 5680 |  | 
 | 5681 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN | 
 | 5682 |  bogus endian macros | 
 | 5683 | #endif | 
 | 5684 | ; return 0; } | 
 | 5685 | EOF | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 5686 | if { (eval echo configure:5687: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 
| Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 5687 |   rm -rf conftest* | 
 | 5688 |   # It does; now see whether it defined to BIG_ENDIAN or not. | 
 | 5689 | cat > conftest.$ac_ext <<EOF | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 5690 | #line 5691 "configure" | 
| Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 5691 | #include "confdefs.h" | 
 | 5692 | #include <sys/types.h> | 
 | 5693 | #include <sys/param.h> | 
 | 5694 | int main() { | 
 | 5695 |  | 
 | 5696 | #if BYTE_ORDER != BIG_ENDIAN | 
 | 5697 |  not big endian | 
 | 5698 | #endif | 
 | 5699 | ; return 0; } | 
 | 5700 | EOF | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 5701 | if { (eval echo configure:5702: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 
| Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 5702 |   rm -rf conftest* | 
 | 5703 |   ac_cv_c_bigendian=yes | 
 | 5704 | else | 
 | 5705 |   echo "configure: failed program was:" >&5 | 
 | 5706 |   cat conftest.$ac_ext >&5 | 
 | 5707 |   rm -rf conftest* | 
 | 5708 |   ac_cv_c_bigendian=no | 
 | 5709 | fi | 
 | 5710 | rm -f conftest* | 
 | 5711 | else | 
 | 5712 |   echo "configure: failed program was:" >&5 | 
 | 5713 |   cat conftest.$ac_ext >&5 | 
 | 5714 | fi | 
 | 5715 | rm -f conftest* | 
 | 5716 | if test $ac_cv_c_bigendian = unknown; then | 
 | 5717 | if test "$cross_compiling" = yes; then | 
 | 5718 |     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; } | 
 | 5719 | else | 
 | 5720 |   cat > conftest.$ac_ext <<EOF | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 5721 | #line 5722 "configure" | 
| Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 5722 | #include "confdefs.h" | 
 | 5723 | main () { | 
 | 5724 |   /* Are we little or big endian?  From Harbison&Steele.  */ | 
 | 5725 |   union | 
 | 5726 |   { | 
 | 5727 |     long l; | 
 | 5728 |     char c[sizeof (long)]; | 
 | 5729 |   } u; | 
 | 5730 |   u.l = 1; | 
 | 5731 |   exit (u.c[sizeof (long) - 1] == 1); | 
 | 5732 | } | 
 | 5733 | EOF | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 5734 | if { (eval echo configure:5735: \"$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] | 5735 | then | 
 | 5736 |   ac_cv_c_bigendian=no | 
 | 5737 | else | 
 | 5738 |   echo "configure: failed program was:" >&5 | 
 | 5739 |   cat conftest.$ac_ext >&5 | 
 | 5740 |   rm -fr conftest* | 
 | 5741 |   ac_cv_c_bigendian=yes | 
 | 5742 | fi | 
 | 5743 | rm -fr conftest* | 
 | 5744 | fi | 
 | 5745 |  | 
 | 5746 | fi | 
 | 5747 | fi | 
 | 5748 |  | 
 | 5749 | echo "$ac_t""$ac_cv_c_bigendian" 1>&6 | 
 | 5750 | if test $ac_cv_c_bigendian = yes; then | 
 | 5751 |   cat >> confdefs.h <<\EOF | 
 | 5752 | #define WORDS_BIGENDIAN 1 | 
 | 5753 | EOF | 
 | 5754 |  | 
 | 5755 | fi | 
 | 5756 |  | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5757 | echo $ac_n "checking whether struct stat has a st_flags field""... $ac_c" 1>&6 | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 5758 | echo "configure:5759: checking whether struct stat has a st_flags field" >&5 | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5759 | if eval "test \"`echo '$''{'e2fsprogs_cv_struct_st_flags'+set}'`\" = set"; then | 
 | 5760 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
 | 5761 | else | 
 | 5762 |   cat > conftest.$ac_ext <<EOF | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 5763 | #line 5764 "configure" | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5764 | #include "confdefs.h" | 
 | 5765 | #include <sys/stat.h> | 
| Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 5766 | int main() { | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5767 | struct stat stat; stat.st_flags = 0; | 
 | 5768 | ; return 0; } | 
 | 5769 | EOF | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 5770 | if { (eval echo configure:5771: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5771 |   rm -rf conftest* | 
 | 5772 |   e2fsprogs_cv_struct_st_flags=yes | 
 | 5773 | else | 
| Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 5774 |   echo "configure: failed program was:" >&5 | 
 | 5775 |   cat conftest.$ac_ext >&5 | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5776 |   rm -rf conftest* | 
 | 5777 |   e2fsprogs_cv_struct_st_flags=no | 
 | 5778 | fi | 
 | 5779 | rm -f conftest* | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5780 | fi | 
 | 5781 |  | 
 | 5782 | echo "$ac_t""$e2fsprogs_cv_struct_st_flags" 1>&6 | 
 | 5783 | if test "$e2fsprogs_cv_struct_st_flags" = yes; then | 
| Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 5784 |   echo $ac_n "checking whether st_flags field is useful""... $ac_c" 1>&6 | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 5785 | echo "configure:5786: checking whether st_flags field is useful" >&5 | 
| Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 5786 |   if eval "test \"`echo '$''{'e2fsprogs_cv_struct_st_flags_immut'+set}'`\" = set"; then | 
 | 5787 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
 | 5788 | else | 
 | 5789 |   cat > conftest.$ac_ext <<EOF | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 5790 | #line 5791 "configure" | 
| Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 5791 | #include "confdefs.h" | 
 | 5792 | #include <sys/stat.h> | 
 | 5793 | int main() { | 
 | 5794 | struct stat stat; stat.st_flags |= UF_IMMUTABLE; | 
 | 5795 | ; return 0; } | 
 | 5796 | EOF | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 5797 | if { (eval echo configure:5798: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 
| Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 5798 |   rm -rf conftest* | 
 | 5799 |   e2fsprogs_cv_struct_st_flags_immut=yes | 
 | 5800 | else | 
 | 5801 |   echo "configure: failed program was:" >&5 | 
 | 5802 |   cat conftest.$ac_ext >&5 | 
 | 5803 |   rm -rf conftest* | 
 | 5804 |   e2fsprogs_cv_struct_st_flags_immut=no | 
 | 5805 | fi | 
 | 5806 | rm -f conftest* | 
 | 5807 | fi | 
 | 5808 |  | 
 | 5809 |   echo "$ac_t""$e2fsprogs_cv_struct_st_flags_immut" 1>&6 | 
 | 5810 |   if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then | 
 | 5811 | 	  cat >> confdefs.h <<\EOF | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5812 | #define HAVE_STAT_FLAGS 1 | 
 | 5813 | EOF | 
 | 5814 |  | 
| Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 5815 |   fi | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5816 | fi | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 5817 | for ac_func in chflags getrusage llseek lseek64 open64 getmntinfo strtoull strcasecmp srandom fchown mallinfo fdatasync strnlen strptime sysconf pathconf | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5818 | do | 
 | 5819 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 5820 | echo "configure:5821: checking for $ac_func" >&5 | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5821 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | 
 | 5822 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
 | 5823 | else | 
 | 5824 |   cat > conftest.$ac_ext <<EOF | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 5825 | #line 5826 "configure" | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5826 | #include "confdefs.h" | 
 | 5827 | /* System header to define __stub macros and hopefully few prototypes, | 
 | 5828 |     which can conflict with char $ac_func(); below.  */ | 
 | 5829 | #include <assert.h> | 
 | 5830 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
| Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 5831 | /* We use char because int might match the return type of a gcc2 | 
 | 5832 |     builtin and then its argument prototype would still apply.  */ | 
 | 5833 | char $ac_func(); | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5834 |  | 
| Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 5835 | int main() { | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5836 |  | 
 | 5837 | /* The GNU C library defines this for functions which it implements | 
 | 5838 |     to always fail with ENOSYS.  Some functions are actually named | 
 | 5839 |     something starting with __ and the normal name is an alias.  */ | 
 | 5840 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | 
 | 5841 | choke me | 
 | 5842 | #else | 
 | 5843 | $ac_func(); | 
 | 5844 | #endif | 
 | 5845 |  | 
 | 5846 | ; return 0; } | 
 | 5847 | EOF | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 5848 | if { (eval echo configure:5849: \"$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] | 5849 |   rm -rf conftest* | 
 | 5850 |   eval "ac_cv_func_$ac_func=yes" | 
 | 5851 | else | 
| Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 5852 |   echo "configure: failed program was:" >&5 | 
 | 5853 |   cat conftest.$ac_ext >&5 | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5854 |   rm -rf conftest* | 
 | 5855 |   eval "ac_cv_func_$ac_func=no" | 
 | 5856 | fi | 
 | 5857 | rm -f conftest* | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5858 | fi | 
| Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 5859 |  | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5860 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | 
 | 5861 |   echo "$ac_t""yes" 1>&6 | 
| Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 5862 |     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5863 |   cat >> confdefs.h <<EOF | 
 | 5864 | #define $ac_tr_func 1 | 
 | 5865 | EOF | 
 | 5866 |   | 
 | 5867 | else | 
 | 5868 |   echo "$ac_t""no" 1>&6 | 
 | 5869 | fi | 
 | 5870 | done | 
 | 5871 |  | 
| Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 5872 | SOCKET_LIB='' | 
| Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 5873 | echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6 | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 5874 | echo "configure:5875: checking for socket in -lsocket" >&5 | 
| Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 5875 | ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'` | 
 | 5876 | 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] | 5877 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
 | 5878 | else | 
 | 5879 |   ac_save_LIBS="$LIBS" | 
 | 5880 | LIBS="-lsocket  $LIBS" | 
 | 5881 | cat > conftest.$ac_ext <<EOF | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 5882 | #line 5883 "configure" | 
| Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 5883 | #include "confdefs.h" | 
| Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 5884 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 5885 | /* We use char because int might match the return type of a gcc2 | 
 | 5886 |     builtin and then its argument prototype would still apply.  */ | 
 | 5887 | char socket(); | 
| Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 5888 |  | 
| Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 5889 | int main() { | 
| Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 5890 | socket() | 
 | 5891 | ; return 0; } | 
 | 5892 | EOF | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 5893 | if { (eval echo configure:5894: \"$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] | 5894 |   rm -rf conftest* | 
| Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 5895 |   eval "ac_cv_lib_$ac_lib_var=yes" | 
| Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 5896 | else | 
| Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 5897 |   echo "configure: failed program was:" >&5 | 
 | 5898 |   cat conftest.$ac_ext >&5 | 
| Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 5899 |   rm -rf conftest* | 
| Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 5900 |   eval "ac_cv_lib_$ac_lib_var=no" | 
| Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 5901 | fi | 
 | 5902 | rm -f conftest* | 
 | 5903 | LIBS="$ac_save_LIBS" | 
 | 5904 |  | 
 | 5905 | fi | 
| Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 5906 | 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] | 5907 |   echo "$ac_t""yes" 1>&6 | 
 | 5908 |   SOCKET_LIB=-lsocket | 
 | 5909 | else | 
 | 5910 |   echo "$ac_t""no" 1>&6 | 
 | 5911 | fi | 
 | 5912 |  | 
 | 5913 |  | 
| Theodore Ts'o | bbac86b | 2003-03-16 06:27:22 -0500 | [diff] [blame] | 5914 | DLOPEN_LIB='' | 
 | 5915 | echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 5916 | echo "configure:5917: checking for dlopen in -ldl" >&5 | 
| Theodore Ts'o | bbac86b | 2003-03-16 06:27:22 -0500 | [diff] [blame] | 5917 | ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` | 
 | 5918 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 
 | 5919 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
 | 5920 | else | 
 | 5921 |   ac_save_LIBS="$LIBS" | 
 | 5922 | LIBS="-ldl  $LIBS" | 
 | 5923 | cat > conftest.$ac_ext <<EOF | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 5924 | #line 5925 "configure" | 
| Theodore Ts'o | bbac86b | 2003-03-16 06:27:22 -0500 | [diff] [blame] | 5925 | #include "confdefs.h" | 
 | 5926 | /* Override any gcc2 internal prototype to avoid an error.  */ | 
 | 5927 | /* We use char because int might match the return type of a gcc2 | 
 | 5928 |     builtin and then its argument prototype would still apply.  */ | 
 | 5929 | char dlopen(); | 
 | 5930 |  | 
 | 5931 | int main() { | 
 | 5932 | dlopen() | 
 | 5933 | ; return 0; } | 
 | 5934 | EOF | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 5935 | if { (eval echo configure:5936: \"$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] | 5936 |   rm -rf conftest* | 
 | 5937 |   eval "ac_cv_lib_$ac_lib_var=yes" | 
 | 5938 | else | 
 | 5939 |   echo "configure: failed program was:" >&5 | 
 | 5940 |   cat conftest.$ac_ext >&5 | 
 | 5941 |   rm -rf conftest* | 
 | 5942 |   eval "ac_cv_lib_$ac_lib_var=no" | 
 | 5943 | fi | 
 | 5944 | rm -f conftest* | 
 | 5945 | LIBS="$ac_save_LIBS" | 
 | 5946 |  | 
 | 5947 | fi | 
 | 5948 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | 
 | 5949 |   echo "$ac_t""yes" 1>&6 | 
 | 5950 |   DLOPEN_LIB=-ldl | 
 | 5951 | cat >> confdefs.h <<\EOF | 
 | 5952 | #define HAVE_DLOPEN 1 | 
 | 5953 | EOF | 
 | 5954 |  | 
 | 5955 | else | 
 | 5956 |   echo "$ac_t""no" 1>&6 | 
 | 5957 | fi | 
 | 5958 |  | 
 | 5959 |  | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5960 | echo $ac_n "checking for optreset""... $ac_c" 1>&6 | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 5961 | echo "configure:5962: checking for optreset" >&5 | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5962 | if eval "test \"`echo '$''{'ac_cv_have_optreset'+set}'`\" = set"; then | 
 | 5963 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
 | 5964 | else | 
 | 5965 |   cat > conftest.$ac_ext <<EOF | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 5966 | #line 5967 "configure" | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5967 | #include "confdefs.h" | 
 | 5968 | #include <unistd.h> | 
 | 5969 | EOF | 
 | 5970 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | 
 | 5971 |   egrep "optreset" >/dev/null 2>&1; then | 
 | 5972 |   rm -rf conftest* | 
 | 5973 |   ac_cv_have_optreset=yes | 
 | 5974 | else | 
 | 5975 |   rm -rf conftest* | 
 | 5976 |   ac_cv_have_optreset=no | 
 | 5977 | fi | 
 | 5978 | rm -f conftest* | 
 | 5979 |  | 
 | 5980 | fi | 
 | 5981 | echo "$ac_t""$ac_cv_have_optreset" 1>&6 | 
 | 5982 | if test $ac_cv_have_optreset = yes; then | 
 | 5983 |   cat >> confdefs.h <<\EOF | 
 | 5984 | #define HAVE_OPTRESET 1 | 
 | 5985 | EOF | 
 | 5986 |  | 
 | 5987 | fi | 
| Theodore Ts'o | 8f3f29d | 2000-02-11 05:04:44 +0000 | [diff] [blame] | 5988 | case "$host_os" in | 
 | 5989 | linux*) | 
 | 5990 | 	cat >> confdefs.h <<\EOF | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5991 | #define HAVE_EXT2_IOCTLS 1 | 
 | 5992 | EOF | 
 | 5993 |  | 
| Theodore Ts'o | 8f3f29d | 2000-02-11 05:04:44 +0000 | [diff] [blame] | 5994 | 	;; | 
 | 5995 | esac | 
| Theodore Ts'o | e6f2bda | 2002-08-18 03:37:10 -0400 | [diff] [blame] | 5996 | LINUX_CMT="#" | 
| Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 5997 | CYGWIN_CMT="#" | 
 | 5998 | UNIX_CMT= | 
| Theodore Ts'o | e6f2bda | 2002-08-18 03:37:10 -0400 | [diff] [blame] | 5999 | case "$host_os" in | 
 | 6000 | linux*) | 
 | 6001 | 	LINUX_CMT= | 
 | 6002 | 	;; | 
| Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 6003 | cygwin) | 
 | 6004 | 	CYGWIN_CMT= | 
 | 6005 | 	UNIX_CMT="#" | 
| Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 6006 | 	;; | 
| Theodore Ts'o | e6f2bda | 2002-08-18 03:37:10 -0400 | [diff] [blame] | 6007 | esac | 
 | 6008 |  | 
| Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 6009 |  | 
 | 6010 |  | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6011 | case "$host_os" in | 
| Theodore Ts'o | 6c13352 | 1999-07-03 20:37:03 +0000 | [diff] [blame] | 6012 | linux* | gnu*) | 
| Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 6013 | 	if test "$prefix" = NONE -a "$root_prefix" = NONE ; then | 
 | 6014 | 		root_prefix=""; | 
 | 6015 | 		echo "On $host_os systems, root_prefix defaults to ''" | 
| Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 6016 | 	fi | 
 | 6017 | 	;; | 
 | 6018 | esac | 
| Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 6019 | case "$host_os" in | 
 | 6020 | linux* | gnu*) | 
 | 6021 | 	if test "$prefix" = NONE ; then | 
| Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 6022 | 		prefix="/usr"; | 
 | 6023 | 		echo "On $host_os systems, prefix defaults to /usr" | 
| Theodore Ts'o | bff61a7 | 2002-05-21 22:21:38 -0400 | [diff] [blame] | 6024 | 		if test "$mandir" = '${prefix}/man' ; then | 
 | 6025 | 			echo "...and mandir defaults to /usr/share/man" | 
 | 6026 | 			mandir=/usr/share/man | 
 | 6027 | 		fi | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6028 | 	fi | 
 | 6029 | ;; | 
 | 6030 | esac | 
| Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 6031 | if test "$root_prefix" = NONE ; then | 
| Theodore Ts'o | ffe1991 | 1998-04-08 06:05:49 +0000 | [diff] [blame] | 6032 | 	if test "$prefix" = NONE ; then | 
| Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 6033 | 		root_prefix="$ac_default_prefix" | 
 | 6034 | 	else | 
 | 6035 | 		root_prefix="$prefix" | 
 | 6036 | 	fi | 
| Theodore Ts'o | b5ffead | 2002-05-11 19:17:00 -0400 | [diff] [blame] | 6037 | 	root_bindir=$bindir | 
 | 6038 | 	root_sbindir=$sbindir | 
 | 6039 | 	root_libdir=$libdir | 
 | 6040 | 	root_sysconfdir=$sysconfdir | 
 | 6041 | else | 
 | 6042 | 	root_bindir='${root_prefix}/bin' | 
 | 6043 | 	root_sbindir='${root_prefix}/sbin' | 
 | 6044 | 	root_libdir='${root_prefix}/lib' | 
 | 6045 | 	root_sysconfdir='${root_prefix}/etc' | 
| Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 6046 | fi | 
 | 6047 |  | 
| Theodore Ts'o | b5ffead | 2002-05-11 19:17:00 -0400 | [diff] [blame] | 6048 |  | 
 | 6049 |  | 
 | 6050 |  | 
 | 6051 |  | 
| Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 6052 | echo $ac_n "checking whether linker accepts -static""... $ac_c" 1>&6 | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 6053 | echo "configure:6054: checking whether linker accepts -static" >&5 | 
| Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 6054 | if eval "test \"`echo '$''{'ac_cv_e2fsprogs_use_static'+set}'`\" = set"; then | 
 | 6055 |   echo $ac_n "(cached) $ac_c" 1>&6 | 
 | 6056 | else | 
 | 6057 |   SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static" | 
 | 6058 | cat > conftest.$ac_ext <<EOF | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 6059 | #line 6060 "configure" | 
| Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 6060 | #include "confdefs.h" | 
 | 6061 | #include <stdio.h> | 
 | 6062 | int main() { | 
 | 6063 | fflush(stdout); | 
 | 6064 | ; return 0; } | 
 | 6065 | EOF | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 6066 | if { (eval echo configure:6067: \"$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] | 6067 |   rm -rf conftest* | 
 | 6068 |   ac_cv_e2fsprogs_use_static=yes | 
 | 6069 | else | 
 | 6070 |   echo "configure: failed program was:" >&5 | 
 | 6071 |   cat conftest.$ac_ext >&5 | 
 | 6072 |   rm -rf conftest* | 
 | 6073 |   ac_cv_e2fsprogs_use_static=no | 
 | 6074 | fi | 
 | 6075 | rm -f conftest* | 
 | 6076 | LDFLAGS=$SAVE_LDFLAGS | 
 | 6077 | fi | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6078 |  | 
| Theodore Ts'o | defde78 | 1999-01-04 07:39:19 +0000 | [diff] [blame] | 6079 | case "$host_os" in | 
 | 6080 | solaris2.*) | 
 | 6081 | 	ac_cv_e2fsprogs_use_static=no	 | 
 | 6082 | ;; | 
 | 6083 | esac | 
| Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 6084 | echo "$ac_t""$ac_cv_e2fsprogs_use_static" 1>&6 | 
| Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 6085 | LDFLAG_STATIC= | 
| Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 6086 | if test $ac_cv_e2fsprogs_use_static = yes; then | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6087 | 	LDFLAG_STATIC=-static | 
| Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 6088 | fi | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6089 |  | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6090 | SS_DIR=`cd ${srcdir}/lib/ss; pwd` | 
 | 6091 | ET_DIR=`cd ${srcdir}/lib/et; pwd` | 
 | 6092 |  | 
 | 6093 |  | 
 | 6094 | if test "$cross_compiling" = yes ; then | 
 | 6095 |   DO_TEST_SUITE= | 
 | 6096 | else | 
 | 6097 |   DO_TEST_SUITE=check | 
 | 6098 | fi | 
 | 6099 |  | 
 | 6100 | test -d lib || mkdir lib | 
 | 6101 | test -d include || mkdir include | 
 | 6102 | test -d include/linux || mkdir include/linux | 
| Theodore Ts'o | defde78 | 1999-01-04 07:39:19 +0000 | [diff] [blame] | 6103 | test -d include/asm || mkdir include/asm | 
| Theodore Ts'o | bff0cc9 | 2003-03-23 01:37:53 -0500 | [diff] [blame] | 6104 | for i in MCONFIG Makefile e2fsprogs.spec \ | 
 | 6105 | 	util/Makefile util/subst.conf util/gen-tarball \ | 
 | 6106 | 	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] | 6107 | 	lib/uuid/Makefile lib/uuid/uuid_types.h \ | 
 | 6108 | 	lib/blkid/Makefile lib/blkid/blkid_types.h \ | 
 | 6109 | 	lib/evms/Makefile misc/Makefile ext2ed/Makefile e2fsck/Makefile \ | 
 | 6110 | 	debugfs/Makefile tests/Makefile tests/progs/Makefile \ | 
 | 6111 | 	resize/Makefile doc/Makefile intl/Makefile po/Makefile.in ; do | 
 | 6112 | 	if test -d `dirname ${srcdir}/$i` ; then | 
 | 6113 | 		outlist="$outlist $i" | 
 | 6114 | 	fi | 
 | 6115 | done | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6116 | trap '' 1 2 15 | 
 | 6117 | cat > confcache <<\EOF | 
 | 6118 | # This file is a shell script that caches the results of configure | 
 | 6119 | # tests run on this system so they can be shared between configure | 
 | 6120 | # scripts and configure runs.  It is not useful on other systems. | 
 | 6121 | # If it contains results you don't want to keep, you may remove or edit it. | 
 | 6122 | # | 
 | 6123 | # By default, configure uses ./config.cache as the cache file, | 
 | 6124 | # creating it if it does not exist already.  You can give configure | 
 | 6125 | # the --cache-file=FILE option to use a different cache file; that is | 
 | 6126 | # what configure does when it calls configure scripts in | 
 | 6127 | # subdirectories, so they share the cache. | 
 | 6128 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | 
 | 6129 | # config.status only pays attention to the cache file if you give it the | 
 | 6130 | # --recheck option to rerun configure. | 
 | 6131 | # | 
 | 6132 | EOF | 
| Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 6133 | # The following way of writing the cache mishandles newlines in values, | 
 | 6134 | # but we know of no workaround that is simple, portable, and efficient. | 
 | 6135 | # So, don't put newlines in cache variables' values. | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6136 | # Ultrix sh set writes to stderr and can't be redirected directly, | 
 | 6137 | # and sets the high bit in the cache file unless we assign to the vars. | 
 | 6138 | (set) 2>&1 | | 
| Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame] | 6139 |   case `(ac_space=' '; set | grep ac_space) 2>&1` in | 
| Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 6140 |   *ac_space=\ *) | 
 | 6141 |     # `set' does not quote correctly, so add quotes (double-quote substitution | 
 | 6142 |     # turns \\\\ into \\, and sed turns \\ into \). | 
 | 6143 |     sed -n \ | 
 | 6144 |       -e "s/'/'\\\\''/g" \ | 
 | 6145 |       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | 
 | 6146 |     ;; | 
 | 6147 |   *) | 
 | 6148 |     # `set' quotes correctly as required by POSIX, so do not add quotes. | 
 | 6149 |     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | 
 | 6150 |     ;; | 
 | 6151 |   esac >> confcache | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6152 | if cmp -s $cache_file confcache; then | 
 | 6153 |   : | 
 | 6154 | else | 
 | 6155 |   if test -w $cache_file; then | 
 | 6156 |     echo "updating cache $cache_file" | 
 | 6157 |     cat confcache > $cache_file | 
 | 6158 |   else | 
 | 6159 |     echo "not updating unwritable cache $cache_file" | 
 | 6160 |   fi | 
 | 6161 | fi | 
 | 6162 | rm -f confcache | 
 | 6163 |  | 
 | 6164 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | 
 | 6165 |  | 
 | 6166 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | 
 | 6167 | # Let make expand exec_prefix. | 
 | 6168 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | 
 | 6169 |  | 
 | 6170 | # Any assignment to VPATH causes Sun make to only execute | 
 | 6171 | # the first set of double-colon rules, so remove it if not needed. | 
 | 6172 | # If there is a colon in the path, we need to keep it. | 
 | 6173 | if test "x$srcdir" = x.; then | 
 | 6174 |   ac_vpsub='/^[ 	]*VPATH[ 	]*=[^:]*$/d' | 
 | 6175 | fi | 
 | 6176 |  | 
 | 6177 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 | 
 | 6178 |  | 
 | 6179 | # Transform confdefs.h into DEFS. | 
 | 6180 | # Protect against shell expansion while executing Makefile rules. | 
 | 6181 | # Protect against Makefile macro expansion. | 
 | 6182 | cat > conftest.defs <<\EOF | 
| Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 6183 | 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] | 6184 | s%[ 	`~#$^&*(){}\\|;'"<>?]%\\&%g | 
 | 6185 | s%\[%\\&%g | 
 | 6186 | s%\]%\\&%g | 
 | 6187 | s%\$%$$%g | 
 | 6188 | EOF | 
 | 6189 | DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '` | 
 | 6190 | rm -f conftest.defs | 
 | 6191 |  | 
 | 6192 |  | 
 | 6193 | # Without the "./", some shells look in PATH for config.status. | 
 | 6194 | : ${CONFIG_STATUS=./config.status} | 
 | 6195 |  | 
 | 6196 | echo creating $CONFIG_STATUS | 
 | 6197 | rm -f $CONFIG_STATUS | 
 | 6198 | cat > $CONFIG_STATUS <<EOF | 
 | 6199 | #! /bin/sh | 
 | 6200 | # Generated automatically by configure. | 
 | 6201 | # Run this file to recreate the current configuration. | 
 | 6202 | # This directory was configured as follows, | 
 | 6203 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | 
 | 6204 | # | 
 | 6205 | # $0 $ac_configure_args | 
 | 6206 | # | 
 | 6207 | # Compiler output produced by configure, useful for debugging | 
 | 6208 | # configure, is in ./config.log if it exists. | 
 | 6209 |  | 
 | 6210 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" | 
 | 6211 | for ac_option | 
 | 6212 | do | 
 | 6213 |   case "\$ac_option" in | 
 | 6214 |   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | 
 | 6215 |     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" | 
 | 6216 |     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; | 
 | 6217 |   -version | --version | --versio | --versi | --vers | --ver | --ve | --v) | 
| Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame] | 6218 |     echo "$CONFIG_STATUS generated by autoconf version 2.13" | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6219 |     exit 0 ;; | 
 | 6220 |   -help | --help | --hel | --he | --h) | 
 | 6221 |     echo "\$ac_cs_usage"; exit 0 ;; | 
 | 6222 |   *) echo "\$ac_cs_usage"; exit 1 ;; | 
 | 6223 |   esac | 
 | 6224 | done | 
 | 6225 |  | 
 | 6226 | ac_given_srcdir=$srcdir | 
 | 6227 | ac_given_INSTALL="$INSTALL" | 
 | 6228 |  | 
| Theodore Ts'o | 94ba8c7 | 2003-03-02 02:07:14 -0500 | [diff] [blame] | 6229 | 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] | 6230 | EOF | 
 | 6231 | cat >> $CONFIG_STATUS <<EOF | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6232 |  | 
| Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 6233 | # Protect against being on the right side of a sed subst in config.status. | 
 | 6234 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; | 
 | 6235 |  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6236 | $ac_vpsub | 
 | 6237 | $extrasub | 
| Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame] | 6238 | s%@SHELL@%$SHELL%g | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6239 | s%@CFLAGS@%$CFLAGS%g | 
 | 6240 | s%@CPPFLAGS@%$CPPFLAGS%g | 
 | 6241 | s%@CXXFLAGS@%$CXXFLAGS%g | 
| Theodore Ts'o | a4bf69d | 1999-05-29 21:53:30 +0000 | [diff] [blame] | 6242 | s%@FFLAGS@%$FFLAGS%g | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6243 | s%@DEFS@%$DEFS%g | 
 | 6244 | s%@LDFLAGS@%$LDFLAGS%g | 
 | 6245 | s%@LIBS@%$LIBS%g | 
 | 6246 | s%@exec_prefix@%$exec_prefix%g | 
 | 6247 | s%@prefix@%$prefix%g | 
 | 6248 | s%@program_transform_name@%$program_transform_name%g | 
| Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 6249 | s%@bindir@%$bindir%g | 
 | 6250 | s%@sbindir@%$sbindir%g | 
 | 6251 | s%@libexecdir@%$libexecdir%g | 
 | 6252 | s%@datadir@%$datadir%g | 
 | 6253 | s%@sysconfdir@%$sysconfdir%g | 
 | 6254 | s%@sharedstatedir@%$sharedstatedir%g | 
 | 6255 | s%@localstatedir@%$localstatedir%g | 
 | 6256 | s%@libdir@%$libdir%g | 
 | 6257 | s%@includedir@%$includedir%g | 
 | 6258 | s%@oldincludedir@%$oldincludedir%g | 
 | 6259 | s%@infodir@%$infodir%g | 
 | 6260 | s%@mandir@%$mandir%g | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6261 | /@MCONFIG@/r $MCONFIG | 
 | 6262 | s%@MCONFIG@%%g | 
| Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 6263 | s%@E2FSPROGS_YEAR@%$E2FSPROGS_YEAR%g | 
 | 6264 | s%@E2FSPROGS_MONTH@%$E2FSPROGS_MONTH%g | 
| Theodore Ts'o | bff0cc9 | 2003-03-23 01:37:53 -0500 | [diff] [blame] | 6265 | s%@E2FSPROGS_DAY@%$E2FSPROGS_DAY%g | 
| Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 6266 | s%@E2FSPROGS_VERSION@%$E2FSPROGS_VERSION%g | 
| Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 6267 | s%@host@%$host%g | 
 | 6268 | s%@host_alias@%$host_alias%g | 
 | 6269 | s%@host_cpu@%$host_cpu%g | 
 | 6270 | s%@host_vendor@%$host_vendor%g | 
 | 6271 | s%@host_os@%$host_os%g | 
| Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 6272 | s%@CC@%$CC%g | 
 | 6273 | s%@LD@%$LD%g | 
| Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 6274 | s%@CPP@%$CPP%g | 
 | 6275 | s%@LINUX_INCLUDE@%$LINUX_INCLUDE%g | 
| Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 6276 | s%@HTREE_CMT@%$HTREE_CMT%g | 
 | 6277 | s%@HTREE_CLR_CMT@%$HTREE_CLR_CMT%g | 
| Theodore Ts'o | a9d799a | 2002-11-08 13:50:51 -0500 | [diff] [blame] | 6278 | s%@EVMS_ABI_CODE@%$EVMS_ABI_CODE%g | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6279 | s%@DLL_CMT@%$DLL_CMT%g | 
 | 6280 | /@MAKEFILE_DLL@/r $MAKEFILE_DLL | 
 | 6281 | s%@MAKEFILE_DLL@%%g | 
 | 6282 | s%@ELF_CMT@%$ELF_CMT%g | 
 | 6283 | /@MAKEFILE_ELF@/r $MAKEFILE_ELF | 
 | 6284 | s%@MAKEFILE_ELF@%%g | 
 | 6285 | s%@BSDLIB_CMT@%$BSDLIB_CMT%g | 
 | 6286 | /@MAKEFILE_BSDLIB@/r $MAKEFILE_BSDLIB | 
 | 6287 | s%@MAKEFILE_BSDLIB@%%g | 
| Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 6288 | s%@PROFILE_CMT@%$PROFILE_CMT%g | 
 | 6289 | /@MAKEFILE_PROFILE@/r $MAKEFILE_PROFILE | 
 | 6290 | s%@MAKEFILE_PROFILE@%%g | 
 | 6291 | s%@CHECKER_CMT@%$CHECKER_CMT%g | 
 | 6292 | /@MAKEFILE_CHECKER@/r $MAKEFILE_CHECKER | 
 | 6293 | s%@MAKEFILE_CHECKER@%%g | 
 | 6294 | s%@LIB_EXT@%$LIB_EXT%g | 
 | 6295 | s%@STATIC_LIB_EXT@%$STATIC_LIB_EXT%g | 
 | 6296 | s%@PROFILED_LIB_EXT@%$PROFILED_LIB_EXT%g | 
| Theodore Ts'o | feb44c6 | 2002-11-08 14:55:38 -0500 | [diff] [blame] | 6297 | s%@SWAPFS_CMT@%$SWAPFS_CMT%g | 
| Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 6298 | s%@DEBUGFS_CMT@%$DEBUGFS_CMT%g | 
 | 6299 | s%@IMAGER_CMT@%$IMAGER_CMT%g | 
 | 6300 | s%@RESIZER_CMT@%$RESIZER_CMT%g | 
 | 6301 | s%@E2FSCK_TYPE@%$E2FSCK_TYPE%g | 
 | 6302 | s%@FSCK_PROG@%$FSCK_PROG%g | 
 | 6303 | s%@FSCK_MAN@%$FSCK_MAN%g | 
 | 6304 | /@MAKEFILE_LIBRARY@/r $MAKEFILE_LIBRARY | 
 | 6305 | s%@MAKEFILE_LIBRARY@%%g | 
| Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6306 | s%@PACKAGE@%$PACKAGE%g | 
 | 6307 | s%@VERSION@%$VERSION%g | 
 | 6308 | s%@SET_MAKE@%$SET_MAKE%g | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 6309 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g | 
 | 6310 | s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g | 
 | 6311 | s%@INSTALL_DATA@%$INSTALL_DATA%g | 
 | 6312 | s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g | 
| Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6313 | s%@MSGFMT@%$MSGFMT%g | 
 | 6314 | s%@GMSGFMT@%$GMSGFMT%g | 
 | 6315 | s%@XGETTEXT@%$XGETTEXT%g | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 6316 | s%@MSGMERGE@%$MSGMERGE%g | 
 | 6317 | s%@RANLIB@%$RANLIB%g | 
 | 6318 | s%@ALLOCA@%$ALLOCA%g | 
 | 6319 | s%@GLIBC21@%$GLIBC21%g | 
 | 6320 | s%@LIBICONV@%$LIBICONV%g | 
 | 6321 | s%@LTLIBICONV@%$LTLIBICONV%g | 
 | 6322 | s%@INTLBISON@%$INTLBISON%g | 
 | 6323 | s%@USE_NLS@%$USE_NLS%g | 
 | 6324 | s%@BUILD_INCLUDED_LIBINTL@%$BUILD_INCLUDED_LIBINTL%g | 
| Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6325 | s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g | 
| Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6326 | s%@CATOBJEXT@%$CATOBJEXT%g | 
| Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6327 | s%@INTLOBJS@%$INTLOBJS%g | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 6328 | s%@DATADIRNAME@%$DATADIRNAME%g | 
 | 6329 | s%@INSTOBJEXT@%$INSTOBJEXT%g | 
 | 6330 | s%@GENCAT@%$GENCAT%g | 
 | 6331 | s%@INTL_LIBTOOL_SUFFIX_PREFIX@%$INTL_LIBTOOL_SUFFIX_PREFIX%g | 
 | 6332 | s%@INTLLIBS@%$INTLLIBS%g | 
 | 6333 | s%@LIBINTL@%$LIBINTL%g | 
 | 6334 | s%@LTLIBINTL@%$LTLIBINTL%g | 
| Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6335 | s%@POSUB@%$POSUB%g | 
| Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 6336 | s%@BINARY_TYPE@%$BINARY_TYPE%g | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6337 | s%@LN@%$LN%g | 
| Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 6338 | s%@LN_S@%$LN_S%g | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6339 | s%@MV@%$MV%g | 
 | 6340 | s%@CP@%$CP%g | 
 | 6341 | s%@RM@%$RM%g | 
 | 6342 | s%@CHMOD@%$CHMOD%g | 
 | 6343 | s%@AWK@%$AWK%g | 
 | 6344 | s%@SED@%$SED%g | 
| Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 6345 | s%@PERL@%$PERL%g | 
| Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 6346 | s%@LDCONFIG@%$LDCONFIG%g | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6347 | s%@build@%$build%g | 
 | 6348 | s%@build_alias@%$build_alias%g | 
 | 6349 | s%@build_cpu@%$build_cpu%g | 
 | 6350 | s%@build_vendor@%$build_vendor%g | 
 | 6351 | s%@build_os@%$build_os%g | 
 | 6352 | s%@AR@%$AR%g | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6353 | s%@STRIP@%$STRIP%g | 
| Theodore Ts'o | 6c13352 | 1999-07-03 20:37:03 +0000 | [diff] [blame] | 6354 | s%@BUILD_CC@%$BUILD_CC%g | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6355 | s%@SIZEOF_SHORT@%$SIZEOF_SHORT%g | 
 | 6356 | s%@SIZEOF_INT@%$SIZEOF_INT%g | 
 | 6357 | s%@SIZEOF_LONG@%$SIZEOF_LONG%g | 
| Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 6358 | s%@SIZEOF_LONG_LONG@%$SIZEOF_LONG_LONG%g | 
| Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 6359 | s%@SOCKET_LIB@%$SOCKET_LIB%g | 
| Theodore Ts'o | bbac86b | 2003-03-16 06:27:22 -0500 | [diff] [blame] | 6360 | s%@DLOPEN_LIB@%$DLOPEN_LIB%g | 
| Theodore Ts'o | e6f2bda | 2002-08-18 03:37:10 -0400 | [diff] [blame] | 6361 | s%@LINUX_CMT@%$LINUX_CMT%g | 
| Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 6362 | s%@CYGWIN_CMT@%$CYGWIN_CMT%g | 
 | 6363 | s%@UNIX_CMT@%$UNIX_CMT%g | 
| Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 6364 | s%@root_prefix@%$root_prefix%g | 
| Theodore Ts'o | b5ffead | 2002-05-11 19:17:00 -0400 | [diff] [blame] | 6365 | s%@root_bindir@%$root_bindir%g | 
 | 6366 | s%@root_sbindir@%$root_sbindir%g | 
 | 6367 | s%@root_libdir@%$root_libdir%g | 
 | 6368 | s%@root_sysconfdir@%$root_sysconfdir%g | 
| Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 6369 | s%@LDFLAG_STATIC@%$LDFLAG_STATIC%g | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6370 | s%@SS_DIR@%$SS_DIR%g | 
 | 6371 | s%@ET_DIR@%$ET_DIR%g | 
 | 6372 | s%@DO_TEST_SUITE@%$DO_TEST_SUITE%g | 
 | 6373 |  | 
 | 6374 | CEOF | 
 | 6375 | EOF | 
| Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 6376 |  | 
 | 6377 | cat >> $CONFIG_STATUS <<\EOF | 
 | 6378 |  | 
 | 6379 | # Split the substitutions into bite-sized pieces for seds with | 
 | 6380 | # small command number limits, like on Digital OSF/1 and HP-UX. | 
 | 6381 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. | 
 | 6382 | ac_file=1 # Number of current file. | 
 | 6383 | ac_beg=1 # First line for current file. | 
 | 6384 | ac_end=$ac_max_sed_cmds # Line after last line for current file. | 
 | 6385 | ac_more_lines=: | 
 | 6386 | ac_sed_cmds="" | 
 | 6387 | while $ac_more_lines; do | 
 | 6388 |   if test $ac_beg -gt 1; then | 
 | 6389 |     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file | 
 | 6390 |   else | 
 | 6391 |     sed "${ac_end}q" conftest.subs > conftest.s$ac_file | 
 | 6392 |   fi | 
 | 6393 |   if test ! -s conftest.s$ac_file; then | 
 | 6394 |     ac_more_lines=false | 
 | 6395 |     rm -f conftest.s$ac_file | 
 | 6396 |   else | 
 | 6397 |     if test -z "$ac_sed_cmds"; then | 
 | 6398 |       ac_sed_cmds="sed -f conftest.s$ac_file" | 
 | 6399 |     else | 
 | 6400 |       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" | 
 | 6401 |     fi | 
 | 6402 |     ac_file=`expr $ac_file + 1` | 
 | 6403 |     ac_beg=$ac_end | 
 | 6404 |     ac_end=`expr $ac_end + $ac_max_sed_cmds` | 
 | 6405 |   fi | 
 | 6406 | done | 
 | 6407 | if test -z "$ac_sed_cmds"; then | 
 | 6408 |   ac_sed_cmds=cat | 
 | 6409 | fi | 
 | 6410 | EOF | 
 | 6411 |  | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6412 | cat >> $CONFIG_STATUS <<EOF | 
 | 6413 |  | 
| Theodore Ts'o | 94ba8c7 | 2003-03-02 02:07:14 -0500 | [diff] [blame] | 6414 | CONFIG_FILES=\${CONFIG_FILES-"$outlist"} | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6415 | EOF | 
 | 6416 | cat >> $CONFIG_STATUS <<\EOF | 
 | 6417 | 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] | 6418 |   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6419 |   case "$ac_file" in | 
| Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 6420 |   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6421 |        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | 
 | 6422 |   *) ac_file_in="${ac_file}.in" ;; | 
 | 6423 |   esac | 
 | 6424 |  | 
| Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 6425 |   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6426 |  | 
 | 6427 |   # Remove last slash and all that follows it.  Not all systems have dirname. | 
 | 6428 |   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | 
 | 6429 |   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | 
 | 6430 |     # The file is in a subdirectory. | 
 | 6431 |     test ! -d "$ac_dir" && mkdir "$ac_dir" | 
 | 6432 |     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" | 
 | 6433 |     # A "../" for each directory in $ac_dir_suffix. | 
 | 6434 |     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` | 
 | 6435 |   else | 
 | 6436 |     ac_dir_suffix= ac_dots= | 
 | 6437 |   fi | 
 | 6438 |  | 
 | 6439 |   case "$ac_given_srcdir" in | 
 | 6440 |   .)  srcdir=. | 
 | 6441 |       if test -z "$ac_dots"; then top_srcdir=. | 
 | 6442 |       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; | 
 | 6443 |   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; | 
 | 6444 |   *) # Relative path. | 
 | 6445 |     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" | 
 | 6446 |     top_srcdir="$ac_dots$ac_given_srcdir" ;; | 
 | 6447 |   esac | 
 | 6448 |  | 
 | 6449 |   case "$ac_given_INSTALL" in | 
 | 6450 |   [/$]*) INSTALL="$ac_given_INSTALL" ;; | 
 | 6451 |   *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | 
 | 6452 |   esac | 
| Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 6453 |  | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6454 |   echo creating "$ac_file" | 
 | 6455 |   rm -f "$ac_file" | 
 | 6456 |   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." | 
 | 6457 |   case "$ac_file" in | 
 | 6458 |   *Makefile*) ac_comsub="1i\\ | 
 | 6459 | # $configure_input" ;; | 
 | 6460 |   *) ac_comsub= ;; | 
 | 6461 |   esac | 
| Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 6462 |  | 
 | 6463 |   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] | 6464 |   sed -e "$ac_comsub | 
 | 6465 | s%@configure_input@%$configure_input%g | 
 | 6466 | s%@srcdir@%$srcdir%g | 
 | 6467 | s%@top_srcdir@%$top_srcdir%g | 
 | 6468 | s%@INSTALL@%$INSTALL%g | 
| Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 6469 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6470 | fi; done | 
| Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 6471 | rm -f conftest.s* | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6472 |  | 
| Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 6473 | EOF | 
 | 6474 | cat >> $CONFIG_STATUS <<EOF | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 6475 | # Capture the value of obsolete ALL_LINGUAS because we need it to compute | 
 | 6476 |     # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it | 
 | 6477 |     # from automake. | 
 | 6478 |     eval 'ALL_LINGUAS''="$ALL_LINGUAS"' | 
 | 6479 |     # Capture the value of LINGUAS because we need it to compute CATALOGS. | 
 | 6480 |     LINGUAS="${LINGUAS-%UNSET%}" | 
 | 6481 |     | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6482 |  | 
| Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 6483 | EOF | 
 | 6484 | cat >> $CONFIG_STATUS <<\EOF | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 6485 |  | 
 | 6486 |     for ac_file in $CONFIG_FILES; do | 
 | 6487 |       # Support "outfile[:infile[:infile...]]" | 
 | 6488 |       case "$ac_file" in | 
 | 6489 |         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | 
| Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6490 |       esac | 
| Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame^] | 6491 |       # PO directories have a Makefile.in generated from Makefile.in.in. | 
 | 6492 |       case "$ac_file" in */Makefile.in) | 
 | 6493 |         # Adjust a relative srcdir. | 
 | 6494 |         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` | 
 | 6495 |         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`" | 
 | 6496 |         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` | 
 | 6497 |         # In autoconf-2.13 it is called $ac_given_srcdir. | 
 | 6498 |         # In autoconf-2.50 it is called $srcdir. | 
 | 6499 |         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" | 
 | 6500 |         case "$ac_given_srcdir" in | 
 | 6501 |           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; | 
 | 6502 |           /*) top_srcdir="$ac_given_srcdir" ;; | 
 | 6503 |           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;; | 
 | 6504 |         esac | 
 | 6505 |         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then | 
 | 6506 |           rm -f "$ac_dir/POTFILES" | 
 | 6507 |           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" | 
 | 6508 |           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ 	]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" | 
 | 6509 |           # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend | 
 | 6510 |           # on $ac_dir but don't depend on user-specified configuration | 
 | 6511 |           # parameters. | 
 | 6512 |           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then | 
 | 6513 |             # The LINGUAS file contains the set of available languages. | 
 | 6514 |             if test -n "$ALL_LINGUAS"; then | 
 | 6515 |               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" | 
 | 6516 |             fi | 
 | 6517 |             ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"` | 
 | 6518 |             # Hide the ALL_LINGUAS assigment from automake. | 
 | 6519 |             eval 'ALL_LINGUAS''=$ALL_LINGUAS_' | 
 | 6520 |           fi | 
 | 6521 |           case "$ac_given_srcdir" in | 
 | 6522 |             .) srcdirpre= ;; | 
 | 6523 |             *) srcdirpre='$(srcdir)/' ;; | 
 | 6524 |           esac | 
 | 6525 |           POFILES= | 
 | 6526 |           GMOFILES= | 
 | 6527 |           UPDATEPOFILES= | 
 | 6528 |           DUMMYPOFILES= | 
 | 6529 |           for lang in $ALL_LINGUAS; do | 
 | 6530 |             POFILES="$POFILES $srcdirpre$lang.po" | 
 | 6531 |             GMOFILES="$GMOFILES $srcdirpre$lang.gmo" | 
 | 6532 |             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" | 
 | 6533 |             DUMMYPOFILES="$DUMMYPOFILES $lang.nop" | 
 | 6534 |           done | 
 | 6535 |           # CATALOGS depends on both $ac_dir and the user's LINGUAS | 
 | 6536 |           # environment variable. | 
 | 6537 |           INST_LINGUAS= | 
 | 6538 |           if test -n "$ALL_LINGUAS"; then | 
 | 6539 |             for presentlang in $ALL_LINGUAS; do | 
 | 6540 |               useit=no | 
 | 6541 |               if test "%UNSET%" != "$LINGUAS"; then | 
 | 6542 |                 desiredlanguages="$LINGUAS" | 
 | 6543 |               else | 
 | 6544 |                 desiredlanguages="$ALL_LINGUAS" | 
 | 6545 |               fi | 
 | 6546 |               for desiredlang in $desiredlanguages; do | 
 | 6547 |                 # Use the presentlang catalog if desiredlang is | 
 | 6548 |                 #   a. equal to presentlang, or | 
 | 6549 |                 #   b. a variant of presentlang (because in this case, | 
 | 6550 |                 #      presentlang can be used as a fallback for messages | 
 | 6551 |                 #      which are not translated in the desiredlang catalog). | 
 | 6552 |                 case "$desiredlang" in | 
 | 6553 |                   "$presentlang"*) useit=yes;; | 
 | 6554 |                 esac | 
 | 6555 |               done | 
 | 6556 |               if test $useit = yes; then | 
 | 6557 |                 INST_LINGUAS="$INST_LINGUAS $presentlang" | 
 | 6558 |               fi | 
 | 6559 |             done | 
 | 6560 |           fi | 
 | 6561 |           CATALOGS= | 
 | 6562 |           if test -n "$INST_LINGUAS"; then | 
 | 6563 |             for lang in $INST_LINGUAS; do | 
 | 6564 |               CATALOGS="$CATALOGS $lang.gmo" | 
 | 6565 |             done | 
 | 6566 |           fi | 
 | 6567 |           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" | 
 | 6568 |           sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile" | 
 | 6569 |           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do | 
 | 6570 |             if test -f "$f"; then | 
 | 6571 |               case "$f" in | 
 | 6572 |                 *.orig | *.bak | *~) ;; | 
 | 6573 |                 *) cat "$f" >> "$ac_dir/Makefile" ;; | 
 | 6574 |               esac | 
 | 6575 |             fi | 
 | 6576 |           done | 
 | 6577 |         fi | 
 | 6578 |         ;; | 
 | 6579 |       esac | 
 | 6580 |     done | 
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 6581 |  | 
 | 6582 | exit 0 | 
 | 6583 | EOF | 
 | 6584 | chmod +x $CONFIG_STATUS | 
 | 6585 | rm -fr confdefs* $ac_clean_files | 
 | 6586 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 | 
 | 6587 |  |