annotate configure @ 16:ddb983d8574b

* Improved directory sorting algorithm * More large file support * Included config.sub, install-sh, missing, mkinstalldirs from automake 1.4
author masneyb
date Mon, 09 Sep 2002 13:29:19 +0000
parents 9a30825849ce
children 3b2dcdefc7e9
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1 #! /bin/sh
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3 # Guess values for system-dependent variables and create Makefiles.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4 # Generated automatically using autoconf version 2.13
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6 #
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7 # This configure script is free software; the Free Software Foundation
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
8 # gives unlimited permission to copy, distribute and modify it.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
9
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
10 # Defaults:
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
11 ac_help=
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
12 ac_default_prefix=/usr/local
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
13 # Any additions from configure.in:
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
14 ac_help="$ac_help
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
15 --enable-gtk20 Try and compile with GTK+ 2.0 if available"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
16 ac_help="$ac_help
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
17 --disable-gtkport Disable compiling the GTK+ port"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
18 ac_help="$ac_help
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
19 --disable-textport Disable compiling the text port"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
20 ac_help="$ac_help
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
21 --enable-dmalloc Enable the dmalloc library"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
22 ac_help="$ac_help
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
23 --disable-largefile omit support for large files"
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
24 ac_help="$ac_help
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
25 --with-glib-prefix=PFX Prefix where GLIB is installed (optional)"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
26 ac_help="$ac_help
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
27 --with-glib-exec-prefix=PFX Exec prefix where GLIB is installed (optional)"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
28 ac_help="$ac_help
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
29 --disable-glibtest Do not try to compile and run a test GLIB program"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
30 ac_help="$ac_help
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
31 --with-readline turn on readline [default=yes, default tries -lncurses, -lcurses, -ltermcap]"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
32 ac_help="$ac_help
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
33 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
34 ac_help="$ac_help
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
35 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
36 ac_help="$ac_help
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
37 --disable-gtktest Do not try to compile and run a test GTK program"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
38 ac_help="$ac_help
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
39 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
40 ac_help="$ac_help
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
41 --disable-rpath do not hardcode runtime library paths"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
42 ac_help="$ac_help
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
43 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
44 --without-libiconv-prefix don't search for libiconv in includedir and libdir"
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
45 ac_help="$ac_help
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
46 --disable-nls do not use Native Language Support"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
47 ac_help="$ac_help
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
48 --with-included-gettext use the GNU gettext library included here"
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
49 ac_help="$ac_help
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
50 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
51 --without-libintl-prefix don't search for libintl in includedir and libdir"
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
52
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
53 # Initialize some variables set by options.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
54 # The variables have the same names as the options, with
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
55 # dashes changed to underlines.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
56 build=NONE
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
57 cache_file=./config.cache
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
58 exec_prefix=NONE
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
59 host=NONE
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
60 no_create=
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
61 nonopt=NONE
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
62 no_recursion=
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
63 prefix=NONE
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
64 program_prefix=NONE
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
65 program_suffix=NONE
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
66 program_transform_name=s,x,x,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
67 silent=
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
68 site=
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
69 srcdir=
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
70 target=NONE
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
71 verbose=
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
72 x_includes=NONE
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
73 x_libraries=NONE
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
74 bindir='${exec_prefix}/bin'
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
75 sbindir='${exec_prefix}/sbin'
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
76 libexecdir='${exec_prefix}/libexec'
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
77 datadir='${prefix}/share'
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
78 sysconfdir='${prefix}/etc'
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
79 sharedstatedir='${prefix}/com'
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
80 localstatedir='${prefix}/var'
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
81 libdir='${exec_prefix}/lib'
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
82 includedir='${prefix}/include'
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
83 oldincludedir='/usr/include'
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
84 infodir='${prefix}/info'
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
85 mandir='${prefix}/man'
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
86
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
87 # Initialize some other variables.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
88 subdirs=
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
89 MFLAGS= MAKEFLAGS=
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
90 SHELL=${CONFIG_SHELL-/bin/sh}
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
91 # Maximum number of lines to put in a shell here document.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
92 ac_max_here_lines=12
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
93
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
94 ac_prev=
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
95 for ac_option
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
96 do
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
97
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
98 # If the previous option needs an argument, assign it.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
99 if test -n "$ac_prev"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
100 eval "$ac_prev=\$ac_option"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
101 ac_prev=
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
102 continue
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
103 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
104
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
105 case "$ac_option" in
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
106 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
107 *) ac_optarg= ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
108 esac
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
109
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
110 # Accept the important Cygnus configure options, so we can diagnose typos.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
111
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
112 case "$ac_option" in
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
113
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
114 -bindir | --bindir | --bindi | --bind | --bin | --bi)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
115 ac_prev=bindir ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
116 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
117 bindir="$ac_optarg" ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
118
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
119 -build | --build | --buil | --bui | --bu)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
120 ac_prev=build ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
121 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
122 build="$ac_optarg" ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
123
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
124 -cache-file | --cache-file | --cache-fil | --cache-fi \
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
125 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
126 ac_prev=cache_file ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
127 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
128 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
129 cache_file="$ac_optarg" ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
130
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
131 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
132 ac_prev=datadir ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
133 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
134 | --da=*)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
135 datadir="$ac_optarg" ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
136
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
137 -disable-* | --disable-*)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
138 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
139 # Reject names that are not valid shell variable names.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
140 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
141 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
142 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
143 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
144 eval "enable_${ac_feature}=no" ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
145
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
146 -enable-* | --enable-*)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
147 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
148 # Reject names that are not valid shell variable names.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
149 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
150 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
151 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
152 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
153 case "$ac_option" in
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
154 *=*) ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
155 *) ac_optarg=yes ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
156 esac
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
157 eval "enable_${ac_feature}='$ac_optarg'" ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
158
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
159 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
160 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
161 | --exec | --exe | --ex)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
162 ac_prev=exec_prefix ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
163 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
164 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
165 | --exec=* | --exe=* | --ex=*)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
166 exec_prefix="$ac_optarg" ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
167
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
168 -gas | --gas | --ga | --g)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
169 # Obsolete; use --with-gas.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
170 with_gas=yes ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
171
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
172 -help | --help | --hel | --he)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
173 # Omit some internal or obsolete options to make the list less imposing.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
174 # This message is too long to be a string in the A/UX 3.1 sh.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
175 cat << EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
176 Usage: configure [options] [host]
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
177 Options: [defaults in brackets after descriptions]
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
178 Configuration:
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
179 --cache-file=FILE cache test results in FILE
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
180 --help print this message
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
181 --no-create do not create output files
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
182 --quiet, --silent do not print \`checking...' messages
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
183 --version print the version of autoconf that created configure
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
184 Directory and file names:
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
185 --prefix=PREFIX install architecture-independent files in PREFIX
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
186 [$ac_default_prefix]
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
187 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
188 [same as prefix]
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
189 --bindir=DIR user executables in DIR [EPREFIX/bin]
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
190 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
191 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
192 --datadir=DIR read-only architecture-independent data in DIR
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
193 [PREFIX/share]
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
194 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
195 --sharedstatedir=DIR modifiable architecture-independent data in DIR
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
196 [PREFIX/com]
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
197 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
198 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
199 --includedir=DIR C header files in DIR [PREFIX/include]
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
200 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
201 --infodir=DIR info documentation in DIR [PREFIX/info]
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
202 --mandir=DIR man documentation in DIR [PREFIX/man]
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
203 --srcdir=DIR find the sources in DIR [configure dir or ..]
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
204 --program-prefix=PREFIX prepend PREFIX to installed program names
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
205 --program-suffix=SUFFIX append SUFFIX to installed program names
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
206 --program-transform-name=PROGRAM
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
207 run sed PROGRAM on installed program names
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
208 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
209 cat << EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
210 Host type:
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
211 --build=BUILD configure for building on BUILD [BUILD=HOST]
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
212 --host=HOST configure for HOST [guessed]
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
213 --target=TARGET configure for TARGET [TARGET=HOST]
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
214 Features and packages:
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
215 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
216 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
217 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
218 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
219 --x-includes=DIR X include files are in DIR
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
220 --x-libraries=DIR X library files are in DIR
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
221 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
222 if test -n "$ac_help"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
223 echo "--enable and --with options recognized:$ac_help"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
224 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
225 exit 0 ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
226
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
227 -host | --host | --hos | --ho)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
228 ac_prev=host ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
229 -host=* | --host=* | --hos=* | --ho=*)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
230 host="$ac_optarg" ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
231
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
232 -includedir | --includedir | --includedi | --included | --include \
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
233 | --includ | --inclu | --incl | --inc)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
234 ac_prev=includedir ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
235 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
236 | --includ=* | --inclu=* | --incl=* | --inc=*)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
237 includedir="$ac_optarg" ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
238
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
239 -infodir | --infodir | --infodi | --infod | --info | --inf)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
240 ac_prev=infodir ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
241 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
242 infodir="$ac_optarg" ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
243
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
244 -libdir | --libdir | --libdi | --libd)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
245 ac_prev=libdir ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
246 -libdir=* | --libdir=* | --libdi=* | --libd=*)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
247 libdir="$ac_optarg" ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
248
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
249 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
250 | --libexe | --libex | --libe)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
251 ac_prev=libexecdir ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
252 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
253 | --libexe=* | --libex=* | --libe=*)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
254 libexecdir="$ac_optarg" ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
255
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
256 -localstatedir | --localstatedir | --localstatedi | --localstated \
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
257 | --localstate | --localstat | --localsta | --localst \
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
258 | --locals | --local | --loca | --loc | --lo)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
259 ac_prev=localstatedir ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
260 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
261 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
262 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
263 localstatedir="$ac_optarg" ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
264
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
265 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
266 ac_prev=mandir ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
267 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
268 mandir="$ac_optarg" ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
269
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
270 -nfp | --nfp | --nf)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
271 # Obsolete; use --without-fp.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
272 with_fp=no ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
273
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
274 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
275 | --no-cr | --no-c)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
276 no_create=yes ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
277
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
278 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
279 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
280 no_recursion=yes ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
281
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
282 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
283 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
284 | --oldin | --oldi | --old | --ol | --o)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
285 ac_prev=oldincludedir ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
286 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
287 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
288 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
289 oldincludedir="$ac_optarg" ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
290
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
291 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
292 ac_prev=prefix ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
293 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
294 prefix="$ac_optarg" ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
295
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
296 -program-prefix | --program-prefix | --program-prefi | --program-pref \
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
297 | --program-pre | --program-pr | --program-p)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
298 ac_prev=program_prefix ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
299 -program-prefix=* | --program-prefix=* | --program-prefi=* \
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
300 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
301 program_prefix="$ac_optarg" ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
302
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
303 -program-suffix | --program-suffix | --program-suffi | --program-suff \
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
304 | --program-suf | --program-su | --program-s)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
305 ac_prev=program_suffix ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
306 -program-suffix=* | --program-suffix=* | --program-suffi=* \
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
307 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
308 program_suffix="$ac_optarg" ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
309
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
310 -program-transform-name | --program-transform-name \
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
311 | --program-transform-nam | --program-transform-na \
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
312 | --program-transform-n | --program-transform- \
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
313 | --program-transform | --program-transfor \
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
314 | --program-transfo | --program-transf \
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
315 | --program-trans | --program-tran \
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
316 | --progr-tra | --program-tr | --program-t)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
317 ac_prev=program_transform_name ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
318 -program-transform-name=* | --program-transform-name=* \
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
319 | --program-transform-nam=* | --program-transform-na=* \
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
320 | --program-transform-n=* | --program-transform-=* \
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
321 | --program-transform=* | --program-transfor=* \
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
322 | --program-transfo=* | --program-transf=* \
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
323 | --program-trans=* | --program-tran=* \
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
324 | --progr-tra=* | --program-tr=* | --program-t=*)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
325 program_transform_name="$ac_optarg" ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
326
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
327 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
328 | -silent | --silent | --silen | --sile | --sil)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
329 silent=yes ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
330
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
331 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
332 ac_prev=sbindir ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
333 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
334 | --sbi=* | --sb=*)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
335 sbindir="$ac_optarg" ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
336
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
337 -sharedstatedir | --sharedstatedir | --sharedstatedi \
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
338 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
339 | --sharedst | --shareds | --shared | --share | --shar \
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
340 | --sha | --sh)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
341 ac_prev=sharedstatedir ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
342 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
343 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
344 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
345 | --sha=* | --sh=*)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
346 sharedstatedir="$ac_optarg" ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
347
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
348 -site | --site | --sit)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
349 ac_prev=site ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
350 -site=* | --site=* | --sit=*)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
351 site="$ac_optarg" ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
352
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
353 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
354 ac_prev=srcdir ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
355 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
356 srcdir="$ac_optarg" ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
357
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
358 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
359 | --syscon | --sysco | --sysc | --sys | --sy)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
360 ac_prev=sysconfdir ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
361 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
362 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
363 sysconfdir="$ac_optarg" ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
364
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
365 -target | --target | --targe | --targ | --tar | --ta | --t)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
366 ac_prev=target ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
367 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
368 target="$ac_optarg" ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
369
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
370 -v | -verbose | --verbose | --verbos | --verbo | --verb)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
371 verbose=yes ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
372
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
373 -version | --version | --versio | --versi | --vers)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
374 echo "configure generated by autoconf version 2.13"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
375 exit 0 ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
376
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
377 -with-* | --with-*)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
378 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
379 # Reject names that are not valid shell variable names.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
380 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
381 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
382 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
383 ac_package=`echo $ac_package| sed 's/-/_/g'`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
384 case "$ac_option" in
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
385 *=*) ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
386 *) ac_optarg=yes ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
387 esac
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
388 eval "with_${ac_package}='$ac_optarg'" ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
389
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
390 -without-* | --without-*)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
391 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
392 # Reject names that are not valid shell variable names.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
393 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
394 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
395 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
396 ac_package=`echo $ac_package| sed 's/-/_/g'`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
397 eval "with_${ac_package}=no" ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
398
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
399 --x)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
400 # Obsolete; use --with-x.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
401 with_x=yes ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
402
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
403 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
404 | --x-incl | --x-inc | --x-in | --x-i)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
405 ac_prev=x_includes ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
406 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
407 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
408 x_includes="$ac_optarg" ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
409
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
410 -x-libraries | --x-libraries | --x-librarie | --x-librari \
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
411 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
412 ac_prev=x_libraries ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
413 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
414 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
415 x_libraries="$ac_optarg" ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
416
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
417 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
418 ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
419
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
420 *)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
421 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
422 echo "configure: warning: $ac_option: invalid host type" 1>&2
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
423 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
424 if test "x$nonopt" != xNONE; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
425 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
426 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
427 nonopt="$ac_option"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
428 ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
429
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
430 esac
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
431 done
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
432
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
433 if test -n "$ac_prev"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
434 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
435 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
436
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
437 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
438
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
439 # File descriptor usage:
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
440 # 0 standard input
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
441 # 1 file creation
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
442 # 2 errors and warnings
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
443 # 3 some systems may open it to /dev/tty
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
444 # 4 used on the Kubota Titan
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
445 # 6 checking for... messages and results
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
446 # 5 compiler messages saved in config.log
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
447 if test "$silent" = yes; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
448 exec 6>/dev/null
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
449 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
450 exec 6>&1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
451 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
452 exec 5>./config.log
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
453
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
454 echo "\
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
455 This file contains any messages produced by compilers while
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
456 running configure, to aid debugging if configure makes a mistake.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
457 " 1>&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
458
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
459 # Strip out --no-create and --no-recursion so they do not pile up.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
460 # Also quote any args containing shell metacharacters.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
461 ac_configure_args=
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
462 for ac_arg
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
463 do
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
464 case "$ac_arg" in
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
465 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
466 | --no-cr | --no-c) ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
467 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
468 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
469 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
470 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
471 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
472 esac
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
473 done
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
474
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
475 # NLS nuisances.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
476 # Only set these to C if already set. These must not be set unconditionally
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
477 # because not all systems understand e.g. LANG=C (notably SCO).
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
478 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
479 # Non-C LC_CTYPE values break the ctype check.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
480 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
481 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
482 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
483 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
484
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
485 # confdefs.h avoids OS command line length limits that DEFS can exceed.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
486 rm -rf conftest* confdefs.h
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
487 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
488 echo > confdefs.h
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
489
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
490 # A filename unique to this package, relative to the directory that
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
491 # configure is in, which we can look for to find out if srcdir is correct.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
492 ac_unique_file=lib/gftp.h
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
493
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
494 # Find the source files, if location was not specified.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
495 if test -z "$srcdir"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
496 ac_srcdir_defaulted=yes
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
497 # Try the directory containing this script, then its parent.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
498 ac_prog=$0
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
499 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
500 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
501 srcdir=$ac_confdir
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
502 if test ! -r $srcdir/$ac_unique_file; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
503 srcdir=..
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
504 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
505 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
506 ac_srcdir_defaulted=no
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
507 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
508 if test ! -r $srcdir/$ac_unique_file; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
509 if test "$ac_srcdir_defaulted" = yes; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
510 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
511 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
512 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
513 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
514 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
515 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
516
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
517 # Prefer explicitly selected file to automatically selected ones.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
518 if test -z "$CONFIG_SITE"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
519 if test "x$prefix" != xNONE; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
520 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
521 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
522 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
523 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
524 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
525 for ac_site_file in $CONFIG_SITE; do
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
526 if test -r "$ac_site_file"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
527 echo "loading site script $ac_site_file"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
528 . "$ac_site_file"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
529 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
530 done
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
531
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
532 if test -r "$cache_file"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
533 echo "loading cache $cache_file"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
534 . $cache_file
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
535 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
536 echo "creating cache $cache_file"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
537 > $cache_file
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
538 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
539
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
540 ac_ext=c
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
541 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
542 ac_cpp='$CPP $CPPFLAGS'
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
543 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
544 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
545 cross_compiling=$ac_cv_prog_cc_cross
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
546
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
547 ac_exeext=
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
548 ac_objext=o
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
549 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
550 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
551 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
552 ac_n= ac_c='
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
553 ' ac_t=' '
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
554 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
555 ac_n=-n ac_c= ac_t=
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
556 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
557 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
558 ac_n= ac_c='\c' ac_t=
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
559 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
560
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
561 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
562 if test "${with_gnu_ld+set}" = set; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
563 withval="$with_gnu_ld"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
564 test "$withval" = no || with_gnu_ld=yes
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
565 else
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
566 with_gnu_ld=no
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
567 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
568
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
569 ac_prog=ld
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
570 if test "$GCC" = yes; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
571 # Check if gcc -print-prog-name=ld gives a path.
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
572 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
573 echo "configure:574: checking for ld used by GCC" >&5
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
574 case $host in
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
575 *-*-mingw*)
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
576 # gcc leaves a trailing carriage return which upsets mingw
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
577 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
578 *)
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
579 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
580 esac
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
581 case $ac_prog in
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
582 # Accept absolute paths.
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
583 [\\/]* | [A-Za-z]:[\\/]*)
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
584 re_direlt='/[^/][^/]*/\.\./'
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
585 # Canonicalize the path of ld
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
586 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
587 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
588 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
589 done
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
590 test -z "$LD" && LD="$ac_prog"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
591 ;;
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
592 "")
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
593 # If it fails, then pretend we aren't using GCC.
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
594 ac_prog=ld
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
595 ;;
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
596 *)
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
597 # If it is relative, then search for the first ld in PATH.
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
598 with_gnu_ld=unknown
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
599 ;;
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
600 esac
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
601 elif test "$with_gnu_ld" = yes; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
602 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
603 echo "configure:604: checking for GNU ld" >&5
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
604 else
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
605 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
606 echo "configure:607: checking for non-GNU ld" >&5
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
607 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
608 if eval "test \"`echo '$''{'acl_cv_path_LD'+set}'`\" = set"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
609 echo $ac_n "(cached) $ac_c" 1>&6
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
610 else
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
611 if test -z "$LD"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
612 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
613 for ac_dir in $PATH; do
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
614 test -z "$ac_dir" && ac_dir=.
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
615 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
616 acl_cv_path_LD="$ac_dir/$ac_prog"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
617 # Check to see if the program is GNU ld. I'd rather use --version,
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
618 # but apparently some GNU ld's only accept -v.
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
619 # Break only if it was the GNU/non-GNU ld that we prefer.
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
620 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
621 test "$with_gnu_ld" != no && break
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
622 else
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
623 test "$with_gnu_ld" != yes && break
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
624 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
625 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
626 done
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
627 IFS="$ac_save_ifs"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
628 else
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
629 acl_cv_path_LD="$LD" # Let the user override the test with a path.
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
630 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
631 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
632
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
633 LD="$acl_cv_path_LD"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
634 if test -n "$LD"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
635 echo "$ac_t""$LD" 1>&6
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
636 else
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
637 echo "$ac_t""no" 1>&6
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
638 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
639 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
640 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
641 echo "configure:642: checking if the linker ($LD) is GNU ld" >&5
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
642 if eval "test \"`echo '$''{'acl_cv_prog_gnu_ld'+set}'`\" = set"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
643 echo $ac_n "(cached) $ac_c" 1>&6
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
644 else
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
645 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
646 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
647 acl_cv_prog_gnu_ld=yes
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
648 else
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
649 acl_cv_prog_gnu_ld=no
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
650 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
651 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
652
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
653 echo "$ac_t""$acl_cv_prog_gnu_ld" 1>&6
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
654 with_gnu_ld=$acl_cv_prog_gnu_ld
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
655
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
656
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
657
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
658
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
659
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
660
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
661
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
662 ac_aux_dir=
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
663 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
664 if test -f $ac_dir/install-sh; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
665 ac_aux_dir=$ac_dir
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
666 ac_install_sh="$ac_aux_dir/install-sh -c"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
667 break
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
668 elif test -f $ac_dir/install.sh; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
669 ac_aux_dir=$ac_dir
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
670 ac_install_sh="$ac_aux_dir/install.sh -c"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
671 break
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
672 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
673 done
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
674 if test -z "$ac_aux_dir"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
675 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
676 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
677 ac_config_guess=$ac_aux_dir/config.guess
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
678 ac_config_sub=$ac_aux_dir/config.sub
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
679 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
680
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
681 am__api_version="1.4"
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
682 # Find a good install program. We prefer a C program (faster),
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
683 # so one script is as good as another. But avoid the broken or
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
684 # incompatible versions:
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
685 # SysV /etc/install, /usr/sbin/install
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
686 # SunOS /usr/etc/install
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
687 # IRIX /sbin/install
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
688 # AIX /bin/install
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
689 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
690 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
691 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
692 # ./install, which can be erroneously created by make from ./install.sh.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
693 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
694 echo "configure:695: checking for a BSD compatible install" >&5
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
695 if test -z "$INSTALL"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
696 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
697 echo $ac_n "(cached) $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
698 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
699 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
700 for ac_dir in $PATH; do
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
701 # Account for people who put trailing slashes in PATH elements.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
702 case "$ac_dir/" in
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
703 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
704 *)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
705 # OSF1 and SCO ODT 3.0 have their own names for install.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
706 # Don't use installbsd from OSF since it installs stuff as root
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
707 # by default.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
708 for ac_prog in ginstall scoinst install; do
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
709 if test -f $ac_dir/$ac_prog; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
710 if test $ac_prog = install &&
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
711 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
712 # AIX install. It has an incompatible calling convention.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
713 :
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
714 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
715 ac_cv_path_install="$ac_dir/$ac_prog -c"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
716 break 2
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
717 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
718 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
719 done
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
720 ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
721 esac
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
722 done
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
723 IFS="$ac_save_IFS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
724
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
725 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
726 if test "${ac_cv_path_install+set}" = set; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
727 INSTALL="$ac_cv_path_install"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
728 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
729 # As a last resort, use the slow shell script. We don't cache a
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
730 # path for INSTALL within a source directory, because that will
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
731 # break other packages using the cache if that directory is
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
732 # removed, or if the path is relative.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
733 INSTALL="$ac_install_sh"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
734 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
735 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
736 echo "$ac_t""$INSTALL" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
737
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
738 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
739 # It thinks the first close brace ends the variable substitution.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
740 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
741
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
742 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
743
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
744 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
745
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
746 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
747 echo "configure:748: checking whether build environment is sane" >&5
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
748 # Just in case
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
749 sleep 1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
750 echo timestamp > conftestfile
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
751 # Do `set' in a subshell so we don't clobber the current shell's
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
752 # arguments. Must try -L first in case configure is actually a
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
753 # symlink; some systems play weird games with the mod time of symlinks
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
754 # (eg FreeBSD returns the mod time of the symlink's containing
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
755 # directory).
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
756 if (
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
757 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
758 if test "$*" = "X"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
759 # -L didn't work.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
760 set X `ls -t $srcdir/configure conftestfile`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
761 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
762 if test "$*" != "X $srcdir/configure conftestfile" \
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
763 && test "$*" != "X conftestfile $srcdir/configure"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
764
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
765 # If neither matched, then we have a broken ls. This can happen
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
766 # if, for instance, CONFIG_SHELL is bash and it inherits a
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
767 # broken ls alias from the environment. This has actually
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
768 # happened. Such a system could not be considered "sane".
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
769 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
770 alias in your environment" 1>&2; exit 1; }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
771 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
772
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
773 test "$2" = conftestfile
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
774 )
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
775 then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
776 # Ok.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
777 :
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
778 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
779 { echo "configure: error: newly created file is older than distributed files!
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
780 Check your system clock" 1>&2; exit 1; }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
781 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
782 rm -f conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
783 echo "$ac_t""yes" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
784 if test "$program_transform_name" = s,x,x,; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
785 program_transform_name=
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
786 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
787 # Double any \ or $. echo might interpret backslashes.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
788 cat <<\EOF_SED > conftestsed
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
789 s,\\,\\\\,g; s,\$,$$,g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
790 EOF_SED
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
791 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
792 rm -f conftestsed
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
793 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
794 test "$program_prefix" != NONE &&
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
795 program_transform_name="s,^,${program_prefix},; $program_transform_name"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
796 # Use a double $ so make ignores it.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
797 test "$program_suffix" != NONE &&
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
798 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
799
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
800 # sed with no file args requires a program.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
801 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
802
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
803 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
804 echo "configure:805: checking whether ${MAKE-make} sets \${MAKE}" >&5
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
805 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
806 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
807 echo $ac_n "(cached) $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
808 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
809 cat > conftestmake <<\EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
810 all:
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
811 @echo 'ac_maketemp="${MAKE}"'
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
812 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
813 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
814 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
815 if test -n "$ac_maketemp"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
816 eval ac_cv_prog_make_${ac_make}_set=yes
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
817 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
818 eval ac_cv_prog_make_${ac_make}_set=no
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
819 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
820 rm -f conftestmake
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
821 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
822 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
823 echo "$ac_t""yes" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
824 SET_MAKE=
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
825 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
826 echo "$ac_t""no" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
827 SET_MAKE="MAKE=${MAKE-make}"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
828 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
829
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
830
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
831 PACKAGE=gftp
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
832
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
833 VERSION=2.0.13
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
834
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
835 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
836 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
837 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
838 cat >> confdefs.h <<EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
839 #define PACKAGE "$PACKAGE"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
840 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
841
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
842 cat >> confdefs.h <<EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
843 #define VERSION "$VERSION"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
844 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
845
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
846
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
847
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
848 missing_dir=`cd $ac_aux_dir && pwd`
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
849 echo $ac_n "checking for working aclocal-${am__api_version}""... $ac_c" 1>&6
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
850 echo "configure:851: checking for working aclocal-${am__api_version}" >&5
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
851 # Run test in a subshell; some versions of sh will print an error if
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
852 # an executable is not found, even if stderr is redirected.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
853 # Redirect stdin to placate older versions of autoconf. Sigh.
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
854 if (aclocal-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
855 ACLOCAL=aclocal-${am__api_version}
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
856 echo "$ac_t""found" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
857 else
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
858 ACLOCAL="$missing_dir/missing aclocal-${am__api_version}"
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
859 echo "$ac_t""missing" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
860 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
861
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
862 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
863 echo "configure:864: checking for working autoconf" >&5
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
864 # Run test in a subshell; some versions of sh will print an error if
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
865 # an executable is not found, even if stderr is redirected.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
866 # Redirect stdin to placate older versions of autoconf. Sigh.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
867 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
868 AUTOCONF=autoconf
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
869 echo "$ac_t""found" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
870 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
871 AUTOCONF="$missing_dir/missing autoconf"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
872 echo "$ac_t""missing" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
873 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
874
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
875 echo $ac_n "checking for working automake-${am__api_version}""... $ac_c" 1>&6
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
876 echo "configure:877: checking for working automake-${am__api_version}" >&5
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
877 # Run test in a subshell; some versions of sh will print an error if
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
878 # an executable is not found, even if stderr is redirected.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
879 # Redirect stdin to placate older versions of autoconf. Sigh.
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
880 if (automake-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
881 AUTOMAKE=automake-${am__api_version}
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
882 echo "$ac_t""found" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
883 else
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
884 AUTOMAKE="$missing_dir/missing automake-${am__api_version}"
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
885 echo "$ac_t""missing" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
886 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
887
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
888 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
889 echo "configure:890: checking for working autoheader" >&5
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
890 # Run test in a subshell; some versions of sh will print an error if
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
891 # an executable is not found, even if stderr is redirected.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
892 # Redirect stdin to placate older versions of autoconf. Sigh.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
893 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
894 AUTOHEADER=autoheader
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
895 echo "$ac_t""found" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
896 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
897 AUTOHEADER="$missing_dir/missing autoheader"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
898 echo "$ac_t""missing" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
899 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
900
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
901 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
902 echo "configure:903: checking for working makeinfo" >&5
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
903 # Run test in a subshell; some versions of sh will print an error if
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
904 # an executable is not found, even if stderr is redirected.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
905 # Redirect stdin to placate older versions of autoconf. Sigh.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
906 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
907 MAKEINFO=makeinfo
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
908 echo "$ac_t""found" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
909 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
910 MAKEINFO="$missing_dir/missing makeinfo"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
911 echo "$ac_t""missing" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
912 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
913
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
914
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
915
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
916 # Check whether --enable-gtk20 or --disable-gtk20 was given.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
917 if test "${enable_gtk20+set}" = set; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
918 enableval="$enable_gtk20"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
919 enable_gtk20=1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
920 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
921 enable_gtk20=0
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
922 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
923
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
924 # Check whether --enable-gtkport or --disable-gtkport was given.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
925 if test "${enable_gtkport+set}" = set; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
926 enableval="$enable_gtkport"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
927 enable_gtkport=0
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
928 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
929 enable_gtkport=1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
930 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
931
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
932 # Check whether --enable-textport or --disable-textport was given.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
933 if test "${enable_textport+set}" = set; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
934 enableval="$enable_textport"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
935 enable_textport=0
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
936 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
937 enable_textport=1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
938 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
939
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
940 # Check whether --enable-dmalloc or --disable-dmalloc was given.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
941 if test "${enable_dmalloc+set}" = set; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
942 enableval="$enable_dmalloc"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
943 enable_dmalloc=1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
944 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
945 enable_dmalloc=0
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
946 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
947
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
948
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
949
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
950
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
951
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
952
8
9a30825849ce small build fixes
masneyb
parents: 7
diff changeset
953 ALL_LINGUAS="bg cs da de es fi fr it ja ko nl no pl pt_BR ru sv tr zh_CN zh_TW"
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
954
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
955 cat >> confdefs.h <<\EOF
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
956 #define _GNU_SOURCE 1
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
957 EOF
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
958
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
959
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
960
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
961 # Make sure we can run config.sub.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
962 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
963 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
964 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
965
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
966 echo $ac_n "checking host system type""... $ac_c" 1>&6
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
967 echo "configure:968: checking host system type" >&5
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
968
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
969 host_alias=$host
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
970 case "$host_alias" in
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
971 NONE)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
972 case $nonopt in
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
973 NONE)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
974 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
975 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
976 fi ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
977 *) host_alias=$nonopt ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
978 esac ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
979 esac
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
980
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
981 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
982 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
983 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
984 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
985 echo "$ac_t""$host" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
986
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
987 # Extract the first word of "gcc", so it can be a program name with args.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
988 set dummy gcc; ac_word=$2
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
989 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
990 echo "configure:991: checking for $ac_word" >&5
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
991 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
992 echo $ac_n "(cached) $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
993 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
994 if test -n "$CC"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
995 ac_cv_prog_CC="$CC" # Let the user override the test.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
996 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
997 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
998 ac_dummy="$PATH"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
999 for ac_dir in $ac_dummy; do
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1000 test -z "$ac_dir" && ac_dir=.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1001 if test -f $ac_dir/$ac_word; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1002 ac_cv_prog_CC="gcc"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1003 break
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1004 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1005 done
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1006 IFS="$ac_save_ifs"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1007 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1008 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1009 CC="$ac_cv_prog_CC"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1010 if test -n "$CC"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1011 echo "$ac_t""$CC" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1012 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1013 echo "$ac_t""no" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1014 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1015
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1016 if test -z "$CC"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1017 # Extract the first word of "cc", so it can be a program name with args.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1018 set dummy cc; ac_word=$2
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1019 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1020 echo "configure:1021: checking for $ac_word" >&5
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1021 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1022 echo $ac_n "(cached) $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1023 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1024 if test -n "$CC"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1025 ac_cv_prog_CC="$CC" # Let the user override the test.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1026 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1027 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1028 ac_prog_rejected=no
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1029 ac_dummy="$PATH"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1030 for ac_dir in $ac_dummy; do
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1031 test -z "$ac_dir" && ac_dir=.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1032 if test -f $ac_dir/$ac_word; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1033 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1034 ac_prog_rejected=yes
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1035 continue
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1036 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1037 ac_cv_prog_CC="cc"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1038 break
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1039 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1040 done
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1041 IFS="$ac_save_ifs"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1042 if test $ac_prog_rejected = yes; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1043 # We found a bogon in the path, so make sure we never use it.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1044 set dummy $ac_cv_prog_CC
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1045 shift
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1046 if test $# -gt 0; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1047 # We chose a different compiler from the bogus one.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1048 # However, it has the same basename, so the bogon will be chosen
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1049 # first if we set CC to just the basename; use the full file name.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1050 shift
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1051 set dummy "$ac_dir/$ac_word" "$@"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1052 shift
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1053 ac_cv_prog_CC="$@"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1054 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1055 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1056 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1057 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1058 CC="$ac_cv_prog_CC"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1059 if test -n "$CC"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1060 echo "$ac_t""$CC" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1061 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1062 echo "$ac_t""no" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1063 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1064
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1065 if test -z "$CC"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1066 case "`uname -s`" in
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1067 *win32* | *WIN32*)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1068 # Extract the first word of "cl", so it can be a program name with args.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1069 set dummy cl; ac_word=$2
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1070 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1071 echo "configure:1072: checking for $ac_word" >&5
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1072 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1073 echo $ac_n "(cached) $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1074 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1075 if test -n "$CC"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1076 ac_cv_prog_CC="$CC" # Let the user override the test.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1077 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1078 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1079 ac_dummy="$PATH"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1080 for ac_dir in $ac_dummy; do
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1081 test -z "$ac_dir" && ac_dir=.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1082 if test -f $ac_dir/$ac_word; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1083 ac_cv_prog_CC="cl"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1084 break
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1085 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1086 done
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1087 IFS="$ac_save_ifs"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1088 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1089 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1090 CC="$ac_cv_prog_CC"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1091 if test -n "$CC"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1092 echo "$ac_t""$CC" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1093 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1094 echo "$ac_t""no" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1095 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1096 ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1097 esac
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1098 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1099 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1100 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1101
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1102 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1103 echo "configure:1104: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1104
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1105 ac_ext=c
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1106 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1107 ac_cpp='$CPP $CPPFLAGS'
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1108 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1109 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1110 cross_compiling=$ac_cv_prog_cc_cross
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1111
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1112 cat > conftest.$ac_ext << EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1113
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1114 #line 1115 "configure"
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1115 #include "confdefs.h"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1116
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1117 main(){return(0);}
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1118 EOF
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1119 if { (eval echo configure:1120: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1120 ac_cv_prog_cc_works=yes
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1121 # If we can't run a trivial program, we are probably using a cross compiler.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1122 if (./conftest; exit) 2>/dev/null; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1123 ac_cv_prog_cc_cross=no
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1124 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1125 ac_cv_prog_cc_cross=yes
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1126 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1127 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1128 echo "configure: failed program was:" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1129 cat conftest.$ac_ext >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1130 ac_cv_prog_cc_works=no
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1131 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1132 rm -fr conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1133 ac_ext=c
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1134 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1135 ac_cpp='$CPP $CPPFLAGS'
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1136 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1137 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1138 cross_compiling=$ac_cv_prog_cc_cross
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1139
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1140 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1141 if test $ac_cv_prog_cc_works = no; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1142 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1143 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1144 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1145 echo "configure:1146: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1146 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1147 cross_compiling=$ac_cv_prog_cc_cross
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1148
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1149 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1150 echo "configure:1151: checking whether we are using GNU C" >&5
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1151 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1152 echo $ac_n "(cached) $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1153 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1154 cat > conftest.c <<EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1155 #ifdef __GNUC__
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1156 yes;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1157 #endif
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1158 EOF
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1159 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1160: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1160 ac_cv_prog_gcc=yes
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1161 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1162 ac_cv_prog_gcc=no
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1163 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1164 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1165
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1166 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1167
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1168 if test $ac_cv_prog_gcc = yes; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1169 GCC=yes
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1170 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1171 GCC=
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1172 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1173
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1174 ac_test_CFLAGS="${CFLAGS+set}"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1175 ac_save_CFLAGS="$CFLAGS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1176 CFLAGS=
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1177 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1178 echo "configure:1179: checking whether ${CC-cc} accepts -g" >&5
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1179 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1180 echo $ac_n "(cached) $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1181 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1182 echo 'void f(){}' > conftest.c
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1183 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1184 ac_cv_prog_cc_g=yes
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1185 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1186 ac_cv_prog_cc_g=no
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1187 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1188 rm -f conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1189
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1190 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1191
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1192 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1193 if test "$ac_test_CFLAGS" = set; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1194 CFLAGS="$ac_save_CFLAGS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1195 elif test $ac_cv_prog_cc_g = yes; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1196 if test "$GCC" = yes; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1197 CFLAGS="-g -O2"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1198 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1199 CFLAGS="-g"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1200 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1201 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1202 if test "$GCC" = yes; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1203 CFLAGS="-O2"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1204 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1205 CFLAGS=
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1206 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1207 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1208
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1209 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1210 echo "configure:1211: checking how to run the C preprocessor" >&5
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1211 # On Suns, sometimes $CPP names a directory.
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1212 if test -n "$CPP" && test -d "$CPP"; then
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1213 CPP=
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1214 fi
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1215 if test -z "$CPP"; then
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1216 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1217 echo $ac_n "(cached) $ac_c" 1>&6
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1218 else
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1219 # This must be in double quotes, not single quotes, because CPP may get
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1220 # substituted into the Makefile and "${CC-cc}" will confuse make.
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1221 CPP="${CC-cc} -E"
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1222 # On the NeXT, cc -E runs the code through the compiler's parser,
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1223 # not just through cpp.
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1224 cat > conftest.$ac_ext <<EOF
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1225 #line 1226 "configure"
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1226 #include "confdefs.h"
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1227 #include <assert.h>
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1228 Syntax Error
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1229 EOF
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1230 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1231 { (eval echo configure:1232: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1232 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1233 if test -z "$ac_err"; then
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1234 :
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1235 else
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1236 echo "$ac_err" >&5
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1237 echo "configure: failed program was:" >&5
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1238 cat conftest.$ac_ext >&5
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1239 rm -rf conftest*
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1240 CPP="${CC-cc} -E -traditional-cpp"
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1241 cat > conftest.$ac_ext <<EOF
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1242 #line 1243 "configure"
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1243 #include "confdefs.h"
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1244 #include <assert.h>
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1245 Syntax Error
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1246 EOF
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1247 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1248 { (eval echo configure:1249: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1249 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1250 if test -z "$ac_err"; then
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1251 :
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1252 else
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1253 echo "$ac_err" >&5
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1254 echo "configure: failed program was:" >&5
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1255 cat conftest.$ac_ext >&5
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1256 rm -rf conftest*
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1257 CPP="${CC-cc} -nologo -E"
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1258 cat > conftest.$ac_ext <<EOF
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1259 #line 1260 "configure"
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1260 #include "confdefs.h"
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1261 #include <assert.h>
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1262 Syntax Error
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1263 EOF
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1264 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1265 { (eval echo configure:1266: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1266 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1267 if test -z "$ac_err"; then
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1268 :
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1269 else
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1270 echo "$ac_err" >&5
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1271 echo "configure: failed program was:" >&5
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1272 cat conftest.$ac_ext >&5
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1273 rm -rf conftest*
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1274 CPP=/lib/cpp
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1275 fi
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1276 rm -f conftest*
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1277 fi
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1278 rm -f conftest*
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1279 fi
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1280 rm -f conftest*
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1281 ac_cv_prog_CPP="$CPP"
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1282 fi
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1283 CPP="$ac_cv_prog_CPP"
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1284 else
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1285 ac_cv_prog_CPP="$CPP"
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1286 fi
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1287 echo "$ac_t""$CPP" 1>&6
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1288
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1289 echo $ac_n "checking for AIX""... $ac_c" 1>&6
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1290 echo "configure:1291: checking for AIX" >&5
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1291 cat > conftest.$ac_ext <<EOF
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1292 #line 1293 "configure"
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1293 #include "confdefs.h"
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1294 #ifdef _AIX
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1295 yes
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1296 #endif
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1297
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1298 EOF
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1299 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1300 egrep "yes" >/dev/null 2>&1; then
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1301 rm -rf conftest*
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1302 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1303 #define _ALL_SOURCE 1
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1304 EOF
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1305
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1306 else
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1307 rm -rf conftest*
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1308 echo "$ac_t""no" 1>&6
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1309 fi
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1310 rm -f conftest*
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1311
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1312
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1313 ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1314 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1315 echo "configure:1316: checking for minix/config.h" >&5
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1316 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1317 echo $ac_n "(cached) $ac_c" 1>&6
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1318 else
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1319 cat > conftest.$ac_ext <<EOF
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1320 #line 1321 "configure"
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1321 #include "confdefs.h"
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1322 #include <minix/config.h>
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1323 EOF
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1324 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1325 { (eval echo configure:1326: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1326 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1327 if test -z "$ac_err"; then
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1328 rm -rf conftest*
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1329 eval "ac_cv_header_$ac_safe=yes"
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1330 else
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1331 echo "$ac_err" >&5
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1332 echo "configure: failed program was:" >&5
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1333 cat conftest.$ac_ext >&5
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1334 rm -rf conftest*
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1335 eval "ac_cv_header_$ac_safe=no"
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1336 fi
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1337 rm -f conftest*
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1338 fi
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1339 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1340 echo "$ac_t""yes" 1>&6
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1341 MINIX=yes
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1342 else
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1343 echo "$ac_t""no" 1>&6
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1344 MINIX=
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1345 fi
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1346
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1347 if test "$MINIX" = yes; then
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1348 cat >> confdefs.h <<\EOF
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1349 #define _POSIX_SOURCE 1
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1350 EOF
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1351
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1352 cat >> confdefs.h <<\EOF
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1353 #define _POSIX_1_SOURCE 2
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1354 EOF
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1355
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1356 cat >> confdefs.h <<\EOF
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1357 #define _MINIX 1
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1358 EOF
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1359
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1360 fi
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1361
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1362 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1363 echo "configure:1364: checking for Cygwin environment" >&5
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1364 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1365 echo $ac_n "(cached) $ac_c" 1>&6
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1366 else
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1367 cat > conftest.$ac_ext <<EOF
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1368 #line 1369 "configure"
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1369 #include "confdefs.h"
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1370
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1371 int main() {
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1372
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1373 #ifndef __CYGWIN__
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1374 #define __CYGWIN__ __CYGWIN32__
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1375 #endif
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1376 return __CYGWIN__;
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1377 ; return 0; }
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1378 EOF
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1379 if { (eval echo configure:1380: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1380 rm -rf conftest*
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1381 ac_cv_cygwin=yes
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1382 else
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1383 echo "configure: failed program was:" >&5
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1384 cat conftest.$ac_ext >&5
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1385 rm -rf conftest*
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1386 ac_cv_cygwin=no
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1387 fi
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1388 rm -f conftest*
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1389 rm -f conftest*
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1390 fi
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1391
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1392 echo "$ac_t""$ac_cv_cygwin" 1>&6
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1393 CYGWIN=
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1394 test "$ac_cv_cygwin" = yes && CYGWIN=yes
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1395 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1396 echo "configure:1397: checking for mingw32 environment" >&5
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1397 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1398 echo $ac_n "(cached) $ac_c" 1>&6
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1399 else
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1400 cat > conftest.$ac_ext <<EOF
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1401 #line 1402 "configure"
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1402 #include "confdefs.h"
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1403
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1404 int main() {
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1405 return __MINGW32__;
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1406 ; return 0; }
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1407 EOF
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1408 if { (eval echo configure:1409: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1409 rm -rf conftest*
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1410 ac_cv_mingw32=yes
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1411 else
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1412 echo "configure: failed program was:" >&5
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1413 cat conftest.$ac_ext >&5
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1414 rm -rf conftest*
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1415 ac_cv_mingw32=no
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1416 fi
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1417 rm -f conftest*
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1418 rm -f conftest*
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1419 fi
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1420
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1421 echo "$ac_t""$ac_cv_mingw32" 1>&6
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1422 MINGW32=
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1423 test "$ac_cv_mingw32" = yes && MINGW32=yes
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1424
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1425
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1426 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1427 echo "configure:1428: checking for executable suffix" >&5
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1428 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1429 echo $ac_n "(cached) $ac_c" 1>&6
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1430 else
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1431 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1432 ac_cv_exeext=.exe
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1433 else
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1434 rm -f conftest*
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1435 echo 'int main () { return 0; }' > conftest.$ac_ext
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1436 ac_cv_exeext=
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1437 if { (eval echo configure:1438: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1438 for file in conftest.*; do
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1439 case $file in
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1440 *.$ac_ext | *.c | *.o | *.obj) ;;
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1441 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1442 esac
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1443 done
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1444 else
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1445 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1446 fi
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1447 rm -f conftest*
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1448 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1449 fi
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1450 fi
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1451
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1452 EXEEXT=""
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1453 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1454 echo "$ac_t""${ac_cv_exeext}" 1>&6
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1455 ac_exeext=$EXEEXT
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1456
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1457 # Extract the first word of "ranlib", so it can be a program name with args.
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1458 set dummy ranlib; ac_word=$2
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1459 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1460 echo "configure:1461: checking for $ac_word" >&5
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1461 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1462 echo $ac_n "(cached) $ac_c" 1>&6
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1463 else
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1464 if test -n "$RANLIB"; then
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1465 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1466 else
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1467 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1468 ac_dummy="$PATH"
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1469 for ac_dir in $ac_dummy; do
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1470 test -z "$ac_dir" && ac_dir=.
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1471 if test -f $ac_dir/$ac_word; then
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1472 ac_cv_prog_RANLIB="ranlib"
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1473 break
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1474 fi
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1475 done
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1476 IFS="$ac_save_ifs"
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1477 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1478 fi
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1479 fi
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1480 RANLIB="$ac_cv_prog_RANLIB"
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1481 if test -n "$RANLIB"; then
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1482 echo "$ac_t""$RANLIB" 1>&6
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1483 else
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1484 echo "$ac_t""no" 1>&6
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1485 fi
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1486
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1487 echo $ac_n "checking build system type""... $ac_c" 1>&6
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1488 echo "configure:1489: checking build system type" >&5
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1489
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1490 build_alias=$build
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1491 case "$build_alias" in
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1492 NONE)
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1493 case $nonopt in
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1494 NONE) build_alias=$host_alias ;;
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1495 *) build_alias=$nonopt ;;
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1496 esac ;;
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1497 esac
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1498
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1499 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1500 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1501 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1502 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1503 echo "$ac_t""$build" 1>&6
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1504
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1505 if test $host != $build; then
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1506 ac_tool_prefix=${host_alias}-
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1507 else
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1508 ac_tool_prefix=
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1509 fi
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1510
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1511
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1512 # Check whether --enable-largefile or --disable-largefile was given.
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1513 if test "${enable_largefile+set}" = set; then
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1514 enableval="$enable_largefile"
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1515 :
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1516 fi
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1517
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1518 if test "$enable_largefile" != no; then
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1519 # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1520 set dummy ${ac_tool_prefix}getconf; ac_word=$2
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1521 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1522 echo "configure:1523: checking for $ac_word" >&5
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1523 if eval "test \"`echo '$''{'ac_cv_prog_GETCONF'+set}'`\" = set"; then
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1524 echo $ac_n "(cached) $ac_c" 1>&6
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1525 else
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1526 if test -n "$GETCONF"; then
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1527 ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1528 else
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1529 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1530 ac_dummy="$PATH"
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1531 for ac_dir in $ac_dummy; do
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1532 test -z "$ac_dir" && ac_dir=.
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1533 if test -f $ac_dir/$ac_word; then
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1534 ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1535 break
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1536 fi
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1537 done
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1538 IFS="$ac_save_ifs"
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1539 test -z "$ac_cv_prog_GETCONF" && ac_cv_prog_GETCONF="getconf"
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1540 fi
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1541 fi
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1542 GETCONF="$ac_cv_prog_GETCONF"
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1543 if test -n "$GETCONF"; then
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1544 echo "$ac_t""$GETCONF" 1>&6
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1545 else
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1546 echo "$ac_t""no" 1>&6
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1547 fi
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1548
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1549
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1550
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1551 echo $ac_n "checking for CFLAGS value to request large file support""... $ac_c" 1>&6
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1552 echo "configure:1553: checking for CFLAGS value to request large file support" >&5
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1553 if eval "test \"`echo '$''{'ac_cv_sys_largefile_CFLAGS'+set}'`\" = set"; then
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1554 echo $ac_n "(cached) $ac_c" 1>&6
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1555 else
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1556 ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1557 ac_cv_sys_largefile_CFLAGS=no
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1558 case "$host_os" in
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1559 # IRIX 6.2 and later require cc -n32.
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1560 irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1561 if test "$GCC" != yes; then
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1562 ac_cv_sys_largefile_CFLAGS=-n32
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1563 fi
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1564 ac_save_CC="$CC"
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1565 CC="$CC $ac_cv_sys_largefile_CFLAGS"
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1566 cat > conftest.$ac_ext <<EOF
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1567 #line 1568 "configure"
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1568 #include "confdefs.h"
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1569
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1570 int main() {
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1571
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1572 ; return 0; }
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1573 EOF
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1574 if { (eval echo configure:1575: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1575 :
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1576 else
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1577 echo "configure: failed program was:" >&5
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1578 cat conftest.$ac_ext >&5
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1579 rm -rf conftest*
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1580 ac_cv_sys_largefile_CFLAGS=no
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1581 fi
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1582 rm -f conftest*
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1583 CC="$ac_save_CC"
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1584 esac
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1585 }
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1586 fi
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1587
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1588 echo "$ac_t""$ac_cv_sys_largefile_CFLAGS" 1>&6
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1589 echo $ac_n "checking for LDFLAGS value to request large file support""... $ac_c" 1>&6
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1590 echo "configure:1591: checking for LDFLAGS value to request large file support" >&5
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1591 if eval "test \"`echo '$''{'ac_cv_sys_largefile_LDFLAGS'+set}'`\" = set"; then
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1592 echo $ac_n "(cached) $ac_c" 1>&6
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1593 else
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1594 ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1595 ac_cv_sys_largefile_LDFLAGS=no
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1596
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1597 }
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1598 fi
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1599
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1600 echo "$ac_t""$ac_cv_sys_largefile_LDFLAGS" 1>&6
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1601 echo $ac_n "checking for LIBS value to request large file support""... $ac_c" 1>&6
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1602 echo "configure:1603: checking for LIBS value to request large file support" >&5
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1603 if eval "test \"`echo '$''{'ac_cv_sys_largefile_LIBS'+set}'`\" = set"; then
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1604 echo $ac_n "(cached) $ac_c" 1>&6
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1605 else
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1606 ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1607 ac_cv_sys_largefile_LIBS=no
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1608
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1609 }
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1610 fi
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1611
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1612 echo "$ac_t""$ac_cv_sys_largefile_LIBS" 1>&6
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1613
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1614 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1615 case "$ac_flag" in
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1616 no) ;;
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1617 -D_FILE_OFFSET_BITS=*) ;;
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1618 -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1619 -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1620 -D?* | -I?*)
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1621 case "$ac_flag" in
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1622 no) ;;
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1623 ?*)
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1624 case "$CPPFLAGS" in
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1625 '') CPPFLAGS="$ac_flag" ;;
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1626 *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1627 esac ;;
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1628 esac ;;
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1629 *)
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1630 case "$ac_flag" in
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1631 no) ;;
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1632 ?*)
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1633 case "$CFLAGS" in
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1634 '') CFLAGS="$ac_flag" ;;
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1635 *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1636 esac ;;
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1637 esac ;;
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1638 esac
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1639 done
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1640 case "$ac_cv_sys_largefile_LDFLAGS" in
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1641 no) ;;
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1642 ?*)
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1643 case "$LDFLAGS" in
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1644 '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1645 *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1646 esac ;;
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1647 esac
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1648 case "$ac_cv_sys_largefile_LIBS" in
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1649 no) ;;
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1650 ?*)
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1651 case "$LIBS" in
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1652 '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1653 *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1654 esac ;;
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1655 esac
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1656 echo $ac_n "checking for _FILE_OFFSET_BITS""... $ac_c" 1>&6
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1657 echo "configure:1658: checking for _FILE_OFFSET_BITS" >&5
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1658 if eval "test \"`echo '$''{'ac_cv_sys_file_offset_bits'+set}'`\" = set"; then
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1659 echo $ac_n "(cached) $ac_c" 1>&6
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1660 else
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1661 ac_cv_sys_file_offset_bits=no
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1662
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1663 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1664 case "$ac_flag" in
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1665 -D_FILE_OFFSET_BITS)
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1666 ac_cv_sys_file_offset_bits=1 ;;
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1667 -D_FILE_OFFSET_BITS=*)
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1668 ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1669 esac
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1670 done
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1671
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1672 fi
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1673
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1674 echo "$ac_t""$ac_cv_sys_file_offset_bits" 1>&6
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1675 if test "$ac_cv_sys_file_offset_bits" != no; then
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1676 cat >> confdefs.h <<EOF
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1677 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1678 EOF
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1679
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1680 fi
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1681 echo $ac_n "checking for _LARGEFILE_SOURCE""... $ac_c" 1>&6
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1682 echo "configure:1683: checking for _LARGEFILE_SOURCE" >&5
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1683 if eval "test \"`echo '$''{'ac_cv_sys_largefile_source'+set}'`\" = set"; then
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1684 echo $ac_n "(cached) $ac_c" 1>&6
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1685 else
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1686 ac_cv_sys_largefile_source=no
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1687 case "$host_os" in
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1688 # HP-UX 10.20 and later
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1689 hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1690 ac_cv_sys_largefile_source=1 ;;
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1691 esac
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1692 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1693 case "$ac_flag" in
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1694 -D_LARGEFILE_SOURCE)
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1695 ac_cv_sys_largefile_source=1 ;;
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1696 -D_LARGEFILE_SOURCE=*)
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1697 ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1698 esac
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1699 done
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1700
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1701 fi
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1702
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1703 echo "$ac_t""$ac_cv_sys_largefile_source" 1>&6
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1704 if test "$ac_cv_sys_largefile_source" != no; then
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1705 cat >> confdefs.h <<EOF
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1706 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1707 EOF
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1708
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1709 fi
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1710 echo $ac_n "checking for _LARGE_FILES""... $ac_c" 1>&6
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1711 echo "configure:1712: checking for _LARGE_FILES" >&5
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1712 if eval "test \"`echo '$''{'ac_cv_sys_large_files'+set}'`\" = set"; then
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1713 echo $ac_n "(cached) $ac_c" 1>&6
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1714 else
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1715 ac_cv_sys_large_files=no
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1716 case "$host_os" in
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1717 # AIX 4.2 and later
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1718 aix4.[2-9]* | aix4.1[0-9]* | aix[5-9].* | aix[1-9][0-9]*)
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1719 ac_cv_sys_large_files=1 ;;
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1720 esac
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1721 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1722 case "$ac_flag" in
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1723 -D_LARGE_FILES)
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1724 ac_cv_sys_large_files=1 ;;
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1725 -D_LARGE_FILES=*)
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1726 ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1727 esac
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1728 done
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1729
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1730 fi
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1731
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1732 echo "$ac_t""$ac_cv_sys_large_files" 1>&6
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1733 if test "$ac_cv_sys_large_files" != no; then
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1734 cat >> confdefs.h <<EOF
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1735 #define _LARGE_FILES $ac_cv_sys_large_files
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1736 EOF
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1737
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1738 fi
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1739 fi
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1740
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1741
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1742
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1743
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1744 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1745 echo "configure:1746: checking for ${CC-cc} option to accept ANSI C" >&5
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1746 if eval "test \"`echo '$''{'am_cv_prog_cc_stdc'+set}'`\" = set"; then
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1747 echo $ac_n "(cached) $ac_c" 1>&6
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1748 else
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1749 am_cv_prog_cc_stdc=no
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1750 ac_save_CC="$CC"
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1751 # Don't try gcc -ansi; that turns off useful extensions and
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1752 # breaks some systems' header files.
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1753 # AIX -qlanglvl=ansi
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1754 # Ultrix and OSF/1 -std1
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1755 # HP-UX -Aa -D_HPUX_SOURCE
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1756 # SVR4 -Xc -D__EXTENSIONS__
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1757 for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1758 do
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1759 CC="$ac_save_CC $ac_arg"
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1760 cat > conftest.$ac_ext <<EOF
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1761 #line 1762 "configure"
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1762 #include "confdefs.h"
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1763 #include <stdarg.h>
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1764 #include <stdio.h>
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1765 #include <sys/types.h>
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1766 #include <sys/stat.h>
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1767 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1768 struct buf { int x; };
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1769 FILE * (*rcsopen) (struct buf *, struct stat *, int);
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1770 static char *e (p, i)
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1771 char **p;
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1772 int i;
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1773 {
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1774 return p[i];
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1775 }
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1776 static char *f (char * (*g) (char **, int), char **p, ...)
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1777 {
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1778 char *s;
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1779 va_list v;
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1780 va_start (v,p);
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1781 s = g (p, va_arg (v,int));
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1782 va_end (v);
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1783 return s;
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1784 }
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1785 int test (int i, double x);
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1786 struct s1 {int (*f) (int a);};
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1787 struct s2 {int (*f) (double a);};
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1788 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1789 int argc;
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1790 char **argv;
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1791
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1792 int main() {
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1793
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1794 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1795
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1796 ; return 0; }
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1797 EOF
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1798 if { (eval echo configure:1799: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1799 rm -rf conftest*
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1800 am_cv_prog_cc_stdc="$ac_arg"; break
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1801 else
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1802 echo "configure: failed program was:" >&5
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1803 cat conftest.$ac_ext >&5
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1804 fi
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1805 rm -f conftest*
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1806 done
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1807 CC="$ac_save_CC"
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1808
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1809 fi
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1810
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1811 if test -z "$am_cv_prog_cc_stdc"; then
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1812 echo "$ac_t""none needed" 1>&6
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1813 else
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1814 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1815 fi
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1816 case "x$am_cv_prog_cc_stdc" in
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1817 x|xno) ;;
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1818 *) CC="$CC $am_cv_prog_cc_stdc" ;;
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1819 esac
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1820
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1821
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1822
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1823 echo $ac_n "checking for function prototypes""... $ac_c" 1>&6
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1824 echo "configure:1825: checking for function prototypes" >&5
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1825 if test "$am_cv_prog_cc_stdc" != no; then
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1826 echo "$ac_t""yes" 1>&6
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1827 cat >> confdefs.h <<\EOF
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1828 #define PROTOTYPES 1
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1829 EOF
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1830
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1831 U= ANSI2KNR=
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1832 else
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1833 echo "$ac_t""no" 1>&6
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1834 U=_ ANSI2KNR=./ansi2knr
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1835 # Ensure some checks needed by ansi2knr itself.
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1836 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1837 echo "configure:1838: checking for ANSI C header files" >&5
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1838 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1839 echo $ac_n "(cached) $ac_c" 1>&6
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1840 else
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1841 cat > conftest.$ac_ext <<EOF
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1842 #line 1843 "configure"
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1843 #include "confdefs.h"
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1844 #include <stdlib.h>
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1845 #include <stdarg.h>
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1846 #include <string.h>
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1847 #include <float.h>
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1848 EOF
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1849 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1850 { (eval echo configure:1851: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1851 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1852 if test -z "$ac_err"; then
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1853 rm -rf conftest*
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1854 ac_cv_header_stdc=yes
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1855 else
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1856 echo "$ac_err" >&5
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1857 echo "configure: failed program was:" >&5
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1858 cat conftest.$ac_ext >&5
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1859 rm -rf conftest*
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1860 ac_cv_header_stdc=no
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1861 fi
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1862 rm -f conftest*
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1863
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1864 if test $ac_cv_header_stdc = yes; then
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1865 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1866 cat > conftest.$ac_ext <<EOF
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1867 #line 1868 "configure"
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1868 #include "confdefs.h"
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1869 #include <string.h>
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1870 EOF
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1871 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1872 egrep "memchr" >/dev/null 2>&1; then
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1873 :
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1874 else
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1875 rm -rf conftest*
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1876 ac_cv_header_stdc=no
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1877 fi
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1878 rm -f conftest*
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1879
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1880 fi
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1881
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1882 if test $ac_cv_header_stdc = yes; then
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1883 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1884 cat > conftest.$ac_ext <<EOF
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1885 #line 1886 "configure"
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1886 #include "confdefs.h"
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1887 #include <stdlib.h>
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1888 EOF
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1889 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1890 egrep "free" >/dev/null 2>&1; then
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1891 :
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1892 else
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1893 rm -rf conftest*
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1894 ac_cv_header_stdc=no
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1895 fi
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1896 rm -f conftest*
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1897
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1898 fi
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1899
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1900 if test $ac_cv_header_stdc = yes; then
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1901 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1902 if test "$cross_compiling" = yes; then
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1903 :
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1904 else
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1905 cat > conftest.$ac_ext <<EOF
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1906 #line 1907 "configure"
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1907 #include "confdefs.h"
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1908 #include <ctype.h>
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1909 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1910 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1911 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1912 int main () { int i; for (i = 0; i < 256; i++)
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1913 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1914 exit (0); }
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1915
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1916 EOF
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1917 if { (eval echo configure:1918: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1918 then
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1919 :
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1920 else
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1921 echo "configure: failed program was:" >&5
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1922 cat conftest.$ac_ext >&5
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1923 rm -fr conftest*
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1924 ac_cv_header_stdc=no
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1925 fi
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1926 rm -fr conftest*
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1927 fi
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1928
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1929 fi
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1930 fi
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1931
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1932 echo "$ac_t""$ac_cv_header_stdc" 1>&6
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1933 if test $ac_cv_header_stdc = yes; then
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1934 cat >> confdefs.h <<\EOF
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1935 #define STDC_HEADERS 1
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1936 EOF
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1937
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1938 fi
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1939
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1940 for ac_hdr in string.h
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1941 do
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1942 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1943 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1944 echo "configure:1945: checking for $ac_hdr" >&5
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1945 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1946 echo $ac_n "(cached) $ac_c" 1>&6
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1947 else
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1948 cat > conftest.$ac_ext <<EOF
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1949 #line 1950 "configure"
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1950 #include "confdefs.h"
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1951 #include <$ac_hdr>
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1952 EOF
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1953 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1954 { (eval echo configure:1955: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1955 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1956 if test -z "$ac_err"; then
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1957 rm -rf conftest*
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1958 eval "ac_cv_header_$ac_safe=yes"
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1959 else
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1960 echo "$ac_err" >&5
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1961 echo "configure: failed program was:" >&5
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1962 cat conftest.$ac_ext >&5
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1963 rm -rf conftest*
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1964 eval "ac_cv_header_$ac_safe=no"
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1965 fi
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1966 rm -f conftest*
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1967 fi
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1968 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1969 echo "$ac_t""yes" 1>&6
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1970 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1971 cat >> confdefs.h <<EOF
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1972 #define $ac_tr_hdr 1
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1973 EOF
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1974
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1975 else
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1976 echo "$ac_t""no" 1>&6
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1977 fi
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1978 done
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1979
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1980 fi
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1981
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1982 echo $ac_n "checking for working const""... $ac_c" 1>&6
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1983 echo "configure:1984: checking for working const" >&5
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1984 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1985 echo $ac_n "(cached) $ac_c" 1>&6
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1986 else
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1987 cat > conftest.$ac_ext <<EOF
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1988 #line 1989 "configure"
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1989 #include "confdefs.h"
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1990
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1991 int main() {
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1992
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1993 /* Ultrix mips cc rejects this. */
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1994 typedef int charset[2]; const charset x;
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1995 /* SunOS 4.1.1 cc rejects this. */
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1996 char const *const *ccp;
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1997 char **p;
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1998 /* NEC SVR4.0.2 mips cc rejects this. */
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
1999 struct point {int x, y;};
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
2000 static struct point const zero = {0,0};
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
2001 /* AIX XL C 1.02.0.0 rejects this.
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
2002 It does not let you subtract one const X* pointer from another in an arm
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
2003 of an if-expression whose if-part is not a constant expression */
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
2004 const char *g = "string";
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
2005 ccp = &g + (g ? g-g : 0);
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
2006 /* HPUX 7.0 cc rejects these. */
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
2007 ++ccp;
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
2008 p = (char**) ccp;
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
2009 ccp = (char const *const *) p;
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
2010 { /* SCO 3.2v4 cc rejects this. */
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
2011 char *t;
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
2012 char const *s = 0 ? (char *) 0 : (char const *) 0;
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
2013
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
2014 *t++ = 0;
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
2015 }
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
2016 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
2017 int x[] = {25, 17};
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
2018 const int *foo = &x[0];
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
2019 ++foo;
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
2020 }
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
2021 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
2022 typedef const int *iptr;
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
2023 iptr p = 0;
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
2024 ++p;
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
2025 }
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
2026 { /* AIX XL C 1.02.0.0 rejects this saying
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
2027 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
2028 struct s { int j; const int *ap[3]; };
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
2029 struct s *b; b->j = 5;
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
2030 }
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
2031 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
2032 const int foo = 10;
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
2033 }
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
2034
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
2035 ; return 0; }
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
2036 EOF
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
2037 if { (eval echo configure:2038: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
2038 rm -rf conftest*
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
2039 ac_cv_c_const=yes
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
2040 else
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
2041 echo "configure: failed program was:" >&5
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
2042 cat conftest.$ac_ext >&5
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
2043 rm -rf conftest*
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
2044 ac_cv_c_const=no
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
2045 fi
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
2046 rm -f conftest*
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
2047 fi
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
2048
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
2049 echo "$ac_t""$ac_cv_c_const" 1>&6
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
2050 if test $ac_cv_c_const = no; then
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
2051 cat >> confdefs.h <<\EOF
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
2052 #define const
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
2053 EOF
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
2054
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
2055 fi
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
2056
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
2057 echo $ac_n "checking for inline""... $ac_c" 1>&6
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
2058 echo "configure:2059: checking for inline" >&5
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
2059 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
2060 echo $ac_n "(cached) $ac_c" 1>&6
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
2061 else
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
2062 ac_cv_c_inline=no
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
2063 for ac_kw in inline __inline__ __inline; do
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
2064 cat > conftest.$ac_ext <<EOF
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
2065 #line 2066 "configure"
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
2066 #include "confdefs.h"
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
2067
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
2068 int main() {
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
2069 } $ac_kw foo() {
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
2070 ; return 0; }
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
2071 EOF
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
2072 if { (eval echo configure:2073: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
2073 rm -rf conftest*
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
2074 ac_cv_c_inline=$ac_kw; break
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
2075 else
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
2076 echo "configure: failed program was:" >&5
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
2077 cat conftest.$ac_ext >&5
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
2078 fi
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
2079 rm -f conftest*
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
2080 done
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
2081
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
2082 fi
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
2083
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
2084 echo "$ac_t""$ac_cv_c_inline" 1>&6
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
2085 case "$ac_cv_c_inline" in
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
2086 inline | yes) ;;
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
2087 no) cat >> confdefs.h <<\EOF
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
2088 #define inline
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
2089 EOF
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
2090 ;;
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
2091 *) cat >> confdefs.h <<EOF
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
2092 #define inline $ac_cv_c_inline
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
2093 EOF
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
2094 ;;
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
2095 esac
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
2096
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
2097
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
2098 for ac_prog in mawk gawk nawk awk
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
2099 do
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
2100 # Extract the first word of "$ac_prog", so it can be a program name with args.
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
2101 set dummy $ac_prog; ac_word=$2
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
2102 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
2103 echo "configure:2104: checking for $ac_word" >&5
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
2104 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
2105 echo $ac_n "(cached) $ac_c" 1>&6
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
2106 else
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
2107 if test -n "$AWK"; then
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
2108 ac_cv_prog_AWK="$AWK" # Let the user override the test.
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
2109 else
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
2110 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
2111 ac_dummy="$PATH"
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
2112 for ac_dir in $ac_dummy; do
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
2113 test -z "$ac_dir" && ac_dir=.
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
2114 if test -f $ac_dir/$ac_word; then
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
2115 ac_cv_prog_AWK="$ac_prog"
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
2116 break
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
2117 fi
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
2118 done
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
2119 IFS="$ac_save_ifs"
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
2120 fi
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
2121 fi
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
2122 AWK="$ac_cv_prog_AWK"
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
2123 if test -n "$AWK"; then
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
2124 echo "$ac_t""$AWK" 1>&6
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
2125 else
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
2126 echo "$ac_t""no" 1>&6
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
2127 fi
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
2128
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
2129 test -n "$AWK" && break
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
2130 done
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
2131
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2132 # Find a good install program. We prefer a C program (faster),
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2133 # so one script is as good as another. But avoid the broken or
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2134 # incompatible versions:
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2135 # SysV /etc/install, /usr/sbin/install
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2136 # SunOS /usr/etc/install
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2137 # IRIX /sbin/install
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2138 # AIX /bin/install
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2139 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2140 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2141 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2142 # ./install, which can be erroneously created by make from ./install.sh.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2143 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
2144 echo "configure:2145: checking for a BSD compatible install" >&5
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2145 if test -z "$INSTALL"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2146 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2147 echo $ac_n "(cached) $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2148 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2149 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2150 for ac_dir in $PATH; do
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2151 # Account for people who put trailing slashes in PATH elements.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2152 case "$ac_dir/" in
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2153 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2154 *)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2155 # OSF1 and SCO ODT 3.0 have their own names for install.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2156 # Don't use installbsd from OSF since it installs stuff as root
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2157 # by default.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2158 for ac_prog in ginstall scoinst install; do
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2159 if test -f $ac_dir/$ac_prog; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2160 if test $ac_prog = install &&
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2161 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2162 # AIX install. It has an incompatible calling convention.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2163 :
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2164 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2165 ac_cv_path_install="$ac_dir/$ac_prog -c"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2166 break 2
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2167 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2168 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2169 done
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2170 ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2171 esac
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2172 done
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2173 IFS="$ac_save_IFS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2174
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2175 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2176 if test "${ac_cv_path_install+set}" = set; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2177 INSTALL="$ac_cv_path_install"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2178 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2179 # As a last resort, use the slow shell script. We don't cache a
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2180 # path for INSTALL within a source directory, because that will
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2181 # break other packages using the cache if that directory is
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2182 # removed, or if the path is relative.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2183 INSTALL="$ac_install_sh"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2184 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2185 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2186 echo "$ac_t""$INSTALL" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2187
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2188 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2189 # It thinks the first close brace ends the variable substitution.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2190 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2191
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2192 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2193
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2194 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2195
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2196 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
2197 echo "configure:2198: checking whether ln -s works" >&5
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2198 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2199 echo $ac_n "(cached) $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2200 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2201 rm -f conftestdata
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2202 if ln -s X conftestdata 2>/dev/null
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2203 then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2204 rm -f conftestdata
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2205 ac_cv_prog_LN_S="ln -s"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2206 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2207 ac_cv_prog_LN_S=ln
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2208 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2209 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2210 LN_S="$ac_cv_prog_LN_S"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2211 if test "$ac_cv_prog_LN_S" = "ln -s"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2212 echo "$ac_t""yes" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2213 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2214 echo "$ac_t""no" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2215 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2216
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2217 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
2218 echo "configure:2219: checking whether ${MAKE-make} sets \${MAKE}" >&5
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2219 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2220 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2221 echo $ac_n "(cached) $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2222 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2223 cat > conftestmake <<\EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2224 all:
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2225 @echo 'ac_maketemp="${MAKE}"'
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2226 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2227 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2228 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2229 if test -n "$ac_maketemp"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2230 eval ac_cv_prog_make_${ac_make}_set=yes
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2231 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2232 eval ac_cv_prog_make_${ac_make}_set=no
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2233 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2234 rm -f conftestmake
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2235 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2236 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2237 echo "$ac_t""yes" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2238 SET_MAKE=
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2239 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2240 echo "$ac_t""no" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2241 SET_MAKE="MAKE=${MAKE-make}"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2242 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2243
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2244
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2245 ac_header_dirent=no
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2246 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2247 do
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2248 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2249 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
2250 echo "configure:2251: checking for $ac_hdr that defines DIR" >&5
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2251 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2252 echo $ac_n "(cached) $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2253 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2254 cat > conftest.$ac_ext <<EOF
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
2255 #line 2256 "configure"
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2256 #include "confdefs.h"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2257 #include <sys/types.h>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2258 #include <$ac_hdr>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2259 int main() {
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2260 DIR *dirp = 0;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2261 ; return 0; }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2262 EOF
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
2263 if { (eval echo configure:2264: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2264 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2265 eval "ac_cv_header_dirent_$ac_safe=yes"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2266 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2267 echo "configure: failed program was:" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2268 cat conftest.$ac_ext >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2269 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2270 eval "ac_cv_header_dirent_$ac_safe=no"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2271 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2272 rm -f conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2273 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2274 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2275 echo "$ac_t""yes" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2276 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2277 cat >> confdefs.h <<EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2278 #define $ac_tr_hdr 1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2279 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2280 ac_header_dirent=$ac_hdr; break
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2281 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2282 echo "$ac_t""no" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2283 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2284 done
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2285 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2286 if test $ac_header_dirent = dirent.h; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2287 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
2288 echo "configure:2289: checking for opendir in -ldir" >&5
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2289 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2290 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2291 echo $ac_n "(cached) $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2292 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2293 ac_save_LIBS="$LIBS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2294 LIBS="-ldir $LIBS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2295 cat > conftest.$ac_ext <<EOF
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
2296 #line 2297 "configure"
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2297 #include "confdefs.h"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2298 /* Override any gcc2 internal prototype to avoid an error. */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2299 /* We use char because int might match the return type of a gcc2
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2300 builtin and then its argument prototype would still apply. */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2301 char opendir();
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2302
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2303 int main() {
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2304 opendir()
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2305 ; return 0; }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2306 EOF
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
2307 if { (eval echo configure:2308: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2308 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2309 eval "ac_cv_lib_$ac_lib_var=yes"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2310 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2311 echo "configure: failed program was:" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2312 cat conftest.$ac_ext >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2313 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2314 eval "ac_cv_lib_$ac_lib_var=no"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2315 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2316 rm -f conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2317 LIBS="$ac_save_LIBS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2318
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2319 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2320 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2321 echo "$ac_t""yes" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2322 LIBS="$LIBS -ldir"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2323 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2324 echo "$ac_t""no" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2325 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2326
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2327 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2328 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
2329 echo "configure:2330: checking for opendir in -lx" >&5
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2330 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2331 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2332 echo $ac_n "(cached) $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2333 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2334 ac_save_LIBS="$LIBS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2335 LIBS="-lx $LIBS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2336 cat > conftest.$ac_ext <<EOF
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
2337 #line 2338 "configure"
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2338 #include "confdefs.h"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2339 /* Override any gcc2 internal prototype to avoid an error. */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2340 /* We use char because int might match the return type of a gcc2
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2341 builtin and then its argument prototype would still apply. */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2342 char opendir();
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2343
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2344 int main() {
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2345 opendir()
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2346 ; return 0; }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2347 EOF
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
2348 if { (eval echo configure:2349: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2349 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2350 eval "ac_cv_lib_$ac_lib_var=yes"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2351 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2352 echo "configure: failed program was:" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2353 cat conftest.$ac_ext >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2354 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2355 eval "ac_cv_lib_$ac_lib_var=no"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2356 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2357 rm -f conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2358 LIBS="$ac_save_LIBS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2359
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2360 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2361 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2362 echo "$ac_t""yes" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2363 LIBS="$LIBS -lx"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2364 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2365 echo "$ac_t""no" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2366 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2367
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2368 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2369
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2370 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
2371 echo "configure:2372: checking for ANSI C header files" >&5
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2372 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2373 echo $ac_n "(cached) $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2374 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2375 cat > conftest.$ac_ext <<EOF
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
2376 #line 2377 "configure"
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2377 #include "confdefs.h"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2378 #include <stdlib.h>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2379 #include <stdarg.h>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2380 #include <string.h>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2381 #include <float.h>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2382 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2383 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
2384 { (eval echo configure:2385: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2385 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2386 if test -z "$ac_err"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2387 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2388 ac_cv_header_stdc=yes
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2389 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2390 echo "$ac_err" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2391 echo "configure: failed program was:" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2392 cat conftest.$ac_ext >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2393 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2394 ac_cv_header_stdc=no
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2395 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2396 rm -f conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2397
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2398 if test $ac_cv_header_stdc = yes; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2399 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2400 cat > conftest.$ac_ext <<EOF
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
2401 #line 2402 "configure"
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2402 #include "confdefs.h"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2403 #include <string.h>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2404 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2405 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2406 egrep "memchr" >/dev/null 2>&1; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2407 :
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2408 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2409 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2410 ac_cv_header_stdc=no
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2411 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2412 rm -f conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2413
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2414 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2415
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2416 if test $ac_cv_header_stdc = yes; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2417 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2418 cat > conftest.$ac_ext <<EOF
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
2419 #line 2420 "configure"
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2420 #include "confdefs.h"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2421 #include <stdlib.h>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2422 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2423 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2424 egrep "free" >/dev/null 2>&1; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2425 :
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2426 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2427 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2428 ac_cv_header_stdc=no
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2429 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2430 rm -f conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2431
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2432 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2433
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2434 if test $ac_cv_header_stdc = yes; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2435 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2436 if test "$cross_compiling" = yes; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2437 :
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2438 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2439 cat > conftest.$ac_ext <<EOF
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
2440 #line 2441 "configure"
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2441 #include "confdefs.h"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2442 #include <ctype.h>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2443 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2444 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2445 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2446 int main () { int i; for (i = 0; i < 256; i++)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2447 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2448 exit (0); }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2449
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2450 EOF
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
2451 if { (eval echo configure:2452: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2452 then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2453 :
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2454 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2455 echo "configure: failed program was:" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2456 cat conftest.$ac_ext >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2457 rm -fr conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2458 ac_cv_header_stdc=no
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2459 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2460 rm -fr conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2461 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2462
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2463 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2464 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2465
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2466 echo "$ac_t""$ac_cv_header_stdc" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2467 if test $ac_cv_header_stdc = yes; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2468 cat >> confdefs.h <<\EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2469 #define STDC_HEADERS 1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2470 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2471
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2472 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2473
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2474 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
2475 echo "configure:2476: checking for sys/wait.h that is POSIX.1 compatible" >&5
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2476 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2477 echo $ac_n "(cached) $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2478 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2479 cat > conftest.$ac_ext <<EOF
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
2480 #line 2481 "configure"
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2481 #include "confdefs.h"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2482 #include <sys/types.h>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2483 #include <sys/wait.h>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2484 #ifndef WEXITSTATUS
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2485 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2486 #endif
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2487 #ifndef WIFEXITED
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2488 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2489 #endif
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2490 int main() {
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2491 int s;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2492 wait (&s);
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2493 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2494 ; return 0; }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2495 EOF
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
2496 if { (eval echo configure:2497: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2497 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2498 ac_cv_header_sys_wait_h=yes
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2499 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2500 echo "configure: failed program was:" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2501 cat conftest.$ac_ext >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2502 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2503 ac_cv_header_sys_wait_h=no
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2504 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2505 rm -f conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2506 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2507
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2508 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2509 if test $ac_cv_header_sys_wait_h = yes; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2510 cat >> confdefs.h <<\EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2511 #define HAVE_SYS_WAIT_H 1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2512 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2513
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2514 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2515
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2516 for ac_hdr in fcntl.h limits.h malloc.h strings.h sys/ioctl.h sys/time.h unistd.h
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2517 do
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2518 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2519 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
2520 echo "configure:2521: checking for $ac_hdr" >&5
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2521 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2522 echo $ac_n "(cached) $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2523 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2524 cat > conftest.$ac_ext <<EOF
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
2525 #line 2526 "configure"
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2526 #include "confdefs.h"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2527 #include <$ac_hdr>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2528 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2529 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
2530 { (eval echo configure:2531: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2531 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2532 if test -z "$ac_err"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2533 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2534 eval "ac_cv_header_$ac_safe=yes"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2535 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2536 echo "$ac_err" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2537 echo "configure: failed program was:" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2538 cat conftest.$ac_ext >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2539 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2540 eval "ac_cv_header_$ac_safe=no"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2541 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2542 rm -f conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2543 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2544 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2545 echo "$ac_t""yes" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2546 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2547 cat >> confdefs.h <<EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2548 #define $ac_tr_hdr 1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2549 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2550
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2551 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2552 echo "$ac_t""no" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2553 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2554 done
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2555
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2556
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2557 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
2558 echo "configure:2559: checking for mode_t" >&5
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2559 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2560 echo $ac_n "(cached) $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2561 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2562 cat > conftest.$ac_ext <<EOF
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
2563 #line 2564 "configure"
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2564 #include "confdefs.h"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2565 #include <sys/types.h>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2566 #if STDC_HEADERS
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2567 #include <stdlib.h>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2568 #include <stddef.h>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2569 #endif
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2570 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2571 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2572 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2573 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2574 ac_cv_type_mode_t=yes
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2575 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2576 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2577 ac_cv_type_mode_t=no
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2578 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2579 rm -f conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2580
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2581 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2582 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2583 if test $ac_cv_type_mode_t = no; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2584 cat >> confdefs.h <<\EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2585 #define mode_t int
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2586 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2587
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2588 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2589
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2590 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
2591 echo "configure:2592: checking for pid_t" >&5
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2592 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2593 echo $ac_n "(cached) $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2594 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2595 cat > conftest.$ac_ext <<EOF
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
2596 #line 2597 "configure"
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2597 #include "confdefs.h"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2598 #include <sys/types.h>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2599 #if STDC_HEADERS
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2600 #include <stdlib.h>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2601 #include <stddef.h>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2602 #endif
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2603 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2604 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2605 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2606 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2607 ac_cv_type_pid_t=yes
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2608 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2609 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2610 ac_cv_type_pid_t=no
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2611 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2612 rm -f conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2613
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2614 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2615 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2616 if test $ac_cv_type_pid_t = no; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2617 cat >> confdefs.h <<\EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2618 #define pid_t int
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2619 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2620
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2621 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2622
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2623 echo $ac_n "checking for size_t""... $ac_c" 1>&6
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
2624 echo "configure:2625: checking for size_t" >&5
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2625 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2626 echo $ac_n "(cached) $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2627 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2628 cat > conftest.$ac_ext <<EOF
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
2629 #line 2630 "configure"
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2630 #include "confdefs.h"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2631 #include <sys/types.h>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2632 #if STDC_HEADERS
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2633 #include <stdlib.h>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2634 #include <stddef.h>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2635 #endif
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2636 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2637 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2638 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2639 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2640 ac_cv_type_size_t=yes
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2641 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2642 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2643 ac_cv_type_size_t=no
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2644 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2645 rm -f conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2646
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2647 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2648 echo "$ac_t""$ac_cv_type_size_t" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2649 if test $ac_cv_type_size_t = no; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2650 cat >> confdefs.h <<\EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2651 #define size_t unsigned
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2652 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2653
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2654 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2655
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2656 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
2657 echo "configure:2658: checking whether time.h and sys/time.h may both be included" >&5
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2658 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2659 echo $ac_n "(cached) $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2660 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2661 cat > conftest.$ac_ext <<EOF
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
2662 #line 2663 "configure"
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2663 #include "confdefs.h"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2664 #include <sys/types.h>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2665 #include <sys/time.h>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2666 #include <time.h>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2667 int main() {
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2668 struct tm *tp;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2669 ; return 0; }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2670 EOF
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
2671 if { (eval echo configure:2672: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2672 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2673 ac_cv_header_time=yes
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2674 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2675 echo "configure: failed program was:" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2676 cat conftest.$ac_ext >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2677 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2678 ac_cv_header_time=no
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2679 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2680 rm -f conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2681 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2682
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2683 echo "$ac_t""$ac_cv_header_time" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2684 if test $ac_cv_header_time = yes; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2685 cat >> confdefs.h <<\EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2686 #define TIME_WITH_SYS_TIME 1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2687 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2688
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2689 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2690
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2691 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
2692 echo "configure:2693: checking whether struct tm is in sys/time.h or time.h" >&5
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2693 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2694 echo $ac_n "(cached) $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2695 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2696 cat > conftest.$ac_ext <<EOF
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
2697 #line 2698 "configure"
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2698 #include "confdefs.h"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2699 #include <sys/types.h>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2700 #include <time.h>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2701 int main() {
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2702 struct tm *tp; tp->tm_sec;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2703 ; return 0; }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2704 EOF
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
2705 if { (eval echo configure:2706: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2706 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2707 ac_cv_struct_tm=time.h
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2708 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2709 echo "configure: failed program was:" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2710 cat conftest.$ac_ext >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2711 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2712 ac_cv_struct_tm=sys/time.h
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2713 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2714 rm -f conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2715 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2716
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2717 echo "$ac_t""$ac_cv_struct_tm" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2718 if test $ac_cv_struct_tm = sys/time.h; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2719 cat >> confdefs.h <<\EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2720 #define TM_IN_SYS_TIME 1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2721 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2722
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2723 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2724
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2725
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2726 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2727 # for constant arguments. Useless!
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2728 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
2729 echo "configure:2730: checking for working alloca.h" >&5
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2730 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2731 echo $ac_n "(cached) $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2732 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2733 cat > conftest.$ac_ext <<EOF
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
2734 #line 2735 "configure"
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2735 #include "confdefs.h"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2736 #include <alloca.h>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2737 int main() {
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2738 char *p = alloca(2 * sizeof(int));
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2739 ; return 0; }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2740 EOF
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
2741 if { (eval echo configure:2742: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2742 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2743 ac_cv_header_alloca_h=yes
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2744 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2745 echo "configure: failed program was:" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2746 cat conftest.$ac_ext >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2747 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2748 ac_cv_header_alloca_h=no
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2749 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2750 rm -f conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2751 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2752
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2753 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2754 if test $ac_cv_header_alloca_h = yes; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2755 cat >> confdefs.h <<\EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2756 #define HAVE_ALLOCA_H 1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2757 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2758
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2759 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2760
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2761 echo $ac_n "checking for alloca""... $ac_c" 1>&6
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
2762 echo "configure:2763: checking for alloca" >&5
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2763 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2764 echo $ac_n "(cached) $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2765 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2766 cat > conftest.$ac_ext <<EOF
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
2767 #line 2768 "configure"
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2768 #include "confdefs.h"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2769
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2770 #ifdef __GNUC__
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2771 # define alloca __builtin_alloca
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2772 #else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2773 # ifdef _MSC_VER
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2774 # include <malloc.h>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2775 # define alloca _alloca
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2776 # else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2777 # if HAVE_ALLOCA_H
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2778 # include <alloca.h>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2779 # else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2780 # ifdef _AIX
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2781 #pragma alloca
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2782 # else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2783 # ifndef alloca /* predefined by HP cc +Olibcalls */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2784 char *alloca ();
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2785 # endif
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2786 # endif
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2787 # endif
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2788 # endif
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2789 #endif
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2790
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2791 int main() {
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2792 char *p = (char *) alloca(1);
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2793 ; return 0; }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2794 EOF
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
2795 if { (eval echo configure:2796: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2796 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2797 ac_cv_func_alloca_works=yes
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2798 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2799 echo "configure: failed program was:" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2800 cat conftest.$ac_ext >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2801 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2802 ac_cv_func_alloca_works=no
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2803 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2804 rm -f conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2805 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2806
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2807 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2808 if test $ac_cv_func_alloca_works = yes; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2809 cat >> confdefs.h <<\EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2810 #define HAVE_ALLOCA 1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2811 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2812
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2813 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2814
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2815 if test $ac_cv_func_alloca_works = no; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2816 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2817 # that cause trouble. Some versions do not even contain alloca or
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2818 # contain a buggy version. If you still want to use their alloca,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2819 # use ar to extract alloca.o from them instead of compiling alloca.c.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2820 ALLOCA=alloca.${ac_objext}
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2821 cat >> confdefs.h <<\EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2822 #define C_ALLOCA 1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2823 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2824
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2825
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2826 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
2827 echo "configure:2828: checking whether alloca needs Cray hooks" >&5
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2828 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2829 echo $ac_n "(cached) $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2830 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2831 cat > conftest.$ac_ext <<EOF
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
2832 #line 2833 "configure"
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2833 #include "confdefs.h"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2834 #if defined(CRAY) && ! defined(CRAY2)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2835 webecray
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2836 #else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2837 wenotbecray
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2838 #endif
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2839
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2840 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2841 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2842 egrep "webecray" >/dev/null 2>&1; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2843 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2844 ac_cv_os_cray=yes
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2845 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2846 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2847 ac_cv_os_cray=no
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2848 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2849 rm -f conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2850
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2851 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2852
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2853 echo "$ac_t""$ac_cv_os_cray" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2854 if test $ac_cv_os_cray = yes; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2855 for ac_func in _getb67 GETB67 getb67; do
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2856 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
2857 echo "configure:2858: checking for $ac_func" >&5
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2858 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2859 echo $ac_n "(cached) $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2860 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2861 cat > conftest.$ac_ext <<EOF
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
2862 #line 2863 "configure"
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2863 #include "confdefs.h"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2864 /* System header to define __stub macros and hopefully few prototypes,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2865 which can conflict with char $ac_func(); below. */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2866 #include <assert.h>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2867 /* Override any gcc2 internal prototype to avoid an error. */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2868 /* We use char because int might match the return type of a gcc2
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2869 builtin and then its argument prototype would still apply. */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2870 char $ac_func();
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2871
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2872 int main() {
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2873
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2874 /* The GNU C library defines this for functions which it implements
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2875 to always fail with ENOSYS. Some functions are actually named
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2876 something starting with __ and the normal name is an alias. */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2877 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2878 choke me
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2879 #else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2880 $ac_func();
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2881 #endif
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2882
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2883 ; return 0; }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2884 EOF
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
2885 if { (eval echo configure:2886: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2886 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2887 eval "ac_cv_func_$ac_func=yes"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2888 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2889 echo "configure: failed program was:" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2890 cat conftest.$ac_ext >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2891 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2892 eval "ac_cv_func_$ac_func=no"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2893 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2894 rm -f conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2895 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2896
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2897 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2898 echo "$ac_t""yes" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2899 cat >> confdefs.h <<EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2900 #define CRAY_STACKSEG_END $ac_func
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2901 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2902
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2903 break
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2904 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2905 echo "$ac_t""no" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2906 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2907
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2908 done
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2909 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2910
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2911 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
2912 echo "configure:2913: checking stack direction for C alloca" >&5
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2913 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2914 echo $ac_n "(cached) $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2915 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2916 if test "$cross_compiling" = yes; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2917 ac_cv_c_stack_direction=0
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2918 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2919 cat > conftest.$ac_ext <<EOF
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
2920 #line 2921 "configure"
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2921 #include "confdefs.h"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2922 find_stack_direction ()
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2923 {
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2924 static char *addr = 0;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2925 auto char dummy;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2926 if (addr == 0)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2927 {
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2928 addr = &dummy;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2929 return find_stack_direction ();
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2930 }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2931 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2932 return (&dummy > addr) ? 1 : -1;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2933 }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2934 main ()
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2935 {
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2936 exit (find_stack_direction() < 0);
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2937 }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2938 EOF
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
2939 if { (eval echo configure:2940: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2940 then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2941 ac_cv_c_stack_direction=1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2942 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2943 echo "configure: failed program was:" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2944 cat conftest.$ac_ext >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2945 rm -fr conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2946 ac_cv_c_stack_direction=-1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2947 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2948 rm -fr conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2949 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2950
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2951 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2952
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2953 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2954 cat >> confdefs.h <<EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2955 #define STACK_DIRECTION $ac_cv_c_stack_direction
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2956 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2957
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2958 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2959
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2960 if test $ac_cv_prog_gcc = yes; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2961 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
2962 echo "configure:2963: checking whether ${CC-cc} needs -traditional" >&5
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2963 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2964 echo $ac_n "(cached) $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2965 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2966 ac_pattern="Autoconf.*'x'"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2967 cat > conftest.$ac_ext <<EOF
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
2968 #line 2969 "configure"
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2969 #include "confdefs.h"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2970 #include <sgtty.h>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2971 Autoconf TIOCGETP
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2972 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2973 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2974 egrep "$ac_pattern" >/dev/null 2>&1; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2975 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2976 ac_cv_prog_gcc_traditional=yes
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2977 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2978 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2979 ac_cv_prog_gcc_traditional=no
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2980 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2981 rm -f conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2982
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2983
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2984 if test $ac_cv_prog_gcc_traditional = no; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2985 cat > conftest.$ac_ext <<EOF
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
2986 #line 2987 "configure"
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2987 #include "confdefs.h"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2988 #include <termio.h>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2989 Autoconf TCGETA
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2990 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2991 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2992 egrep "$ac_pattern" >/dev/null 2>&1; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2993 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2994 ac_cv_prog_gcc_traditional=yes
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2995 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2996 rm -f conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2997
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2998 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2999 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3000
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3001 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3002 if test $ac_cv_prog_gcc_traditional = yes; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3003 CC="$CC -traditional"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3004 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3005 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3006
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3007 for ac_hdr in unistd.h
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3008 do
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3009 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3010 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
3011 echo "configure:3012: checking for $ac_hdr" >&5
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3012 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3013 echo $ac_n "(cached) $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3014 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3015 cat > conftest.$ac_ext <<EOF
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
3016 #line 3017 "configure"
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3017 #include "confdefs.h"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3018 #include <$ac_hdr>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3019 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3020 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
3021 { (eval echo configure:3022: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3022 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3023 if test -z "$ac_err"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3024 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3025 eval "ac_cv_header_$ac_safe=yes"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3026 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3027 echo "$ac_err" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3028 echo "configure: failed program was:" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3029 cat conftest.$ac_ext >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3030 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3031 eval "ac_cv_header_$ac_safe=no"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3032 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3033 rm -f conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3034 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3035 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3036 echo "$ac_t""yes" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3037 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3038 cat >> confdefs.h <<EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3039 #define $ac_tr_hdr 1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3040 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3041
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3042 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3043 echo "$ac_t""no" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3044 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3045 done
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3046
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3047 for ac_func in getpagesize
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3048 do
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3049 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
3050 echo "configure:3051: checking for $ac_func" >&5
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3051 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3052 echo $ac_n "(cached) $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3053 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3054 cat > conftest.$ac_ext <<EOF
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
3055 #line 3056 "configure"
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3056 #include "confdefs.h"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3057 /* System header to define __stub macros and hopefully few prototypes,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3058 which can conflict with char $ac_func(); below. */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3059 #include <assert.h>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3060 /* Override any gcc2 internal prototype to avoid an error. */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3061 /* We use char because int might match the return type of a gcc2
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3062 builtin and then its argument prototype would still apply. */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3063 char $ac_func();
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3064
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3065 int main() {
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3066
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3067 /* The GNU C library defines this for functions which it implements
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3068 to always fail with ENOSYS. Some functions are actually named
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3069 something starting with __ and the normal name is an alias. */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3070 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3071 choke me
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3072 #else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3073 $ac_func();
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3074 #endif
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3075
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3076 ; return 0; }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3077 EOF
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
3078 if { (eval echo configure:3079: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3079 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3080 eval "ac_cv_func_$ac_func=yes"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3081 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3082 echo "configure: failed program was:" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3083 cat conftest.$ac_ext >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3084 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3085 eval "ac_cv_func_$ac_func=no"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3086 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3087 rm -f conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3088 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3089
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3090 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3091 echo "$ac_t""yes" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3092 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3093 cat >> confdefs.h <<EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3094 #define $ac_tr_func 1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3095 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3096
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3097 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3098 echo "$ac_t""no" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3099 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3100 done
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3101
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3102 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
3103 echo "configure:3104: checking for working mmap" >&5
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3104 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3105 echo $ac_n "(cached) $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3106 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3107 if test "$cross_compiling" = yes; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3108 ac_cv_func_mmap_fixed_mapped=no
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3109 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3110 cat > conftest.$ac_ext <<EOF
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
3111 #line 3112 "configure"
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3112 #include "confdefs.h"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3113
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3114 /* Thanks to Mike Haertel and Jim Avera for this test.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3115 Here is a matrix of mmap possibilities:
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3116 mmap private not fixed
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3117 mmap private fixed at somewhere currently unmapped
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3118 mmap private fixed at somewhere already mapped
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3119 mmap shared not fixed
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3120 mmap shared fixed at somewhere currently unmapped
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3121 mmap shared fixed at somewhere already mapped
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3122 For private mappings, we should verify that changes cannot be read()
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3123 back from the file, nor mmap's back from the file at a different
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3124 address. (There have been systems where private was not correctly
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3125 implemented like the infamous i386 svr4.0, and systems where the
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3126 VM page cache was not coherent with the filesystem buffer cache
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3127 like early versions of FreeBSD and possibly contemporary NetBSD.)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3128 For shared mappings, we should conversely verify that changes get
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3129 propogated back to all the places they're supposed to be.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3130
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3131 Grep wants private fixed already mapped.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3132 The main things grep needs to know about mmap are:
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3133 * does it exist and is it safe to write into the mmap'd area
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3134 * how to use it (BSD variants) */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3135 #include <sys/types.h>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3136 #include <fcntl.h>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3137 #include <sys/mman.h>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3138
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3139 /* This mess was copied from the GNU getpagesize.h. */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3140 #ifndef HAVE_GETPAGESIZE
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3141 # ifdef HAVE_UNISTD_H
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3142 # include <unistd.h>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3143 # endif
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3144
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3145 /* Assume that all systems that can run configure have sys/param.h. */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3146 # ifndef HAVE_SYS_PARAM_H
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3147 # define HAVE_SYS_PARAM_H 1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3148 # endif
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3149
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3150 # ifdef _SC_PAGESIZE
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3151 # define getpagesize() sysconf(_SC_PAGESIZE)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3152 # else /* no _SC_PAGESIZE */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3153 # ifdef HAVE_SYS_PARAM_H
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3154 # include <sys/param.h>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3155 # ifdef EXEC_PAGESIZE
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3156 # define getpagesize() EXEC_PAGESIZE
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3157 # else /* no EXEC_PAGESIZE */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3158 # ifdef NBPG
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3159 # define getpagesize() NBPG * CLSIZE
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3160 # ifndef CLSIZE
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3161 # define CLSIZE 1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3162 # endif /* no CLSIZE */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3163 # else /* no NBPG */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3164 # ifdef NBPC
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3165 # define getpagesize() NBPC
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3166 # else /* no NBPC */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3167 # ifdef PAGESIZE
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3168 # define getpagesize() PAGESIZE
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3169 # endif /* PAGESIZE */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3170 # endif /* no NBPC */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3171 # endif /* no NBPG */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3172 # endif /* no EXEC_PAGESIZE */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3173 # else /* no HAVE_SYS_PARAM_H */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3174 # define getpagesize() 8192 /* punt totally */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3175 # endif /* no HAVE_SYS_PARAM_H */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3176 # endif /* no _SC_PAGESIZE */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3177
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3178 #endif /* no HAVE_GETPAGESIZE */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3179
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3180 #ifdef __cplusplus
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3181 extern "C" { void *malloc(unsigned); }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3182 #else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3183 char *malloc();
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3184 #endif
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3185
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3186 int
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3187 main()
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3188 {
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3189 char *data, *data2, *data3;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3190 int i, pagesize;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3191 int fd;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3192
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3193 pagesize = getpagesize();
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3194
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3195 /*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3196 * First, make a file with some known garbage in it.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3197 */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3198 data = malloc(pagesize);
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3199 if (!data)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3200 exit(1);
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3201 for (i = 0; i < pagesize; ++i)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3202 *(data + i) = rand();
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3203 umask(0);
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3204 fd = creat("conftestmmap", 0600);
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3205 if (fd < 0)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3206 exit(1);
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3207 if (write(fd, data, pagesize) != pagesize)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3208 exit(1);
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3209 close(fd);
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3210
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3211 /*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3212 * Next, try to mmap the file at a fixed address which
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3213 * already has something else allocated at it. If we can,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3214 * also make sure that we see the same garbage.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3215 */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3216 fd = open("conftestmmap", O_RDWR);
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3217 if (fd < 0)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3218 exit(1);
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3219 data2 = malloc(2 * pagesize);
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3220 if (!data2)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3221 exit(1);
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3222 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3223 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3224 MAP_PRIVATE | MAP_FIXED, fd, 0L))
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3225 exit(1);
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3226 for (i = 0; i < pagesize; ++i)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3227 if (*(data + i) != *(data2 + i))
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3228 exit(1);
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3229
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3230 /*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3231 * Finally, make sure that changes to the mapped area
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3232 * do not percolate back to the file as seen by read().
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3233 * (This is a bug on some variants of i386 svr4.0.)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3234 */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3235 for (i = 0; i < pagesize; ++i)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3236 *(data2 + i) = *(data2 + i) + 1;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3237 data3 = malloc(pagesize);
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3238 if (!data3)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3239 exit(1);
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3240 if (read(fd, data3, pagesize) != pagesize)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3241 exit(1);
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3242 for (i = 0; i < pagesize; ++i)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3243 if (*(data + i) != *(data3 + i))
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3244 exit(1);
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3245 close(fd);
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3246 unlink("conftestmmap");
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3247 exit(0);
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3248 }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3249
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3250 EOF
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
3251 if { (eval echo configure:3252: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3252 then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3253 ac_cv_func_mmap_fixed_mapped=yes
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3254 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3255 echo "configure: failed program was:" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3256 cat conftest.$ac_ext >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3257 rm -fr conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3258 ac_cv_func_mmap_fixed_mapped=no
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3259 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3260 rm -fr conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3261 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3262
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3263 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3264
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3265 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3266 if test $ac_cv_func_mmap_fixed_mapped = yes; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3267 cat >> confdefs.h <<\EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3268 #define HAVE_MMAP 1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3269 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3270
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3271 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3272
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3273 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
3274 echo "configure:3275: checking return type of signal handlers" >&5
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3275 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3276 echo $ac_n "(cached) $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3277 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3278 cat > conftest.$ac_ext <<EOF
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
3279 #line 3280 "configure"
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3280 #include "confdefs.h"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3281 #include <sys/types.h>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3282 #include <signal.h>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3283 #ifdef signal
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3284 #undef signal
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3285 #endif
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3286 #ifdef __cplusplus
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3287 extern "C" void (*signal (int, void (*)(int)))(int);
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3288 #else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3289 void (*signal ()) ();
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3290 #endif
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3291
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3292 int main() {
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3293 int i;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3294 ; return 0; }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3295 EOF
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
3296 if { (eval echo configure:3297: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3297 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3298 ac_cv_type_signal=void
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3299 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3300 echo "configure: failed program was:" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3301 cat conftest.$ac_ext >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3302 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3303 ac_cv_type_signal=int
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3304 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3305 rm -f conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3306 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3307
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3308 echo "$ac_t""$ac_cv_type_signal" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3309 cat >> confdefs.h <<EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3310 #define RETSIGTYPE $ac_cv_type_signal
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3311 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3312
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3313
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3314 echo $ac_n "checking for strftime""... $ac_c" 1>&6
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
3315 echo "configure:3316: checking for strftime" >&5
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3316 if eval "test \"`echo '$''{'ac_cv_func_strftime'+set}'`\" = set"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3317 echo $ac_n "(cached) $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3318 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3319 cat > conftest.$ac_ext <<EOF
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
3320 #line 3321 "configure"
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3321 #include "confdefs.h"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3322 /* System header to define __stub macros and hopefully few prototypes,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3323 which can conflict with char strftime(); below. */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3324 #include <assert.h>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3325 /* Override any gcc2 internal prototype to avoid an error. */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3326 /* We use char because int might match the return type of a gcc2
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3327 builtin and then its argument prototype would still apply. */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3328 char strftime();
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3329
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3330 int main() {
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3331
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3332 /* The GNU C library defines this for functions which it implements
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3333 to always fail with ENOSYS. Some functions are actually named
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3334 something starting with __ and the normal name is an alias. */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3335 #if defined (__stub_strftime) || defined (__stub___strftime)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3336 choke me
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3337 #else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3338 strftime();
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3339 #endif
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3340
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3341 ; return 0; }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3342 EOF
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
3343 if { (eval echo configure:3344: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3344 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3345 eval "ac_cv_func_strftime=yes"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3346 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3347 echo "configure: failed program was:" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3348 cat conftest.$ac_ext >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3349 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3350 eval "ac_cv_func_strftime=no"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3351 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3352 rm -f conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3353 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3354
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3355 if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3356 echo "$ac_t""yes" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3357 cat >> confdefs.h <<\EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3358 #define HAVE_STRFTIME 1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3359 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3360
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3361 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3362 echo "$ac_t""no" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3363 # strftime is in -lintl on SCO UNIX.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3364 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
3365 echo "configure:3366: checking for strftime in -lintl" >&5
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3366 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-%__p_%'`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3367 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3368 echo $ac_n "(cached) $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3369 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3370 ac_save_LIBS="$LIBS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3371 LIBS="-lintl $LIBS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3372 cat > conftest.$ac_ext <<EOF
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
3373 #line 3374 "configure"
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3374 #include "confdefs.h"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3375 /* Override any gcc2 internal prototype to avoid an error. */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3376 /* We use char because int might match the return type of a gcc2
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3377 builtin and then its argument prototype would still apply. */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3378 char strftime();
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3379
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3380 int main() {
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3381 strftime()
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3382 ; return 0; }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3383 EOF
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
3384 if { (eval echo configure:3385: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3385 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3386 eval "ac_cv_lib_$ac_lib_var=yes"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3387 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3388 echo "configure: failed program was:" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3389 cat conftest.$ac_ext >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3390 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3391 eval "ac_cv_lib_$ac_lib_var=no"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3392 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3393 rm -f conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3394 LIBS="$ac_save_LIBS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3395
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3396 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3397 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3398 echo "$ac_t""yes" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3399 cat >> confdefs.h <<\EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3400 #define HAVE_STRFTIME 1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3401 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3402
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3403 LIBS="-lintl $LIBS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3404 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3405 echo "$ac_t""no" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3406 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3407
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3408 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3409
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3410 echo $ac_n "checking whether utime accepts a null argument""... $ac_c" 1>&6
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
3411 echo "configure:3412: checking whether utime accepts a null argument" >&5
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3412 if eval "test \"`echo '$''{'ac_cv_func_utime_null'+set}'`\" = set"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3413 echo $ac_n "(cached) $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3414 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3415 rm -f conftestdata; > conftestdata
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3416 # Sequent interprets utime(file, 0) to mean use start of epoch. Wrong.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3417 if test "$cross_compiling" = yes; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3418 ac_cv_func_utime_null=no
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3419 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3420 cat > conftest.$ac_ext <<EOF
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
3421 #line 3422 "configure"
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3422 #include "confdefs.h"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3423 #include <sys/types.h>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3424 #include <sys/stat.h>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3425 main() {
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3426 struct stat s, t;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3427 exit(!(stat ("conftestdata", &s) == 0 && utime("conftestdata", (long *)0) == 0
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3428 && stat("conftestdata", &t) == 0 && t.st_mtime >= s.st_mtime
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3429 && t.st_mtime - s.st_mtime < 120));
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3430 }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3431 EOF
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
3432 if { (eval echo configure:3433: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3433 then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3434 ac_cv_func_utime_null=yes
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3435 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3436 echo "configure: failed program was:" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3437 cat conftest.$ac_ext >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3438 rm -fr conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3439 ac_cv_func_utime_null=no
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3440 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3441 rm -fr conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3442 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3443
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3444 rm -f core core.* *.core
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3445 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3446
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3447 echo "$ac_t""$ac_cv_func_utime_null" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3448 if test $ac_cv_func_utime_null = yes; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3449 cat >> confdefs.h <<\EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3450 #define HAVE_UTIME_NULL 1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3451 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3452
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3453 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3454
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3455 for ac_func in gai_strerror getaddrinfo getcwd gettimeofday getwd mkdir mktime putenv rmdir select socket strdup strstr strtod strtol uname
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3456 do
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3457 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
3458 echo "configure:3459: checking for $ac_func" >&5
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3459 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3460 echo $ac_n "(cached) $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3461 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3462 cat > conftest.$ac_ext <<EOF
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
3463 #line 3464 "configure"
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3464 #include "confdefs.h"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3465 /* System header to define __stub macros and hopefully few prototypes,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3466 which can conflict with char $ac_func(); below. */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3467 #include <assert.h>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3468 /* Override any gcc2 internal prototype to avoid an error. */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3469 /* We use char because int might match the return type of a gcc2
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3470 builtin and then its argument prototype would still apply. */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3471 char $ac_func();
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3472
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3473 int main() {
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3474
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3475 /* The GNU C library defines this for functions which it implements
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3476 to always fail with ENOSYS. Some functions are actually named
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3477 something starting with __ and the normal name is an alias. */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3478 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3479 choke me
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3480 #else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3481 $ac_func();
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3482 #endif
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3483
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3484 ; return 0; }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3485 EOF
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
3486 if { (eval echo configure:3487: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3487 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3488 eval "ac_cv_func_$ac_func=yes"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3489 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3490 echo "configure: failed program was:" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3491 cat conftest.$ac_ext >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3492 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3493 eval "ac_cv_func_$ac_func=no"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3494 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3495 rm -f conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3496 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3497
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3498 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3499 echo "$ac_t""yes" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3500 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3501 cat >> confdefs.h <<EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3502 #define $ac_tr_func 1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3503 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3504
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3505 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3506 echo "$ac_t""no" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3507 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3508 done
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3509
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3510
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3511 if test "x$enable_gtk20" = "x1" ; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3512
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3513 succeeded=no
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3514
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3515 if test -z "$PKG_CONFIG"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3516 # Extract the first word of "pkg-config", so it can be a program name with args.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3517 set dummy pkg-config; ac_word=$2
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3518 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
3519 echo "configure:3520: checking for $ac_word" >&5
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3520 if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3521 echo $ac_n "(cached) $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3522 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3523 case "$PKG_CONFIG" in
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3524 /*)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3525 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3526 ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3527 ?:/*)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3528 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3529 ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3530 *)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3531 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3532 ac_dummy="$PATH"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3533 for ac_dir in $ac_dummy; do
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3534 test -z "$ac_dir" && ac_dir=.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3535 if test -f $ac_dir/$ac_word; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3536 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3537 break
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3538 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3539 done
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3540 IFS="$ac_save_ifs"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3541 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3542 ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3543 esac
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3544 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3545 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3546 if test -n "$PKG_CONFIG"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3547 echo "$ac_t""$PKG_CONFIG" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3548 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3549 echo "$ac_t""no" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3550 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3551
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3552 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3553
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3554 if test "$PKG_CONFIG" = "no" ; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3555 echo "*** The pkg-config script could not be found. Make sure it is"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3556 echo "*** in your path, or set the PKG_CONFIG environment variable"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3557 echo "*** to the full path to pkg-config."
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3558 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3559 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3560 PKG_CONFIG_MIN_VERSION=0.9.0
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3561 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3562 echo $ac_n "checking for glib-2.0 >= 1.3.8""... $ac_c" 1>&6
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
3563 echo "configure:3564: checking for glib-2.0 >= 1.3.8" >&5
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3564
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3565 if $PKG_CONFIG --exists "glib-2.0 >= 1.3.8" ; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3566 echo "$ac_t""yes" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3567 succeeded=yes
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3568
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3569 echo $ac_n "checking GLIB_CFLAGS""... $ac_c" 1>&6
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
3570 echo "configure:3571: checking GLIB_CFLAGS" >&5
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3571 GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 1.3.8"`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3572 echo "$ac_t""$GLIB_CFLAGS" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3573
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3574 echo $ac_n "checking GLIB_LIBS""... $ac_c" 1>&6
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
3575 echo "configure:3576: checking GLIB_LIBS" >&5
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3576 GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 1.3.8"`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3577 echo "$ac_t""$GLIB_LIBS" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3578 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3579 GLIB_CFLAGS=""
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3580 GLIB_LIBS=""
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3581 ## If we have a custom action on failure, don't print errors, but
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3582 ## do set a variable so people can do so.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3583 GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= 1.3.8"`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3584 echo $GLIB_PKG_ERRORS
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3585 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3586
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3587
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3588
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3589 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3590 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3591 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3592 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3593 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3594
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3595 if test $succeeded = yes; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3596 :
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3597 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3598 { echo "configure: error: Library requirements (glib-2.0 >= 1.3.8) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." 1>&2; exit 1; }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3599 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3600
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3601 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3602
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3603 if test "x$GFTP_TEXT" = "x" ; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3604 # Check whether --with-glib-prefix or --without-glib-prefix was given.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3605 if test "${with_glib_prefix+set}" = set; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3606 withval="$with_glib_prefix"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3607 glib_config_prefix="$withval"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3608 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3609 glib_config_prefix=""
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3610 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3611
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3612 # Check whether --with-glib-exec-prefix or --without-glib-exec-prefix was given.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3613 if test "${with_glib_exec_prefix+set}" = set; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3614 withval="$with_glib_exec_prefix"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3615 glib_config_exec_prefix="$withval"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3616 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3617 glib_config_exec_prefix=""
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3618 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3619
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3620 # Check whether --enable-glibtest or --disable-glibtest was given.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3621 if test "${enable_glibtest+set}" = set; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3622 enableval="$enable_glibtest"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3623 :
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3624 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3625 enable_glibtest=yes
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3626 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3627
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3628
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3629 if test x$glib_config_exec_prefix != x ; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3630 glib_config_args="$glib_config_args --exec-prefix=$glib_config_exec_prefix"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3631 if test x${GLIB_CONFIG+set} != xset ; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3632 GLIB_CONFIG=$glib_config_exec_prefix/bin/glib-config
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3633 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3634 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3635 if test x$glib_config_prefix != x ; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3636 glib_config_args="$glib_config_args --prefix=$glib_config_prefix"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3637 if test x${GLIB_CONFIG+set} != xset ; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3638 GLIB_CONFIG=$glib_config_prefix/bin/glib-config
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3639 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3640 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3641
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3642 for module in .
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3643 do
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3644 case "$module" in
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3645 gmodule)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3646 glib_config_args="$glib_config_args gmodule"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3647 ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3648 gthread)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3649 glib_config_args="$glib_config_args gthread"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3650 ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3651 esac
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3652 done
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3653
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3654 # Extract the first word of "glib-config", so it can be a program name with args.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3655 set dummy glib-config; ac_word=$2
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3656 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
3657 echo "configure:3658: checking for $ac_word" >&5
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3658 if eval "test \"`echo '$''{'ac_cv_path_GLIB_CONFIG'+set}'`\" = set"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3659 echo $ac_n "(cached) $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3660 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3661 case "$GLIB_CONFIG" in
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3662 /*)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3663 ac_cv_path_GLIB_CONFIG="$GLIB_CONFIG" # Let the user override the test with a path.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3664 ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3665 ?:/*)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3666 ac_cv_path_GLIB_CONFIG="$GLIB_CONFIG" # Let the user override the test with a dos path.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3667 ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3668 *)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3669 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3670 ac_dummy="$PATH"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3671 for ac_dir in $ac_dummy; do
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3672 test -z "$ac_dir" && ac_dir=.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3673 if test -f $ac_dir/$ac_word; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3674 ac_cv_path_GLIB_CONFIG="$ac_dir/$ac_word"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3675 break
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3676 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3677 done
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3678 IFS="$ac_save_ifs"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3679 test -z "$ac_cv_path_GLIB_CONFIG" && ac_cv_path_GLIB_CONFIG="no"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3680 ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3681 esac
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3682 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3683 GLIB_CONFIG="$ac_cv_path_GLIB_CONFIG"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3684 if test -n "$GLIB_CONFIG"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3685 echo "$ac_t""$GLIB_CONFIG" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3686 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3687 echo "$ac_t""no" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3688 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3689
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3690 min_glib_version=1.2.3
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3691 echo $ac_n "checking for GLIB - version >= $min_glib_version""... $ac_c" 1>&6
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
3692 echo "configure:3693: checking for GLIB - version >= $min_glib_version" >&5
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3693 no_glib=""
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3694 if test "$GLIB_CONFIG" = "no" ; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3695 no_glib=yes
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3696 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3697 GLIB_CFLAGS=`$GLIB_CONFIG $glib_config_args --cflags`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3698 GLIB_LIBS=`$GLIB_CONFIG $glib_config_args --libs`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3699 glib_config_major_version=`$GLIB_CONFIG $glib_config_args --version | \
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3700 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3701 glib_config_minor_version=`$GLIB_CONFIG $glib_config_args --version | \
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3702 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3703 glib_config_micro_version=`$GLIB_CONFIG $glib_config_args --version | \
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3704 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3705 if test "x$enable_glibtest" = "xyes" ; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3706 ac_save_CFLAGS="$CFLAGS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3707 ac_save_LIBS="$LIBS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3708 CFLAGS="$CFLAGS $GLIB_CFLAGS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3709 LIBS="$GLIB_LIBS $LIBS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3710 rm -f conf.glibtest
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3711 if test "$cross_compiling" = yes; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3712 echo $ac_n "cross compiling; assumed OK... $ac_c"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3713 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3714 cat > conftest.$ac_ext <<EOF
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
3715 #line 3716 "configure"
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3716 #include "confdefs.h"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3717
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3718 #include <glib.h>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3719 #include <stdio.h>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3720 #include <stdlib.h>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3721
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3722 int
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3723 main ()
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3724 {
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3725 int major, minor, micro;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3726 char *tmp_version;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3727
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3728 system ("touch conf.glibtest");
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3729
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3730 /* HP/UX 9 (%@#!) writes to sscanf strings */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3731 tmp_version = g_strdup("$min_glib_version");
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3732 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3733 printf("%s, bad version string\n", "$min_glib_version");
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3734 exit(1);
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3735 }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3736
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3737 if ((glib_major_version != $glib_config_major_version) ||
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3738 (glib_minor_version != $glib_config_minor_version) ||
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3739 (glib_micro_version != $glib_config_micro_version))
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3740 {
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3741 printf("\n*** 'glib-config --version' returned %d.%d.%d, but GLIB (%d.%d.%d)\n",
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3742 $glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3743 glib_major_version, glib_minor_version, glib_micro_version);
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3744 printf ("*** was found! If glib-config was correct, then it is best\n");
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3745 printf ("*** to remove the old version of GLIB. You may also be able to fix the error\n");
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3746 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3747 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3748 printf("*** required on your system.\n");
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3749 printf("*** If glib-config was wrong, set the environment variable GLIB_CONFIG\n");
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3750 printf("*** to point to the correct copy of glib-config, and remove the file config.cache\n");
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3751 printf("*** before re-running configure\n");
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3752 }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3753 else if ((glib_major_version != GLIB_MAJOR_VERSION) ||
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3754 (glib_minor_version != GLIB_MINOR_VERSION) ||
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3755 (glib_micro_version != GLIB_MICRO_VERSION))
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3756 {
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3757 printf("*** GLIB header files (version %d.%d.%d) do not match\n",
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3758 GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION);
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3759 printf("*** library (version %d.%d.%d)\n",
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3760 glib_major_version, glib_minor_version, glib_micro_version);
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3761 }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3762 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3763 {
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3764 if ((glib_major_version > major) ||
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3765 ((glib_major_version == major) && (glib_minor_version > minor)) ||
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3766 ((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro)))
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3767 {
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3768 return 0;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3769 }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3770 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3771 {
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3772 printf("\n*** An old version of GLIB (%d.%d.%d) was found.\n",
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3773 glib_major_version, glib_minor_version, glib_micro_version);
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3774 printf("*** You need a version of GLIB newer than %d.%d.%d. The latest version of\n",
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3775 major, minor, micro);
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3776 printf("*** GLIB is always available from ftp://ftp.gtk.org.\n");
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3777 printf("***\n");
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3778 printf("*** If you have already installed a sufficiently new version, this error\n");
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3779 printf("*** probably means that the wrong copy of the glib-config shell script is\n");
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3780 printf("*** being found. The easiest way to fix this is to remove the old version\n");
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3781 printf("*** of GLIB, but you can also set the GLIB_CONFIG environment to point to the\n");
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3782 printf("*** correct copy of glib-config. (In this case, you will have to\n");
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3783 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3784 printf("*** so that the correct libraries are found at run-time))\n");
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3785 }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3786 }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3787 return 1;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3788 }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3789
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3790 EOF
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
3791 if { (eval echo configure:3792: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3792 then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3793 :
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3794 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3795 echo "configure: failed program was:" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3796 cat conftest.$ac_ext >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3797 rm -fr conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3798 no_glib=yes
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3799 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3800 rm -fr conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3801 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3802
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3803 CFLAGS="$ac_save_CFLAGS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3804 LIBS="$ac_save_LIBS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3805 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3806 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3807 if test "x$no_glib" = x ; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3808 echo "$ac_t""yes" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3809 :
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3810 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3811 echo "$ac_t""no" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3812 if test "$GLIB_CONFIG" = "no" ; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3813 echo "*** The glib-config script installed by GLIB could not be found"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3814 echo "*** If GLIB was installed in PREFIX, make sure PREFIX/bin is in"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3815 echo "*** your path, or set the GLIB_CONFIG environment variable to the"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3816 echo "*** full path to glib-config."
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3817 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3818 if test -f conf.glibtest ; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3819 :
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3820 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3821 echo "*** Could not run GLIB test program, checking why..."
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3822 CFLAGS="$CFLAGS $GLIB_CFLAGS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3823 LIBS="$LIBS $GLIB_LIBS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3824 cat > conftest.$ac_ext <<EOF
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
3825 #line 3826 "configure"
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3826 #include "confdefs.h"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3827
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3828 #include <glib.h>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3829 #include <stdio.h>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3830
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3831 int main() {
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3832 return ((glib_major_version) || (glib_minor_version) || (glib_micro_version));
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3833 ; return 0; }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3834 EOF
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
3835 if { (eval echo configure:3836: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3836 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3837 echo "*** The test program compiled, but did not run. This usually means"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3838 echo "*** that the run-time linker is not finding GLIB or finding the wrong"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3839 echo "*** version of GLIB. If it is not finding GLIB, you'll need to set your"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3840 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3841 echo "*** to the installed location Also, make sure you have run ldconfig if that"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3842 echo "*** is required on your system"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3843 echo "***"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3844 echo "*** If you have an old version installed, it is best to remove it, although"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3845 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3846 echo "***"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3847 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3848 echo "*** came with the system with the command"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3849 echo "***"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3850 echo "*** rpm --erase --nodeps gtk gtk-devel"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3851 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3852 echo "configure: failed program was:" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3853 cat conftest.$ac_ext >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3854 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3855 echo "*** The test program failed to compile or link. See the file config.log for the"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3856 echo "*** exact error that occured. This usually means GLIB was incorrectly installed"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3857 echo "*** or that you have moved GLIB since it was installed. In the latter case, you"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3858 echo "*** may want to edit the glib-config script: $GLIB_CONFIG"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3859 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3860 rm -f conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3861 CFLAGS="$ac_save_CFLAGS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3862 LIBS="$ac_save_LIBS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3863 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3864 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3865 GLIB_CFLAGS=""
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3866 GLIB_LIBS=""
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3867 { echo "configure: error: gFTP needs GLIB 1.2.3 or higher" 1>&2; exit 1; }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3868 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3869
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3870
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3871 rm -f conf.glibtest
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3872
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3873 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3874
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3875 GFTP_TEXT=""
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3876 EXTRA_LIBS=""
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3877 USE_READLINE="yes"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3878 READLINE_LIBS=""
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3879 if test "x$enable_textport" = "x1" ; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3880 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
3881 echo "configure:3882: checking for socket in -lsocket" >&5
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3882 ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3883 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3884 echo $ac_n "(cached) $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3885 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3886 ac_save_LIBS="$LIBS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3887 LIBS="-lsocket $LIBS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3888 cat > conftest.$ac_ext <<EOF
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
3889 #line 3890 "configure"
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3890 #include "confdefs.h"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3891 /* Override any gcc2 internal prototype to avoid an error. */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3892 /* We use char because int might match the return type of a gcc2
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3893 builtin and then its argument prototype would still apply. */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3894 char socket();
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3895
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3896 int main() {
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3897 socket()
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3898 ; return 0; }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3899 EOF
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
3900 if { (eval echo configure:3901: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3901 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3902 eval "ac_cv_lib_$ac_lib_var=yes"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3903 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3904 echo "configure: failed program was:" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3905 cat conftest.$ac_ext >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3906 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3907 eval "ac_cv_lib_$ac_lib_var=no"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3908 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3909 rm -f conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3910 LIBS="$ac_save_LIBS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3911
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3912 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3913 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3914 echo "$ac_t""yes" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3915 EXTRA_LIBS="-lsocket"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3916 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3917 echo "$ac_t""no" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3918 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3919
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3920
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3921 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
3922 echo "configure:3923: checking for gethostbyname in -lnsl" >&5
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3923 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3924 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3925 echo $ac_n "(cached) $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3926 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3927 ac_save_LIBS="$LIBS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3928 LIBS="-lnsl $LIBS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3929 cat > conftest.$ac_ext <<EOF
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
3930 #line 3931 "configure"
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3931 #include "confdefs.h"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3932 /* Override any gcc2 internal prototype to avoid an error. */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3933 /* We use char because int might match the return type of a gcc2
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3934 builtin and then its argument prototype would still apply. */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3935 char gethostbyname();
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3936
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3937 int main() {
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3938 gethostbyname()
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3939 ; return 0; }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3940 EOF
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
3941 if { (eval echo configure:3942: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3942 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3943 eval "ac_cv_lib_$ac_lib_var=yes"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3944 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3945 echo "configure: failed program was:" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3946 cat conftest.$ac_ext >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3947 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3948 eval "ac_cv_lib_$ac_lib_var=no"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3949 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3950 rm -f conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3951 LIBS="$ac_save_LIBS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3952
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3953 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3954 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3955 echo "$ac_t""yes" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3956 EXTRA_LIBS="$EXTRA_LIBS -lnsl"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3957 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3958 echo "$ac_t""no" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3959 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3960
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3961
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3962 echo $ac_n "checking whether to use readline""... $ac_c" 1>&6
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
3963 echo "configure:3964: checking whether to use readline" >&5
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3964 # Check whether --with-readline or --without-readline was given.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3965 if test "${with_readline+set}" = set; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3966 withval="$with_readline"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3967 case "${withval}" in
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3968 yes) USE_READLINE="yes" ; echo "$ac_t""yes" 1>&6 ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3969 no) USE_READLINE="no" ; echo "$ac_t""no" 1>&6 ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3970 only) USE_READLINE="yes"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3971 EXTRA_LIBREADLINE_DEPS=" "
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3972 echo "$ac_t""yes (using only readline)" 1>&6 ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3973 *) USE_READLINE="yes"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3974 EXTRA_LIBREADLINE_DEPS="${withval}"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3975 echo "$ac_t""yes (using extra libraries ${withval})" 1>&6 ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3976 esac
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3977 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3978 echo "$ac_t""${USE_READLINE}" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3979 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3980
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3981
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3982 if test "$USE_READLINE" = yes ; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3983 if test "$EXTRA_LIBREADLINE_DEPS" = "" ; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3984 unset ac_cv_lib_readline_readline
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3985 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
3986 echo "configure:3987: checking for readline in -lreadline" >&5
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3987 ac_lib_var=`echo readline'_'readline | sed 'y%./+-%__p_%'`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3988 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3989 echo $ac_n "(cached) $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3990 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3991 ac_save_LIBS="$LIBS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3992 LIBS="-lreadline -lncurses $LIBS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3993 cat > conftest.$ac_ext <<EOF
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
3994 #line 3995 "configure"
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3995 #include "confdefs.h"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3996 /* Override any gcc2 internal prototype to avoid an error. */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3997 /* We use char because int might match the return type of a gcc2
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3998 builtin and then its argument prototype would still apply. */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3999 char readline();
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4000
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4001 int main() {
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4002 readline()
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4003 ; return 0; }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4004 EOF
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
4005 if { (eval echo configure:4006: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4006 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4007 eval "ac_cv_lib_$ac_lib_var=yes"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4008 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4009 echo "configure: failed program was:" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4010 cat conftest.$ac_ext >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4011 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4012 eval "ac_cv_lib_$ac_lib_var=no"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4013 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4014 rm -f conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4015 LIBS="$ac_save_LIBS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4016
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4017 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4018 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4019 echo "$ac_t""yes" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4020 HAVE_LIBREADLINE=true
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4021 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4022 echo "$ac_t""no" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4023 HAVE_LIBREADLINE=false
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4024 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4025
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4026 if test x${HAVE_LIBREADLINE} = xtrue ; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4027 echo " Using -lreadline -lncurses"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4028 EXTRA_LIBREADLINE_DEPS=-lncurses
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4029 cat >> confdefs.h <<\EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4030 #define HAVE_LIBREADLINE 1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4031 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4032
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4033 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4034 unset ac_cv_lib_readline_readline
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4035 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
4036 echo "configure:4037: checking for readline in -lreadline" >&5
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4037 ac_lib_var=`echo readline'_'readline | sed 'y%./+-%__p_%'`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4038 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4039 echo $ac_n "(cached) $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4040 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4041 ac_save_LIBS="$LIBS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4042 LIBS="-lreadline -lcurses $LIBS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4043 cat > conftest.$ac_ext <<EOF
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
4044 #line 4045 "configure"
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4045 #include "confdefs.h"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4046 /* Override any gcc2 internal prototype to avoid an error. */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4047 /* We use char because int might match the return type of a gcc2
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4048 builtin and then its argument prototype would still apply. */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4049 char readline();
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4050
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4051 int main() {
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4052 readline()
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4053 ; return 0; }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4054 EOF
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
4055 if { (eval echo configure:4056: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4056 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4057 eval "ac_cv_lib_$ac_lib_var=yes"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4058 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4059 echo "configure: failed program was:" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4060 cat conftest.$ac_ext >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4061 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4062 eval "ac_cv_lib_$ac_lib_var=no"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4063 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4064 rm -f conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4065 LIBS="$ac_save_LIBS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4066
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4067 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4068 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4069 echo "$ac_t""yes" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4070 HAVE_LIBREADLINE=true
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4071 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4072 echo "$ac_t""no" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4073 HAVE_LIBREADLINE=false
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4074 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4075
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4076 if test x${HAVE_LIBREADLINE} = xtrue ; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4077 echo " Using -lreadline -lcurses"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4078 EXTRA_LIBREADLINE_DEPS=-lcurses
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4079 cat >> confdefs.h <<\EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4080 #define HAVE_LIBREADLINE 1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4081 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4082
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4083 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4084 unset ac_cv_lib_readline_readline
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4085 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
4086 echo "configure:4087: checking for readline in -lreadline" >&5
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4087 ac_lib_var=`echo readline'_'readline | sed 'y%./+-%__p_%'`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4088 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4089 echo $ac_n "(cached) $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4090 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4091 ac_save_LIBS="$LIBS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4092 LIBS="-lreadline -ltermcap $LIBS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4093 cat > conftest.$ac_ext <<EOF
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
4094 #line 4095 "configure"
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4095 #include "confdefs.h"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4096 /* Override any gcc2 internal prototype to avoid an error. */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4097 /* We use char because int might match the return type of a gcc2
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4098 builtin and then its argument prototype would still apply. */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4099 char readline();
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4100
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4101 int main() {
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4102 readline()
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4103 ; return 0; }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4104 EOF
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
4105 if { (eval echo configure:4106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4106 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4107 eval "ac_cv_lib_$ac_lib_var=yes"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4108 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4109 echo "configure: failed program was:" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4110 cat conftest.$ac_ext >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4111 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4112 eval "ac_cv_lib_$ac_lib_var=no"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4113 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4114 rm -f conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4115 LIBS="$ac_save_LIBS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4116
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4117 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4118 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4119 echo "$ac_t""yes" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4120 HAVE_LIBREADLINE=true
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4121 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4122 echo "$ac_t""no" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4123 HAVE_LIBREADLINE=false
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4124 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4125
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4126 if test x${HAVE_LIBREADLINE} = xtrue ; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4127 echo " Using -lreadline -ltermcap"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4128 EXTRA_LIBREADLINE_DEPS=-ltermcap
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4129 cat >> confdefs.h <<\EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4130 #define HAVE_LIBREADLINE 1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4131 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4132
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4133 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4134 unset ac_cv_lib_readline_readline
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4135 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
4136 echo "configure:4137: checking for readline in -lreadline" >&5
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4137 ac_lib_var=`echo readline'_'readline | sed 'y%./+-%__p_%'`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4138 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4139 echo $ac_n "(cached) $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4140 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4141 ac_save_LIBS="$LIBS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4142 LIBS="-lreadline $LIBS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4143 cat > conftest.$ac_ext <<EOF
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
4144 #line 4145 "configure"
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4145 #include "confdefs.h"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4146 /* Override any gcc2 internal prototype to avoid an error. */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4147 /* We use char because int might match the return type of a gcc2
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4148 builtin and then its argument prototype would still apply. */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4149 char readline();
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4150
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4151 int main() {
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4152 readline()
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4153 ; return 0; }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4154 EOF
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
4155 if { (eval echo configure:4156: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4156 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4157 eval "ac_cv_lib_$ac_lib_var=yes"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4158 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4159 echo "configure: failed program was:" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4160 cat conftest.$ac_ext >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4161 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4162 eval "ac_cv_lib_$ac_lib_var=no"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4163 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4164 rm -f conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4165 LIBS="$ac_save_LIBS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4166
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4167 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4168 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4169 echo "$ac_t""yes" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4170 HAVE_LIBREADLINE=true
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4171 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4172 echo "$ac_t""no" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4173 HAVE_LIBREADLINE=false
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4174 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4175
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4176 if test x${HAVE_LIBREADLINE} = xtrue ; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4177 cat >> confdefs.h <<\EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4178 #define HAVE_LIBREADLINE 1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4179 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4180
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4181 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4182 cat >> confdefs.h <<\EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4183 #define HAVE_LIBREADLINE 0
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4184 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4185
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4186 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4187 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4188 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4189 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4190 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4191 unset ac_cv_lib_readline_readline
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4192 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
4193 echo "configure:4194: checking for readline in -lreadline" >&5
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4194 ac_lib_var=`echo readline'_'readline | sed 'y%./+-%__p_%'`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4195 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4196 echo $ac_n "(cached) $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4197 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4198 ac_save_LIBS="$LIBS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4199 LIBS="-lreadline ${EXTRA_LIBREADLINE_DEPS} $LIBS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4200 cat > conftest.$ac_ext <<EOF
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
4201 #line 4202 "configure"
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4202 #include "confdefs.h"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4203 /* Override any gcc2 internal prototype to avoid an error. */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4204 /* We use char because int might match the return type of a gcc2
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4205 builtin and then its argument prototype would still apply. */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4206 char readline();
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4207
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4208 int main() {
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4209 readline()
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4210 ; return 0; }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4211 EOF
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
4212 if { (eval echo configure:4213: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4213 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4214 eval "ac_cv_lib_$ac_lib_var=yes"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4215 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4216 echo "configure: failed program was:" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4217 cat conftest.$ac_ext >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4218 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4219 eval "ac_cv_lib_$ac_lib_var=no"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4220 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4221 rm -f conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4222 LIBS="$ac_save_LIBS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4223
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4224 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4225 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4226 echo "$ac_t""yes" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4227 HAVE_LIBREADLINE=true
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4228 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4229 echo "$ac_t""no" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4230 HAVE_LIBREADLINE=false
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4231 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4232
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4233 if test x${HAVE_LIBREADLINE} = xtrue ; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4234 echo " Using -lreadline ${EXTRA_LIBREADLINE_DEPS}"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4235 cat >> confdefs.h <<\EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4236 #define HAVE_LIBREADLINE 1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4237 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4238
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4239 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4240 cat >> confdefs.h <<\EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4241 #define HAVE_LIBREADLINE 0
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4242 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4243
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4244 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4245 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4246 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4247 HAVE_LIBREADLINE=false
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4248 cat >> confdefs.h <<\EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4249 #define HAVE_LIBREADLINE 0
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4250 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4251
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4252 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4253 if test x${HAVE_LIBREADLINE} = xtrue; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4254 READLINE_LIBS="-lreadline ${EXTRA_LIBREADLINE_DEPS}"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4255 GFTP_TEXT="gftp-text"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4256 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4257 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4258
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4259 echo $ac_n "checking for log10 in -lm""... $ac_c" 1>&6
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
4260 echo "configure:4261: checking for log10 in -lm" >&5
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4261 ac_lib_var=`echo m'_'log10 | sed 'y%./+-%__p_%'`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4262 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4263 echo $ac_n "(cached) $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4264 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4265 ac_save_LIBS="$LIBS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4266 LIBS="-lm $LIBS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4267 cat > conftest.$ac_ext <<EOF
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
4268 #line 4269 "configure"
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4269 #include "confdefs.h"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4270 /* Override any gcc2 internal prototype to avoid an error. */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4271 /* We use char because int might match the return type of a gcc2
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4272 builtin and then its argument prototype would still apply. */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4273 char log10();
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4274
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4275 int main() {
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4276 log10()
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4277 ; return 0; }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4278 EOF
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
4279 if { (eval echo configure:4280: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4280 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4281 eval "ac_cv_lib_$ac_lib_var=yes"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4282 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4283 echo "configure: failed program was:" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4284 cat conftest.$ac_ext >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4285 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4286 eval "ac_cv_lib_$ac_lib_var=no"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4287 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4288 rm -f conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4289 LIBS="$ac_save_LIBS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4290
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4291 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4292 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4293 echo "$ac_t""yes" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4294 EXTRA_LIBS="$EXTRA_LIBS -lm"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4295 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4296 echo "$ac_t""no" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4297 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4298
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4299
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4300 if test "x$enable_dmalloc" = "x1" ; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4301 echo $ac_n "checking for dmalloc_shutdown in -ldmalloc""... $ac_c" 1>&6
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
4302 echo "configure:4303: checking for dmalloc_shutdown in -ldmalloc" >&5
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4303 ac_lib_var=`echo dmalloc'_'dmalloc_shutdown | sed 'y%./+-%__p_%'`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4304 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4305 echo $ac_n "(cached) $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4306 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4307 ac_save_LIBS="$LIBS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4308 LIBS="-ldmalloc $LIBS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4309 cat > conftest.$ac_ext <<EOF
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
4310 #line 4311 "configure"
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4311 #include "confdefs.h"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4312 /* Override any gcc2 internal prototype to avoid an error. */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4313 /* We use char because int might match the return type of a gcc2
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4314 builtin and then its argument prototype would still apply. */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4315 char dmalloc_shutdown();
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4316
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4317 int main() {
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4318 dmalloc_shutdown()
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4319 ; return 0; }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4320 EOF
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
4321 if { (eval echo configure:4322: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4322 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4323 eval "ac_cv_lib_$ac_lib_var=yes"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4324 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4325 echo "configure: failed program was:" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4326 cat conftest.$ac_ext >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4327 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4328 eval "ac_cv_lib_$ac_lib_var=no"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4329 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4330 rm -f conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4331 LIBS="$ac_save_LIBS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4332
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4333 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4334 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4335 echo "$ac_t""yes" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4336
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4337 cat >> confdefs.h <<\EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4338 #define HAVE_DMALLOC 1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4339 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4340
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4341 EXTRA_LIBS="$EXTRA_LIBS -ldmalloc"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4342 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4343 echo "$ac_t""no" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4344 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4345
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4346 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4347
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4348
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4349
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4350
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4351
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4352 GFTP_GTK=""
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4353 PTHREAD_CFLAGS=""
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4354 PTHREAD_LIBS=""
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4355 if test "x$enable_gtkport" = "x1" ; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4356 if test "x$enable_gtk20" = "x1" ; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4357
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4358 succeeded=no
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4359
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4360 if test -z "$PKG_CONFIG"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4361 # Extract the first word of "pkg-config", so it can be a program name with args.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4362 set dummy pkg-config; ac_word=$2
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4363 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
4364 echo "configure:4365: checking for $ac_word" >&5
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4365 if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4366 echo $ac_n "(cached) $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4367 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4368 case "$PKG_CONFIG" in
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4369 /*)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4370 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4371 ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4372 ?:/*)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4373 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4374 ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4375 *)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4376 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4377 ac_dummy="$PATH"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4378 for ac_dir in $ac_dummy; do
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4379 test -z "$ac_dir" && ac_dir=.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4380 if test -f $ac_dir/$ac_word; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4381 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4382 break
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4383 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4384 done
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4385 IFS="$ac_save_ifs"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4386 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4387 ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4388 esac
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4389 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4390 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4391 if test -n "$PKG_CONFIG"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4392 echo "$ac_t""$PKG_CONFIG" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4393 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4394 echo "$ac_t""no" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4395 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4396
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4397 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4398
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4399 if test "$PKG_CONFIG" = "no" ; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4400 echo "*** The pkg-config script could not be found. Make sure it is"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4401 echo "*** in your path, or set the PKG_CONFIG environment variable"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4402 echo "*** to the full path to pkg-config."
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4403 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4404 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4405 PKG_CONFIG_MIN_VERSION=0.9.0
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4406 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4407 echo $ac_n "checking for gtk+-2.0 >= 1.3.8""... $ac_c" 1>&6
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
4408 echo "configure:4409: checking for gtk+-2.0 >= 1.3.8" >&5
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4409
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4410 if $PKG_CONFIG --exists "gtk+-2.0 >= 1.3.8" ; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4411 echo "$ac_t""yes" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4412 succeeded=yes
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4413
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4414 echo $ac_n "checking GTK_CFLAGS""... $ac_c" 1>&6
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
4415 echo "configure:4416: checking GTK_CFLAGS" >&5
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4416 GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 1.3.8"`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4417 echo "$ac_t""$GTK_CFLAGS" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4418
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4419 echo $ac_n "checking GTK_LIBS""... $ac_c" 1>&6
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
4420 echo "configure:4421: checking GTK_LIBS" >&5
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4421 GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 1.3.8"`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4422 echo "$ac_t""$GTK_LIBS" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4423 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4424 GTK_CFLAGS=""
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4425 GTK_LIBS=""
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4426 ## If we have a custom action on failure, don't print errors, but
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4427 ## do set a variable so people can do so.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4428 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 1.3.8"`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4429 echo $GTK_PKG_ERRORS
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4430 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4431
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4432
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4433
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4434 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4435 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4436 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4437 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4438 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4439
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4440 if test $succeeded = yes; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4441 GFTP_GTK=gftp-gtk
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4442 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4443 { echo "configure: error: Library requirements (gtk+-2.0 >= 1.3.8) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." 1>&2; exit 1; }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4444 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4445
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4446 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4447
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4448 if test "x$GFTP_GTK" = "x" ; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4449 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4450 if test "${with_gtk_prefix+set}" = set; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4451 withval="$with_gtk_prefix"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4452 gtk_config_prefix="$withval"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4453 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4454 gtk_config_prefix=""
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4455 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4456
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4457 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4458 if test "${with_gtk_exec_prefix+set}" = set; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4459 withval="$with_gtk_exec_prefix"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4460 gtk_config_exec_prefix="$withval"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4461 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4462 gtk_config_exec_prefix=""
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4463 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4464
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4465 # Check whether --enable-gtktest or --disable-gtktest was given.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4466 if test "${enable_gtktest+set}" = set; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4467 enableval="$enable_gtktest"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4468 :
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4469 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4470 enable_gtktest=yes
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4471 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4472
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4473
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4474 for module in .
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4475 do
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4476 case "$module" in
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4477 gthread)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4478 gtk_config_args="$gtk_config_args gthread"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4479 ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4480 esac
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4481 done
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4482
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4483 if test x$gtk_config_exec_prefix != x ; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4484 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4485 if test x${GTK_CONFIG+set} != xset ; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4486 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4487 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4488 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4489 if test x$gtk_config_prefix != x ; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4490 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4491 if test x${GTK_CONFIG+set} != xset ; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4492 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4493 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4494 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4495
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4496 # Extract the first word of "gtk-config", so it can be a program name with args.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4497 set dummy gtk-config; ac_word=$2
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4498 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
4499 echo "configure:4500: checking for $ac_word" >&5
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4500 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4501 echo $ac_n "(cached) $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4502 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4503 case "$GTK_CONFIG" in
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4504 /*)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4505 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4506 ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4507 ?:/*)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4508 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4509 ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4510 *)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4511 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4512 ac_dummy="$PATH"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4513 for ac_dir in $ac_dummy; do
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4514 test -z "$ac_dir" && ac_dir=.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4515 if test -f $ac_dir/$ac_word; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4516 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4517 break
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4518 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4519 done
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4520 IFS="$ac_save_ifs"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4521 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4522 ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4523 esac
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4524 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4525 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4526 if test -n "$GTK_CONFIG"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4527 echo "$ac_t""$GTK_CONFIG" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4528 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4529 echo "$ac_t""no" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4530 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4531
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4532 min_gtk_version=1.2.3
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4533 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
4534 echo "configure:4535: checking for GTK - version >= $min_gtk_version" >&5
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4535 no_gtk=""
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4536 if test "$GTK_CONFIG" = "no" ; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4537 no_gtk=yes
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4538 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4539 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4540 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4541 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4542 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4543 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4544 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4545 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4546 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4547 if test "x$enable_gtktest" = "xyes" ; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4548 ac_save_CFLAGS="$CFLAGS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4549 ac_save_LIBS="$LIBS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4550 CFLAGS="$CFLAGS $GTK_CFLAGS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4551 LIBS="$GTK_LIBS $LIBS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4552 rm -f conf.gtktest
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4553 if test "$cross_compiling" = yes; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4554 echo $ac_n "cross compiling; assumed OK... $ac_c"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4555 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4556 cat > conftest.$ac_ext <<EOF
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
4557 #line 4558 "configure"
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4558 #include "confdefs.h"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4559
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4560 #include <gtk/gtk.h>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4561 #include <stdio.h>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4562 #include <stdlib.h>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4563
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4564 int
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4565 main ()
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4566 {
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4567 int major, minor, micro;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4568 char *tmp_version;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4569
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4570 system ("touch conf.gtktest");
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4571
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4572 /* HP/UX 9 (%@#!) writes to sscanf strings */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4573 tmp_version = g_strdup("$min_gtk_version");
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4574 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4575 printf("%s, bad version string\n", "$min_gtk_version");
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4576 exit(1);
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4577 }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4578
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4579 if ((gtk_major_version != $gtk_config_major_version) ||
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4580 (gtk_minor_version != $gtk_config_minor_version) ||
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4581 (gtk_micro_version != $gtk_config_micro_version))
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4582 {
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4583 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4584 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4585 gtk_major_version, gtk_minor_version, gtk_micro_version);
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4586 printf ("*** was found! If gtk-config was correct, then it is best\n");
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4587 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4588 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4589 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4590 printf("*** required on your system.\n");
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4591 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4592 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4593 printf("*** before re-running configure\n");
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4594 }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4595 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4596 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4597 (gtk_minor_version != GTK_MINOR_VERSION) ||
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4598 (gtk_micro_version != GTK_MICRO_VERSION))
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4599 {
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4600 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4601 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4602 printf("*** library (version %d.%d.%d)\n",
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4603 gtk_major_version, gtk_minor_version, gtk_micro_version);
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4604 }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4605 #endif /* defined (GTK_MAJOR_VERSION) ... */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4606 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4607 {
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4608 if ((gtk_major_version > major) ||
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4609 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4610 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4611 {
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4612 return 0;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4613 }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4614 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4615 {
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4616 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4617 gtk_major_version, gtk_minor_version, gtk_micro_version);
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4618 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4619 major, minor, micro);
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4620 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4621 printf("***\n");
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4622 printf("*** If you have already installed a sufficiently new version, this error\n");
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4623 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4624 printf("*** being found. The easiest way to fix this is to remove the old version\n");
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4625 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4626 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4627 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4628 printf("*** so that the correct libraries are found at run-time))\n");
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4629 }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4630 }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4631 return 1;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4632 }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4633
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4634 EOF
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
4635 if { (eval echo configure:4636: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4636 then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4637 :
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4638 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4639 echo "configure: failed program was:" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4640 cat conftest.$ac_ext >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4641 rm -fr conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4642 no_gtk=yes
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4643 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4644 rm -fr conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4645 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4646
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4647 CFLAGS="$ac_save_CFLAGS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4648 LIBS="$ac_save_LIBS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4649 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4650 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4651 if test "x$no_gtk" = x ; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4652 echo "$ac_t""yes" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4653 GFTP_GTK=gftp-gtk
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4654 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4655 echo "$ac_t""no" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4656 if test "$GTK_CONFIG" = "no" ; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4657 echo "*** The gtk-config script installed by GTK could not be found"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4658 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4659 echo "*** your path, or set the GTK_CONFIG environment variable to the"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4660 echo "*** full path to gtk-config."
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4661 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4662 if test -f conf.gtktest ; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4663 :
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4664 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4665 echo "*** Could not run GTK test program, checking why..."
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4666 CFLAGS="$CFLAGS $GTK_CFLAGS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4667 LIBS="$LIBS $GTK_LIBS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4668 cat > conftest.$ac_ext <<EOF
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
4669 #line 4670 "configure"
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4670 #include "confdefs.h"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4671
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4672 #include <gtk/gtk.h>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4673 #include <stdio.h>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4674
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4675 int main() {
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4676 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4677 ; return 0; }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4678 EOF
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
4679 if { (eval echo configure:4680: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4680 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4681 echo "*** The test program compiled, but did not run. This usually means"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4682 echo "*** that the run-time linker is not finding GTK or finding the wrong"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4683 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4684 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4685 echo "*** to the installed location Also, make sure you have run ldconfig if that"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4686 echo "*** is required on your system"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4687 echo "***"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4688 echo "*** If you have an old version installed, it is best to remove it, although"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4689 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4690 echo "***"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4691 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4692 echo "*** came with the system with the command"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4693 echo "***"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4694 echo "*** rpm --erase --nodeps gtk gtk-devel"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4695 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4696 echo "configure: failed program was:" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4697 cat conftest.$ac_ext >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4698 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4699 echo "*** The test program failed to compile or link. See the file config.log for the"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4700 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4701 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4702 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4703 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4704 rm -f conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4705 CFLAGS="$ac_save_CFLAGS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4706 LIBS="$ac_save_LIBS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4707 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4708 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4709 GTK_CFLAGS=""
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4710 GTK_LIBS=""
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4711 echo "configure: warning: gFTP needs GTK+ 1.2.3 or higher for the graphical version. Only building the text version" 1>&2
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4712 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4713
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4714
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4715 rm -f conf.gtktest
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4716
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4717 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4718
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4719 if test "x$GFTP_GTK" = xgftp-gtk; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4720 echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
4721 echo "configure:4722: checking for pthread_create in -lpthread" >&5
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4722 ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4723 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4724 echo $ac_n "(cached) $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4725 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4726 ac_save_LIBS="$LIBS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4727 LIBS="-lpthread $LIBS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4728 cat > conftest.$ac_ext <<EOF
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
4729 #line 4730 "configure"
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4730 #include "confdefs.h"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4731 /* Override any gcc2 internal prototype to avoid an error. */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4732 /* We use char because int might match the return type of a gcc2
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4733 builtin and then its argument prototype would still apply. */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4734 char pthread_create();
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4735
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4736 int main() {
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4737 pthread_create()
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4738 ; return 0; }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4739 EOF
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
4740 if { (eval echo configure:4741: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4741 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4742 eval "ac_cv_lib_$ac_lib_var=yes"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4743 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4744 echo "configure: failed program was:" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4745 cat conftest.$ac_ext >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4746 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4747 eval "ac_cv_lib_$ac_lib_var=no"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4748 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4749 rm -f conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4750 LIBS="$ac_save_LIBS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4751
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4752 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4753 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4754 echo "$ac_t""yes" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4755 PTHREAD_LIBS="-lpthread"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4756 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4757 echo "$ac_t""no" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4758 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4759
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4760
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4761 if test "x$PTHREAD_LIBS" = x ; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4762 echo $ac_n "checking for pthread_create in -lpthreads""... $ac_c" 1>&6
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
4763 echo "configure:4764: checking for pthread_create in -lpthreads" >&5
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4764 ac_lib_var=`echo pthreads'_'pthread_create | sed 'y%./+-%__p_%'`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4765 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4766 echo $ac_n "(cached) $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4767 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4768 ac_save_LIBS="$LIBS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4769 LIBS="-lpthreads $LIBS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4770 cat > conftest.$ac_ext <<EOF
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
4771 #line 4772 "configure"
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4772 #include "confdefs.h"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4773 /* Override any gcc2 internal prototype to avoid an error. */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4774 /* We use char because int might match the return type of a gcc2
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4775 builtin and then its argument prototype would still apply. */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4776 char pthread_create();
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4777
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4778 int main() {
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4779 pthread_create()
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4780 ; return 0; }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4781 EOF
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
4782 if { (eval echo configure:4783: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4783 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4784 eval "ac_cv_lib_$ac_lib_var=yes"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4785 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4786 echo "configure: failed program was:" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4787 cat conftest.$ac_ext >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4788 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4789 eval "ac_cv_lib_$ac_lib_var=no"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4790 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4791 rm -f conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4792 LIBS="$ac_save_LIBS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4793
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4794 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4795 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4796 echo "$ac_t""yes" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4797 PTHREAD_LIBS="-lpthreads"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4798 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4799 echo "$ac_t""no" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4800 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4801
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4802 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4803
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4804 if test "x$PTHREAD_LIBS" = x ; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4805 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
4806 echo "configure:4807: checking for pthread_create in -lc_r" >&5
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4807 ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4808 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4809 echo $ac_n "(cached) $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4810 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4811 ac_save_LIBS="$LIBS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4812 LIBS="-lc_r $LIBS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4813 cat > conftest.$ac_ext <<EOF
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
4814 #line 4815 "configure"
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4815 #include "confdefs.h"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4816 /* Override any gcc2 internal prototype to avoid an error. */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4817 /* We use char because int might match the return type of a gcc2
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4818 builtin and then its argument prototype would still apply. */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4819 char pthread_create();
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4820
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4821 int main() {
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4822 pthread_create()
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4823 ; return 0; }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4824 EOF
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
4825 if { (eval echo configure:4826: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4826 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4827 eval "ac_cv_lib_$ac_lib_var=yes"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4828 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4829 echo "configure: failed program was:" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4830 cat conftest.$ac_ext >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4831 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4832 eval "ac_cv_lib_$ac_lib_var=no"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4833 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4834 rm -f conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4835 LIBS="$ac_save_LIBS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4836
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4837 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4838 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4839 echo "$ac_t""yes" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4840 PTHREAD_LIBS="-lc_r"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4841 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4842 echo "$ac_t""no" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4843 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4844
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4845 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4846
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4847 if test "x$PTHREAD_LIBS" = x ; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4848 echo ;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4849 echo "Error: Cannot find the pthread libraries. If you don't have them installed," ;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4850 echo "your X libraries probably aren't thread safe either. You can download the" ;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4851 echo "pthread library and the thread safe X libraries from my webpage at" ;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4852 echo "http://www.gftp.org/. Note the pthread library and the thread safe" ;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4853 echo "X libraries on my webpage are for Linux libc5 machines ONLY" ;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4854 echo ;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4855 exit
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4856 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4857
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4858 PTHREAD_CFLAGS="-D_REENTRANT"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4859
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4860 # I took some of these from the glib 1.3.3 configure.in
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4861 case $host in
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4862 *-hpux*)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4863 # From H.Merijn Brand <h.m.brand@hccnet.nl>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4864 echo '#define pthread_attr_init(x) __pthread_attr_init_system(x)'
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4865 +>>confdefs.h
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4866 ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4867 *-aix*)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4868 PTHREAD_CFLAGS="$PTHREAD_CFLAGS -D_THREAD_SAFE"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4869 if test x"$GCC" = xyes; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4870 PTHREAD_CFLAGS="$PTHREAD_CFLAGS -mthreads"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4871 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4872 ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4873 *-freebsd*)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4874 PTHREAD_CFLAGS="$PTHREAD_CFLAGS -D_THREAD_SAFE"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4875
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4876 # FreeBSD 2.2.x shiped with gcc 2.7.2.x, which doesn't support
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4877 # -mthreads flag.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4878 ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4879 *-openbsd*)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4880 PTHREAD_CFLAGS="$PTHREAD_CFLAGS -D_THREAD_SAFE"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4881 if test "x$PTHREAD_LIBS" = "x-lc_r"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4882 PTHREAD_LIBS="-pthread"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4883 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4884 ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4885 *-sysv5uw7*) # UnixWare 7
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4886 if test "$GCC" != "yes"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4887 PTHREAD_CFLAGS="$PTHREAD_CFLAGS -Kthread"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4888 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4889 PTHREAD_CFLAGS="$PTHREAD_CFLAGS -pthread"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4890 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4891 ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4892 *-dg-dgux*) # DG/UX
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4893 PTHREAD_CFLAGS="$PTHREAD_CFLAGS -D_POSIX4A_DRAFT10_SOURCE"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4894 esac
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4895 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4896 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4897
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4898
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4899
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4900
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4901
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4902 echo $ac_n "checking for inttypes.h""... $ac_c" 1>&6
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
4903 echo "configure:4904: checking for inttypes.h" >&5
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4904 if eval "test \"`echo '$''{'jm_ac_cv_header_inttypes_h'+set}'`\" = set"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4905 echo $ac_n "(cached) $ac_c" 1>&6
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4906 else
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4907 cat > conftest.$ac_ext <<EOF
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
4908 #line 4909 "configure"
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4909 #include "confdefs.h"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4910 #include <sys/types.h>
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4911 #include <inttypes.h>
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4912 int main() {
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4913 uintmax_t i = (uintmax_t) -1;
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4914 ; return 0; }
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4915 EOF
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
4916 if { (eval echo configure:4917: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4917 rm -rf conftest*
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4918 jm_ac_cv_header_inttypes_h=yes
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4919 else
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4920 echo "configure: failed program was:" >&5
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4921 cat conftest.$ac_ext >&5
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4922 rm -rf conftest*
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4923 jm_ac_cv_header_inttypes_h=no
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4924 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4925 rm -f conftest*
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4926 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4927
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4928 echo "$ac_t""$jm_ac_cv_header_inttypes_h" 1>&6
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4929 if test $jm_ac_cv_header_inttypes_h = yes; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4930 cat >> confdefs.h <<EOF
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4931 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4932 EOF
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4933
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4934 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4935
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4936
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4937 echo $ac_n "checking for stdint.h""... $ac_c" 1>&6
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
4938 echo "configure:4939: checking for stdint.h" >&5
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4939 if eval "test \"`echo '$''{'jm_ac_cv_header_stdint_h'+set}'`\" = set"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4940 echo $ac_n "(cached) $ac_c" 1>&6
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4941 else
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4942 cat > conftest.$ac_ext <<EOF
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
4943 #line 4944 "configure"
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4944 #include "confdefs.h"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4945 #include <sys/types.h>
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4946 #include <stdint.h>
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4947 int main() {
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4948 uintmax_t i = (uintmax_t) -1;
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4949 ; return 0; }
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4950 EOF
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
4951 if { (eval echo configure:4952: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4952 rm -rf conftest*
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4953 jm_ac_cv_header_stdint_h=yes
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4954 else
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4955 echo "configure: failed program was:" >&5
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4956 cat conftest.$ac_ext >&5
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4957 rm -rf conftest*
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4958 jm_ac_cv_header_stdint_h=no
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4959 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4960 rm -f conftest*
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4961 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4962
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4963 echo "$ac_t""$jm_ac_cv_header_stdint_h" 1>&6
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4964 if test $jm_ac_cv_header_stdint_h = yes; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4965 cat >> confdefs.h <<EOF
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4966 #define HAVE_STDINT_H_WITH_UINTMAX 1
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4967 EOF
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4968
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4969 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4970
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4971
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4972 echo $ac_n "checking for unsigned long long""... $ac_c" 1>&6
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
4973 echo "configure:4974: checking for unsigned long long" >&5
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4974 if eval "test \"`echo '$''{'ac_cv_type_unsigned_long_long'+set}'`\" = set"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4975 echo $ac_n "(cached) $ac_c" 1>&6
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4976 else
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4977 cat > conftest.$ac_ext <<EOF
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
4978 #line 4979 "configure"
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4979 #include "confdefs.h"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4980 unsigned long long ull = 1; int i = 63;
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4981 int main() {
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4982 unsigned long long ullmax = (unsigned long long) -1;
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4983 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4984 ; return 0; }
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4985 EOF
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
4986 if { (eval echo configure:4987: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4987 rm -rf conftest*
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4988 ac_cv_type_unsigned_long_long=yes
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4989 else
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4990 echo "configure: failed program was:" >&5
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4991 cat conftest.$ac_ext >&5
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4992 rm -rf conftest*
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4993 ac_cv_type_unsigned_long_long=no
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4994 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4995 rm -f conftest*
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4996 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4997
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4998 echo "$ac_t""$ac_cv_type_unsigned_long_long" 1>&6
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
4999 if test $ac_cv_type_unsigned_long_long = yes; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5000 cat >> confdefs.h <<\EOF
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5001 #define HAVE_UNSIGNED_LONG_LONG 1
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5002 EOF
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5003
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5004 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5005
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5006
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5007 if test "X$prefix" = "XNONE"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5008 acl_final_prefix="$ac_default_prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5009 else
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5010 acl_final_prefix="$prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5011 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5012 if test "X$exec_prefix" = "XNONE"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5013 acl_final_exec_prefix='${prefix}'
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5014 else
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5015 acl_final_exec_prefix="$exec_prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5016 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5017 acl_save_prefix="$prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5018 prefix="$acl_final_prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5019 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5020 prefix="$acl_save_prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5021
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5022
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5023 echo $ac_n "checking for shared library run path origin""... $ac_c" 1>&6
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
5024 echo "configure:5025: checking for shared library run path origin" >&5
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5025 if eval "test \"`echo '$''{'acl_cv_rpath'+set}'`\" = set"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5026 echo $ac_n "(cached) $ac_c" 1>&6
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5027 else
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5028
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5029 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5030 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5031 . ./conftest.sh
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5032 rm -f ./conftest.sh
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5033 acl_cv_rpath=done
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5034
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5035 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5036
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5037 echo "$ac_t""$acl_cv_rpath" 1>&6
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5038 wl="$acl_cv_wl"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5039 libext="$acl_cv_libext"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5040 shlibext="$acl_cv_shlibext"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5041 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5042 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5043 hardcode_direct="$acl_cv_hardcode_direct"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5044 hardcode_minus_L="$acl_cv_hardcode_minus_L"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5045 sys_lib_search_path_spec="$acl_cv_sys_lib_search_path_spec"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5046 sys_lib_dlsearch_path_spec="$acl_cv_sys_lib_dlsearch_path_spec"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5047 # Check whether --enable-rpath or --disable-rpath was given.
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5048 if test "${enable_rpath+set}" = set; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5049 enableval="$enable_rpath"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5050 :
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5051 else
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5052 enable_rpath=yes
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5053 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5054
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5055
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5056
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5057 MKINSTALLDIRS=
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5058 if test -n "$ac_aux_dir"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5059 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5060 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5061 if test -z "$MKINSTALLDIRS"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5062 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5063 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5064
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5065
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
5066
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
5067 echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
5068 echo "configure:5069: checking for strerror in -lcposix" >&5
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
5069 ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
5070 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
5071 echo $ac_n "(cached) $ac_c" 1>&6
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
5072 else
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
5073 ac_save_LIBS="$LIBS"
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
5074 LIBS="-lcposix $LIBS"
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
5075 cat > conftest.$ac_ext <<EOF
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
5076 #line 5077 "configure"
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
5077 #include "confdefs.h"
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
5078 /* Override any gcc2 internal prototype to avoid an error. */
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
5079 /* We use char because int might match the return type of a gcc2
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
5080 builtin and then its argument prototype would still apply. */
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
5081 char strerror();
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
5082
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
5083 int main() {
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
5084 strerror()
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
5085 ; return 0; }
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
5086 EOF
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
5087 if { (eval echo configure:5088: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
5088 rm -rf conftest*
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
5089 eval "ac_cv_lib_$ac_lib_var=yes"
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
5090 else
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
5091 echo "configure: failed program was:" >&5
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
5092 cat conftest.$ac_ext >&5
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
5093 rm -rf conftest*
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
5094 eval "ac_cv_lib_$ac_lib_var=no"
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
5095 fi
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
5096 rm -f conftest*
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
5097 LIBS="$ac_save_LIBS"
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
5098
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
5099 fi
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
5100 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
5101 echo "$ac_t""yes" 1>&6
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
5102 LIBS="$LIBS -lcposix"
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
5103 else
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
5104 echo "$ac_t""no" 1>&6
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
5105 fi
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
5106
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
5107
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
5108
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5109 echo $ac_n "checking for off_t""... $ac_c" 1>&6
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
5110 echo "configure:5111: checking for off_t" >&5
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5111 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5112 echo $ac_n "(cached) $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5113 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5114 cat > conftest.$ac_ext <<EOF
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
5115 #line 5116 "configure"
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5116 #include "confdefs.h"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5117 #include <sys/types.h>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5118 #if STDC_HEADERS
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5119 #include <stdlib.h>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5120 #include <stddef.h>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5121 #endif
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5122 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5123 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5124 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5125 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5126 ac_cv_type_off_t=yes
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5127 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5128 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5129 ac_cv_type_off_t=no
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5130 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5131 rm -f conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5132
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5133 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5134 echo "$ac_t""$ac_cv_type_off_t" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5135 if test $ac_cv_type_off_t = no; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5136 cat >> confdefs.h <<\EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5137 #define off_t long
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5138 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5139
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5140 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5141
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5142
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5143 echo $ac_n "checking whether we are using the GNU C Library 2.1 or newer""... $ac_c" 1>&6
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
5144 echo "configure:5145: checking whether we are using the GNU C Library 2.1 or newer" >&5
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5145 if eval "test \"`echo '$''{'ac_cv_gnu_library_2_1'+set}'`\" = set"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5146 echo $ac_n "(cached) $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5147 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5148 cat > conftest.$ac_ext <<EOF
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
5149 #line 5150 "configure"
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5150 #include "confdefs.h"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5151
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5152 #include <features.h>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5153 #ifdef __GNU_LIBRARY__
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5154 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5155 Lucky GNU user
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5156 #endif
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5157 #endif
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5158
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5159 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5160 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5161 egrep "Lucky GNU user" >/dev/null 2>&1; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5162 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5163 ac_cv_gnu_library_2_1=yes
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5164 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5165 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5166 ac_cv_gnu_library_2_1=no
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5167 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5168 rm -f conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5169
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5170
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5171
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5172 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5173
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5174 echo "$ac_t""$ac_cv_gnu_library_2_1" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5175
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5176 GLIBC21="$ac_cv_gnu_library_2_1"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5177
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5178
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5179
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5180
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5181 echo $ac_n "checking whether integer division by zero raises SIGFPE""... $ac_c" 1>&6
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
5182 echo "configure:5183: checking whether integer division by zero raises SIGFPE" >&5
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5183 if eval "test \"`echo '$''{'gt_cv_int_divbyzero_sigfpe'+set}'`\" = set"; then
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5184 echo $ac_n "(cached) $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5185 else
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5186
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5187 if test "$cross_compiling" = yes; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5188
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5189 # Guess based on the CPU.
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5190 case "$host_cpu" in
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5191 alpha* | i3456786 | m68k | s390*)
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5192 gt_cv_int_divbyzero_sigfpe="guessing yes";;
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5193 *)
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5194 gt_cv_int_divbyzero_sigfpe="guessing no";;
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5195 esac
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5196
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5197 else
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5198 cat > conftest.$ac_ext <<EOF
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
5199 #line 5200 "configure"
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5200 #include "confdefs.h"
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5201
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5202 #include <stdlib.h>
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5203 #include <signal.h>
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5204
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5205 static void
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5206 #ifdef __cplusplus
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5207 sigfpe_handler (int sig)
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5208 #else
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5209 sigfpe_handler (sig) int sig;
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5210 #endif
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5211 {
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5212 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5213 exit (sig != SIGFPE);
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5214 }
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5215
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5216 int x = 1;
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5217 int y = 0;
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5218 int z;
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5219 int nan;
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5220
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5221 int main ()
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5222 {
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5223 signal (SIGFPE, sigfpe_handler);
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5224 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5225 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5226 signal (SIGTRAP, sigfpe_handler);
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5227 #endif
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5228 /* Linux/SPARC yields signal SIGILL. */
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5229 #if defined (__sparc__) && defined (__linux__)
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5230 signal (SIGILL, sigfpe_handler);
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5231 #endif
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5232
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5233 z = x / y;
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5234 nan = y / y;
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5235 exit (1);
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5236 }
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5237
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5238 EOF
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
5239 if { (eval echo configure:5240: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5240 then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5241 gt_cv_int_divbyzero_sigfpe=yes
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5242 else
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5243 echo "configure: failed program was:" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5244 cat conftest.$ac_ext >&5
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5245 rm -fr conftest*
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5246 gt_cv_int_divbyzero_sigfpe=no
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5247 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5248 rm -fr conftest*
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5249 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5250
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5251
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5252 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5253
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5254 echo "$ac_t""$gt_cv_int_divbyzero_sigfpe" 1>&6
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5255 case "$gt_cv_int_divbyzero_sigfpe" in
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5256 *yes) value=1;;
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5257 *) value=0;;
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5258 esac
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5259 cat >> confdefs.h <<EOF
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5260 #define INTDIV0_RAISES_SIGFPE $value
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5261 EOF
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5262
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5263
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5264
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5265
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5266
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5267 if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5268
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5269 test $ac_cv_type_unsigned_long_long = yes \
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5270 && ac_type='unsigned long long' \
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5271 || ac_type='unsigned long'
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5272 cat >> confdefs.h <<EOF
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5273 #define uintmax_t $ac_type
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5274 EOF
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5275
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5276 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5277
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5278
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5279 echo $ac_n "checking for inttypes.h""... $ac_c" 1>&6
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
5280 echo "configure:5281: checking for inttypes.h" >&5
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5281 if eval "test \"`echo '$''{'gt_cv_header_inttypes_h'+set}'`\" = set"; then
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5282 echo $ac_n "(cached) $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5283 else
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5284
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5285 cat > conftest.$ac_ext <<EOF
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
5286 #line 5287 "configure"
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5287 #include "confdefs.h"
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5288 #include <sys/types.h>
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5289 #include <inttypes.h>
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5290 int main() {
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5291
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5292 ; return 0; }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5293 EOF
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
5294 if { (eval echo configure:5295: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5295 rm -rf conftest*
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5296 gt_cv_header_inttypes_h=yes
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5297 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5298 echo "configure: failed program was:" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5299 cat conftest.$ac_ext >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5300 rm -rf conftest*
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5301 gt_cv_header_inttypes_h=no
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5302 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5303 rm -f conftest*
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5304
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5305 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5306
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5307 echo "$ac_t""$gt_cv_header_inttypes_h" 1>&6
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5308 if test $gt_cv_header_inttypes_h = yes; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5309 cat >> confdefs.h <<EOF
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5310 #define HAVE_INTTYPES_H 1
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5311 EOF
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5312
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5313 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5314
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5315
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5316
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5317 if test $gt_cv_header_inttypes_h = yes; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5318 echo $ac_n "checking whether the inttypes.h PRIxNN macros are broken""... $ac_c" 1>&6
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
5319 echo "configure:5320: checking whether the inttypes.h PRIxNN macros are broken" >&5
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5320 if eval "test \"`echo '$''{'gt_cv_inttypes_pri_broken'+set}'`\" = set"; then
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5321 echo $ac_n "(cached) $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5322 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5323
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5324 cat > conftest.$ac_ext <<EOF
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
5325 #line 5326 "configure"
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5326 #include "confdefs.h"
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5327 #include <inttypes.h>
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5328 #ifdef PRId32
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5329 char *p = PRId32;
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5330 #endif
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5331
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5332 int main() {
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5333
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5334 ; return 0; }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5335 EOF
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
5336 if { (eval echo configure:5337: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5337 rm -rf conftest*
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5338 gt_cv_inttypes_pri_broken=no
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5339 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5340 echo "configure: failed program was:" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5341 cat conftest.$ac_ext >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5342 rm -rf conftest*
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5343 gt_cv_inttypes_pri_broken=yes
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5344 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5345 rm -f conftest*
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5346
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5347 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5348
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5349 echo "$ac_t""$gt_cv_inttypes_pri_broken" 1>&6
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5350 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5351 if test "$gt_cv_inttypes_pri_broken" = yes; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5352 cat >> confdefs.h <<EOF
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5353 #define PRI_MACROS_BROKEN 1
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5354 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5355
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5356 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5357
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5358
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5359
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5360
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5361
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5362
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5363
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5364 use_additional=yes
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5365
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5366 acl_save_prefix="$prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5367 prefix="$acl_final_prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5368 acl_save_exec_prefix="$exec_prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5369 exec_prefix="$acl_final_exec_prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5370
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5371 eval additional_includedir=\"$includedir\"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5372 eval additional_libdir=\"$libdir\"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5373
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5374 exec_prefix="$acl_save_exec_prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5375 prefix="$acl_save_prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5376
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5377 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5378 if test "${with_libiconv_prefix+set}" = set; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5379 withval="$with_libiconv_prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5380
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5381 if test "X$withval" = "Xno"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5382 use_additional=no
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5383 else
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5384 if test "X$withval" = "X"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5385
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5386 acl_save_prefix="$prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5387 prefix="$acl_final_prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5388 acl_save_exec_prefix="$exec_prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5389 exec_prefix="$acl_final_exec_prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5390
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5391 eval additional_includedir=\"$includedir\"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5392 eval additional_libdir=\"$libdir\"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5393
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5394 exec_prefix="$acl_save_exec_prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5395 prefix="$acl_save_prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5396
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5397 else
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5398 additional_includedir="$withval/include"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5399 additional_libdir="$withval/lib"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5400 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5401 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5402
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5403 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5404
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5405 LIBICONV=
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5406 LTLIBICONV=
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5407 INCICONV=
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5408 rpathdirs=
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5409 ltrpathdirs=
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5410 names_already_handled=
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5411 names_next_round='iconv '
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5412 while test -n "$names_next_round"; do
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5413 names_this_round="$names_next_round"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5414 names_next_round=
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5415 for name in $names_this_round; do
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5416 already_handled=
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5417 for n in $names_already_handled; do
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5418 if test "$n" = "$name"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5419 already_handled=yes
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5420 break
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5421 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5422 done
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5423 if test -z "$already_handled"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5424 names_already_handled="$names_already_handled $name"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5425 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5426 eval value=\"\$HAVE_LIB$uppername\"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5427 if test -n "$value"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5428 if test "$value" = yes; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5429 eval value=\"\$LIB$uppername\"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5430 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5431 eval value=\"\$LTLIB$uppername\"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5432 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5433 else
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5434 :
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5435 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5436 else
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5437 found_dir=
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5438 found_la=
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5439 found_so=
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5440 found_a=
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5441 if test $use_additional = yes; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5442 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5443 found_dir="$additional_libdir"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5444 found_so="$additional_libdir/lib$name.$shlibext"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5445 if test -f "$additional_libdir/lib$name.la"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5446 found_la="$additional_libdir/lib$name.la"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5447 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5448 else
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5449 if test -f "$additional_libdir/lib$name.$libext"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5450 found_dir="$additional_libdir"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5451 found_a="$additional_libdir/lib$name.$libext"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5452 if test -f "$additional_libdir/lib$name.la"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5453 found_la="$additional_libdir/lib$name.la"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5454 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5455 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5456 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5457 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5458 if test "X$found_dir" = "X"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5459 for x in $LDFLAGS $LTLIBICONV; do
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5460
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5461 acl_save_prefix="$prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5462 prefix="$acl_final_prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5463 acl_save_exec_prefix="$exec_prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5464 exec_prefix="$acl_final_exec_prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5465 eval x=\"$x\"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5466 exec_prefix="$acl_save_exec_prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5467 prefix="$acl_save_prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5468
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5469 case "$x" in
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5470 -L*)
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5471 dir=`echo "X$x" | sed -e 's/^X-L//'`
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5472 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5473 found_dir="$dir"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5474 found_so="$dir/lib$name.$shlibext"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5475 if test -f "$dir/lib$name.la"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5476 found_la="$dir/lib$name.la"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5477 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5478 else
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5479 if test -f "$dir/lib$name.$libext"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5480 found_dir="$dir"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5481 found_a="$dir/lib$name.$libext"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5482 if test -f "$dir/lib$name.la"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5483 found_la="$dir/lib$name.la"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5484 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5485 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5486 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5487 ;;
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5488 esac
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5489 if test "X$found_dir" != "X"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5490 break
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5491 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5492 done
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5493 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5494 if test "X$found_dir" != "X"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5495 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5496 if test "X$found_so" != "X"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5497 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5498 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5499 else
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5500 haveit=
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5501 for x in $ltrpathdirs; do
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5502 if test "X$x" = "X$found_dir"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5503 haveit=yes
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5504 break
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5505 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5506 done
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5507 if test -z "$haveit"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5508 ltrpathdirs="$ltrpathdirs $found_dir"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5509 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5510 if test "$hardcode_direct" = yes; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5511 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5512 else
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5513 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5514 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5515 haveit=
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5516 for x in $rpathdirs; do
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5517 if test "X$x" = "X$found_dir"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5518 haveit=yes
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5519 break
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5520 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5521 done
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5522 if test -z "$haveit"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5523 rpathdirs="$rpathdirs $found_dir"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5524 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5525 else
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5526 haveit=
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5527 for x in $LDFLAGS $LIBICONV; do
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5528
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5529 acl_save_prefix="$prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5530 prefix="$acl_final_prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5531 acl_save_exec_prefix="$exec_prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5532 exec_prefix="$acl_final_exec_prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5533 eval x=\"$x\"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5534 exec_prefix="$acl_save_exec_prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5535 prefix="$acl_save_prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5536
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5537 if test "X$x" = "X-L$found_dir"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5538 haveit=yes
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5539 break
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5540 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5541 done
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5542 if test -z "$haveit"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5543 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5544 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5545 if test "$hardcode_minus_L" != no; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5546 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5547 else
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5548 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5549 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5550 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5551 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5552 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5553 else
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5554 if test "X$found_a" != "X"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5555 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5556 else
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5557 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5558 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5559 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5560 additional_includedir=
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5561 case "$found_dir" in
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5562 */lib | */lib/)
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5563 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5564 additional_includedir="$basedir/include"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5565 ;;
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5566 esac
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5567 if test "X$additional_includedir" != "X"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5568 if test "X$additional_includedir" != "X/usr/include"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5569 haveit=
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5570 if test "X$additional_includedir" = "X/usr/local/include"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5571 if test -n "$GCC"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5572 case $host_os in
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5573 linux*) haveit=yes;;
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5574 esac
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5575 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5576 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5577 if test -z "$haveit"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5578 for x in $CPPFLAGS $INCICONV; do
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5579
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5580 acl_save_prefix="$prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5581 prefix="$acl_final_prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5582 acl_save_exec_prefix="$exec_prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5583 exec_prefix="$acl_final_exec_prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5584 eval x=\"$x\"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5585 exec_prefix="$acl_save_exec_prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5586 prefix="$acl_save_prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5587
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5588 if test "X$x" = "X-I$additional_includedir"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5589 haveit=yes
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5590 break
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5591 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5592 done
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5593 if test -z "$haveit"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5594 if test -d "$additional_includedir"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5595 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5596 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5597 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5598 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5599 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5600 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5601 if test -n "$found_la"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5602 save_libdir="$libdir"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5603 case "$found_la" in
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5604 */* | *\\*) . "$found_la" ;;
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5605 *) . "./$found_la" ;;
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5606 esac
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5607 libdir="$save_libdir"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5608 for dep in $dependency_libs; do
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5609 case "$dep" in
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5610 -L*)
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5611 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5612 if test "X$additional_libdir" != "X/usr/lib"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5613 haveit=
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5614 if test "X$additional_libdir" = "X/usr/local/lib"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5615 if test -n "$GCC"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5616 case $host_os in
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5617 linux*) haveit=yes;;
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5618 esac
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5619 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5620 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5621 if test -z "$haveit"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5622 haveit=
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5623 for x in $LDFLAGS $LIBICONV; do
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5624
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5625 acl_save_prefix="$prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5626 prefix="$acl_final_prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5627 acl_save_exec_prefix="$exec_prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5628 exec_prefix="$acl_final_exec_prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5629 eval x=\"$x\"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5630 exec_prefix="$acl_save_exec_prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5631 prefix="$acl_save_prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5632
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5633 if test "X$x" = "X-L$additional_libdir"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5634 haveit=yes
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5635 break
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5636 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5637 done
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5638 if test -z "$haveit"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5639 if test -d "$additional_libdir"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5640 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5641 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5642 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5643 haveit=
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5644 for x in $LDFLAGS $LTLIBICONV; do
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5645
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5646 acl_save_prefix="$prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5647 prefix="$acl_final_prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5648 acl_save_exec_prefix="$exec_prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5649 exec_prefix="$acl_final_exec_prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5650 eval x=\"$x\"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5651 exec_prefix="$acl_save_exec_prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5652 prefix="$acl_save_prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5653
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5654 if test "X$x" = "X-L$additional_libdir"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5655 haveit=yes
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5656 break
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5657 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5658 done
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5659 if test -z "$haveit"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5660 if test -d "$additional_libdir"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5661 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5662 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5663 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5664 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5665 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5666 ;;
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5667 -R*)
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5668 dir=`echo "X$dep" | sed -e 's/^X-R//'`
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5669 if test "$enable_rpath" != no; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5670 haveit=
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5671 for x in $rpathdirs; do
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5672 if test "X$x" = "X$dir"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5673 haveit=yes
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5674 break
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5675 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5676 done
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5677 if test -z "$haveit"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5678 rpathdirs="$rpathdirs $dir"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5679 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5680 haveit=
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5681 for x in $ltrpathdirs; do
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5682 if test "X$x" = "X$dir"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5683 haveit=yes
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5684 break
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5685 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5686 done
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5687 if test -z "$haveit"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5688 ltrpathdirs="$ltrpathdirs $dir"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5689 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5690 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5691 ;;
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5692 -l*)
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5693 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5694 ;;
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5695 *.la)
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5696 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5697 ;;
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5698 *)
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5699 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5700 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5701 ;;
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5702 esac
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5703 done
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5704 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5705 else
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5706 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5707 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5708 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5709 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5710 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5711 done
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5712 done
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5713 if test "X$rpathdirs" != "X"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5714 if test -n "$hardcode_libdir_separator"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5715 alldirs=
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5716 for found_dir in $rpathdirs; do
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5717 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5718 done
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5719 acl_save_libdir="$libdir"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5720 libdir="$alldirs"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5721 eval flag=\"$hardcode_libdir_flag_spec\"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5722 libdir="$acl_save_libdir"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5723 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5724 else
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5725 for found_dir in $rpathdirs; do
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5726 acl_save_libdir="$libdir"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5727 libdir="$found_dir"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5728 eval flag=\"$hardcode_libdir_flag_spec\"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5729 libdir="$acl_save_libdir"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5730 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5731 done
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5732 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5733 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5734 if test "X$ltrpathdirs" != "X"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5735 for found_dir in $ltrpathdirs; do
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5736 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5737 done
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5738 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5739
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5740
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5741
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5742
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5743
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5744 # Extract the first word of "msgfmt", so it can be a program name with args.
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5745 set dummy msgfmt; ac_word=$2
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5746 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
5747 echo "configure:5748: checking for $ac_word" >&5
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5748 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5749 echo $ac_n "(cached) $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5750 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5751 case "$MSGFMT" in
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5752 /*)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5753 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5754 ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5755 *)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5756 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5757 for ac_dir in $PATH; do
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5758 test -z "$ac_dir" && ac_dir=.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5759 if test -f $ac_dir/$ac_word; then
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5760 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5761 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5762 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5763 break
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5764 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5765 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5766 done
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5767 IFS="$ac_save_ifs"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5768 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5769 ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5770 esac
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5771 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5772 MSGFMT="$ac_cv_path_MSGFMT"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5773 if test "$MSGFMT" != ":"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5774 echo "$ac_t""$MSGFMT" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5775 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5776 echo "$ac_t""no" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5777 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5778
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5779 # Extract the first word of "gmsgfmt", so it can be a program name with args.
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5780 set dummy gmsgfmt; ac_word=$2
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5781 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
5782 echo "configure:5783: checking for $ac_word" >&5
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5783 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5784 echo $ac_n "(cached) $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5785 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5786 case "$GMSGFMT" in
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5787 /*)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5788 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5789 ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5790 ?:/*)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5791 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5792 ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5793 *)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5794 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5795 ac_dummy="$PATH"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5796 for ac_dir in $ac_dummy; do
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5797 test -z "$ac_dir" && ac_dir=.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5798 if test -f $ac_dir/$ac_word; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5799 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5800 break
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5801 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5802 done
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5803 IFS="$ac_save_ifs"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5804 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5805 ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5806 esac
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5807 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5808 GMSGFMT="$ac_cv_path_GMSGFMT"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5809 if test -n "$GMSGFMT"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5810 echo "$ac_t""$GMSGFMT" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5811 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5812 echo "$ac_t""no" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5813 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5814
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5815
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5816 # Extract the first word of "xgettext", so it can be a program name with args.
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5817 set dummy xgettext; ac_word=$2
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5818 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
5819 echo "configure:5820: checking for $ac_word" >&5
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5820 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5821 echo $ac_n "(cached) $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5822 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5823 case "$XGETTEXT" in
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5824 /*)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5825 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5826 ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5827 *)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5828 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5829 for ac_dir in $PATH; do
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5830 test -z "$ac_dir" && ac_dir=.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5831 if test -f $ac_dir/$ac_word; then
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5832 if $ac_dir/$ac_word --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 &&
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5833 (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
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5834 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5835 break
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5836 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5837 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5838 done
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5839 IFS="$ac_save_ifs"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5840 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5841 ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5842 esac
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5843 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5844 XGETTEXT="$ac_cv_path_XGETTEXT"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5845 if test "$XGETTEXT" != ":"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5846 echo "$ac_t""$XGETTEXT" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5847 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5848 echo "$ac_t""no" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5849 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5850
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5851 rm -f messages.po
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5852
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5853 # Extract the first word of "msgmerge", so it can be a program name with args.
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5854 set dummy msgmerge; ac_word=$2
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5855 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
5856 echo "configure:5857: checking for $ac_word" >&5
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5857 if eval "test \"`echo '$''{'ac_cv_path_MSGMERGE'+set}'`\" = set"; then
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5858 echo $ac_n "(cached) $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5859 else
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5860 case "$MSGMERGE" in
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5861 /*)
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5862 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5863 ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5864 *)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5865 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5866 for ac_dir in $PATH; do
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5867 test -z "$ac_dir" && ac_dir=.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5868 if test -f $ac_dir/$ac_word; then
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5869 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5870 ac_cv_path_MSGMERGE="$ac_dir/$ac_word"
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5871 break
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5872 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5873 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5874 done
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5875 IFS="$ac_save_ifs"
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5876 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5877 ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5878 esac
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5879 fi
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5880 MSGMERGE="$ac_cv_path_MSGMERGE"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5881 if test "$MSGMERGE" != ":"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5882 echo "$ac_t""$MSGMERGE" 1>&6
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5883 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5884 echo "$ac_t""no" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5885 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5886
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5887
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5888 if test "$GMSGFMT" != ":"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5889 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5890 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5891 : ;
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5892 else
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5893 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5894 echo "$ac_t""found $GMSGFMT program is not GNU msgfmt; ignore it" 1>&6
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5895 GMSGFMT=":"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5896 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5897 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5898
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5899 if test "$XGETTEXT" != ":"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5900 if $XGETTEXT --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 &&
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5901 (if $XGETTEXT --omit-header --copyright-holder= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5902 : ;
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5903 else
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5904 echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5905 XGETTEXT=":"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5906 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5907 rm -f messages.po
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5908 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5909
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5910
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5911
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5912
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5913
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5914 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5915 stdlib.h string.h unistd.h sys/param.h
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5916 do
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5917 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5918 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
5919 echo "configure:5920: checking for $ac_hdr" >&5
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5920 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5921 echo $ac_n "(cached) $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5922 else
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5923 cat > conftest.$ac_ext <<EOF
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
5924 #line 5925 "configure"
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5925 #include "confdefs.h"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5926 #include <$ac_hdr>
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5927 EOF
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5928 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
5929 { (eval echo configure:5930: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5930 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5931 if test -z "$ac_err"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5932 rm -rf conftest*
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5933 eval "ac_cv_header_$ac_safe=yes"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5934 else
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5935 echo "$ac_err" >&5
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5936 echo "configure: failed program was:" >&5
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5937 cat conftest.$ac_ext >&5
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5938 rm -rf conftest*
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5939 eval "ac_cv_header_$ac_safe=no"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5940 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5941 rm -f conftest*
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5942 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5943 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5944 echo "$ac_t""yes" 1>&6
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5945 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5946 cat >> confdefs.h <<EOF
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5947 #define $ac_tr_hdr 1
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5948 EOF
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5949
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5950 else
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5951 echo "$ac_t""no" 1>&6
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5952 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5953 done
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5954
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5955 for ac_func in feof_unlocked fgets_unlocked getc_unlocked getcwd getegid \
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5956 geteuid getgid getuid mempcpy munmap putenv setenv setlocale stpcpy \
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5957 strcasecmp strdup strtoul tsearch __argz_count __argz_stringify __argz_next
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5958 do
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5959 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
5960 echo "configure:5961: checking for $ac_func" >&5
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5961 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5962 echo $ac_n "(cached) $ac_c" 1>&6
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5963 else
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5964 cat > conftest.$ac_ext <<EOF
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
5965 #line 5966 "configure"
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5966 #include "confdefs.h"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5967 /* System header to define __stub macros and hopefully few prototypes,
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5968 which can conflict with char $ac_func(); below. */
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5969 #include <assert.h>
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5970 /* Override any gcc2 internal prototype to avoid an error. */
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5971 /* We use char because int might match the return type of a gcc2
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5972 builtin and then its argument prototype would still apply. */
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5973 char $ac_func();
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5974
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5975 int main() {
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5976
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5977 /* The GNU C library defines this for functions which it implements
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5978 to always fail with ENOSYS. Some functions are actually named
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5979 something starting with __ and the normal name is an alias. */
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5980 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5981 choke me
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5982 #else
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5983 $ac_func();
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5984 #endif
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5985
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5986 ; return 0; }
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5987 EOF
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
5988 if { (eval echo configure:5989: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5989 rm -rf conftest*
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5990 eval "ac_cv_func_$ac_func=yes"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5991 else
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5992 echo "configure: failed program was:" >&5
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5993 cat conftest.$ac_ext >&5
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5994 rm -rf conftest*
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5995 eval "ac_cv_func_$ac_func=no"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5996 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5997 rm -f conftest*
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5998 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
5999
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6000 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6001 echo "$ac_t""yes" 1>&6
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6002 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6003 cat >> confdefs.h <<EOF
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6004 #define $ac_tr_func 1
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6005 EOF
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6006
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6007 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6008 echo "$ac_t""no" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6009 fi
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6010 done
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6011
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6012
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6013
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6014
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6015
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6016
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6017
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6018 am_save_CPPFLAGS="$CPPFLAGS"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6019
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6020 for element in $INCICONV; do
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6021 haveit=
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6022 for x in $CPPFLAGS; do
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6023
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6024 acl_save_prefix="$prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6025 prefix="$acl_final_prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6026 acl_save_exec_prefix="$exec_prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6027 exec_prefix="$acl_final_exec_prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6028 eval x=\"$x\"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6029 exec_prefix="$acl_save_exec_prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6030 prefix="$acl_save_prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6031
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6032 if test "X$x" = "X$element"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6033 haveit=yes
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6034 break
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6035 fi
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6036 done
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6037 if test -z "$haveit"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6038 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6039 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6040 done
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6041
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6042
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6043 echo $ac_n "checking for iconv""... $ac_c" 1>&6
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
6044 echo "configure:6045: checking for iconv" >&5
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6045 if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6046 echo $ac_n "(cached) $ac_c" 1>&6
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6047 else
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6048
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6049 am_cv_func_iconv="no, consider installing GNU libiconv"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6050 am_cv_lib_iconv=no
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6051 cat > conftest.$ac_ext <<EOF
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
6052 #line 6053 "configure"
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6053 #include "confdefs.h"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6054 #include <stdlib.h>
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6055 #include <iconv.h>
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6056 int main() {
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6057 iconv_t cd = iconv_open("","");
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6058 iconv(cd,NULL,NULL,NULL,NULL);
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6059 iconv_close(cd);
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6060 ; return 0; }
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6061 EOF
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
6062 if { (eval echo configure:6063: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6063 rm -rf conftest*
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6064 am_cv_func_iconv=yes
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6065 else
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6066 echo "configure: failed program was:" >&5
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6067 cat conftest.$ac_ext >&5
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6068 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6069 rm -f conftest*
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6070 if test "$am_cv_func_iconv" != yes; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6071 am_save_LIBS="$LIBS"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6072 LIBS="$LIBS $LIBICONV"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6073 cat > conftest.$ac_ext <<EOF
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
6074 #line 6075 "configure"
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6075 #include "confdefs.h"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6076 #include <stdlib.h>
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6077 #include <iconv.h>
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6078 int main() {
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6079 iconv_t cd = iconv_open("","");
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6080 iconv(cd,NULL,NULL,NULL,NULL);
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6081 iconv_close(cd);
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6082 ; return 0; }
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6083 EOF
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
6084 if { (eval echo configure:6085: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6085 rm -rf conftest*
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6086 am_cv_lib_iconv=yes
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6087 am_cv_func_iconv=yes
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6088 else
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6089 echo "configure: failed program was:" >&5
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6090 cat conftest.$ac_ext >&5
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6091 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6092 rm -f conftest*
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6093 LIBS="$am_save_LIBS"
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6094 fi
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6095
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6096 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6097
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6098 echo "$ac_t""$am_cv_func_iconv" 1>&6
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6099 if test "$am_cv_func_iconv" = yes; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6100 cat >> confdefs.h <<\EOF
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6101 #define HAVE_ICONV 1
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6102 EOF
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6103
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6104 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6105 if test "$am_cv_lib_iconv" = yes; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6106 echo $ac_n "checking how to link with libiconv""... $ac_c" 1>&6
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
6107 echo "configure:6108: checking how to link with libiconv" >&5
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6108 echo "$ac_t""$LIBICONV" 1>&6
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6109 else
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6110 CPPFLAGS="$am_save_CPPFLAGS"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6111 LIBICONV=
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6112 LTLIBICONV=
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6113 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6114
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6115
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6116
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6117 if test "$am_cv_func_iconv" = yes; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6118 echo $ac_n "checking for iconv declaration""... $ac_c" 1>&6
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
6119 echo "configure:6120: checking for iconv declaration" >&5
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6120 if eval "test \"`echo '$''{'am_cv_proto_iconv'+set}'`\" = set"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6121 echo $ac_n "(cached) $ac_c" 1>&6
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6122 else
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6123
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6124 cat > conftest.$ac_ext <<EOF
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
6125 #line 6126 "configure"
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6126 #include "confdefs.h"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6127
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6128 #include <stdlib.h>
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6129 #include <iconv.h>
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6130 extern
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6131 #ifdef __cplusplus
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6132 "C"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6133 #endif
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6134 #if defined(__STDC__) || defined(__cplusplus)
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6135 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6136 #else
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6137 size_t iconv();
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6138 #endif
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6139
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6140 int main() {
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6141
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6142 ; return 0; }
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6143 EOF
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
6144 if { (eval echo configure:6145: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6145 rm -rf conftest*
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6146 am_cv_proto_iconv_arg1=""
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6147 else
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6148 echo "configure: failed program was:" >&5
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6149 cat conftest.$ac_ext >&5
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6150 rm -rf conftest*
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6151 am_cv_proto_iconv_arg1="const"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6152 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6153 rm -f conftest*
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6154 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);"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6155 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6156
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6157 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6158 echo "$ac_t""${ac_t:-
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6159 }$am_cv_proto_iconv" 1>&6
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6160 cat >> confdefs.h <<EOF
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6161 #define ICONV_CONST $am_cv_proto_iconv_arg1
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6162 EOF
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6163
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6164 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6165
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6166
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6167 echo $ac_n "checking for nl_langinfo and CODESET""... $ac_c" 1>&6
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
6168 echo "configure:6169: checking for nl_langinfo and CODESET" >&5
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6169 if eval "test \"`echo '$''{'am_cv_langinfo_codeset'+set}'`\" = set"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6170 echo $ac_n "(cached) $ac_c" 1>&6
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6171 else
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6172 cat > conftest.$ac_ext <<EOF
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
6173 #line 6174 "configure"
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6174 #include "confdefs.h"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6175 #include <langinfo.h>
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6176 int main() {
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6177 char* cs = nl_langinfo(CODESET);
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6178 ; return 0; }
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6179 EOF
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
6180 if { (eval echo configure:6181: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6181 rm -rf conftest*
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6182 am_cv_langinfo_codeset=yes
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6183 else
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6184 echo "configure: failed program was:" >&5
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6185 cat conftest.$ac_ext >&5
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6186 rm -rf conftest*
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6187 am_cv_langinfo_codeset=no
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6188 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6189 rm -f conftest*
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6190
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6191 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6192
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6193 echo "$ac_t""$am_cv_langinfo_codeset" 1>&6
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6194 if test $am_cv_langinfo_codeset = yes; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6195 cat >> confdefs.h <<\EOF
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6196 #define HAVE_LANGINFO_CODESET 1
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6197 EOF
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6198
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6199 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6200
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6201 if test $ac_cv_header_locale_h = yes; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6202
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6203 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
6204 echo "configure:6205: checking for LC_MESSAGES" >&5
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6205 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6206 echo $ac_n "(cached) $ac_c" 1>&6
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6207 else
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6208 cat > conftest.$ac_ext <<EOF
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
6209 #line 6210 "configure"
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6210 #include "confdefs.h"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6211 #include <locale.h>
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6212 int main() {
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6213 return LC_MESSAGES
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6214 ; return 0; }
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6215 EOF
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
6216 if { (eval echo configure:6217: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6217 rm -rf conftest*
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6218 am_cv_val_LC_MESSAGES=yes
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6219 else
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6220 echo "configure: failed program was:" >&5
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6221 cat conftest.$ac_ext >&5
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6222 rm -rf conftest*
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6223 am_cv_val_LC_MESSAGES=no
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6224 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6225 rm -f conftest*
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6226 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6227
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6228 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6229 if test $am_cv_val_LC_MESSAGES = yes; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6230 cat >> confdefs.h <<\EOF
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6231 #define HAVE_LC_MESSAGES 1
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6232 EOF
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6233
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6234 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6235
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6236 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6237
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6238 for ac_prog in bison
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6239 do
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6240 # Extract the first word of "$ac_prog", so it can be a program name with args.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6241 set dummy $ac_prog; ac_word=$2
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6242 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
6243 echo "configure:6244: checking for $ac_word" >&5
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6244 if eval "test \"`echo '$''{'ac_cv_prog_INTLBISON'+set}'`\" = set"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6245 echo $ac_n "(cached) $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6246 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6247 if test -n "$INTLBISON"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6248 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6249 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6250 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6251 ac_dummy="$PATH"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6252 for ac_dir in $ac_dummy; do
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6253 test -z "$ac_dir" && ac_dir=.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6254 if test -f $ac_dir/$ac_word; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6255 ac_cv_prog_INTLBISON="$ac_prog"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6256 break
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6257 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6258 done
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6259 IFS="$ac_save_ifs"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6260 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6261 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6262 INTLBISON="$ac_cv_prog_INTLBISON"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6263 if test -n "$INTLBISON"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6264 echo "$ac_t""$INTLBISON" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6265 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6266 echo "$ac_t""no" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6267 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6268
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6269 test -n "$INTLBISON" && break
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6270 done
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6271
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6272 if test -z "$INTLBISON"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6273 ac_verc_fail=yes
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6274 else
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6275 echo $ac_n "checking version of bison""... $ac_c" 1>&6
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
6276 echo "configure:6277: checking version of bison" >&5
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6277 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6278 case $ac_prog_version in
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6279 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6280 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6281 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6282 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6283 esac
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6284 echo "$ac_t""$ac_prog_version" 1>&6
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6285 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6286 if test $ac_verc_fail = yes; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6287 INTLBISON=:
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6288 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6289
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6290
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6291
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6292
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6293
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6294
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6295
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6296
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6297
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6298
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6299
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6300
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6301
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6302
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6303
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6304 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
6305 echo "configure:6306: checking whether NLS is requested" >&5
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6306 # Check whether --enable-nls or --disable-nls was given.
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6307 if test "${enable_nls+set}" = set; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6308 enableval="$enable_nls"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6309 USE_NLS=$enableval
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6310 else
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6311 USE_NLS=yes
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6312 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6313
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6314 echo "$ac_t""$USE_NLS" 1>&6
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6315
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6316
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6317
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6318 BUILD_INCLUDED_LIBINTL=no
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6319 USE_INCLUDED_LIBINTL=no
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6320
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6321 LIBINTL=
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6322 LTLIBINTL=
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6323 POSUB=
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6324
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6325 if test "$USE_NLS" = "yes"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6326 gt_use_preinstalled_gnugettext=no
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6327
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6328 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
6329 echo "configure:6330: checking whether included gettext is requested" >&5
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6330 # Check whether --with-included-gettext or --without-included-gettext was given.
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6331 if test "${with_included_gettext+set}" = set; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6332 withval="$with_included_gettext"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6333 nls_cv_force_use_gnu_gettext=$withval
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6334 else
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6335 nls_cv_force_use_gnu_gettext=no
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6336 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6337
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6338 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6339
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6340 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6341 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6342
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6343
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6344
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6345
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6346
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6347
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6348 echo $ac_n "checking for GNU gettext in libc""... $ac_c" 1>&6
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
6349 echo "configure:6350: checking for GNU gettext in libc" >&5
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6350 if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libc'+set}'`\" = set"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6351 echo $ac_n "(cached) $ac_c" 1>&6
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6352 else
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6353 cat > conftest.$ac_ext <<EOF
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
6354 #line 6355 "configure"
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6355 #include "confdefs.h"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6356 #include <libintl.h>
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6357 extern int _nl_msg_cat_cntr;
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6358 extern int *_nl_domain_bindings;
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6359 int main() {
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6360 bindtextdomain ("", "");
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6361 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6362 ; return 0; }
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6363 EOF
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
6364 if { (eval echo configure:6365: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6365 rm -rf conftest*
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6366 gt_cv_func_gnugettext1_libc=yes
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6367 else
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6368 echo "configure: failed program was:" >&5
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6369 cat conftest.$ac_ext >&5
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6370 rm -rf conftest*
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6371 gt_cv_func_gnugettext1_libc=no
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6372 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6373 rm -f conftest*
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6374 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6375
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6376 echo "$ac_t""$gt_cv_func_gnugettext1_libc" 1>&6
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6377
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6378 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6379
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6380
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6381
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6382 use_additional=yes
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6383
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6384 acl_save_prefix="$prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6385 prefix="$acl_final_prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6386 acl_save_exec_prefix="$exec_prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6387 exec_prefix="$acl_final_exec_prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6388
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6389 eval additional_includedir=\"$includedir\"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6390 eval additional_libdir=\"$libdir\"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6391
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6392 exec_prefix="$acl_save_exec_prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6393 prefix="$acl_save_prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6394
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6395 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6396 if test "${with_libintl_prefix+set}" = set; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6397 withval="$with_libintl_prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6398
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6399 if test "X$withval" = "Xno"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6400 use_additional=no
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6401 else
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6402 if test "X$withval" = "X"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6403
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6404 acl_save_prefix="$prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6405 prefix="$acl_final_prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6406 acl_save_exec_prefix="$exec_prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6407 exec_prefix="$acl_final_exec_prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6408
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6409 eval additional_includedir=\"$includedir\"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6410 eval additional_libdir=\"$libdir\"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6411
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6412 exec_prefix="$acl_save_exec_prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6413 prefix="$acl_save_prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6414
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6415 else
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6416 additional_includedir="$withval/include"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6417 additional_libdir="$withval/lib"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6418 fi
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6419 fi
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6420
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6421 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6422
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6423 LIBINTL=
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6424 LTLIBINTL=
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6425 INCINTL=
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6426 rpathdirs=
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6427 ltrpathdirs=
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6428 names_already_handled=
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6429 names_next_round='intl '
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6430 while test -n "$names_next_round"; do
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6431 names_this_round="$names_next_round"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6432 names_next_round=
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6433 for name in $names_this_round; do
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6434 already_handled=
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6435 for n in $names_already_handled; do
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6436 if test "$n" = "$name"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6437 already_handled=yes
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6438 break
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6439 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6440 done
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6441 if test -z "$already_handled"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6442 names_already_handled="$names_already_handled $name"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6443 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6444 eval value=\"\$HAVE_LIB$uppername\"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6445 if test -n "$value"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6446 if test "$value" = yes; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6447 eval value=\"\$LIB$uppername\"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6448 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6449 eval value=\"\$LTLIB$uppername\"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6450 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6451 else
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6452 :
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6453 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6454 else
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6455 found_dir=
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6456 found_la=
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6457 found_so=
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6458 found_a=
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6459 if test $use_additional = yes; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6460 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6461 found_dir="$additional_libdir"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6462 found_so="$additional_libdir/lib$name.$shlibext"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6463 if test -f "$additional_libdir/lib$name.la"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6464 found_la="$additional_libdir/lib$name.la"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6465 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6466 else
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6467 if test -f "$additional_libdir/lib$name.$libext"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6468 found_dir="$additional_libdir"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6469 found_a="$additional_libdir/lib$name.$libext"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6470 if test -f "$additional_libdir/lib$name.la"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6471 found_la="$additional_libdir/lib$name.la"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6472 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6473 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6474 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6475 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6476 if test "X$found_dir" = "X"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6477 for x in $LDFLAGS $LTLIBINTL; do
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6478
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6479 acl_save_prefix="$prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6480 prefix="$acl_final_prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6481 acl_save_exec_prefix="$exec_prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6482 exec_prefix="$acl_final_exec_prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6483 eval x=\"$x\"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6484 exec_prefix="$acl_save_exec_prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6485 prefix="$acl_save_prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6486
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6487 case "$x" in
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6488 -L*)
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6489 dir=`echo "X$x" | sed -e 's/^X-L//'`
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6490 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6491 found_dir="$dir"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6492 found_so="$dir/lib$name.$shlibext"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6493 if test -f "$dir/lib$name.la"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6494 found_la="$dir/lib$name.la"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6495 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6496 else
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6497 if test -f "$dir/lib$name.$libext"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6498 found_dir="$dir"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6499 found_a="$dir/lib$name.$libext"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6500 if test -f "$dir/lib$name.la"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6501 found_la="$dir/lib$name.la"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6502 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6503 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6504 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6505 ;;
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6506 esac
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6507 if test "X$found_dir" != "X"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6508 break
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6509 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6510 done
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6511 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6512 if test "X$found_dir" != "X"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6513 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6514 if test "X$found_so" != "X"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6515 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6516 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6517 else
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6518 haveit=
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6519 for x in $ltrpathdirs; do
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6520 if test "X$x" = "X$found_dir"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6521 haveit=yes
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6522 break
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6523 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6524 done
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6525 if test -z "$haveit"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6526 ltrpathdirs="$ltrpathdirs $found_dir"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6527 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6528 if test "$hardcode_direct" = yes; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6529 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6530 else
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6531 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6532 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6533 haveit=
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6534 for x in $rpathdirs; do
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6535 if test "X$x" = "X$found_dir"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6536 haveit=yes
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6537 break
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6538 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6539 done
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6540 if test -z "$haveit"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6541 rpathdirs="$rpathdirs $found_dir"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6542 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6543 else
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6544 haveit=
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6545 for x in $LDFLAGS $LIBINTL; do
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6546
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6547 acl_save_prefix="$prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6548 prefix="$acl_final_prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6549 acl_save_exec_prefix="$exec_prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6550 exec_prefix="$acl_final_exec_prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6551 eval x=\"$x\"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6552 exec_prefix="$acl_save_exec_prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6553 prefix="$acl_save_prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6554
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6555 if test "X$x" = "X-L$found_dir"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6556 haveit=yes
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6557 break
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6558 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6559 done
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6560 if test -z "$haveit"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6561 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6562 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6563 if test "$hardcode_minus_L" != no; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6564 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6565 else
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6566 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6567 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6568 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6569 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6570 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6571 else
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6572 if test "X$found_a" != "X"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6573 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6574 else
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6575 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6576 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6577 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6578 additional_includedir=
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6579 case "$found_dir" in
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6580 */lib | */lib/)
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6581 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6582 additional_includedir="$basedir/include"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6583 ;;
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6584 esac
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6585 if test "X$additional_includedir" != "X"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6586 if test "X$additional_includedir" != "X/usr/include"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6587 haveit=
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6588 if test "X$additional_includedir" = "X/usr/local/include"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6589 if test -n "$GCC"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6590 case $host_os in
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6591 linux*) haveit=yes;;
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6592 esac
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6593 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6594 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6595 if test -z "$haveit"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6596 for x in $CPPFLAGS $INCINTL; do
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6597
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6598 acl_save_prefix="$prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6599 prefix="$acl_final_prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6600 acl_save_exec_prefix="$exec_prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6601 exec_prefix="$acl_final_exec_prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6602 eval x=\"$x\"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6603 exec_prefix="$acl_save_exec_prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6604 prefix="$acl_save_prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6605
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6606 if test "X$x" = "X-I$additional_includedir"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6607 haveit=yes
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6608 break
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6609 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6610 done
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6611 if test -z "$haveit"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6612 if test -d "$additional_includedir"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6613 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6614 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6615 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6616 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6617 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6618 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6619 if test -n "$found_la"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6620 save_libdir="$libdir"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6621 case "$found_la" in
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6622 */* | *\\*) . "$found_la" ;;
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6623 *) . "./$found_la" ;;
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6624 esac
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6625 libdir="$save_libdir"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6626 for dep in $dependency_libs; do
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6627 case "$dep" in
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6628 -L*)
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6629 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6630 if test "X$additional_libdir" != "X/usr/lib"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6631 haveit=
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6632 if test "X$additional_libdir" = "X/usr/local/lib"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6633 if test -n "$GCC"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6634 case $host_os in
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6635 linux*) haveit=yes;;
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6636 esac
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6637 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6638 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6639 if test -z "$haveit"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6640 haveit=
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6641 for x in $LDFLAGS $LIBINTL; do
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6642
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6643 acl_save_prefix="$prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6644 prefix="$acl_final_prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6645 acl_save_exec_prefix="$exec_prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6646 exec_prefix="$acl_final_exec_prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6647 eval x=\"$x\"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6648 exec_prefix="$acl_save_exec_prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6649 prefix="$acl_save_prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6650
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6651 if test "X$x" = "X-L$additional_libdir"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6652 haveit=yes
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6653 break
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6654 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6655 done
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6656 if test -z "$haveit"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6657 if test -d "$additional_libdir"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6658 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6659 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6660 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6661 haveit=
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6662 for x in $LDFLAGS $LTLIBINTL; do
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6663
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6664 acl_save_prefix="$prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6665 prefix="$acl_final_prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6666 acl_save_exec_prefix="$exec_prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6667 exec_prefix="$acl_final_exec_prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6668 eval x=\"$x\"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6669 exec_prefix="$acl_save_exec_prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6670 prefix="$acl_save_prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6671
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6672 if test "X$x" = "X-L$additional_libdir"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6673 haveit=yes
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6674 break
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6675 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6676 done
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6677 if test -z "$haveit"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6678 if test -d "$additional_libdir"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6679 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6680 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6681 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6682 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6683 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6684 ;;
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6685 -R*)
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6686 dir=`echo "X$dep" | sed -e 's/^X-R//'`
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6687 if test "$enable_rpath" != no; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6688 haveit=
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6689 for x in $rpathdirs; do
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6690 if test "X$x" = "X$dir"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6691 haveit=yes
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6692 break
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6693 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6694 done
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6695 if test -z "$haveit"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6696 rpathdirs="$rpathdirs $dir"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6697 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6698 haveit=
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6699 for x in $ltrpathdirs; do
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6700 if test "X$x" = "X$dir"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6701 haveit=yes
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6702 break
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6703 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6704 done
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6705 if test -z "$haveit"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6706 ltrpathdirs="$ltrpathdirs $dir"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6707 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6708 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6709 ;;
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6710 -l*)
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6711 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6712 ;;
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6713 *.la)
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6714 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6715 ;;
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6716 *)
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6717 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6718 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6719 ;;
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6720 esac
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6721 done
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6722 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6723 else
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6724 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6725 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6726 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6727 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6728 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6729 done
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6730 done
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6731 if test "X$rpathdirs" != "X"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6732 if test -n "$hardcode_libdir_separator"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6733 alldirs=
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6734 for found_dir in $rpathdirs; do
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6735 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6736 done
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6737 acl_save_libdir="$libdir"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6738 libdir="$alldirs"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6739 eval flag=\"$hardcode_libdir_flag_spec\"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6740 libdir="$acl_save_libdir"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6741 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6742 else
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6743 for found_dir in $rpathdirs; do
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6744 acl_save_libdir="$libdir"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6745 libdir="$found_dir"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6746 eval flag=\"$hardcode_libdir_flag_spec\"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6747 libdir="$acl_save_libdir"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6748 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6749 done
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6750 fi
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6751 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6752 if test "X$ltrpathdirs" != "X"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6753 for found_dir in $ltrpathdirs; do
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6754 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6755 done
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6756 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6757
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6758 echo $ac_n "checking for GNU gettext in libintl""... $ac_c" 1>&6
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
6759 echo "configure:6760: checking for GNU gettext in libintl" >&5
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6760 if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libintl'+set}'`\" = set"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6761 echo $ac_n "(cached) $ac_c" 1>&6
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6762 else
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6763 gt_save_CPPFLAGS="$CPPFLAGS"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6764 CPPFLAGS="$CPPFLAGS $INCINTL"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6765 gt_save_LIBS="$LIBS"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6766 LIBS="$LIBS $LIBINTL"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6767 cat > conftest.$ac_ext <<EOF
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
6768 #line 6769 "configure"
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6769 #include "confdefs.h"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6770 #include <libintl.h>
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6771 extern int _nl_msg_cat_cntr;
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6772 extern
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6773 #ifdef __cplusplus
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6774 "C"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6775 #endif
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6776 const char *_nl_expand_alias ();
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6777 int main() {
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6778 bindtextdomain ("", "");
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6779 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6780 ; return 0; }
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6781 EOF
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
6782 if { (eval echo configure:6783: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6783 rm -rf conftest*
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6784 gt_cv_func_gnugettext1_libintl=yes
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6785 else
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6786 echo "configure: failed program was:" >&5
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6787 cat conftest.$ac_ext >&5
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6788 rm -rf conftest*
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6789 gt_cv_func_gnugettext1_libintl=no
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6790 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6791 rm -f conftest*
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6792 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6793 LIBS="$LIBS $LIBICONV"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6794 cat > conftest.$ac_ext <<EOF
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
6795 #line 6796 "configure"
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6796 #include "confdefs.h"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6797 #include <libintl.h>
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6798 extern int _nl_msg_cat_cntr;
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6799 extern
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6800 #ifdef __cplusplus
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6801 "C"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6802 #endif
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6803 const char *_nl_expand_alias ();
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6804 int main() {
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6805 bindtextdomain ("", "");
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6806 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6807 ; return 0; }
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6808 EOF
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
6809 if { (eval echo configure:6810: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6810 rm -rf conftest*
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6811 LIBINTL="$LIBINTL $LIBICONV"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6812 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6813 gt_cv_func_gnugettext1_libintl=yes
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6814
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6815 else
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6816 echo "configure: failed program was:" >&5
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6817 cat conftest.$ac_ext >&5
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6818 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6819 rm -f conftest*
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6820 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6821 CPPFLAGS="$gt_save_CPPFLAGS"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6822 LIBS="$gt_save_LIBS"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6823 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6824
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6825 echo "$ac_t""$gt_cv_func_gnugettext1_libintl" 1>&6
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6826 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6827
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6828 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6829 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6830 && test "$PACKAGE" != gettext; }; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6831 gt_use_preinstalled_gnugettext=yes
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6832 else
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6833 LIBINTL=
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6834 LTLIBINTL=
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6835 INCINTL=
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6836 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6837
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6838
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6839 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6840 nls_cv_use_gnu_gettext=yes
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6841 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6842 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6843
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6844 if test "$nls_cv_use_gnu_gettext" = "yes"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6845 INTLOBJS="\$(GETTOBJS)"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6846 BUILD_INCLUDED_LIBINTL=yes
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6847 USE_INCLUDED_LIBINTL=yes
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6848 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6849 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6850 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6851 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6852
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6853 if test "$gt_use_preinstalled_gnugettext" = "yes" \
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6854 || test "$nls_cv_use_gnu_gettext" = "yes"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6855 CATOBJEXT=.gmo
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6856 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6857
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6858
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6859 if test "$gt_use_preinstalled_gnugettext" = "yes" \
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6860 || test "$nls_cv_use_gnu_gettext" = "yes"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6861 cat >> confdefs.h <<\EOF
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6862 #define ENABLE_NLS 1
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6863 EOF
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6864
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6865 else
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6866 USE_NLS=no
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6867 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6868 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6869
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6870 if test "$USE_NLS" = "yes"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6871
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6872 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6873 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6874 echo $ac_n "checking how to link with libintl""... $ac_c" 1>&6
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
6875 echo "configure:6876: checking how to link with libintl" >&5
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6876 echo "$ac_t""$LIBINTL" 1>&6
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6877
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6878 for element in $INCINTL; do
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6879 haveit=
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6880 for x in $CPPFLAGS; do
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6881
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6882 acl_save_prefix="$prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6883 prefix="$acl_final_prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6884 acl_save_exec_prefix="$exec_prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6885 exec_prefix="$acl_final_exec_prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6886 eval x=\"$x\"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6887 exec_prefix="$acl_save_exec_prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6888 prefix="$acl_save_prefix"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6889
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6890 if test "X$x" = "X$element"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6891 haveit=yes
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6892 break
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6893 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6894 done
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6895 if test -z "$haveit"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6896 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6897 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6898 done
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6899
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6900 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6901
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6902 cat >> confdefs.h <<\EOF
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6903 #define HAVE_GETTEXT 1
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6904 EOF
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6905
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6906 cat >> confdefs.h <<\EOF
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6907 #define HAVE_DCGETTEXT 1
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6908 EOF
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6909
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6910 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6911
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6912 POSUB=po
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6913 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6914
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6915
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6916 if test "$PACKAGE" = gettext; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6917 BUILD_INCLUDED_LIBINTL=yes
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6918 fi
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6919
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6920
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6921
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6922
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6923
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6924
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6925 nls_cv_header_intl=
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6926 nls_cv_header_libgt=
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6927
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6928 DATADIRNAME=share
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6929
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6930
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6931 INSTOBJEXT=.mo
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6932
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6933
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6934 GENCAT=gencat
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6935
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6936
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6937 INTL_LIBTOOL_SUFFIX_PREFIX=
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6938
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6939
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6940
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6941 INTLLIBS="$LIBINTL"
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6942
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6943
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6944
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6945
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6946
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6947
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
6948
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6949 trap '' 1 2 15
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6950 cat > confcache <<\EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6951 # This file is a shell script that caches the results of configure
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6952 # tests run on this system so they can be shared between configure
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6953 # scripts and configure runs. It is not useful on other systems.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6954 # If it contains results you don't want to keep, you may remove or edit it.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6955 #
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6956 # By default, configure uses ./config.cache as the cache file,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6957 # creating it if it does not exist already. You can give configure
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6958 # the --cache-file=FILE option to use a different cache file; that is
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6959 # what configure does when it calls configure scripts in
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6960 # subdirectories, so they share the cache.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6961 # Giving --cache-file=/dev/null disables caching, for debugging configure.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6962 # config.status only pays attention to the cache file if you give it the
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6963 # --recheck option to rerun configure.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6964 #
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6965 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6966 # The following way of writing the cache mishandles newlines in values,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6967 # but we know of no workaround that is simple, portable, and efficient.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6968 # So, don't put newlines in cache variables' values.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6969 # Ultrix sh set writes to stderr and can't be redirected directly,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6970 # and sets the high bit in the cache file unless we assign to the vars.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6971 (set) 2>&1 |
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6972 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6973 *ac_space=\ *)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6974 # `set' does not quote correctly, so add quotes (double-quote substitution
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6975 # turns \\\\ into \\, and sed turns \\ into \).
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6976 sed -n \
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6977 -e "s/'/'\\\\''/g" \
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6978 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6979 ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6980 *)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6981 # `set' quotes correctly as required by POSIX, so do not add quotes.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6982 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6983 ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6984 esac >> confcache
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6985 if cmp -s $cache_file confcache; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6986 :
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6987 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6988 if test -w $cache_file; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6989 echo "updating cache $cache_file"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6990 cat confcache > $cache_file
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6991 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6992 echo "not updating unwritable cache $cache_file"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6993 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6994 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6995 rm -f confcache
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6996
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6997 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6998
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6999 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7000 # Let make expand exec_prefix.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7001 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7002
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7003 # Any assignment to VPATH causes Sun make to only execute
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7004 # the first set of double-colon rules, so remove it if not needed.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7005 # If there is a colon in the path, we need to keep it.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7006 if test "x$srcdir" = x.; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7007 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7008 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7009
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7010 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7011
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7012 DEFS=-DHAVE_CONFIG_H
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7013
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7014 # Without the "./", some shells look in PATH for config.status.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7015 : ${CONFIG_STATUS=./config.status}
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7016
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7017 echo creating $CONFIG_STATUS
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7018 rm -f $CONFIG_STATUS
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7019 cat > $CONFIG_STATUS <<EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7020 #! /bin/sh
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7021 # Generated automatically by configure.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7022 # Run this file to recreate the current configuration.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7023 # This directory was configured as follows,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7024 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7025 #
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7026 # $0 $ac_configure_args
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7027 #
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7028 # Compiler output produced by configure, useful for debugging
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7029 # configure, is in ./config.log if it exists.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7030
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7031 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7032 for ac_option
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7033 do
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7034 case "\$ac_option" in
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7035 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7036 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7037 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7038 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7039 echo "$CONFIG_STATUS generated by autoconf version 2.13"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7040 exit 0 ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7041 -help | --help | --hel | --he | --h)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7042 echo "\$ac_cs_usage"; exit 0 ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7043 *) echo "\$ac_cs_usage"; exit 1 ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7044 esac
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7045 done
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7046
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7047 ac_given_srcdir=$srcdir
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7048 ac_given_INSTALL="$INSTALL"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7049
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7050 trap 'rm -fr `echo "Makefile intl/Makefile po/Makefile.in docs/Makefile docs/sample.gftp/Makefile src/gftp src/Makefile src/gtk/Makefile src/text/Makefile lib/Makefile gftp.spec config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7051 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7052 cat >> $CONFIG_STATUS <<EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7053
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7054 # Protect against being on the right side of a sed subst in config.status.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7055 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7056 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7057 $ac_vpsub
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7058 $extrasub
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7059 s%@SHELL@%$SHELL%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7060 s%@CFLAGS@%$CFLAGS%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7061 s%@CPPFLAGS@%$CPPFLAGS%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7062 s%@CXXFLAGS@%$CXXFLAGS%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7063 s%@FFLAGS@%$FFLAGS%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7064 s%@DEFS@%$DEFS%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7065 s%@LDFLAGS@%$LDFLAGS%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7066 s%@LIBS@%$LIBS%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7067 s%@exec_prefix@%$exec_prefix%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7068 s%@prefix@%$prefix%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7069 s%@program_transform_name@%$program_transform_name%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7070 s%@bindir@%$bindir%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7071 s%@sbindir@%$sbindir%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7072 s%@libexecdir@%$libexecdir%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7073 s%@datadir@%$datadir%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7074 s%@sysconfdir@%$sysconfdir%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7075 s%@sharedstatedir@%$sharedstatedir%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7076 s%@localstatedir@%$localstatedir%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7077 s%@libdir@%$libdir%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7078 s%@includedir@%$includedir%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7079 s%@oldincludedir@%$oldincludedir%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7080 s%@infodir@%$infodir%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7081 s%@mandir@%$mandir%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7082 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7083 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7084 s%@INSTALL_DATA@%$INSTALL_DATA%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7085 s%@PACKAGE@%$PACKAGE%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7086 s%@VERSION@%$VERSION%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7087 s%@ACLOCAL@%$ACLOCAL%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7088 s%@AUTOCONF@%$AUTOCONF%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7089 s%@AUTOMAKE@%$AUTOMAKE%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7090 s%@AUTOHEADER@%$AUTOHEADER%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7091 s%@MAKEINFO@%$MAKEINFO%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7092 s%@SET_MAKE@%$SET_MAKE%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7093 s%@PREFIX@%$PREFIX%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7094 s%@host@%$host%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7095 s%@host_alias@%$host_alias%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7096 s%@host_cpu@%$host_cpu%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7097 s%@host_vendor@%$host_vendor%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7098 s%@host_os@%$host_os%g
16
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
7099 s%@CC@%$CC%g
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
7100 s%@CPP@%$CPP%g
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
7101 s%@EXEEXT@%$EXEEXT%g
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
7102 s%@RANLIB@%$RANLIB%g
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
7103 s%@build@%$build%g
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
7104 s%@build_alias@%$build_alias%g
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
7105 s%@build_cpu@%$build_cpu%g
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
7106 s%@build_vendor@%$build_vendor%g
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
7107 s%@build_os@%$build_os%g
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
7108 s%@GETCONF@%$GETCONF%g
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
7109 s%@U@%$U%g
ddb983d8574b * Improved directory sorting algorithm
masneyb
parents: 8
diff changeset
7110 s%@ANSI2KNR@%$ANSI2KNR%g
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7111 s%@AWK@%$AWK%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7112 s%@LN_S@%$LN_S%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7113 s%@ALLOCA@%$ALLOCA%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7114 s%@PKG_CONFIG@%$PKG_CONFIG%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7115 s%@GLIB_CFLAGS@%$GLIB_CFLAGS%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7116 s%@GLIB_LIBS@%$GLIB_LIBS%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7117 s%@GLIB_CONFIG@%$GLIB_CONFIG%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7118 s%@EXTRA_LIBS@%$EXTRA_LIBS%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7119 s%@READLINE_LIBS@%$READLINE_LIBS%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7120 s%@GFTP_TEXT@%$GFTP_TEXT%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7121 s%@GTK_CFLAGS@%$GTK_CFLAGS%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7122 s%@GTK_LIBS@%$GTK_LIBS%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7123 s%@GTK_CONFIG@%$GTK_CONFIG%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7124 s%@PTHREAD_CFLAGS@%$PTHREAD_CFLAGS%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7125 s%@PTHREAD_LIBS@%$PTHREAD_LIBS%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7126 s%@GFTP_GTK@%$GFTP_GTK%g
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
7127 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7128 s%@MSGFMT@%$MSGFMT%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7129 s%@GMSGFMT@%$GMSGFMT%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7130 s%@XGETTEXT@%$XGETTEXT%g
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
7131 s%@MSGMERGE@%$MSGMERGE%g
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
7132 s%@GLIBC21@%$GLIBC21%g
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
7133 s%@LIBICONV@%$LIBICONV%g
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
7134 s%@LTLIBICONV@%$LTLIBICONV%g
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7135 s%@INTLBISON@%$INTLBISON%g
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
7136 s%@USE_NLS@%$USE_NLS%g
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7137 s%@BUILD_INCLUDED_LIBINTL@%$BUILD_INCLUDED_LIBINTL%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7138 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7139 s%@CATOBJEXT@%$CATOBJEXT%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7140 s%@INTLOBJS@%$INTLOBJS%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7141 s%@DATADIRNAME@%$DATADIRNAME%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7142 s%@INSTOBJEXT@%$INSTOBJEXT%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7143 s%@GENCAT@%$GENCAT%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7144 s%@INTL_LIBTOOL_SUFFIX_PREFIX@%$INTL_LIBTOOL_SUFFIX_PREFIX%g
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
7145 s%@INTLLIBS@%$INTLLIBS%g
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
7146 s%@LIBINTL@%$LIBINTL%g
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
7147 s%@LTLIBINTL@%$LTLIBINTL%g
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
7148 s%@POSUB@%$POSUB%g
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7149
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7150 CEOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7151 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7152
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7153 cat >> $CONFIG_STATUS <<\EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7154
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7155 # Split the substitutions into bite-sized pieces for seds with
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7156 # small command number limits, like on Digital OSF/1 and HP-UX.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7157 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7158 ac_file=1 # Number of current file.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7159 ac_beg=1 # First line for current file.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7160 ac_end=$ac_max_sed_cmds # Line after last line for current file.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7161 ac_more_lines=:
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7162 ac_sed_cmds=""
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7163 while $ac_more_lines; do
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7164 if test $ac_beg -gt 1; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7165 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7166 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7167 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7168 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7169 if test ! -s conftest.s$ac_file; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7170 ac_more_lines=false
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7171 rm -f conftest.s$ac_file
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7172 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7173 if test -z "$ac_sed_cmds"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7174 ac_sed_cmds="sed -f conftest.s$ac_file"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7175 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7176 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7177 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7178 ac_file=`expr $ac_file + 1`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7179 ac_beg=$ac_end
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7180 ac_end=`expr $ac_end + $ac_max_sed_cmds`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7181 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7182 done
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7183 if test -z "$ac_sed_cmds"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7184 ac_sed_cmds=cat
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7185 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7186 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7187
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7188 cat >> $CONFIG_STATUS <<EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7189
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7190 CONFIG_FILES=\${CONFIG_FILES-"Makefile intl/Makefile po/Makefile.in docs/Makefile docs/sample.gftp/Makefile src/gftp src/Makefile src/gtk/Makefile src/text/Makefile lib/Makefile gftp.spec"}
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7191 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7192 cat >> $CONFIG_STATUS <<\EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7193 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7194 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7195 case "$ac_file" in
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7196 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7197 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7198 *) ac_file_in="${ac_file}.in" ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7199 esac
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7200
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7201 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7202
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7203 # Remove last slash and all that follows it. Not all systems have dirname.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7204 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7205 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7206 # The file is in a subdirectory.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7207 test ! -d "$ac_dir" && mkdir "$ac_dir"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7208 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7209 # A "../" for each directory in $ac_dir_suffix.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7210 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7211 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7212 ac_dir_suffix= ac_dots=
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7213 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7214
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7215 case "$ac_given_srcdir" in
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7216 .) srcdir=.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7217 if test -z "$ac_dots"; then top_srcdir=.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7218 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7219 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7220 *) # Relative path.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7221 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7222 top_srcdir="$ac_dots$ac_given_srcdir" ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7223 esac
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7224
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7225 case "$ac_given_INSTALL" in
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7226 [/$]*) INSTALL="$ac_given_INSTALL" ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7227 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7228 esac
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7229
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7230 echo creating "$ac_file"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7231 rm -f "$ac_file"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7232 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7233 case "$ac_file" in
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7234 *Makefile*) ac_comsub="1i\\
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7235 # $configure_input" ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7236 *) ac_comsub= ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7237 esac
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7238
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7239 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7240 sed -e "$ac_comsub
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7241 s%@configure_input@%$configure_input%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7242 s%@srcdir@%$srcdir%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7243 s%@top_srcdir@%$top_srcdir%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7244 s%@INSTALL@%$INSTALL%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7245 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7246 fi; done
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7247 rm -f conftest.s*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7248
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7249 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7250 # NAME is the cpp macro being defined and VALUE is the value it is being given.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7251 #
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7252 # ac_d sets the value in "#define NAME VALUE" lines.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7253 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7254 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7255 ac_dC='\3'
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7256 ac_dD='%g'
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7257 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7258 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7259 ac_uB='\([ ]\)%\1#\2define\3'
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7260 ac_uC=' '
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7261 ac_uD='\4%g'
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7262 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7263 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7264 ac_eB='$%\1#\2define\3'
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7265 ac_eC=' '
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7266 ac_eD='%g'
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7267
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7268 if test "${CONFIG_HEADERS+set}" != set; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7269 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7270 cat >> $CONFIG_STATUS <<EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7271 CONFIG_HEADERS="config.h"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7272 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7273 cat >> $CONFIG_STATUS <<\EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7274 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7275 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7276 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7277 case "$ac_file" in
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7278 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7279 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7280 *) ac_file_in="${ac_file}.in" ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7281 esac
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7282
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7283 echo creating $ac_file
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7284
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7285 rm -f conftest.frag conftest.in conftest.out
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7286 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7287 cat $ac_file_inputs > conftest.in
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7288
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7289 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7290
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7291 # Transform confdefs.h into a sed script conftest.vals that substitutes
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7292 # the proper values into config.h.in to produce config.h. And first:
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7293 # Protect against being on the right side of a sed subst in config.status.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7294 # Protect against being in an unquoted here document in config.status.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7295 rm -f conftest.vals
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7296 cat > conftest.hdr <<\EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7297 s/[\\&%]/\\&/g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7298 s%[\\$`]%\\&%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7299 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7300 s%ac_d%ac_u%gp
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7301 s%ac_u%ac_e%gp
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7302 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7303 sed -n -f conftest.hdr confdefs.h > conftest.vals
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7304 rm -f conftest.hdr
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7305
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7306 # This sed command replaces #undef with comments. This is necessary, for
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7307 # example, in the case of _POSIX_SOURCE, which is predefined and required
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7308 # on some systems where configure will not decide to define it.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7309 cat >> conftest.vals <<\EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7310 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7311 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7312
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7313 # Break up conftest.vals because some shells have a limit on
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7314 # the size of here documents, and old seds have small limits too.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7315
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7316 rm -f conftest.tail
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7317 while :
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7318 do
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7319 ac_lines=`grep -c . conftest.vals`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7320 # grep -c gives empty output for an empty file on some AIX systems.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7321 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7322 # Write a limited-size here document to conftest.frag.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7323 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7324 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7325 echo 'CEOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7326 sed -f conftest.frag conftest.in > conftest.out
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7327 rm -f conftest.in
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7328 mv conftest.out conftest.in
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7329 ' >> $CONFIG_STATUS
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7330 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7331 rm -f conftest.vals
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7332 mv conftest.tail conftest.vals
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7333 done
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7334 rm -f conftest.vals
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7335
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7336 cat >> $CONFIG_STATUS <<\EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7337 rm -f conftest.frag conftest.h
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7338 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7339 cat conftest.in >> conftest.h
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7340 rm -f conftest.in
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7341 if cmp -s $ac_file conftest.h 2>/dev/null; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7342 echo "$ac_file is unchanged"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7343 rm -f conftest.h
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7344 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7345 # Remove last slash and all that follows it. Not all systems have dirname.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7346 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7347 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7348 # The file is in a subdirectory.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7349 test ! -d "$ac_dir" && mkdir "$ac_dir"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7350 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7351 rm -f $ac_file
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7352 mv conftest.h $ac_file
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7353 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7354 fi; done
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7355
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7356 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7357 cat >> $CONFIG_STATUS <<EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7358
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
7359 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
7360 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
7361 # from automake.
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
7362 eval 'ALL_LINGUAS''="$ALL_LINGUAS"'
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
7363 # Capture the value of LINGUAS because we need it to compute CATALOGS.
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
7364 LINGUAS="${LINGUAS-%UNSET%}"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
7365
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7366
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7367 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7368 cat >> $CONFIG_STATUS <<\EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7369 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
7370
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
7371 for ac_file in $CONFIG_FILES; do
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
7372 # Support "outfile[:infile[:infile...]]"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
7373 case "$ac_file" in
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
7374 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
7375 esac
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
7376 # PO directories have a Makefile.in generated from Makefile.in.in.
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
7377 case "$ac_file" in */Makefile.in)
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
7378 # Adjust a relative srcdir.
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
7379 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
7380 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
7381 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
7382 # In autoconf-2.13 it is called $ac_given_srcdir.
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
7383 # In autoconf-2.50 it is called $srcdir.
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
7384 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
7385 case "$ac_given_srcdir" in
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
7386 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
7387 /*) top_srcdir="$ac_given_srcdir" ;;
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
7388 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7389 esac
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
7390 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
7391 rm -f "$ac_dir/POTFILES"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
7392 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
7393 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
7394 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
7395 # on $ac_dir but don't depend on user-specified configuration
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
7396 # parameters.
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
7397 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
7398 # The LINGUAS file contains the set of available languages.
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
7399 if test -n "$ALL_LINGUAS"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
7400 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
7401 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
7402 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
7403 # Hide the ALL_LINGUAS assigment from automake.
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
7404 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
7405 fi
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7406 case "$ac_given_srcdir" in
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
7407 .) srcdirpre= ;;
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
7408 *) srcdirpre='$(srcdir)/' ;;
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7409 esac
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
7410 POFILES=
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
7411 GMOFILES=
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
7412 UPDATEPOFILES=
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
7413 DUMMYPOFILES=
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
7414 for lang in $ALL_LINGUAS; do
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
7415 POFILES="$POFILES $srcdirpre$lang.po"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
7416 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
7417 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
7418 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
7419 done
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
7420 # CATALOGS depends on both $ac_dir and the user's LINGUAS
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
7421 # environment variable.
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
7422 INST_LINGUAS=
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
7423 if test -n "$ALL_LINGUAS"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
7424 for presentlang in $ALL_LINGUAS; do
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
7425 useit=no
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
7426 if test "%UNSET%" != "$LINGUAS"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
7427 desiredlanguages="$LINGUAS"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
7428 else
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
7429 desiredlanguages="$ALL_LINGUAS"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
7430 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
7431 for desiredlang in $desiredlanguages; do
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
7432 # Use the presentlang catalog if desiredlang is
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
7433 # a. equal to presentlang, or
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
7434 # b. a variant of presentlang (because in this case,
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
7435 # presentlang can be used as a fallback for messages
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
7436 # which are not translated in the desiredlang catalog).
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
7437 case "$desiredlang" in
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
7438 "$presentlang"*) useit=yes;;
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
7439 esac
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
7440 done
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
7441 if test $useit = yes; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
7442 INST_LINGUAS="$INST_LINGUAS $presentlang"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
7443 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
7444 done
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7445 fi
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
7446 CATALOGS=
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
7447 if test -n "$INST_LINGUAS"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
7448 for lang in $INST_LINGUAS; do
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
7449 CATALOGS="$CATALOGS $lang.gmo"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
7450 done
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
7451 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
7452 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
7453 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"
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
7454 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
7455 if test -f "$f"; then
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
7456 case "$f" in
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
7457 *.orig | *.bak | *~) ;;
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
7458 *) cat "$f" >> "$ac_dir/Makefile" ;;
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
7459 esac
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
7460 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
7461 done
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
7462 fi
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
7463 ;;
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
7464 esac
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
7465 done
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7466
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7467 exit 0
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7468 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7469 chmod +x $CONFIG_STATUS
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7470 rm -fr confdefs* $ac_clean_files
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7471 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7472