annotate configure @ 3:6346fae01823

Fixed German translation (charset, header).
author cneumair
date Wed, 14 Aug 2002 13:39:08 +0000
parents 8b1883341c6f
children 5551ab2301fe
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
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
23 --with-glib-prefix=PFX Prefix where GLIB is installed (optional)"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
24 ac_help="$ac_help
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
25 --with-glib-exec-prefix=PFX Exec 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 --disable-glibtest Do not try to compile and run a test GLIB program"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
28 ac_help="$ac_help
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
29 --with-readline turn on readline [default=yes, default tries -lncurses, -lcurses, -ltermcap]"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
30 ac_help="$ac_help
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
31 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
32 ac_help="$ac_help
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
33 --with-gtk-exec-prefix=PFX Exec 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 --disable-gtktest Do not try to compile and run a test GTK program"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
36 ac_help="$ac_help
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
37 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
38 ac_help="$ac_help
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
39 --disable-nls do not use Native Language Support"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
40 ac_help="$ac_help
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
41 --with-included-gettext use the GNU gettext library included here"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
42
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
43 # Initialize some variables set by options.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
44 # The variables have the same names as the options, with
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
45 # dashes changed to underlines.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
46 build=NONE
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
47 cache_file=./config.cache
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
48 exec_prefix=NONE
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
49 host=NONE
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
50 no_create=
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
51 nonopt=NONE
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
52 no_recursion=
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
53 prefix=NONE
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
54 program_prefix=NONE
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
55 program_suffix=NONE
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
56 program_transform_name=s,x,x,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
57 silent=
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
58 site=
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
59 srcdir=
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
60 target=NONE
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
61 verbose=
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
62 x_includes=NONE
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
63 x_libraries=NONE
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
64 bindir='${exec_prefix}/bin'
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
65 sbindir='${exec_prefix}/sbin'
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
66 libexecdir='${exec_prefix}/libexec'
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
67 datadir='${prefix}/share'
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
68 sysconfdir='${prefix}/etc'
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
69 sharedstatedir='${prefix}/com'
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
70 localstatedir='${prefix}/var'
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
71 libdir='${exec_prefix}/lib'
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
72 includedir='${prefix}/include'
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
73 oldincludedir='/usr/include'
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
74 infodir='${prefix}/info'
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
75 mandir='${prefix}/man'
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
76
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
77 # Initialize some other variables.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
78 subdirs=
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
79 MFLAGS= MAKEFLAGS=
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
80 SHELL=${CONFIG_SHELL-/bin/sh}
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
81 # Maximum number of lines to put in a shell here document.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
82 ac_max_here_lines=12
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
83
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
84 ac_prev=
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
85 for ac_option
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
86 do
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
87
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
88 # If the previous option needs an argument, assign it.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
89 if test -n "$ac_prev"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
90 eval "$ac_prev=\$ac_option"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
91 ac_prev=
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
92 continue
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
93 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
94
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
95 case "$ac_option" in
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
96 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
97 *) ac_optarg= ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
98 esac
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
99
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
100 # Accept the important Cygnus configure options, so we can diagnose typos.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
101
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
102 case "$ac_option" in
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
103
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
104 -bindir | --bindir | --bindi | --bind | --bin | --bi)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
105 ac_prev=bindir ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
106 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
107 bindir="$ac_optarg" ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
108
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
109 -build | --build | --buil | --bui | --bu)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
110 ac_prev=build ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
111 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
112 build="$ac_optarg" ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
113
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
114 -cache-file | --cache-file | --cache-fil | --cache-fi \
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
115 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
116 ac_prev=cache_file ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
117 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
118 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
119 cache_file="$ac_optarg" ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
120
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
121 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
122 ac_prev=datadir ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
123 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
124 | --da=*)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
125 datadir="$ac_optarg" ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
126
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
127 -disable-* | --disable-*)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
128 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
129 # Reject names that are not valid shell variable names.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
130 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
131 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
132 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
133 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
134 eval "enable_${ac_feature}=no" ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
135
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
136 -enable-* | --enable-*)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
137 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
138 # Reject names that are not valid shell variable names.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
139 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
140 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
141 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
142 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
143 case "$ac_option" in
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
144 *=*) ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
145 *) ac_optarg=yes ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
146 esac
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
147 eval "enable_${ac_feature}='$ac_optarg'" ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
148
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
149 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
150 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
151 | --exec | --exe | --ex)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
152 ac_prev=exec_prefix ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
153 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
154 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
155 | --exec=* | --exe=* | --ex=*)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
156 exec_prefix="$ac_optarg" ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
157
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
158 -gas | --gas | --ga | --g)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
159 # Obsolete; use --with-gas.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
160 with_gas=yes ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
161
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
162 -help | --help | --hel | --he)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
163 # Omit some internal or obsolete options to make the list less imposing.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
164 # This message is too long to be a string in the A/UX 3.1 sh.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
165 cat << EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
166 Usage: configure [options] [host]
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
167 Options: [defaults in brackets after descriptions]
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
168 Configuration:
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
169 --cache-file=FILE cache test results in FILE
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
170 --help print this message
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
171 --no-create do not create output files
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
172 --quiet, --silent do not print \`checking...' messages
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
173 --version print the version of autoconf that created configure
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
174 Directory and file names:
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
175 --prefix=PREFIX install architecture-independent files in PREFIX
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
176 [$ac_default_prefix]
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
177 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
178 [same as prefix]
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
179 --bindir=DIR user executables in DIR [EPREFIX/bin]
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
180 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
181 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
182 --datadir=DIR read-only architecture-independent data in DIR
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
183 [PREFIX/share]
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
184 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
185 --sharedstatedir=DIR modifiable architecture-independent data in DIR
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
186 [PREFIX/com]
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
187 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
188 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
189 --includedir=DIR C header files in DIR [PREFIX/include]
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
190 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
191 --infodir=DIR info documentation in DIR [PREFIX/info]
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
192 --mandir=DIR man documentation in DIR [PREFIX/man]
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
193 --srcdir=DIR find the sources in DIR [configure dir or ..]
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
194 --program-prefix=PREFIX prepend PREFIX to installed program names
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
195 --program-suffix=SUFFIX append SUFFIX to installed program names
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
196 --program-transform-name=PROGRAM
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
197 run sed PROGRAM on installed program names
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
198 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
199 cat << EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
200 Host type:
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
201 --build=BUILD configure for building on BUILD [BUILD=HOST]
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
202 --host=HOST configure for HOST [guessed]
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
203 --target=TARGET configure for TARGET [TARGET=HOST]
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
204 Features and packages:
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
205 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
206 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
207 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
208 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
209 --x-includes=DIR X include files are in DIR
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
210 --x-libraries=DIR X library files are in DIR
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
211 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
212 if test -n "$ac_help"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
213 echo "--enable and --with options recognized:$ac_help"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
214 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
215 exit 0 ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
216
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
217 -host | --host | --hos | --ho)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
218 ac_prev=host ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
219 -host=* | --host=* | --hos=* | --ho=*)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
220 host="$ac_optarg" ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
221
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
222 -includedir | --includedir | --includedi | --included | --include \
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
223 | --includ | --inclu | --incl | --inc)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
224 ac_prev=includedir ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
225 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
226 | --includ=* | --inclu=* | --incl=* | --inc=*)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
227 includedir="$ac_optarg" ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
228
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
229 -infodir | --infodir | --infodi | --infod | --info | --inf)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
230 ac_prev=infodir ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
231 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
232 infodir="$ac_optarg" ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
233
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
234 -libdir | --libdir | --libdi | --libd)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
235 ac_prev=libdir ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
236 -libdir=* | --libdir=* | --libdi=* | --libd=*)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
237 libdir="$ac_optarg" ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
238
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
239 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
240 | --libexe | --libex | --libe)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
241 ac_prev=libexecdir ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
242 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
243 | --libexe=* | --libex=* | --libe=*)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
244 libexecdir="$ac_optarg" ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
245
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
246 -localstatedir | --localstatedir | --localstatedi | --localstated \
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
247 | --localstate | --localstat | --localsta | --localst \
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
248 | --locals | --local | --loca | --loc | --lo)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
249 ac_prev=localstatedir ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
250 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
251 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
252 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
253 localstatedir="$ac_optarg" ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
254
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
255 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
256 ac_prev=mandir ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
257 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
258 mandir="$ac_optarg" ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
259
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
260 -nfp | --nfp | --nf)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
261 # Obsolete; use --without-fp.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
262 with_fp=no ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
263
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
264 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
265 | --no-cr | --no-c)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
266 no_create=yes ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
267
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
268 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
269 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
270 no_recursion=yes ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
271
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
272 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
273 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
274 | --oldin | --oldi | --old | --ol | --o)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
275 ac_prev=oldincludedir ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
276 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
277 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
278 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
279 oldincludedir="$ac_optarg" ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
280
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
281 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
282 ac_prev=prefix ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
283 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
284 prefix="$ac_optarg" ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
285
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
286 -program-prefix | --program-prefix | --program-prefi | --program-pref \
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
287 | --program-pre | --program-pr | --program-p)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
288 ac_prev=program_prefix ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
289 -program-prefix=* | --program-prefix=* | --program-prefi=* \
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
290 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
291 program_prefix="$ac_optarg" ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
292
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
293 -program-suffix | --program-suffix | --program-suffi | --program-suff \
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
294 | --program-suf | --program-su | --program-s)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
295 ac_prev=program_suffix ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
296 -program-suffix=* | --program-suffix=* | --program-suffi=* \
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
297 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
298 program_suffix="$ac_optarg" ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
299
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
300 -program-transform-name | --program-transform-name \
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
301 | --program-transform-nam | --program-transform-na \
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
302 | --program-transform-n | --program-transform- \
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
303 | --program-transform | --program-transfor \
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
304 | --program-transfo | --program-transf \
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
305 | --program-trans | --program-tran \
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
306 | --progr-tra | --program-tr | --program-t)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
307 ac_prev=program_transform_name ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
308 -program-transform-name=* | --program-transform-name=* \
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
309 | --program-transform-nam=* | --program-transform-na=* \
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
310 | --program-transform-n=* | --program-transform-=* \
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
311 | --program-transform=* | --program-transfor=* \
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
312 | --program-transfo=* | --program-transf=* \
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
313 | --program-trans=* | --program-tran=* \
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
314 | --progr-tra=* | --program-tr=* | --program-t=*)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
315 program_transform_name="$ac_optarg" ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
316
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
317 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
318 | -silent | --silent | --silen | --sile | --sil)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
319 silent=yes ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
320
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
321 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
322 ac_prev=sbindir ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
323 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
324 | --sbi=* | --sb=*)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
325 sbindir="$ac_optarg" ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
326
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
327 -sharedstatedir | --sharedstatedir | --sharedstatedi \
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
328 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
329 | --sharedst | --shareds | --shared | --share | --shar \
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
330 | --sha | --sh)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
331 ac_prev=sharedstatedir ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
332 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
333 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
334 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
335 | --sha=* | --sh=*)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
336 sharedstatedir="$ac_optarg" ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
337
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
338 -site | --site | --sit)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
339 ac_prev=site ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
340 -site=* | --site=* | --sit=*)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
341 site="$ac_optarg" ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
342
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
343 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
344 ac_prev=srcdir ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
345 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
346 srcdir="$ac_optarg" ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
347
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
348 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
349 | --syscon | --sysco | --sysc | --sys | --sy)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
350 ac_prev=sysconfdir ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
351 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
352 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
353 sysconfdir="$ac_optarg" ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
354
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
355 -target | --target | --targe | --targ | --tar | --ta | --t)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
356 ac_prev=target ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
357 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
358 target="$ac_optarg" ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
359
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
360 -v | -verbose | --verbose | --verbos | --verbo | --verb)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
361 verbose=yes ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
362
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
363 -version | --version | --versio | --versi | --vers)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
364 echo "configure generated by autoconf version 2.13"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
365 exit 0 ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
366
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
367 -with-* | --with-*)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
368 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
369 # Reject names that are not valid shell variable names.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
370 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
371 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
372 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
373 ac_package=`echo $ac_package| sed 's/-/_/g'`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
374 case "$ac_option" in
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
375 *=*) ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
376 *) ac_optarg=yes ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
377 esac
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
378 eval "with_${ac_package}='$ac_optarg'" ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
379
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
380 -without-* | --without-*)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
381 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
382 # Reject names that are not valid shell variable names.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
383 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
384 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
385 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
386 ac_package=`echo $ac_package| sed 's/-/_/g'`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
387 eval "with_${ac_package}=no" ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
388
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
389 --x)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
390 # Obsolete; use --with-x.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
391 with_x=yes ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
392
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
393 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
394 | --x-incl | --x-inc | --x-in | --x-i)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
395 ac_prev=x_includes ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
396 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
397 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
398 x_includes="$ac_optarg" ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
399
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
400 -x-libraries | --x-libraries | --x-librarie | --x-librari \
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
401 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
402 ac_prev=x_libraries ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
403 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
404 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
405 x_libraries="$ac_optarg" ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
406
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
407 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
408 ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
409
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
410 *)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
411 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
412 echo "configure: warning: $ac_option: invalid host type" 1>&2
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
413 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
414 if test "x$nonopt" != xNONE; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
415 { 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
416 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
417 nonopt="$ac_option"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
418 ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
419
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
420 esac
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
421 done
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
422
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
423 if test -n "$ac_prev"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
424 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
425 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
426
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
427 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
428
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
429 # File descriptor usage:
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
430 # 0 standard input
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
431 # 1 file creation
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
432 # 2 errors and warnings
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
433 # 3 some systems may open it to /dev/tty
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
434 # 4 used on the Kubota Titan
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
435 # 6 checking for... messages and results
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
436 # 5 compiler messages saved in config.log
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
437 if test "$silent" = yes; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
438 exec 6>/dev/null
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
439 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
440 exec 6>&1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
441 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
442 exec 5>./config.log
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
443
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
444 echo "\
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
445 This file contains any messages produced by compilers while
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
446 running configure, to aid debugging if configure makes a mistake.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
447 " 1>&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
448
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
449 # Strip out --no-create and --no-recursion so they do not pile up.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
450 # Also quote any args containing shell metacharacters.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
451 ac_configure_args=
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
452 for ac_arg
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
453 do
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
454 case "$ac_arg" in
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
455 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
456 | --no-cr | --no-c) ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
457 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
458 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
459 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
460 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
461 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
462 esac
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
463 done
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
464
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
465 # NLS nuisances.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
466 # Only set these to C if already set. These must not be set unconditionally
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
467 # because not all systems understand e.g. LANG=C (notably SCO).
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
468 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
469 # Non-C LC_CTYPE values break the ctype check.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
470 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
471 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
472 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
473 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
474
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
475 # confdefs.h avoids OS command line length limits that DEFS can exceed.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
476 rm -rf conftest* confdefs.h
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
477 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
478 echo > confdefs.h
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
479
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
480 # A filename unique to this package, relative to the directory that
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
481 # configure is in, which we can look for to find out if srcdir is correct.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
482 ac_unique_file=lib/gftp.h
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
483
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
484 # Find the source files, if location was not specified.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
485 if test -z "$srcdir"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
486 ac_srcdir_defaulted=yes
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
487 # Try the directory containing this script, then its parent.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
488 ac_prog=$0
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
489 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
490 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
491 srcdir=$ac_confdir
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
492 if test ! -r $srcdir/$ac_unique_file; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
493 srcdir=..
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
494 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
495 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
496 ac_srcdir_defaulted=no
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
497 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
498 if test ! -r $srcdir/$ac_unique_file; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
499 if test "$ac_srcdir_defaulted" = yes; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
500 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
501 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
502 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
503 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
504 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
505 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
506
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
507 # Prefer explicitly selected file to automatically selected ones.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
508 if test -z "$CONFIG_SITE"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
509 if test "x$prefix" != xNONE; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
510 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
511 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
512 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
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 for ac_site_file in $CONFIG_SITE; do
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
516 if test -r "$ac_site_file"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
517 echo "loading site script $ac_site_file"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
518 . "$ac_site_file"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
519 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
520 done
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
521
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
522 if test -r "$cache_file"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
523 echo "loading cache $cache_file"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
524 . $cache_file
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
525 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
526 echo "creating cache $cache_file"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
527 > $cache_file
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
528 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
529
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
530 ac_ext=c
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
531 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
532 ac_cpp='$CPP $CPPFLAGS'
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
533 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
534 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
535 cross_compiling=$ac_cv_prog_cc_cross
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
536
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
537 ac_exeext=
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
538 ac_objext=o
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
539 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
540 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
541 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
542 ac_n= ac_c='
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
543 ' ac_t=' '
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
544 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
545 ac_n=-n ac_c= ac_t=
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
546 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
547 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
548 ac_n= ac_c='\c' ac_t=
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
549 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
550
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
551
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
552
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
553
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
554
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
555
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
556 ac_aux_dir=
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
557 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
558 if test -f $ac_dir/install-sh; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
559 ac_aux_dir=$ac_dir
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
560 ac_install_sh="$ac_aux_dir/install-sh -c"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
561 break
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
562 elif test -f $ac_dir/install.sh; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
563 ac_aux_dir=$ac_dir
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
564 ac_install_sh="$ac_aux_dir/install.sh -c"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
565 break
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
566 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
567 done
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
568 if test -z "$ac_aux_dir"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
569 { 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
570 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
571 ac_config_guess=$ac_aux_dir/config.guess
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
572 ac_config_sub=$ac_aux_dir/config.sub
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
573 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
574
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
575 # Find a good install program. We prefer a C program (faster),
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
576 # so one script is as good as another. But avoid the broken or
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
577 # incompatible versions:
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
578 # SysV /etc/install, /usr/sbin/install
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
579 # SunOS /usr/etc/install
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
580 # IRIX /sbin/install
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
581 # AIX /bin/install
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
582 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
583 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
584 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
585 # ./install, which can be erroneously created by make from ./install.sh.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
586 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
587 echo "configure:588: checking for a BSD compatible install" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
588 if test -z "$INSTALL"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
589 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
590 echo $ac_n "(cached) $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
591 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
592 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
593 for ac_dir in $PATH; do
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
594 # Account for people who put trailing slashes in PATH elements.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
595 case "$ac_dir/" in
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
596 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
597 *)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
598 # OSF1 and SCO ODT 3.0 have their own names for install.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
599 # Don't use installbsd from OSF since it installs stuff as root
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
600 # by default.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
601 for ac_prog in ginstall scoinst install; do
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
602 if test -f $ac_dir/$ac_prog; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
603 if test $ac_prog = install &&
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
604 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
605 # AIX install. It has an incompatible calling convention.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
606 :
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
607 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
608 ac_cv_path_install="$ac_dir/$ac_prog -c"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
609 break 2
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
610 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
611 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
612 done
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
613 ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
614 esac
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
615 done
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
616 IFS="$ac_save_IFS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
617
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
618 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
619 if test "${ac_cv_path_install+set}" = set; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
620 INSTALL="$ac_cv_path_install"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
621 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
622 # As a last resort, use the slow shell script. We don't cache a
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
623 # path for INSTALL within a source directory, because that will
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
624 # break other packages using the cache if that directory is
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
625 # removed, or if the path is relative.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
626 INSTALL="$ac_install_sh"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
627 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
628 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
629 echo "$ac_t""$INSTALL" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
630
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
631 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
632 # It thinks the first close brace ends the variable substitution.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
633 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
634
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
635 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
636
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
637 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
638
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
639 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
640 echo "configure:641: checking whether build environment is sane" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
641 # Just in case
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
642 sleep 1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
643 echo timestamp > conftestfile
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
644 # Do `set' in a subshell so we don't clobber the current shell's
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
645 # arguments. Must try -L first in case configure is actually a
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
646 # symlink; some systems play weird games with the mod time of symlinks
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
647 # (eg FreeBSD returns the mod time of the symlink's containing
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
648 # directory).
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
649 if (
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
650 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
651 if test "$*" = "X"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
652 # -L didn't work.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
653 set X `ls -t $srcdir/configure conftestfile`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
654 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
655 if test "$*" != "X $srcdir/configure conftestfile" \
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
656 && test "$*" != "X conftestfile $srcdir/configure"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
657
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
658 # If neither matched, then we have a broken ls. This can happen
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
659 # if, for instance, CONFIG_SHELL is bash and it inherits a
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
660 # broken ls alias from the environment. This has actually
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
661 # happened. Such a system could not be considered "sane".
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
662 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
663 alias in your environment" 1>&2; exit 1; }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
664 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
665
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
666 test "$2" = conftestfile
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
667 )
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
668 then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
669 # Ok.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
670 :
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
671 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
672 { echo "configure: error: newly created file is older than distributed files!
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
673 Check your system clock" 1>&2; exit 1; }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
674 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
675 rm -f conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
676 echo "$ac_t""yes" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
677 if test "$program_transform_name" = s,x,x,; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
678 program_transform_name=
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
679 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
680 # Double any \ or $. echo might interpret backslashes.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
681 cat <<\EOF_SED > conftestsed
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
682 s,\\,\\\\,g; s,\$,$$,g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
683 EOF_SED
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
684 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
685 rm -f conftestsed
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
686 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
687 test "$program_prefix" != NONE &&
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
688 program_transform_name="s,^,${program_prefix},; $program_transform_name"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
689 # Use a double $ so make ignores it.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
690 test "$program_suffix" != NONE &&
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
691 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
692
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
693 # sed with no file args requires a program.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
694 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
695
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
696 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
697 echo "configure:698: checking whether ${MAKE-make} sets \${MAKE}" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
698 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
699 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
700 echo $ac_n "(cached) $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
701 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
702 cat > conftestmake <<\EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
703 all:
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
704 @echo 'ac_maketemp="${MAKE}"'
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
705 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
706 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
707 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
708 if test -n "$ac_maketemp"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
709 eval ac_cv_prog_make_${ac_make}_set=yes
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
710 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
711 eval ac_cv_prog_make_${ac_make}_set=no
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
712 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
713 rm -f conftestmake
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
714 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
715 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
716 echo "$ac_t""yes" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
717 SET_MAKE=
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
718 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
719 echo "$ac_t""no" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
720 SET_MAKE="MAKE=${MAKE-make}"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
721 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
722
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
723
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
724 PACKAGE=gftp
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
725
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
726 VERSION=2.0.13
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
727
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
728 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
729 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
730 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
731 cat >> confdefs.h <<EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
732 #define PACKAGE "$PACKAGE"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
733 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
734
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
735 cat >> confdefs.h <<EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
736 #define VERSION "$VERSION"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
737 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
738
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
739
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
740
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
741 missing_dir=`cd $ac_aux_dir && pwd`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
742 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
743 echo "configure:744: checking for working aclocal" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
744 # Run test in a subshell; some versions of sh will print an error if
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
745 # an executable is not found, even if stderr is redirected.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
746 # Redirect stdin to placate older versions of autoconf. Sigh.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
747 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
748 ACLOCAL=aclocal
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
749 echo "$ac_t""found" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
750 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
751 ACLOCAL="$missing_dir/missing aclocal"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
752 echo "$ac_t""missing" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
753 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
754
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
755 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
756 echo "configure:757: checking for working autoconf" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
757 # Run test in a subshell; some versions of sh will print an error if
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
758 # an executable is not found, even if stderr is redirected.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
759 # Redirect stdin to placate older versions of autoconf. Sigh.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
760 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
761 AUTOCONF=autoconf
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
762 echo "$ac_t""found" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
763 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
764 AUTOCONF="$missing_dir/missing autoconf"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
765 echo "$ac_t""missing" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
766 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
767
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
768 echo $ac_n "checking for working automake""... $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
769 echo "configure:770: checking for working automake" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
770 # Run test in a subshell; some versions of sh will print an error if
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
771 # an executable is not found, even if stderr is redirected.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
772 # Redirect stdin to placate older versions of autoconf. Sigh.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
773 if (automake --version) < /dev/null > /dev/null 2>&1; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
774 AUTOMAKE=automake
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
775 echo "$ac_t""found" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
776 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
777 AUTOMAKE="$missing_dir/missing automake"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
778 echo "$ac_t""missing" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
779 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
780
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
781 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
782 echo "configure:783: checking for working autoheader" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
783 # Run test in a subshell; some versions of sh will print an error if
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
784 # an executable is not found, even if stderr is redirected.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
785 # Redirect stdin to placate older versions of autoconf. Sigh.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
786 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
787 AUTOHEADER=autoheader
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
788 echo "$ac_t""found" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
789 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
790 AUTOHEADER="$missing_dir/missing autoheader"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
791 echo "$ac_t""missing" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
792 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
793
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
794 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
795 echo "configure:796: checking for working makeinfo" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
796 # Run test in a subshell; some versions of sh will print an error if
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
797 # an executable is not found, even if stderr is redirected.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
798 # Redirect stdin to placate older versions of autoconf. Sigh.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
799 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
800 MAKEINFO=makeinfo
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
801 echo "$ac_t""found" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
802 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
803 MAKEINFO="$missing_dir/missing makeinfo"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
804 echo "$ac_t""missing" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
805 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
806
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
807
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
808
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
809 # Check whether --enable-gtk20 or --disable-gtk20 was given.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
810 if test "${enable_gtk20+set}" = set; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
811 enableval="$enable_gtk20"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
812 enable_gtk20=1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
813 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
814 enable_gtk20=0
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
815 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
816
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
817 # Check whether --enable-gtkport or --disable-gtkport was given.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
818 if test "${enable_gtkport+set}" = set; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
819 enableval="$enable_gtkport"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
820 enable_gtkport=0
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
821 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
822 enable_gtkport=1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
823 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
824
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
825 # Check whether --enable-textport or --disable-textport was given.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
826 if test "${enable_textport+set}" = set; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
827 enableval="$enable_textport"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
828 enable_textport=0
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
829 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
830 enable_textport=1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
831 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
832
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
833 # Check whether --enable-dmalloc or --disable-dmalloc was given.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
834 if test "${enable_dmalloc+set}" = set; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
835 enableval="$enable_dmalloc"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
836 enable_dmalloc=1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
837 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
838 enable_dmalloc=0
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
839 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
840
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
841
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
842
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
843
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
844
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
845
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
846 ALL_LINGUAS="bg cs da de es fi fr it ja ko nl no pl pt_BR ru sv tr zh_CN.GB2312 zh_TW.Big5"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
847
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
848
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
849 # Make sure we can run config.sub.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
850 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
851 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
852 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
853
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
854 echo $ac_n "checking host system type""... $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
855 echo "configure:856: checking host system type" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
856
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
857 host_alias=$host
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
858 case "$host_alias" in
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
859 NONE)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
860 case $nonopt in
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
861 NONE)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
862 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
863 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
864 fi ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
865 *) host_alias=$nonopt ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
866 esac ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
867 esac
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
868
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
869 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
870 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
871 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
872 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
873 echo "$ac_t""$host" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
874
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
875
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
876 for ac_prog in mawk gawk nawk awk
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
877 do
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
878 # Extract the first word of "$ac_prog", so it can be a program name with args.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
879 set dummy $ac_prog; ac_word=$2
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
880 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
881 echo "configure:882: checking for $ac_word" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
882 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
883 echo $ac_n "(cached) $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
884 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
885 if test -n "$AWK"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
886 ac_cv_prog_AWK="$AWK" # Let the user override the test.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
887 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
888 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
889 ac_dummy="$PATH"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
890 for ac_dir in $ac_dummy; do
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
891 test -z "$ac_dir" && ac_dir=.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
892 if test -f $ac_dir/$ac_word; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
893 ac_cv_prog_AWK="$ac_prog"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
894 break
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
895 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
896 done
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
897 IFS="$ac_save_ifs"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
898 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
899 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
900 AWK="$ac_cv_prog_AWK"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
901 if test -n "$AWK"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
902 echo "$ac_t""$AWK" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
903 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
904 echo "$ac_t""no" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
905 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
906
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
907 test -n "$AWK" && break
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
908 done
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
909
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
910 # Extract the first word of "gcc", so it can be a program name with args.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
911 set dummy gcc; ac_word=$2
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
912 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
913 echo "configure:914: checking for $ac_word" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
914 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
915 echo $ac_n "(cached) $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
916 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
917 if test -n "$CC"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
918 ac_cv_prog_CC="$CC" # Let the user override the test.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
919 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
920 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
921 ac_dummy="$PATH"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
922 for ac_dir in $ac_dummy; do
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
923 test -z "$ac_dir" && ac_dir=.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
924 if test -f $ac_dir/$ac_word; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
925 ac_cv_prog_CC="gcc"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
926 break
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
927 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
928 done
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
929 IFS="$ac_save_ifs"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
930 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
931 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
932 CC="$ac_cv_prog_CC"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
933 if test -n "$CC"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
934 echo "$ac_t""$CC" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
935 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
936 echo "$ac_t""no" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
937 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
938
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
939 if test -z "$CC"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
940 # Extract the first word of "cc", so it can be a program name with args.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
941 set dummy cc; ac_word=$2
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
942 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
943 echo "configure:944: checking for $ac_word" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
944 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
945 echo $ac_n "(cached) $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
946 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
947 if test -n "$CC"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
948 ac_cv_prog_CC="$CC" # Let the user override the test.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
949 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
950 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
951 ac_prog_rejected=no
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
952 ac_dummy="$PATH"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
953 for ac_dir in $ac_dummy; do
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
954 test -z "$ac_dir" && ac_dir=.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
955 if test -f $ac_dir/$ac_word; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
956 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
957 ac_prog_rejected=yes
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
958 continue
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
959 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
960 ac_cv_prog_CC="cc"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
961 break
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
962 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
963 done
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
964 IFS="$ac_save_ifs"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
965 if test $ac_prog_rejected = yes; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
966 # We found a bogon in the path, so make sure we never use it.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
967 set dummy $ac_cv_prog_CC
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
968 shift
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
969 if test $# -gt 0; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
970 # We chose a different compiler from the bogus one.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
971 # However, it has the same basename, so the bogon will be chosen
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
972 # first if we set CC to just the basename; use the full file name.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
973 shift
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
974 set dummy "$ac_dir/$ac_word" "$@"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
975 shift
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
976 ac_cv_prog_CC="$@"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
977 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
978 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
979 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
980 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
981 CC="$ac_cv_prog_CC"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
982 if test -n "$CC"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
983 echo "$ac_t""$CC" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
984 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
985 echo "$ac_t""no" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
986 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
987
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
988 if test -z "$CC"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
989 case "`uname -s`" in
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
990 *win32* | *WIN32*)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
991 # Extract the first word of "cl", so it can be a program name with args.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
992 set dummy cl; ac_word=$2
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
993 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
994 echo "configure:995: checking for $ac_word" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
995 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
996 echo $ac_n "(cached) $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
997 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
998 if test -n "$CC"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
999 ac_cv_prog_CC="$CC" # Let the user override the test.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1000 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1001 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1002 ac_dummy="$PATH"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1003 for ac_dir in $ac_dummy; do
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1004 test -z "$ac_dir" && ac_dir=.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1005 if test -f $ac_dir/$ac_word; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1006 ac_cv_prog_CC="cl"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1007 break
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1008 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1009 done
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1010 IFS="$ac_save_ifs"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1011 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1012 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1013 CC="$ac_cv_prog_CC"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1014 if test -n "$CC"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1015 echo "$ac_t""$CC" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1016 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1017 echo "$ac_t""no" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1018 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1019 ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1020 esac
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1021 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1022 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1023 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1024
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1025 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1026 echo "configure:1027: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1027
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1028 ac_ext=c
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1029 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1030 ac_cpp='$CPP $CPPFLAGS'
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1031 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1032 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1033 cross_compiling=$ac_cv_prog_cc_cross
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1034
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1035 cat > conftest.$ac_ext << EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1036
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1037 #line 1038 "configure"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1038 #include "confdefs.h"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1039
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1040 main(){return(0);}
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1041 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1042 if { (eval echo configure:1043: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1043 ac_cv_prog_cc_works=yes
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1044 # If we can't run a trivial program, we are probably using a cross compiler.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1045 if (./conftest; exit) 2>/dev/null; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1046 ac_cv_prog_cc_cross=no
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1047 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1048 ac_cv_prog_cc_cross=yes
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1049 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1050 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1051 echo "configure: failed program was:" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1052 cat conftest.$ac_ext >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1053 ac_cv_prog_cc_works=no
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1054 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1055 rm -fr conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1056 ac_ext=c
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1057 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1058 ac_cpp='$CPP $CPPFLAGS'
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1059 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1060 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1061 cross_compiling=$ac_cv_prog_cc_cross
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1062
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1063 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1064 if test $ac_cv_prog_cc_works = no; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1065 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1066 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1067 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1068 echo "configure:1069: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1069 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1070 cross_compiling=$ac_cv_prog_cc_cross
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1071
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1072 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1073 echo "configure:1074: checking whether we are using GNU C" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1074 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1075 echo $ac_n "(cached) $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1076 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1077 cat > conftest.c <<EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1078 #ifdef __GNUC__
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1079 yes;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1080 #endif
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1081 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1082 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1083: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1083 ac_cv_prog_gcc=yes
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1084 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1085 ac_cv_prog_gcc=no
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1086 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1087 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1088
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1089 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1090
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1091 if test $ac_cv_prog_gcc = yes; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1092 GCC=yes
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1093 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1094 GCC=
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 ac_test_CFLAGS="${CFLAGS+set}"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1098 ac_save_CFLAGS="$CFLAGS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1099 CFLAGS=
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1100 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1101 echo "configure:1102: checking whether ${CC-cc} accepts -g" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1102 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1103 echo $ac_n "(cached) $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1104 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1105 echo 'void f(){}' > conftest.c
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1106 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1107 ac_cv_prog_cc_g=yes
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1108 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1109 ac_cv_prog_cc_g=no
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1110 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1111 rm -f conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1112
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1113 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1114
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1115 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1116 if test "$ac_test_CFLAGS" = set; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1117 CFLAGS="$ac_save_CFLAGS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1118 elif test $ac_cv_prog_cc_g = yes; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1119 if test "$GCC" = yes; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1120 CFLAGS="-g -O2"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1121 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1122 CFLAGS="-g"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1123 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1124 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1125 if test "$GCC" = yes; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1126 CFLAGS="-O2"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1127 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1128 CFLAGS=
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1129 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1130 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1131
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1132 # Find a good install program. We prefer a C program (faster),
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1133 # so one script is as good as another. But avoid the broken or
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1134 # incompatible versions:
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1135 # SysV /etc/install, /usr/sbin/install
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1136 # SunOS /usr/etc/install
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1137 # IRIX /sbin/install
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1138 # AIX /bin/install
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1139 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1140 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1141 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1142 # ./install, which can be erroneously created by make from ./install.sh.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1143 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1144 echo "configure:1145: checking for a BSD compatible install" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1145 if test -z "$INSTALL"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1146 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1147 echo $ac_n "(cached) $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1148 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1149 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1150 for ac_dir in $PATH; do
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1151 # Account for people who put trailing slashes in PATH elements.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1152 case "$ac_dir/" in
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1153 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1154 *)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1155 # OSF1 and SCO ODT 3.0 have their own names for install.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1156 # Don't use installbsd from OSF since it installs stuff as root
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1157 # by default.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1158 for ac_prog in ginstall scoinst install; do
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1159 if test -f $ac_dir/$ac_prog; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1160 if test $ac_prog = install &&
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1161 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1162 # AIX install. It has an incompatible calling convention.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1163 :
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1164 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1165 ac_cv_path_install="$ac_dir/$ac_prog -c"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1166 break 2
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1167 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1168 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1169 done
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1170 ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1171 esac
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1172 done
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1173 IFS="$ac_save_IFS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1174
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1175 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1176 if test "${ac_cv_path_install+set}" = set; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1177 INSTALL="$ac_cv_path_install"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1178 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1179 # As a last resort, use the slow shell script. We don't cache a
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1180 # path for INSTALL within a source directory, because that will
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1181 # break other packages using the cache if that directory is
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1182 # removed, or if the path is relative.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1183 INSTALL="$ac_install_sh"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1184 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1185 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1186 echo "$ac_t""$INSTALL" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1187
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1188 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1189 # It thinks the first close brace ends the variable substitution.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1190 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1191
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1192 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1193
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1194 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1195
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1196 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1197 echo "configure:1198: checking whether ln -s works" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1198 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1199 echo $ac_n "(cached) $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1200 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1201 rm -f conftestdata
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1202 if ln -s X conftestdata 2>/dev/null
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1203 then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1204 rm -f conftestdata
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1205 ac_cv_prog_LN_S="ln -s"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1206 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1207 ac_cv_prog_LN_S=ln
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1208 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1209 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1210 LN_S="$ac_cv_prog_LN_S"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1211 if test "$ac_cv_prog_LN_S" = "ln -s"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1212 echo "$ac_t""yes" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1213 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1214 echo "$ac_t""no" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1215 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1216
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1217 # Extract the first word of "ranlib", so it can be a program name with args.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1218 set dummy ranlib; ac_word=$2
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1219 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1220 echo "configure:1221: checking for $ac_word" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1221 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1222 echo $ac_n "(cached) $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1223 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1224 if test -n "$RANLIB"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1225 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1226 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1227 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1228 ac_dummy="$PATH"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1229 for ac_dir in $ac_dummy; do
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1230 test -z "$ac_dir" && ac_dir=.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1231 if test -f $ac_dir/$ac_word; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1232 ac_cv_prog_RANLIB="ranlib"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1233 break
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1234 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1235 done
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1236 IFS="$ac_save_ifs"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1237 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1238 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1239 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1240 RANLIB="$ac_cv_prog_RANLIB"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1241 if test -n "$RANLIB"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1242 echo "$ac_t""$RANLIB" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1243 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1244 echo "$ac_t""no" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1245 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1246
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1247 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1248 echo "configure:1249: checking whether ${MAKE-make} sets \${MAKE}" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1249 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1250 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1251 echo $ac_n "(cached) $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1252 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1253 cat > conftestmake <<\EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1254 all:
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1255 @echo 'ac_maketemp="${MAKE}"'
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1256 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1257 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1258 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1259 if test -n "$ac_maketemp"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1260 eval ac_cv_prog_make_${ac_make}_set=yes
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1261 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1262 eval ac_cv_prog_make_${ac_make}_set=no
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1263 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1264 rm -f conftestmake
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1265 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1266 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1267 echo "$ac_t""yes" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1268 SET_MAKE=
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1269 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1270 echo "$ac_t""no" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1271 SET_MAKE="MAKE=${MAKE-make}"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1272 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1273
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1274
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1275 echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1276 echo "configure:1277: checking for strerror in -lcposix" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1277 ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1278 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1279 echo $ac_n "(cached) $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1280 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1281 ac_save_LIBS="$LIBS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1282 LIBS="-lcposix $LIBS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1283 cat > conftest.$ac_ext <<EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1284 #line 1285 "configure"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1285 #include "confdefs.h"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1286 /* Override any gcc2 internal prototype to avoid an error. */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1287 /* We use char because int might match the return type of a gcc2
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1288 builtin and then its argument prototype would still apply. */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1289 char strerror();
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1290
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1291 int main() {
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1292 strerror()
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1293 ; return 0; }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1294 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1295 if { (eval echo configure:1296: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1296 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1297 eval "ac_cv_lib_$ac_lib_var=yes"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1298 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1299 echo "configure: failed program was:" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1300 cat conftest.$ac_ext >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1301 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1302 eval "ac_cv_lib_$ac_lib_var=no"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1303 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1304 rm -f conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1305 LIBS="$ac_save_LIBS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1306
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1307 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1308 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1309 echo "$ac_t""yes" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1310 LIBS="$LIBS -lcposix"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1311 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1312 echo "$ac_t""no" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1313 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1314
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1315
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1316
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1317
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1318 ac_header_dirent=no
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1319 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1320 do
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1321 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1322 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1323 echo "configure:1324: checking for $ac_hdr that defines DIR" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1324 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1325 echo $ac_n "(cached) $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1326 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1327 cat > conftest.$ac_ext <<EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1328 #line 1329 "configure"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1329 #include "confdefs.h"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1330 #include <sys/types.h>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1331 #include <$ac_hdr>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1332 int main() {
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1333 DIR *dirp = 0;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1334 ; return 0; }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1335 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1336 if { (eval echo configure:1337: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1337 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1338 eval "ac_cv_header_dirent_$ac_safe=yes"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1339 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1340 echo "configure: failed program was:" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1341 cat conftest.$ac_ext >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1342 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1343 eval "ac_cv_header_dirent_$ac_safe=no"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1344 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1345 rm -f conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1346 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1347 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1348 echo "$ac_t""yes" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1349 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1350 cat >> confdefs.h <<EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1351 #define $ac_tr_hdr 1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1352 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1353 ac_header_dirent=$ac_hdr; break
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1354 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1355 echo "$ac_t""no" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1356 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1357 done
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1358 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1359 if test $ac_header_dirent = dirent.h; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1360 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1361 echo "configure:1362: checking for opendir in -ldir" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1362 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1363 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1364 echo $ac_n "(cached) $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1365 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1366 ac_save_LIBS="$LIBS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1367 LIBS="-ldir $LIBS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1368 cat > conftest.$ac_ext <<EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1369 #line 1370 "configure"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1370 #include "confdefs.h"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1371 /* Override any gcc2 internal prototype to avoid an error. */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1372 /* We use char because int might match the return type of a gcc2
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1373 builtin and then its argument prototype would still apply. */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1374 char opendir();
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1375
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1376 int main() {
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1377 opendir()
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1378 ; return 0; }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1379 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1380 if { (eval echo configure:1381: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1381 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1382 eval "ac_cv_lib_$ac_lib_var=yes"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1383 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1384 echo "configure: failed program was:" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1385 cat conftest.$ac_ext >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1386 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1387 eval "ac_cv_lib_$ac_lib_var=no"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1388 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1389 rm -f conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1390 LIBS="$ac_save_LIBS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1391
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1392 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1393 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1394 echo "$ac_t""yes" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1395 LIBS="$LIBS -ldir"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1396 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1397 echo "$ac_t""no" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1398 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1399
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1400 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1401 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1402 echo "configure:1403: checking for opendir in -lx" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1403 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1404 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1405 echo $ac_n "(cached) $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1406 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1407 ac_save_LIBS="$LIBS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1408 LIBS="-lx $LIBS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1409 cat > conftest.$ac_ext <<EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1410 #line 1411 "configure"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1411 #include "confdefs.h"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1412 /* Override any gcc2 internal prototype to avoid an error. */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1413 /* We use char because int might match the return type of a gcc2
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1414 builtin and then its argument prototype would still apply. */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1415 char opendir();
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1416
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1417 int main() {
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1418 opendir()
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1419 ; return 0; }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1420 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1421 if { (eval echo configure:1422: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1422 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1423 eval "ac_cv_lib_$ac_lib_var=yes"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1424 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1425 echo "configure: failed program was:" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1426 cat conftest.$ac_ext >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1427 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1428 eval "ac_cv_lib_$ac_lib_var=no"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1429 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1430 rm -f conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1431 LIBS="$ac_save_LIBS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1432
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1433 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1434 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1435 echo "$ac_t""yes" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1436 LIBS="$LIBS -lx"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1437 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1438 echo "$ac_t""no" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1439 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1440
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1441 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1442
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1443 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1444 echo "configure:1445: checking how to run the C preprocessor" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1445 # On Suns, sometimes $CPP names a directory.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1446 if test -n "$CPP" && test -d "$CPP"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1447 CPP=
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1448 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1449 if test -z "$CPP"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1450 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1451 echo $ac_n "(cached) $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1452 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1453 # This must be in double quotes, not single quotes, because CPP may get
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1454 # substituted into the Makefile and "${CC-cc}" will confuse make.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1455 CPP="${CC-cc} -E"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1456 # On the NeXT, cc -E runs the code through the compiler's parser,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1457 # not just through cpp.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1458 cat > conftest.$ac_ext <<EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1459 #line 1460 "configure"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1460 #include "confdefs.h"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1461 #include <assert.h>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1462 Syntax Error
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1463 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1464 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1465 { (eval echo configure:1466: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1466 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1467 if test -z "$ac_err"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1468 :
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1469 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1470 echo "$ac_err" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1471 echo "configure: failed program was:" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1472 cat conftest.$ac_ext >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1473 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1474 CPP="${CC-cc} -E -traditional-cpp"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1475 cat > conftest.$ac_ext <<EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1476 #line 1477 "configure"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1477 #include "confdefs.h"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1478 #include <assert.h>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1479 Syntax Error
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1480 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1481 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1482 { (eval echo configure:1483: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1483 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1484 if test -z "$ac_err"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1485 :
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1486 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1487 echo "$ac_err" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1488 echo "configure: failed program was:" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1489 cat conftest.$ac_ext >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1490 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1491 CPP="${CC-cc} -nologo -E"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1492 cat > conftest.$ac_ext <<EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1493 #line 1494 "configure"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1494 #include "confdefs.h"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1495 #include <assert.h>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1496 Syntax Error
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1497 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1498 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1499 { (eval echo configure:1500: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1500 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1501 if test -z "$ac_err"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1502 :
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1503 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1504 echo "$ac_err" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1505 echo "configure: failed program was:" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1506 cat conftest.$ac_ext >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1507 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1508 CPP=/lib/cpp
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1509 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1510 rm -f conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1511 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1512 rm -f conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1513 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1514 rm -f conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1515 ac_cv_prog_CPP="$CPP"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1516 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1517 CPP="$ac_cv_prog_CPP"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1518 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1519 ac_cv_prog_CPP="$CPP"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1520 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1521 echo "$ac_t""$CPP" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1522
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1523 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1524 echo "configure:1525: checking for ANSI C header files" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1525 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1526 echo $ac_n "(cached) $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1527 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1528 cat > conftest.$ac_ext <<EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1529 #line 1530 "configure"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1530 #include "confdefs.h"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1531 #include <stdlib.h>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1532 #include <stdarg.h>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1533 #include <string.h>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1534 #include <float.h>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1535 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1536 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1537 { (eval echo configure:1538: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1538 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1539 if test -z "$ac_err"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1540 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1541 ac_cv_header_stdc=yes
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1542 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1543 echo "$ac_err" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1544 echo "configure: failed program was:" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1545 cat conftest.$ac_ext >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1546 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1547 ac_cv_header_stdc=no
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1548 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1549 rm -f conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1550
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1551 if test $ac_cv_header_stdc = yes; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1552 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1553 cat > conftest.$ac_ext <<EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1554 #line 1555 "configure"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1555 #include "confdefs.h"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1556 #include <string.h>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1557 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1558 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1559 egrep "memchr" >/dev/null 2>&1; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1560 :
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1561 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1562 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1563 ac_cv_header_stdc=no
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1564 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1565 rm -f conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1566
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1567 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1568
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1569 if test $ac_cv_header_stdc = yes; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1570 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1571 cat > conftest.$ac_ext <<EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1572 #line 1573 "configure"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1573 #include "confdefs.h"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1574 #include <stdlib.h>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1575 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1576 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1577 egrep "free" >/dev/null 2>&1; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1578 :
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1579 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1580 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1581 ac_cv_header_stdc=no
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1582 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1583 rm -f conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1584
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1585 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1586
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1587 if test $ac_cv_header_stdc = yes; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1588 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1589 if test "$cross_compiling" = yes; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1590 :
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1591 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1592 cat > conftest.$ac_ext <<EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1593 #line 1594 "configure"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1594 #include "confdefs.h"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1595 #include <ctype.h>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1596 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1597 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1598 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1599 int main () { int i; for (i = 0; i < 256; i++)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1600 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1601 exit (0); }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1602
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1603 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1604 if { (eval echo configure:1605: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1605 then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1606 :
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1607 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1608 echo "configure: failed program was:" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1609 cat conftest.$ac_ext >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1610 rm -fr conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1611 ac_cv_header_stdc=no
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1612 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1613 rm -fr conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1614 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1615
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1616 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1617 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1618
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1619 echo "$ac_t""$ac_cv_header_stdc" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1620 if test $ac_cv_header_stdc = yes; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1621 cat >> confdefs.h <<\EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1622 #define STDC_HEADERS 1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1623 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1624
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1625 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1626
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1627 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1628 echo "configure:1629: checking for sys/wait.h that is POSIX.1 compatible" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1629 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1630 echo $ac_n "(cached) $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1631 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1632 cat > conftest.$ac_ext <<EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1633 #line 1634 "configure"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1634 #include "confdefs.h"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1635 #include <sys/types.h>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1636 #include <sys/wait.h>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1637 #ifndef WEXITSTATUS
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1638 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1639 #endif
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1640 #ifndef WIFEXITED
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1641 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1642 #endif
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1643 int main() {
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1644 int s;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1645 wait (&s);
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1646 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1647 ; return 0; }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1648 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1649 if { (eval echo configure:1650: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1650 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1651 ac_cv_header_sys_wait_h=yes
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1652 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1653 echo "configure: failed program was:" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1654 cat conftest.$ac_ext >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1655 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1656 ac_cv_header_sys_wait_h=no
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1657 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1658 rm -f conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1659 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1660
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1661 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1662 if test $ac_cv_header_sys_wait_h = yes; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1663 cat >> confdefs.h <<\EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1664 #define HAVE_SYS_WAIT_H 1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1665 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1666
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1667 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1668
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1669 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
1670 do
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1671 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1672 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1673 echo "configure:1674: checking for $ac_hdr" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1674 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1675 echo $ac_n "(cached) $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1676 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1677 cat > conftest.$ac_ext <<EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1678 #line 1679 "configure"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1679 #include "confdefs.h"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1680 #include <$ac_hdr>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1681 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1682 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1683 { (eval echo configure:1684: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1684 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1685 if test -z "$ac_err"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1686 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1687 eval "ac_cv_header_$ac_safe=yes"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1688 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1689 echo "$ac_err" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1690 echo "configure: failed program was:" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1691 cat conftest.$ac_ext >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1692 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1693 eval "ac_cv_header_$ac_safe=no"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1694 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1695 rm -f conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1696 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1697 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1698 echo "$ac_t""yes" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1699 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1700 cat >> confdefs.h <<EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1701 #define $ac_tr_hdr 1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1702 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1703
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1704 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1705 echo "$ac_t""no" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1706 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1707 done
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1708
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1709
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1710 echo $ac_n "checking for working const""... $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1711 echo "configure:1712: checking for working const" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1712 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1713 echo $ac_n "(cached) $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1714 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1715 cat > conftest.$ac_ext <<EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1716 #line 1717 "configure"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1717 #include "confdefs.h"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1718
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1719 int main() {
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1720
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1721 /* Ultrix mips cc rejects this. */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1722 typedef int charset[2]; const charset x;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1723 /* SunOS 4.1.1 cc rejects this. */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1724 char const *const *ccp;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1725 char **p;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1726 /* NEC SVR4.0.2 mips cc rejects this. */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1727 struct point {int x, y;};
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1728 static struct point const zero = {0,0};
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1729 /* AIX XL C 1.02.0.0 rejects this.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1730 It does not let you subtract one const X* pointer from another in an arm
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1731 of an if-expression whose if-part is not a constant expression */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1732 const char *g = "string";
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1733 ccp = &g + (g ? g-g : 0);
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1734 /* HPUX 7.0 cc rejects these. */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1735 ++ccp;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1736 p = (char**) ccp;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1737 ccp = (char const *const *) p;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1738 { /* SCO 3.2v4 cc rejects this. */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1739 char *t;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1740 char const *s = 0 ? (char *) 0 : (char const *) 0;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1741
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1742 *t++ = 0;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1743 }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1744 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1745 int x[] = {25, 17};
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1746 const int *foo = &x[0];
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1747 ++foo;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1748 }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1749 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1750 typedef const int *iptr;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1751 iptr p = 0;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1752 ++p;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1753 }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1754 { /* AIX XL C 1.02.0.0 rejects this saying
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1755 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1756 struct s { int j; const int *ap[3]; };
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1757 struct s *b; b->j = 5;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1758 }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1759 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1760 const int foo = 10;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1761 }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1762
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1763 ; return 0; }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1764 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1765 if { (eval echo configure:1766: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1766 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1767 ac_cv_c_const=yes
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1768 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1769 echo "configure: failed program was:" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1770 cat conftest.$ac_ext >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1771 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1772 ac_cv_c_const=no
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1773 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1774 rm -f conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1775 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1776
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1777 echo "$ac_t""$ac_cv_c_const" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1778 if test $ac_cv_c_const = no; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1779 cat >> confdefs.h <<\EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1780 #define const
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1781 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1782
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1783 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1784
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1785 echo $ac_n "checking for inline""... $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1786 echo "configure:1787: checking for inline" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1787 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1788 echo $ac_n "(cached) $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1789 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1790 ac_cv_c_inline=no
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1791 for ac_kw in inline __inline__ __inline; do
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1792 cat > conftest.$ac_ext <<EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1793 #line 1794 "configure"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1794 #include "confdefs.h"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1795
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1796 int main() {
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1797 } $ac_kw foo() {
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1798 ; return 0; }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1799 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1800 if { (eval echo configure:1801: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1801 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1802 ac_cv_c_inline=$ac_kw; break
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1803 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1804 echo "configure: failed program was:" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1805 cat conftest.$ac_ext >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1806 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1807 rm -f conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1808 done
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1809
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1810 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1811
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1812 echo "$ac_t""$ac_cv_c_inline" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1813 case "$ac_cv_c_inline" in
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1814 inline | yes) ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1815 no) cat >> confdefs.h <<\EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1816 #define inline
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1817 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1818 ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1819 *) cat >> confdefs.h <<EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1820 #define inline $ac_cv_c_inline
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1821 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1822 ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1823 esac
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1824
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1825 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1826 echo "configure:1827: checking for mode_t" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1827 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1828 echo $ac_n "(cached) $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1829 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1830 cat > conftest.$ac_ext <<EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1831 #line 1832 "configure"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1832 #include "confdefs.h"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1833 #include <sys/types.h>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1834 #if STDC_HEADERS
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1835 #include <stdlib.h>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1836 #include <stddef.h>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1837 #endif
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1838 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1839 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1840 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
1841 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1842 ac_cv_type_mode_t=yes
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1843 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1844 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1845 ac_cv_type_mode_t=no
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1846 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1847 rm -f conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1848
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1849 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1850 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1851 if test $ac_cv_type_mode_t = no; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1852 cat >> confdefs.h <<\EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1853 #define mode_t int
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1854 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1855
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1856 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1857
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1858 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1859 echo "configure:1860: checking for pid_t" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1860 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1861 echo $ac_n "(cached) $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1862 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1863 cat > conftest.$ac_ext <<EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1864 #line 1865 "configure"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1865 #include "confdefs.h"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1866 #include <sys/types.h>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1867 #if STDC_HEADERS
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1868 #include <stdlib.h>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1869 #include <stddef.h>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1870 #endif
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1871 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1872 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1873 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
1874 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1875 ac_cv_type_pid_t=yes
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1876 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1877 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1878 ac_cv_type_pid_t=no
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1879 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1880 rm -f conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1881
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1882 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1883 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1884 if test $ac_cv_type_pid_t = no; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1885 cat >> confdefs.h <<\EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1886 #define pid_t int
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1887 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1888
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1889 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1890
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1891 echo $ac_n "checking for size_t""... $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1892 echo "configure:1893: checking for size_t" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1893 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1894 echo $ac_n "(cached) $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1895 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1896 cat > conftest.$ac_ext <<EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1897 #line 1898 "configure"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1898 #include "confdefs.h"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1899 #include <sys/types.h>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1900 #if STDC_HEADERS
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1901 #include <stdlib.h>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1902 #include <stddef.h>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1903 #endif
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1904 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1905 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1906 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
1907 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1908 ac_cv_type_size_t=yes
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1909 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1910 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1911 ac_cv_type_size_t=no
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1912 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1913 rm -f conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1914
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1915 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1916 echo "$ac_t""$ac_cv_type_size_t" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1917 if test $ac_cv_type_size_t = no; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1918 cat >> confdefs.h <<\EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1919 #define size_t unsigned
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1920 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1921
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1922 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1923
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1924 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1925 echo "configure:1926: checking whether time.h and sys/time.h may both be included" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1926 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1927 echo $ac_n "(cached) $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1928 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1929 cat > conftest.$ac_ext <<EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1930 #line 1931 "configure"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1931 #include "confdefs.h"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1932 #include <sys/types.h>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1933 #include <sys/time.h>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1934 #include <time.h>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1935 int main() {
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1936 struct tm *tp;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1937 ; return 0; }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1938 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1939 if { (eval echo configure:1940: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1940 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1941 ac_cv_header_time=yes
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1942 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1943 echo "configure: failed program was:" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1944 cat conftest.$ac_ext >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1945 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1946 ac_cv_header_time=no
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1947 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1948 rm -f conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1949 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1950
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1951 echo "$ac_t""$ac_cv_header_time" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1952 if test $ac_cv_header_time = yes; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1953 cat >> confdefs.h <<\EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1954 #define TIME_WITH_SYS_TIME 1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1955 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1956
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1957 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1958
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1959 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1960 echo "configure:1961: checking whether struct tm is in sys/time.h or time.h" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1961 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1962 echo $ac_n "(cached) $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1963 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1964 cat > conftest.$ac_ext <<EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1965 #line 1966 "configure"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1966 #include "confdefs.h"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1967 #include <sys/types.h>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1968 #include <time.h>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1969 int main() {
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1970 struct tm *tp; tp->tm_sec;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1971 ; return 0; }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1972 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1973 if { (eval echo configure:1974: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1974 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1975 ac_cv_struct_tm=time.h
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1976 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1977 echo "configure: failed program was:" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1978 cat conftest.$ac_ext >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1979 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1980 ac_cv_struct_tm=sys/time.h
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1981 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1982 rm -f conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1983 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1984
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1985 echo "$ac_t""$ac_cv_struct_tm" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1986 if test $ac_cv_struct_tm = sys/time.h; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1987 cat >> confdefs.h <<\EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1988 #define TM_IN_SYS_TIME 1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1989 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1990
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1991 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1992
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1993
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1994 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1995 # for constant arguments. Useless!
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1996 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1997 echo "configure:1998: checking for working alloca.h" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1998 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1999 echo $ac_n "(cached) $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2000 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2001 cat > conftest.$ac_ext <<EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2002 #line 2003 "configure"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2003 #include "confdefs.h"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2004 #include <alloca.h>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2005 int main() {
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2006 char *p = alloca(2 * sizeof(int));
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2007 ; return 0; }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2008 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2009 if { (eval echo configure:2010: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2010 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2011 ac_cv_header_alloca_h=yes
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2012 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2013 echo "configure: failed program was:" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2014 cat conftest.$ac_ext >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2015 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2016 ac_cv_header_alloca_h=no
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2017 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2018 rm -f conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2019 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2020
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2021 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2022 if test $ac_cv_header_alloca_h = yes; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2023 cat >> confdefs.h <<\EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2024 #define HAVE_ALLOCA_H 1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2025 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2026
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2027 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2028
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2029 echo $ac_n "checking for alloca""... $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2030 echo "configure:2031: checking for alloca" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2031 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2032 echo $ac_n "(cached) $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2033 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2034 cat > conftest.$ac_ext <<EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2035 #line 2036 "configure"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2036 #include "confdefs.h"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2037
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2038 #ifdef __GNUC__
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2039 # define alloca __builtin_alloca
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2040 #else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2041 # ifdef _MSC_VER
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2042 # include <malloc.h>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2043 # define alloca _alloca
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2044 # else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2045 # if HAVE_ALLOCA_H
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2046 # include <alloca.h>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2047 # else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2048 # ifdef _AIX
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2049 #pragma alloca
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2050 # else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2051 # ifndef alloca /* predefined by HP cc +Olibcalls */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2052 char *alloca ();
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2053 # endif
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2054 # endif
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2055 # endif
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2056 # endif
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2057 #endif
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2058
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2059 int main() {
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2060 char *p = (char *) alloca(1);
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2061 ; return 0; }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2062 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2063 if { (eval echo configure:2064: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2064 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2065 ac_cv_func_alloca_works=yes
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2066 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2067 echo "configure: failed program was:" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2068 cat conftest.$ac_ext >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2069 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2070 ac_cv_func_alloca_works=no
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2071 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2072 rm -f conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2073 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2074
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2075 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2076 if test $ac_cv_func_alloca_works = yes; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2077 cat >> confdefs.h <<\EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2078 #define HAVE_ALLOCA 1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2079 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2080
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2081 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2082
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2083 if test $ac_cv_func_alloca_works = no; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2084 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2085 # that cause trouble. Some versions do not even contain alloca or
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2086 # contain a buggy version. If you still want to use their alloca,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2087 # use ar to extract alloca.o from them instead of compiling alloca.c.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2088 ALLOCA=alloca.${ac_objext}
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2089 cat >> confdefs.h <<\EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2090 #define C_ALLOCA 1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2091 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2092
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2093
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2094 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2095 echo "configure:2096: checking whether alloca needs Cray hooks" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2096 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2097 echo $ac_n "(cached) $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2098 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2099 cat > conftest.$ac_ext <<EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2100 #line 2101 "configure"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2101 #include "confdefs.h"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2102 #if defined(CRAY) && ! defined(CRAY2)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2103 webecray
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2104 #else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2105 wenotbecray
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2106 #endif
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2107
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2108 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2109 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2110 egrep "webecray" >/dev/null 2>&1; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2111 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2112 ac_cv_os_cray=yes
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2113 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2114 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2115 ac_cv_os_cray=no
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2116 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2117 rm -f conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2118
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2119 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2120
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2121 echo "$ac_t""$ac_cv_os_cray" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2122 if test $ac_cv_os_cray = yes; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2123 for ac_func in _getb67 GETB67 getb67; do
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2124 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2125 echo "configure:2126: checking for $ac_func" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2126 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2127 echo $ac_n "(cached) $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2128 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2129 cat > conftest.$ac_ext <<EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2130 #line 2131 "configure"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2131 #include "confdefs.h"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2132 /* System header to define __stub macros and hopefully few prototypes,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2133 which can conflict with char $ac_func(); below. */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2134 #include <assert.h>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2135 /* Override any gcc2 internal prototype to avoid an error. */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2136 /* We use char because int might match the return type of a gcc2
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2137 builtin and then its argument prototype would still apply. */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2138 char $ac_func();
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2139
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2140 int main() {
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2141
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2142 /* The GNU C library defines this for functions which it implements
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2143 to always fail with ENOSYS. Some functions are actually named
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2144 something starting with __ and the normal name is an alias. */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2145 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2146 choke me
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2147 #else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2148 $ac_func();
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2149 #endif
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2150
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2151 ; return 0; }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2152 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2153 if { (eval echo configure:2154: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2154 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2155 eval "ac_cv_func_$ac_func=yes"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2156 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2157 echo "configure: failed program was:" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2158 cat conftest.$ac_ext >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2159 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2160 eval "ac_cv_func_$ac_func=no"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2161 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2162 rm -f conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2163 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2164
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2165 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2166 echo "$ac_t""yes" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2167 cat >> confdefs.h <<EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2168 #define CRAY_STACKSEG_END $ac_func
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2169 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2170
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2171 break
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2172 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2173 echo "$ac_t""no" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2174 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2175
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2176 done
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2177 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2178
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2179 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2180 echo "configure:2181: checking stack direction for C alloca" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2181 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2182 echo $ac_n "(cached) $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2183 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2184 if test "$cross_compiling" = yes; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2185 ac_cv_c_stack_direction=0
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2186 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2187 cat > conftest.$ac_ext <<EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2188 #line 2189 "configure"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2189 #include "confdefs.h"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2190 find_stack_direction ()
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2191 {
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2192 static char *addr = 0;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2193 auto char dummy;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2194 if (addr == 0)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2195 {
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2196 addr = &dummy;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2197 return find_stack_direction ();
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2198 }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2199 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2200 return (&dummy > addr) ? 1 : -1;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2201 }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2202 main ()
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2203 {
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2204 exit (find_stack_direction() < 0);
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2205 }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2206 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2207 if { (eval echo configure:2208: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2208 then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2209 ac_cv_c_stack_direction=1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2210 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2211 echo "configure: failed program was:" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2212 cat conftest.$ac_ext >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2213 rm -fr conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2214 ac_cv_c_stack_direction=-1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2215 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2216 rm -fr conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2217 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2218
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2219 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2220
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2221 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2222 cat >> confdefs.h <<EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2223 #define STACK_DIRECTION $ac_cv_c_stack_direction
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2224 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2225
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2226 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2227
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2228 if test $ac_cv_prog_gcc = yes; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2229 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2230 echo "configure:2231: checking whether ${CC-cc} needs -traditional" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2231 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2232 echo $ac_n "(cached) $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2233 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2234 ac_pattern="Autoconf.*'x'"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2235 cat > conftest.$ac_ext <<EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2236 #line 2237 "configure"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2237 #include "confdefs.h"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2238 #include <sgtty.h>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2239 Autoconf TIOCGETP
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2240 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2241 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2242 egrep "$ac_pattern" >/dev/null 2>&1; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2243 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2244 ac_cv_prog_gcc_traditional=yes
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2245 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2246 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2247 ac_cv_prog_gcc_traditional=no
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2248 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2249 rm -f conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2250
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2251
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2252 if test $ac_cv_prog_gcc_traditional = no; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2253 cat > conftest.$ac_ext <<EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2254 #line 2255 "configure"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2255 #include "confdefs.h"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2256 #include <termio.h>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2257 Autoconf TCGETA
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2258 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2259 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2260 egrep "$ac_pattern" >/dev/null 2>&1; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2261 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2262 ac_cv_prog_gcc_traditional=yes
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2263 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2264 rm -f conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2265
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2266 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2267 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2268
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2269 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2270 if test $ac_cv_prog_gcc_traditional = yes; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2271 CC="$CC -traditional"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2272 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2273 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2274
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2275 for ac_hdr in unistd.h
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2276 do
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2277 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2278 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2279 echo "configure:2280: checking for $ac_hdr" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2280 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2281 echo $ac_n "(cached) $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2282 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2283 cat > conftest.$ac_ext <<EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2284 #line 2285 "configure"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2285 #include "confdefs.h"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2286 #include <$ac_hdr>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2287 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2288 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2289 { (eval echo configure:2290: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2290 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2291 if test -z "$ac_err"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2292 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2293 eval "ac_cv_header_$ac_safe=yes"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2294 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2295 echo "$ac_err" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2296 echo "configure: failed program was:" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2297 cat conftest.$ac_ext >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2298 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2299 eval "ac_cv_header_$ac_safe=no"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2300 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2301 rm -f conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2302 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2303 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2304 echo "$ac_t""yes" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2305 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2306 cat >> confdefs.h <<EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2307 #define $ac_tr_hdr 1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2308 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2309
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2310 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2311 echo "$ac_t""no" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2312 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2313 done
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2314
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2315 for ac_func in getpagesize
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2316 do
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2317 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2318 echo "configure:2319: checking for $ac_func" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2319 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2320 echo $ac_n "(cached) $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2321 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2322 cat > conftest.$ac_ext <<EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2323 #line 2324 "configure"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2324 #include "confdefs.h"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2325 /* System header to define __stub macros and hopefully few prototypes,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2326 which can conflict with char $ac_func(); below. */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2327 #include <assert.h>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2328 /* Override any gcc2 internal prototype to avoid an error. */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2329 /* We use char because int might match the return type of a gcc2
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2330 builtin and then its argument prototype would still apply. */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2331 char $ac_func();
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2332
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2333 int main() {
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2334
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2335 /* The GNU C library defines this for functions which it implements
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2336 to always fail with ENOSYS. Some functions are actually named
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2337 something starting with __ and the normal name is an alias. */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2338 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2339 choke me
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2340 #else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2341 $ac_func();
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2342 #endif
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2343
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2344 ; return 0; }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2345 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2346 if { (eval echo configure:2347: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2347 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2348 eval "ac_cv_func_$ac_func=yes"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2349 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2350 echo "configure: failed program was:" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2351 cat conftest.$ac_ext >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2352 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2353 eval "ac_cv_func_$ac_func=no"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2354 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2355 rm -f conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2356 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2357
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2358 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2359 echo "$ac_t""yes" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2360 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2361 cat >> confdefs.h <<EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2362 #define $ac_tr_func 1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2363 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2364
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2365 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2366 echo "$ac_t""no" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2367 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2368 done
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2369
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2370 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2371 echo "configure:2372: checking for working mmap" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2372 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+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 if test "$cross_compiling" = yes; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2376 ac_cv_func_mmap_fixed_mapped=no
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2377 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2378 cat > conftest.$ac_ext <<EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2379 #line 2380 "configure"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2380 #include "confdefs.h"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2381
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2382 /* Thanks to Mike Haertel and Jim Avera for this test.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2383 Here is a matrix of mmap possibilities:
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2384 mmap private not fixed
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2385 mmap private fixed at somewhere currently unmapped
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2386 mmap private fixed at somewhere already mapped
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2387 mmap shared not fixed
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2388 mmap shared fixed at somewhere currently unmapped
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2389 mmap shared fixed at somewhere already mapped
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2390 For private mappings, we should verify that changes cannot be read()
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2391 back from the file, nor mmap's back from the file at a different
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2392 address. (There have been systems where private was not correctly
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2393 implemented like the infamous i386 svr4.0, and systems where the
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2394 VM page cache was not coherent with the filesystem buffer cache
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2395 like early versions of FreeBSD and possibly contemporary NetBSD.)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2396 For shared mappings, we should conversely verify that changes get
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2397 propogated back to all the places they're supposed to be.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2398
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2399 Grep wants private fixed already mapped.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2400 The main things grep needs to know about mmap are:
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2401 * does it exist and is it safe to write into the mmap'd area
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2402 * how to use it (BSD variants) */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2403 #include <sys/types.h>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2404 #include <fcntl.h>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2405 #include <sys/mman.h>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2406
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2407 /* This mess was copied from the GNU getpagesize.h. */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2408 #ifndef HAVE_GETPAGESIZE
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2409 # ifdef HAVE_UNISTD_H
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2410 # include <unistd.h>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2411 # endif
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2412
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2413 /* Assume that all systems that can run configure have sys/param.h. */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2414 # ifndef HAVE_SYS_PARAM_H
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2415 # define HAVE_SYS_PARAM_H 1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2416 # endif
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2417
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2418 # ifdef _SC_PAGESIZE
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2419 # define getpagesize() sysconf(_SC_PAGESIZE)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2420 # else /* no _SC_PAGESIZE */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2421 # ifdef HAVE_SYS_PARAM_H
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2422 # include <sys/param.h>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2423 # ifdef EXEC_PAGESIZE
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2424 # define getpagesize() EXEC_PAGESIZE
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2425 # else /* no EXEC_PAGESIZE */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2426 # ifdef NBPG
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2427 # define getpagesize() NBPG * CLSIZE
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2428 # ifndef CLSIZE
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2429 # define CLSIZE 1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2430 # endif /* no CLSIZE */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2431 # else /* no NBPG */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2432 # ifdef NBPC
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2433 # define getpagesize() NBPC
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2434 # else /* no NBPC */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2435 # ifdef PAGESIZE
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2436 # define getpagesize() PAGESIZE
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2437 # endif /* PAGESIZE */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2438 # endif /* no NBPC */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2439 # endif /* no NBPG */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2440 # endif /* no EXEC_PAGESIZE */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2441 # else /* no HAVE_SYS_PARAM_H */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2442 # define getpagesize() 8192 /* punt totally */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2443 # endif /* no HAVE_SYS_PARAM_H */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2444 # endif /* no _SC_PAGESIZE */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2445
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2446 #endif /* no HAVE_GETPAGESIZE */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2447
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2448 #ifdef __cplusplus
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2449 extern "C" { void *malloc(unsigned); }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2450 #else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2451 char *malloc();
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2452 #endif
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2453
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2454 int
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2455 main()
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2456 {
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2457 char *data, *data2, *data3;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2458 int i, pagesize;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2459 int fd;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2460
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2461 pagesize = getpagesize();
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2462
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2463 /*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2464 * First, make a file with some known garbage in it.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2465 */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2466 data = malloc(pagesize);
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2467 if (!data)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2468 exit(1);
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2469 for (i = 0; i < pagesize; ++i)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2470 *(data + i) = rand();
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2471 umask(0);
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2472 fd = creat("conftestmmap", 0600);
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2473 if (fd < 0)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2474 exit(1);
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2475 if (write(fd, data, pagesize) != pagesize)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2476 exit(1);
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2477 close(fd);
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2478
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2479 /*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2480 * Next, try to mmap the file at a fixed address which
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2481 * already has something else allocated at it. If we can,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2482 * also make sure that we see the same garbage.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2483 */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2484 fd = open("conftestmmap", O_RDWR);
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2485 if (fd < 0)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2486 exit(1);
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2487 data2 = malloc(2 * pagesize);
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2488 if (!data2)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2489 exit(1);
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2490 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2491 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2492 MAP_PRIVATE | MAP_FIXED, fd, 0L))
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2493 exit(1);
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2494 for (i = 0; i < pagesize; ++i)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2495 if (*(data + i) != *(data2 + i))
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2496 exit(1);
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2497
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2498 /*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2499 * Finally, make sure that changes to the mapped area
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2500 * do not percolate back to the file as seen by read().
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2501 * (This is a bug on some variants of i386 svr4.0.)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2502 */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2503 for (i = 0; i < pagesize; ++i)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2504 *(data2 + i) = *(data2 + i) + 1;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2505 data3 = malloc(pagesize);
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2506 if (!data3)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2507 exit(1);
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2508 if (read(fd, data3, pagesize) != pagesize)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2509 exit(1);
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2510 for (i = 0; i < pagesize; ++i)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2511 if (*(data + i) != *(data3 + i))
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2512 exit(1);
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2513 close(fd);
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2514 unlink("conftestmmap");
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2515 exit(0);
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2516 }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2517
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2518 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2519 if { (eval echo configure:2520: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2520 then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2521 ac_cv_func_mmap_fixed_mapped=yes
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2522 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2523 echo "configure: failed program was:" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2524 cat conftest.$ac_ext >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2525 rm -fr conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2526 ac_cv_func_mmap_fixed_mapped=no
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2527 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2528 rm -fr conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2529 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2530
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2531 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2532
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2533 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2534 if test $ac_cv_func_mmap_fixed_mapped = yes; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2535 cat >> confdefs.h <<\EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2536 #define HAVE_MMAP 1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2537 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2538
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2539 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2540
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2541 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2542 echo "configure:2543: checking return type of signal handlers" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2543 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2544 echo $ac_n "(cached) $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2545 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2546 cat > conftest.$ac_ext <<EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2547 #line 2548 "configure"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2548 #include "confdefs.h"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2549 #include <sys/types.h>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2550 #include <signal.h>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2551 #ifdef signal
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2552 #undef signal
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2553 #endif
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2554 #ifdef __cplusplus
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2555 extern "C" void (*signal (int, void (*)(int)))(int);
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2556 #else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2557 void (*signal ()) ();
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2558 #endif
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2559
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2560 int main() {
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2561 int i;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2562 ; return 0; }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2563 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2564 if { (eval echo configure:2565: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2565 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2566 ac_cv_type_signal=void
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2567 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2568 echo "configure: failed program was:" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2569 cat conftest.$ac_ext >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2570 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2571 ac_cv_type_signal=int
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2572 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2573 rm -f conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2574 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2575
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2576 echo "$ac_t""$ac_cv_type_signal" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2577 cat >> confdefs.h <<EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2578 #define RETSIGTYPE $ac_cv_type_signal
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2579 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2580
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2581
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2582 echo $ac_n "checking for strftime""... $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2583 echo "configure:2584: checking for strftime" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2584 if eval "test \"`echo '$''{'ac_cv_func_strftime'+set}'`\" = set"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2585 echo $ac_n "(cached) $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2586 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2587 cat > conftest.$ac_ext <<EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2588 #line 2589 "configure"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2589 #include "confdefs.h"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2590 /* System header to define __stub macros and hopefully few prototypes,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2591 which can conflict with char strftime(); below. */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2592 #include <assert.h>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2593 /* Override any gcc2 internal prototype to avoid an error. */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2594 /* We use char because int might match the return type of a gcc2
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2595 builtin and then its argument prototype would still apply. */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2596 char strftime();
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2597
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2598 int main() {
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2599
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2600 /* The GNU C library defines this for functions which it implements
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2601 to always fail with ENOSYS. Some functions are actually named
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2602 something starting with __ and the normal name is an alias. */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2603 #if defined (__stub_strftime) || defined (__stub___strftime)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2604 choke me
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2605 #else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2606 strftime();
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2607 #endif
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2608
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2609 ; return 0; }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2610 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2611 if { (eval echo configure:2612: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2612 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2613 eval "ac_cv_func_strftime=yes"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2614 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2615 echo "configure: failed program was:" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2616 cat conftest.$ac_ext >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2617 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2618 eval "ac_cv_func_strftime=no"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2619 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2620 rm -f conftest*
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 if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2624 echo "$ac_t""yes" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2625 cat >> confdefs.h <<\EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2626 #define HAVE_STRFTIME 1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2627 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2628
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2629 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2630 echo "$ac_t""no" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2631 # strftime is in -lintl on SCO UNIX.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2632 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2633 echo "configure:2634: checking for strftime in -lintl" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2634 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-%__p_%'`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2635 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2636 echo $ac_n "(cached) $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2637 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2638 ac_save_LIBS="$LIBS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2639 LIBS="-lintl $LIBS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2640 cat > conftest.$ac_ext <<EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2641 #line 2642 "configure"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2642 #include "confdefs.h"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2643 /* Override any gcc2 internal prototype to avoid an error. */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2644 /* We use char because int might match the return type of a gcc2
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2645 builtin and then its argument prototype would still apply. */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2646 char strftime();
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2647
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2648 int main() {
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2649 strftime()
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2650 ; return 0; }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2651 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2652 if { (eval echo configure:2653: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2653 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2654 eval "ac_cv_lib_$ac_lib_var=yes"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2655 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2656 echo "configure: failed program was:" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2657 cat conftest.$ac_ext >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2658 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2659 eval "ac_cv_lib_$ac_lib_var=no"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2660 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2661 rm -f conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2662 LIBS="$ac_save_LIBS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2663
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2664 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2665 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2666 echo "$ac_t""yes" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2667 cat >> confdefs.h <<\EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2668 #define HAVE_STRFTIME 1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2669 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2670
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2671 LIBS="-lintl $LIBS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2672 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2673 echo "$ac_t""no" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2674 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2675
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2676 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2677
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2678 echo $ac_n "checking whether utime accepts a null argument""... $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2679 echo "configure:2680: checking whether utime accepts a null argument" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2680 if eval "test \"`echo '$''{'ac_cv_func_utime_null'+set}'`\" = set"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2681 echo $ac_n "(cached) $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2682 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2683 rm -f conftestdata; > conftestdata
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2684 # Sequent interprets utime(file, 0) to mean use start of epoch. Wrong.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2685 if test "$cross_compiling" = yes; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2686 ac_cv_func_utime_null=no
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2687 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2688 cat > conftest.$ac_ext <<EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2689 #line 2690 "configure"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2690 #include "confdefs.h"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2691 #include <sys/types.h>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2692 #include <sys/stat.h>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2693 main() {
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2694 struct stat s, t;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2695 exit(!(stat ("conftestdata", &s) == 0 && utime("conftestdata", (long *)0) == 0
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2696 && stat("conftestdata", &t) == 0 && t.st_mtime >= s.st_mtime
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2697 && t.st_mtime - s.st_mtime < 120));
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2698 }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2699 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2700 if { (eval echo configure:2701: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2701 then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2702 ac_cv_func_utime_null=yes
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2703 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2704 echo "configure: failed program was:" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2705 cat conftest.$ac_ext >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2706 rm -fr conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2707 ac_cv_func_utime_null=no
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2708 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2709 rm -fr conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2710 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2711
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2712 rm -f core core.* *.core
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2713 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2714
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2715 echo "$ac_t""$ac_cv_func_utime_null" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2716 if test $ac_cv_func_utime_null = yes; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2717 cat >> confdefs.h <<\EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2718 #define HAVE_UTIME_NULL 1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2719 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2720
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2721 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2722
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2723 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
2724 do
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2725 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2726 echo "configure:2727: checking for $ac_func" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2727 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2728 echo $ac_n "(cached) $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2729 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2730 cat > conftest.$ac_ext <<EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2731 #line 2732 "configure"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2732 #include "confdefs.h"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2733 /* System header to define __stub macros and hopefully few prototypes,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2734 which can conflict with char $ac_func(); below. */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2735 #include <assert.h>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2736 /* Override any gcc2 internal prototype to avoid an error. */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2737 /* We use char because int might match the return type of a gcc2
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2738 builtin and then its argument prototype would still apply. */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2739 char $ac_func();
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2740
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2741 int main() {
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2742
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2743 /* The GNU C library defines this for functions which it implements
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2744 to always fail with ENOSYS. Some functions are actually named
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2745 something starting with __ and the normal name is an alias. */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2746 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2747 choke me
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2748 #else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2749 $ac_func();
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2750 #endif
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2751
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2752 ; return 0; }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2753 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2754 if { (eval echo configure:2755: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2755 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2756 eval "ac_cv_func_$ac_func=yes"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2757 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2758 echo "configure: failed program was:" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2759 cat conftest.$ac_ext >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2760 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2761 eval "ac_cv_func_$ac_func=no"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2762 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2763 rm -f conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2764 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2765
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2766 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2767 echo "$ac_t""yes" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2768 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2769 cat >> confdefs.h <<EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2770 #define $ac_tr_func 1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2771 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2772
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2773 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2774 echo "$ac_t""no" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2775 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2776 done
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2777
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2778
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2779 if test "x$enable_gtk20" = "x1" ; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2780
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2781 succeeded=no
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2782
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2783 if test -z "$PKG_CONFIG"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2784 # Extract the first word of "pkg-config", so it can be a program name with args.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2785 set dummy pkg-config; ac_word=$2
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2786 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2787 echo "configure:2788: checking for $ac_word" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2788 if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2789 echo $ac_n "(cached) $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2790 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2791 case "$PKG_CONFIG" in
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2792 /*)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2793 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2794 ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2795 ?:/*)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2796 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2797 ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2798 *)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2799 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2800 ac_dummy="$PATH"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2801 for ac_dir in $ac_dummy; do
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2802 test -z "$ac_dir" && ac_dir=.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2803 if test -f $ac_dir/$ac_word; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2804 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2805 break
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2806 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2807 done
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2808 IFS="$ac_save_ifs"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2809 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2810 ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2811 esac
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2812 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2813 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2814 if test -n "$PKG_CONFIG"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2815 echo "$ac_t""$PKG_CONFIG" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2816 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2817 echo "$ac_t""no" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2818 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2819
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2820 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2821
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2822 if test "$PKG_CONFIG" = "no" ; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2823 echo "*** The pkg-config script could not be found. Make sure it is"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2824 echo "*** in your path, or set the PKG_CONFIG environment variable"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2825 echo "*** to the full path to pkg-config."
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2826 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2827 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2828 PKG_CONFIG_MIN_VERSION=0.9.0
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2829 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2830 echo $ac_n "checking for glib-2.0 >= 1.3.8""... $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2831 echo "configure:2832: checking for glib-2.0 >= 1.3.8" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2832
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2833 if $PKG_CONFIG --exists "glib-2.0 >= 1.3.8" ; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2834 echo "$ac_t""yes" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2835 succeeded=yes
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2836
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2837 echo $ac_n "checking GLIB_CFLAGS""... $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2838 echo "configure:2839: checking GLIB_CFLAGS" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2839 GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 1.3.8"`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2840 echo "$ac_t""$GLIB_CFLAGS" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2841
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2842 echo $ac_n "checking GLIB_LIBS""... $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2843 echo "configure:2844: checking GLIB_LIBS" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2844 GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 1.3.8"`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2845 echo "$ac_t""$GLIB_LIBS" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2846 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2847 GLIB_CFLAGS=""
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2848 GLIB_LIBS=""
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2849 ## If we have a custom action on failure, don't print errors, but
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2850 ## do set a variable so people can do so.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2851 GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= 1.3.8"`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2852 echo $GLIB_PKG_ERRORS
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2853 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2854
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2855
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2856
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2857 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2858 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
2859 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2860 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2861 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2862
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2863 if test $succeeded = yes; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2864 :
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2865 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2866 { 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
2867 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2868
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2869 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2870
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2871 if test "x$GFTP_TEXT" = "x" ; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2872 # Check whether --with-glib-prefix or --without-glib-prefix was given.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2873 if test "${with_glib_prefix+set}" = set; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2874 withval="$with_glib_prefix"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2875 glib_config_prefix="$withval"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2876 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2877 glib_config_prefix=""
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2878 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2879
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2880 # Check whether --with-glib-exec-prefix or --without-glib-exec-prefix was given.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2881 if test "${with_glib_exec_prefix+set}" = set; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2882 withval="$with_glib_exec_prefix"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2883 glib_config_exec_prefix="$withval"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2884 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2885 glib_config_exec_prefix=""
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2886 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2887
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2888 # Check whether --enable-glibtest or --disable-glibtest was given.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2889 if test "${enable_glibtest+set}" = set; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2890 enableval="$enable_glibtest"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2891 :
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2892 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2893 enable_glibtest=yes
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2894 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2895
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2896
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2897 if test x$glib_config_exec_prefix != x ; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2898 glib_config_args="$glib_config_args --exec-prefix=$glib_config_exec_prefix"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2899 if test x${GLIB_CONFIG+set} != xset ; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2900 GLIB_CONFIG=$glib_config_exec_prefix/bin/glib-config
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2901 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2902 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2903 if test x$glib_config_prefix != x ; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2904 glib_config_args="$glib_config_args --prefix=$glib_config_prefix"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2905 if test x${GLIB_CONFIG+set} != xset ; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2906 GLIB_CONFIG=$glib_config_prefix/bin/glib-config
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2907 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2908 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2909
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2910 for module in .
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2911 do
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2912 case "$module" in
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2913 gmodule)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2914 glib_config_args="$glib_config_args gmodule"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2915 ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2916 gthread)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2917 glib_config_args="$glib_config_args gthread"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2918 ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2919 esac
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2920 done
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2921
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2922 # Extract the first word of "glib-config", so it can be a program name with args.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2923 set dummy glib-config; ac_word=$2
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2924 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2925 echo "configure:2926: checking for $ac_word" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2926 if eval "test \"`echo '$''{'ac_cv_path_GLIB_CONFIG'+set}'`\" = set"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2927 echo $ac_n "(cached) $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2928 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2929 case "$GLIB_CONFIG" in
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2930 /*)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2931 ac_cv_path_GLIB_CONFIG="$GLIB_CONFIG" # Let the user override the test with a path.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2932 ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2933 ?:/*)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2934 ac_cv_path_GLIB_CONFIG="$GLIB_CONFIG" # Let the user override the test with a dos path.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2935 ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2936 *)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2937 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2938 ac_dummy="$PATH"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2939 for ac_dir in $ac_dummy; do
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2940 test -z "$ac_dir" && ac_dir=.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2941 if test -f $ac_dir/$ac_word; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2942 ac_cv_path_GLIB_CONFIG="$ac_dir/$ac_word"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2943 break
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2944 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2945 done
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2946 IFS="$ac_save_ifs"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2947 test -z "$ac_cv_path_GLIB_CONFIG" && ac_cv_path_GLIB_CONFIG="no"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2948 ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2949 esac
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2950 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2951 GLIB_CONFIG="$ac_cv_path_GLIB_CONFIG"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2952 if test -n "$GLIB_CONFIG"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2953 echo "$ac_t""$GLIB_CONFIG" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2954 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2955 echo "$ac_t""no" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2956 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2957
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2958 min_glib_version=1.2.3
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2959 echo $ac_n "checking for GLIB - version >= $min_glib_version""... $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2960 echo "configure:2961: checking for GLIB - version >= $min_glib_version" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2961 no_glib=""
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2962 if test "$GLIB_CONFIG" = "no" ; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2963 no_glib=yes
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2964 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2965 GLIB_CFLAGS=`$GLIB_CONFIG $glib_config_args --cflags`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2966 GLIB_LIBS=`$GLIB_CONFIG $glib_config_args --libs`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2967 glib_config_major_version=`$GLIB_CONFIG $glib_config_args --version | \
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2968 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2969 glib_config_minor_version=`$GLIB_CONFIG $glib_config_args --version | \
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2970 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2971 glib_config_micro_version=`$GLIB_CONFIG $glib_config_args --version | \
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2972 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2973 if test "x$enable_glibtest" = "xyes" ; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2974 ac_save_CFLAGS="$CFLAGS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2975 ac_save_LIBS="$LIBS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2976 CFLAGS="$CFLAGS $GLIB_CFLAGS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2977 LIBS="$GLIB_LIBS $LIBS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2978 rm -f conf.glibtest
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2979 if test "$cross_compiling" = yes; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2980 echo $ac_n "cross compiling; assumed OK... $ac_c"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2981 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2982 cat > conftest.$ac_ext <<EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2983 #line 2984 "configure"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2984 #include "confdefs.h"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2985
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2986 #include <glib.h>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2987 #include <stdio.h>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2988 #include <stdlib.h>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2989
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2990 int
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2991 main ()
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2992 {
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2993 int major, minor, micro;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2994 char *tmp_version;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2995
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2996 system ("touch conf.glibtest");
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2997
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2998 /* HP/UX 9 (%@#!) writes to sscanf strings */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2999 tmp_version = g_strdup("$min_glib_version");
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3000 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3001 printf("%s, bad version string\n", "$min_glib_version");
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3002 exit(1);
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3003 }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3004
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3005 if ((glib_major_version != $glib_config_major_version) ||
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3006 (glib_minor_version != $glib_config_minor_version) ||
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3007 (glib_micro_version != $glib_config_micro_version))
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3008 {
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3009 printf("\n*** 'glib-config --version' returned %d.%d.%d, but GLIB (%d.%d.%d)\n",
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3010 $glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3011 glib_major_version, glib_minor_version, glib_micro_version);
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3012 printf ("*** was found! If glib-config was correct, then it is best\n");
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3013 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
3014 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3015 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3016 printf("*** required on your system.\n");
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3017 printf("*** If glib-config was wrong, set the environment variable GLIB_CONFIG\n");
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3018 printf("*** to point to the correct copy of glib-config, and remove the file config.cache\n");
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3019 printf("*** before re-running configure\n");
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3020 }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3021 else if ((glib_major_version != GLIB_MAJOR_VERSION) ||
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3022 (glib_minor_version != GLIB_MINOR_VERSION) ||
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3023 (glib_micro_version != GLIB_MICRO_VERSION))
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3024 {
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3025 printf("*** GLIB header files (version %d.%d.%d) do not match\n",
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3026 GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION);
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3027 printf("*** library (version %d.%d.%d)\n",
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3028 glib_major_version, glib_minor_version, glib_micro_version);
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3029 }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3030 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3031 {
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3032 if ((glib_major_version > major) ||
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3033 ((glib_major_version == major) && (glib_minor_version > minor)) ||
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3034 ((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro)))
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3035 {
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3036 return 0;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3037 }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3038 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3039 {
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3040 printf("\n*** An old version of GLIB (%d.%d.%d) was found.\n",
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3041 glib_major_version, glib_minor_version, glib_micro_version);
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3042 printf("*** You need a version of GLIB newer than %d.%d.%d. The latest version of\n",
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3043 major, minor, micro);
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3044 printf("*** GLIB is always available from ftp://ftp.gtk.org.\n");
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3045 printf("***\n");
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3046 printf("*** If you have already installed a sufficiently new version, this error\n");
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3047 printf("*** probably means that the wrong copy of the glib-config shell script is\n");
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3048 printf("*** being found. The easiest way to fix this is to remove the old version\n");
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3049 printf("*** of GLIB, but you can also set the GLIB_CONFIG environment to point to the\n");
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3050 printf("*** correct copy of glib-config. (In this case, you will have to\n");
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3051 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3052 printf("*** so that the correct libraries are found at run-time))\n");
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3053 }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3054 }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3055 return 1;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3056 }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3057
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3058 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3059 if { (eval echo configure:3060: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3060 then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3061 :
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3062 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3063 echo "configure: failed program was:" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3064 cat conftest.$ac_ext >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3065 rm -fr conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3066 no_glib=yes
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3067 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3068 rm -fr conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3069 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3070
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3071 CFLAGS="$ac_save_CFLAGS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3072 LIBS="$ac_save_LIBS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3073 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3074 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3075 if test "x$no_glib" = x ; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3076 echo "$ac_t""yes" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3077 :
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3078 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3079 echo "$ac_t""no" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3080 if test "$GLIB_CONFIG" = "no" ; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3081 echo "*** The glib-config script installed by GLIB could not be found"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3082 echo "*** If GLIB was installed in PREFIX, make sure PREFIX/bin is in"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3083 echo "*** your path, or set the GLIB_CONFIG environment variable to the"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3084 echo "*** full path to glib-config."
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3085 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3086 if test -f conf.glibtest ; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3087 :
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3088 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3089 echo "*** Could not run GLIB test program, checking why..."
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3090 CFLAGS="$CFLAGS $GLIB_CFLAGS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3091 LIBS="$LIBS $GLIB_LIBS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3092 cat > conftest.$ac_ext <<EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3093 #line 3094 "configure"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3094 #include "confdefs.h"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3095
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3096 #include <glib.h>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3097 #include <stdio.h>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3098
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3099 int main() {
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3100 return ((glib_major_version) || (glib_minor_version) || (glib_micro_version));
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3101 ; return 0; }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3102 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3103 if { (eval echo configure:3104: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3104 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3105 echo "*** The test program compiled, but did not run. This usually means"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3106 echo "*** that the run-time linker is not finding GLIB or finding the wrong"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3107 echo "*** version of GLIB. If it is not finding GLIB, you'll need to set your"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3108 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3109 echo "*** to the installed location Also, make sure you have run ldconfig if that"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3110 echo "*** is required on your system"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3111 echo "***"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3112 echo "*** If you have an old version installed, it is best to remove it, although"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3113 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3114 echo "***"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3115 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3116 echo "*** came with the system with the command"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3117 echo "***"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3118 echo "*** rpm --erase --nodeps gtk gtk-devel"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3119 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3120 echo "configure: failed program was:" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3121 cat conftest.$ac_ext >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3122 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3123 echo "*** The test program failed to compile or link. See the file config.log for the"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3124 echo "*** exact error that occured. This usually means GLIB was incorrectly installed"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3125 echo "*** or that you have moved GLIB since it was installed. In the latter case, you"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3126 echo "*** may want to edit the glib-config script: $GLIB_CONFIG"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3127 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3128 rm -f conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3129 CFLAGS="$ac_save_CFLAGS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3130 LIBS="$ac_save_LIBS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3131 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3132 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3133 GLIB_CFLAGS=""
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3134 GLIB_LIBS=""
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3135 { echo "configure: error: gFTP needs GLIB 1.2.3 or higher" 1>&2; exit 1; }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3136 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3137
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3138
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3139 rm -f conf.glibtest
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3140
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3141 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3142
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3143 GFTP_TEXT=""
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3144 EXTRA_LIBS=""
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3145 USE_READLINE="yes"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3146 READLINE_LIBS=""
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3147 if test "x$enable_textport" = "x1" ; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3148 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3149 echo "configure:3150: checking for socket in -lsocket" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3150 ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3151 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3152 echo $ac_n "(cached) $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3153 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3154 ac_save_LIBS="$LIBS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3155 LIBS="-lsocket $LIBS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3156 cat > conftest.$ac_ext <<EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3157 #line 3158 "configure"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3158 #include "confdefs.h"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3159 /* Override any gcc2 internal prototype to avoid an error. */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3160 /* We use char because int might match the return type of a gcc2
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3161 builtin and then its argument prototype would still apply. */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3162 char socket();
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3163
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3164 int main() {
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3165 socket()
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3166 ; return 0; }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3167 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3168 if { (eval echo configure:3169: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3169 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3170 eval "ac_cv_lib_$ac_lib_var=yes"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3171 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3172 echo "configure: failed program was:" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3173 cat conftest.$ac_ext >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3174 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3175 eval "ac_cv_lib_$ac_lib_var=no"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3176 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3177 rm -f conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3178 LIBS="$ac_save_LIBS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3179
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3180 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3181 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3182 echo "$ac_t""yes" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3183 EXTRA_LIBS="-lsocket"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3184 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3185 echo "$ac_t""no" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3186 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3187
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3188
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3189 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3190 echo "configure:3191: checking for gethostbyname in -lnsl" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3191 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3192 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3193 echo $ac_n "(cached) $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3194 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3195 ac_save_LIBS="$LIBS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3196 LIBS="-lnsl $LIBS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3197 cat > conftest.$ac_ext <<EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3198 #line 3199 "configure"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3199 #include "confdefs.h"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3200 /* Override any gcc2 internal prototype to avoid an error. */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3201 /* We use char because int might match the return type of a gcc2
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3202 builtin and then its argument prototype would still apply. */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3203 char gethostbyname();
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3204
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3205 int main() {
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3206 gethostbyname()
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3207 ; return 0; }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3208 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3209 if { (eval echo configure:3210: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3210 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3211 eval "ac_cv_lib_$ac_lib_var=yes"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3212 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3213 echo "configure: failed program was:" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3214 cat conftest.$ac_ext >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3215 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3216 eval "ac_cv_lib_$ac_lib_var=no"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3217 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3218 rm -f conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3219 LIBS="$ac_save_LIBS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3220
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3221 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3222 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3223 echo "$ac_t""yes" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3224 EXTRA_LIBS="$EXTRA_LIBS -lnsl"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3225 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3226 echo "$ac_t""no" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3227 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3228
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3229
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3230 echo $ac_n "checking whether to use readline""... $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3231 echo "configure:3232: checking whether to use readline" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3232 # Check whether --with-readline or --without-readline was given.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3233 if test "${with_readline+set}" = set; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3234 withval="$with_readline"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3235 case "${withval}" in
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3236 yes) USE_READLINE="yes" ; echo "$ac_t""yes" 1>&6 ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3237 no) USE_READLINE="no" ; echo "$ac_t""no" 1>&6 ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3238 only) USE_READLINE="yes"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3239 EXTRA_LIBREADLINE_DEPS=" "
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3240 echo "$ac_t""yes (using only readline)" 1>&6 ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3241 *) USE_READLINE="yes"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3242 EXTRA_LIBREADLINE_DEPS="${withval}"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3243 echo "$ac_t""yes (using extra libraries ${withval})" 1>&6 ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3244 esac
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3245 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3246 echo "$ac_t""${USE_READLINE}" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3247 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3248
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3249
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3250 if test "$USE_READLINE" = yes ; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3251 if test "$EXTRA_LIBREADLINE_DEPS" = "" ; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3252 unset ac_cv_lib_readline_readline
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3253 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3254 echo "configure:3255: checking for readline in -lreadline" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3255 ac_lib_var=`echo readline'_'readline | sed 'y%./+-%__p_%'`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3256 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3257 echo $ac_n "(cached) $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3258 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3259 ac_save_LIBS="$LIBS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3260 LIBS="-lreadline -lncurses $LIBS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3261 cat > conftest.$ac_ext <<EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3262 #line 3263 "configure"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3263 #include "confdefs.h"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3264 /* Override any gcc2 internal prototype to avoid an error. */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3265 /* We use char because int might match the return type of a gcc2
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3266 builtin and then its argument prototype would still apply. */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3267 char readline();
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3268
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3269 int main() {
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3270 readline()
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3271 ; return 0; }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3272 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3273 if { (eval echo configure:3274: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3274 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3275 eval "ac_cv_lib_$ac_lib_var=yes"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3276 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3277 echo "configure: failed program was:" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3278 cat conftest.$ac_ext >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3279 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3280 eval "ac_cv_lib_$ac_lib_var=no"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3281 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3282 rm -f conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3283 LIBS="$ac_save_LIBS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3284
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3285 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3286 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3287 echo "$ac_t""yes" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3288 HAVE_LIBREADLINE=true
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3289 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3290 echo "$ac_t""no" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3291 HAVE_LIBREADLINE=false
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3292 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3293
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3294 if test x${HAVE_LIBREADLINE} = xtrue ; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3295 echo " Using -lreadline -lncurses"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3296 EXTRA_LIBREADLINE_DEPS=-lncurses
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3297 cat >> confdefs.h <<\EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3298 #define HAVE_LIBREADLINE 1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3299 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3300
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3301 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3302 unset ac_cv_lib_readline_readline
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3303 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3304 echo "configure:3305: checking for readline in -lreadline" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3305 ac_lib_var=`echo readline'_'readline | sed 'y%./+-%__p_%'`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3306 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3307 echo $ac_n "(cached) $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3308 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3309 ac_save_LIBS="$LIBS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3310 LIBS="-lreadline -lcurses $LIBS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3311 cat > conftest.$ac_ext <<EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3312 #line 3313 "configure"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3313 #include "confdefs.h"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3314 /* Override any gcc2 internal prototype to avoid an error. */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3315 /* We use char because int might match the return type of a gcc2
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3316 builtin and then its argument prototype would still apply. */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3317 char readline();
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3318
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3319 int main() {
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3320 readline()
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3321 ; return 0; }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3322 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3323 if { (eval echo configure:3324: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3324 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3325 eval "ac_cv_lib_$ac_lib_var=yes"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3326 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3327 echo "configure: failed program was:" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3328 cat conftest.$ac_ext >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3329 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3330 eval "ac_cv_lib_$ac_lib_var=no"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3331 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3332 rm -f conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3333 LIBS="$ac_save_LIBS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3334
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3335 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3336 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3337 echo "$ac_t""yes" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3338 HAVE_LIBREADLINE=true
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3339 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3340 echo "$ac_t""no" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3341 HAVE_LIBREADLINE=false
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3342 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3343
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3344 if test x${HAVE_LIBREADLINE} = xtrue ; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3345 echo " Using -lreadline -lcurses"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3346 EXTRA_LIBREADLINE_DEPS=-lcurses
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3347 cat >> confdefs.h <<\EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3348 #define HAVE_LIBREADLINE 1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3349 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3350
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3351 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3352 unset ac_cv_lib_readline_readline
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3353 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3354 echo "configure:3355: checking for readline in -lreadline" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3355 ac_lib_var=`echo readline'_'readline | sed 'y%./+-%__p_%'`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3356 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3357 echo $ac_n "(cached) $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3358 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3359 ac_save_LIBS="$LIBS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3360 LIBS="-lreadline -ltermcap $LIBS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3361 cat > conftest.$ac_ext <<EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3362 #line 3363 "configure"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3363 #include "confdefs.h"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3364 /* Override any gcc2 internal prototype to avoid an error. */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3365 /* We use char because int might match the return type of a gcc2
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3366 builtin and then its argument prototype would still apply. */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3367 char readline();
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3368
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3369 int main() {
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3370 readline()
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3371 ; return 0; }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3372 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3373 if { (eval echo configure:3374: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3374 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3375 eval "ac_cv_lib_$ac_lib_var=yes"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3376 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3377 echo "configure: failed program was:" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3378 cat conftest.$ac_ext >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3379 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3380 eval "ac_cv_lib_$ac_lib_var=no"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3381 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3382 rm -f conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3383 LIBS="$ac_save_LIBS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3384
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3385 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3386 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3387 echo "$ac_t""yes" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3388 HAVE_LIBREADLINE=true
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3389 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3390 echo "$ac_t""no" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3391 HAVE_LIBREADLINE=false
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3392 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3393
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3394 if test x${HAVE_LIBREADLINE} = xtrue ; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3395 echo " Using -lreadline -ltermcap"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3396 EXTRA_LIBREADLINE_DEPS=-ltermcap
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3397 cat >> confdefs.h <<\EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3398 #define HAVE_LIBREADLINE 1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3399 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3400
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3401 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3402 unset ac_cv_lib_readline_readline
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3403 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3404 echo "configure:3405: checking for readline in -lreadline" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3405 ac_lib_var=`echo readline'_'readline | sed 'y%./+-%__p_%'`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3406 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3407 echo $ac_n "(cached) $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3408 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3409 ac_save_LIBS="$LIBS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3410 LIBS="-lreadline $LIBS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3411 cat > conftest.$ac_ext <<EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3412 #line 3413 "configure"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3413 #include "confdefs.h"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3414 /* Override any gcc2 internal prototype to avoid an error. */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3415 /* We use char because int might match the return type of a gcc2
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3416 builtin and then its argument prototype would still apply. */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3417 char readline();
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3418
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3419 int main() {
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3420 readline()
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3421 ; return 0; }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3422 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3423 if { (eval echo configure:3424: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3424 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3425 eval "ac_cv_lib_$ac_lib_var=yes"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3426 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3427 echo "configure: failed program was:" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3428 cat conftest.$ac_ext >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3429 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3430 eval "ac_cv_lib_$ac_lib_var=no"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3431 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3432 rm -f conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3433 LIBS="$ac_save_LIBS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3434
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3435 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3436 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3437 echo "$ac_t""yes" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3438 HAVE_LIBREADLINE=true
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3439 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3440 echo "$ac_t""no" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3441 HAVE_LIBREADLINE=false
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 if test x${HAVE_LIBREADLINE} = xtrue ; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3445 cat >> confdefs.h <<\EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3446 #define HAVE_LIBREADLINE 1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3447 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3448
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3449 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3450 cat >> confdefs.h <<\EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3451 #define HAVE_LIBREADLINE 0
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3452 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3453
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3454 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3455 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3456 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3457 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3458 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3459 unset ac_cv_lib_readline_readline
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3460 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3461 echo "configure:3462: checking for readline in -lreadline" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3462 ac_lib_var=`echo readline'_'readline | sed 'y%./+-%__p_%'`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3463 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3464 echo $ac_n "(cached) $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3465 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3466 ac_save_LIBS="$LIBS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3467 LIBS="-lreadline ${EXTRA_LIBREADLINE_DEPS} $LIBS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3468 cat > conftest.$ac_ext <<EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3469 #line 3470 "configure"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3470 #include "confdefs.h"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3471 /* Override any gcc2 internal prototype to avoid an error. */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3472 /* We use char because int might match the return type of a gcc2
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3473 builtin and then its argument prototype would still apply. */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3474 char readline();
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3475
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3476 int main() {
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3477 readline()
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3478 ; return 0; }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3479 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3480 if { (eval echo configure:3481: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3481 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3482 eval "ac_cv_lib_$ac_lib_var=yes"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3483 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3484 echo "configure: failed program was:" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3485 cat conftest.$ac_ext >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3486 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3487 eval "ac_cv_lib_$ac_lib_var=no"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3488 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3489 rm -f conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3490 LIBS="$ac_save_LIBS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3491
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3492 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3493 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3494 echo "$ac_t""yes" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3495 HAVE_LIBREADLINE=true
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3496 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3497 echo "$ac_t""no" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3498 HAVE_LIBREADLINE=false
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3499 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3500
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3501 if test x${HAVE_LIBREADLINE} = xtrue ; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3502 echo " Using -lreadline ${EXTRA_LIBREADLINE_DEPS}"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3503 cat >> confdefs.h <<\EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3504 #define HAVE_LIBREADLINE 1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3505 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3506
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3507 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3508 cat >> confdefs.h <<\EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3509 #define HAVE_LIBREADLINE 0
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3510 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3511
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3512 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3513 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3514 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3515 HAVE_LIBREADLINE=false
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3516 cat >> confdefs.h <<\EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3517 #define HAVE_LIBREADLINE 0
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3518 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3519
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3520 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3521 if test x${HAVE_LIBREADLINE} = xtrue; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3522 READLINE_LIBS="-lreadline ${EXTRA_LIBREADLINE_DEPS}"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3523 GFTP_TEXT="gftp-text"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3524 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3525 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3526
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3527 echo $ac_n "checking for log10 in -lm""... $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3528 echo "configure:3529: checking for log10 in -lm" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3529 ac_lib_var=`echo m'_'log10 | sed 'y%./+-%__p_%'`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3530 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3531 echo $ac_n "(cached) $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3532 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3533 ac_save_LIBS="$LIBS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3534 LIBS="-lm $LIBS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3535 cat > conftest.$ac_ext <<EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3536 #line 3537 "configure"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3537 #include "confdefs.h"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3538 /* Override any gcc2 internal prototype to avoid an error. */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3539 /* We use char because int might match the return type of a gcc2
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3540 builtin and then its argument prototype would still apply. */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3541 char log10();
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3542
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3543 int main() {
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3544 log10()
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3545 ; return 0; }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3546 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3547 if { (eval echo configure:3548: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3548 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3549 eval "ac_cv_lib_$ac_lib_var=yes"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3550 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3551 echo "configure: failed program was:" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3552 cat conftest.$ac_ext >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3553 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3554 eval "ac_cv_lib_$ac_lib_var=no"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3555 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3556 rm -f conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3557 LIBS="$ac_save_LIBS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3558
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3559 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3560 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3561 echo "$ac_t""yes" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3562 EXTRA_LIBS="$EXTRA_LIBS -lm"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3563 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3564 echo "$ac_t""no" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3565 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3566
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3567
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3568 if test "x$enable_dmalloc" = "x1" ; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3569 echo $ac_n "checking for dmalloc_shutdown in -ldmalloc""... $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3570 echo "configure:3571: checking for dmalloc_shutdown in -ldmalloc" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3571 ac_lib_var=`echo dmalloc'_'dmalloc_shutdown | sed 'y%./+-%__p_%'`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3572 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3573 echo $ac_n "(cached) $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3574 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3575 ac_save_LIBS="$LIBS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3576 LIBS="-ldmalloc $LIBS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3577 cat > conftest.$ac_ext <<EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3578 #line 3579 "configure"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3579 #include "confdefs.h"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3580 /* Override any gcc2 internal prototype to avoid an error. */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3581 /* We use char because int might match the return type of a gcc2
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3582 builtin and then its argument prototype would still apply. */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3583 char dmalloc_shutdown();
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3584
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3585 int main() {
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3586 dmalloc_shutdown()
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3587 ; return 0; }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3588 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3589 if { (eval echo configure:3590: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3590 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3591 eval "ac_cv_lib_$ac_lib_var=yes"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3592 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3593 echo "configure: failed program was:" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3594 cat conftest.$ac_ext >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3595 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3596 eval "ac_cv_lib_$ac_lib_var=no"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3597 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3598 rm -f conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3599 LIBS="$ac_save_LIBS"
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 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3603 echo "$ac_t""yes" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3604
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3605 cat >> confdefs.h <<\EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3606 #define HAVE_DMALLOC 1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3607 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3608
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3609 EXTRA_LIBS="$EXTRA_LIBS -ldmalloc"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3610 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3611 echo "$ac_t""no" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3612 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3613
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3614 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3615
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3616
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3617
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3618
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3619
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3620 GFTP_GTK=""
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3621 PTHREAD_CFLAGS=""
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3622 PTHREAD_LIBS=""
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3623 if test "x$enable_gtkport" = "x1" ; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3624 if test "x$enable_gtk20" = "x1" ; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3625
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3626 succeeded=no
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3627
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3628 if test -z "$PKG_CONFIG"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3629 # Extract the first word of "pkg-config", so it can be a program name with args.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3630 set dummy pkg-config; ac_word=$2
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3631 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3632 echo "configure:3633: checking for $ac_word" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3633 if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3634 echo $ac_n "(cached) $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3635 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3636 case "$PKG_CONFIG" in
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3637 /*)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3638 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3639 ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3640 ?:/*)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3641 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3642 ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3643 *)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3644 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3645 ac_dummy="$PATH"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3646 for ac_dir in $ac_dummy; do
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3647 test -z "$ac_dir" && ac_dir=.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3648 if test -f $ac_dir/$ac_word; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3649 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3650 break
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3651 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3652 done
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3653 IFS="$ac_save_ifs"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3654 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3655 ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3656 esac
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3657 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3658 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3659 if test -n "$PKG_CONFIG"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3660 echo "$ac_t""$PKG_CONFIG" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3661 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3662 echo "$ac_t""no" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3663 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3664
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3665 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3666
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3667 if test "$PKG_CONFIG" = "no" ; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3668 echo "*** The pkg-config script could not be found. Make sure it is"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3669 echo "*** in your path, or set the PKG_CONFIG environment variable"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3670 echo "*** to the full path to pkg-config."
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3671 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3672 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3673 PKG_CONFIG_MIN_VERSION=0.9.0
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3674 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3675 echo $ac_n "checking for gtk+-2.0 >= 1.3.8""... $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3676 echo "configure:3677: checking for gtk+-2.0 >= 1.3.8" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3677
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3678 if $PKG_CONFIG --exists "gtk+-2.0 >= 1.3.8" ; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3679 echo "$ac_t""yes" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3680 succeeded=yes
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3681
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3682 echo $ac_n "checking GTK_CFLAGS""... $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3683 echo "configure:3684: checking GTK_CFLAGS" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3684 GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 1.3.8"`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3685 echo "$ac_t""$GTK_CFLAGS" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3686
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3687 echo $ac_n "checking GTK_LIBS""... $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3688 echo "configure:3689: checking GTK_LIBS" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3689 GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 1.3.8"`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3690 echo "$ac_t""$GTK_LIBS" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3691 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3692 GTK_CFLAGS=""
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3693 GTK_LIBS=""
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3694 ## If we have a custom action on failure, don't print errors, but
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3695 ## do set a variable so people can do so.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3696 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 1.3.8"`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3697 echo $GTK_PKG_ERRORS
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3698 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3699
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3700
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3701
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3702 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3703 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
3704 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3705 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3706 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3707
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3708 if test $succeeded = yes; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3709 GFTP_GTK=gftp-gtk
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3710 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3711 { 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
3712 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3713
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3714 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3715
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3716 if test "x$GFTP_GTK" = "x" ; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3717 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3718 if test "${with_gtk_prefix+set}" = set; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3719 withval="$with_gtk_prefix"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3720 gtk_config_prefix="$withval"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3721 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3722 gtk_config_prefix=""
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3723 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3724
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3725 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3726 if test "${with_gtk_exec_prefix+set}" = set; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3727 withval="$with_gtk_exec_prefix"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3728 gtk_config_exec_prefix="$withval"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3729 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3730 gtk_config_exec_prefix=""
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3731 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3732
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3733 # Check whether --enable-gtktest or --disable-gtktest was given.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3734 if test "${enable_gtktest+set}" = set; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3735 enableval="$enable_gtktest"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3736 :
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3737 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3738 enable_gtktest=yes
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3739 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3740
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3741
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3742 for module in .
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3743 do
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3744 case "$module" in
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3745 gthread)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3746 gtk_config_args="$gtk_config_args gthread"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3747 ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3748 esac
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3749 done
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3750
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3751 if test x$gtk_config_exec_prefix != x ; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3752 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3753 if test x${GTK_CONFIG+set} != xset ; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3754 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3755 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3756 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3757 if test x$gtk_config_prefix != x ; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3758 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3759 if test x${GTK_CONFIG+set} != xset ; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3760 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3761 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3762 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3763
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3764 # Extract the first word of "gtk-config", so it can be a program name with args.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3765 set dummy gtk-config; ac_word=$2
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3766 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3767 echo "configure:3768: checking for $ac_word" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3768 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3769 echo $ac_n "(cached) $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3770 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3771 case "$GTK_CONFIG" in
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3772 /*)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3773 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3774 ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3775 ?:/*)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3776 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3777 ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3778 *)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3779 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3780 ac_dummy="$PATH"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3781 for ac_dir in $ac_dummy; do
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3782 test -z "$ac_dir" && ac_dir=.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3783 if test -f $ac_dir/$ac_word; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3784 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3785 break
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3786 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3787 done
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3788 IFS="$ac_save_ifs"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3789 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3790 ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3791 esac
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3792 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3793 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3794 if test -n "$GTK_CONFIG"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3795 echo "$ac_t""$GTK_CONFIG" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3796 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3797 echo "$ac_t""no" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3798 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3799
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3800 min_gtk_version=1.2.3
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3801 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3802 echo "configure:3803: checking for GTK - version >= $min_gtk_version" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3803 no_gtk=""
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3804 if test "$GTK_CONFIG" = "no" ; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3805 no_gtk=yes
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3806 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3807 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3808 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3809 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3810 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3811 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3812 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3813 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3814 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3815 if test "x$enable_gtktest" = "xyes" ; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3816 ac_save_CFLAGS="$CFLAGS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3817 ac_save_LIBS="$LIBS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3818 CFLAGS="$CFLAGS $GTK_CFLAGS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3819 LIBS="$GTK_LIBS $LIBS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3820 rm -f conf.gtktest
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3821 if test "$cross_compiling" = yes; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3822 echo $ac_n "cross compiling; assumed OK... $ac_c"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3823 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3824 cat > conftest.$ac_ext <<EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3825 #line 3826 "configure"
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 <gtk/gtk.h>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3829 #include <stdio.h>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3830 #include <stdlib.h>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3831
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3832 int
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3833 main ()
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3834 {
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3835 int major, minor, micro;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3836 char *tmp_version;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3837
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3838 system ("touch conf.gtktest");
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3839
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3840 /* HP/UX 9 (%@#!) writes to sscanf strings */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3841 tmp_version = g_strdup("$min_gtk_version");
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3842 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3843 printf("%s, bad version string\n", "$min_gtk_version");
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3844 exit(1);
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3845 }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3846
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3847 if ((gtk_major_version != $gtk_config_major_version) ||
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3848 (gtk_minor_version != $gtk_config_minor_version) ||
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3849 (gtk_micro_version != $gtk_config_micro_version))
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3850 {
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3851 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3852 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3853 gtk_major_version, gtk_minor_version, gtk_micro_version);
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3854 printf ("*** was found! If gtk-config was correct, then it is best\n");
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3855 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
3856 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3857 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3858 printf("*** required on your system.\n");
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3859 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3860 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3861 printf("*** before re-running configure\n");
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3862 }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3863 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3864 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3865 (gtk_minor_version != GTK_MINOR_VERSION) ||
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3866 (gtk_micro_version != GTK_MICRO_VERSION))
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3867 {
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3868 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3869 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3870 printf("*** library (version %d.%d.%d)\n",
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3871 gtk_major_version, gtk_minor_version, gtk_micro_version);
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3872 }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3873 #endif /* defined (GTK_MAJOR_VERSION) ... */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3874 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3875 {
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3876 if ((gtk_major_version > major) ||
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3877 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3878 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3879 {
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3880 return 0;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3881 }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3882 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3883 {
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3884 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3885 gtk_major_version, gtk_minor_version, gtk_micro_version);
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3886 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3887 major, minor, micro);
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3888 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3889 printf("***\n");
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3890 printf("*** If you have already installed a sufficiently new version, this error\n");
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3891 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3892 printf("*** being found. The easiest way to fix this is to remove the old version\n");
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3893 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3894 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3895 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3896 printf("*** so that the correct libraries are found at run-time))\n");
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3897 }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3898 }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3899 return 1;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3900 }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3901
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3902 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3903 if { (eval echo configure:3904: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3904 then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3905 :
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3906 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3907 echo "configure: failed program was:" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3908 cat conftest.$ac_ext >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3909 rm -fr conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3910 no_gtk=yes
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3911 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3912 rm -fr conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3913 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3914
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3915 CFLAGS="$ac_save_CFLAGS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3916 LIBS="$ac_save_LIBS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3917 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3918 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3919 if test "x$no_gtk" = x ; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3920 echo "$ac_t""yes" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3921 GFTP_GTK=gftp-gtk
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3922 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3923 echo "$ac_t""no" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3924 if test "$GTK_CONFIG" = "no" ; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3925 echo "*** The gtk-config script installed by GTK could not be found"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3926 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3927 echo "*** your path, or set the GTK_CONFIG environment variable to the"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3928 echo "*** full path to gtk-config."
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3929 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3930 if test -f conf.gtktest ; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3931 :
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3932 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3933 echo "*** Could not run GTK test program, checking why..."
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3934 CFLAGS="$CFLAGS $GTK_CFLAGS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3935 LIBS="$LIBS $GTK_LIBS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3936 cat > conftest.$ac_ext <<EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3937 #line 3938 "configure"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3938 #include "confdefs.h"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3939
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3940 #include <gtk/gtk.h>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3941 #include <stdio.h>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3942
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3943 int main() {
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3944 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3945 ; return 0; }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3946 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3947 if { (eval echo configure:3948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3948 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3949 echo "*** The test program compiled, but did not run. This usually means"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3950 echo "*** that the run-time linker is not finding GTK or finding the wrong"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3951 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3952 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3953 echo "*** to the installed location Also, make sure you have run ldconfig if that"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3954 echo "*** is required on your system"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3955 echo "***"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3956 echo "*** If you have an old version installed, it is best to remove it, although"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3957 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3958 echo "***"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3959 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3960 echo "*** came with the system with the command"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3961 echo "***"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3962 echo "*** rpm --erase --nodeps gtk gtk-devel"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3963 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3964 echo "configure: failed program was:" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3965 cat conftest.$ac_ext >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3966 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3967 echo "*** The test program failed to compile or link. See the file config.log for the"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3968 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3969 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3970 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3971 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3972 rm -f conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3973 CFLAGS="$ac_save_CFLAGS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3974 LIBS="$ac_save_LIBS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3975 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3976 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3977 GTK_CFLAGS=""
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3978 GTK_LIBS=""
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3979 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
3980 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3981
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3982
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3983 rm -f conf.gtktest
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3984
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3985 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3986
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3987 if test "x$GFTP_GTK" = xgftp-gtk; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3988 echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3989 echo "configure:3990: checking for pthread_create in -lpthread" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3990 ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3991 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3992 echo $ac_n "(cached) $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3993 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3994 ac_save_LIBS="$LIBS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3995 LIBS="-lpthread $LIBS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3996 cat > conftest.$ac_ext <<EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3997 #line 3998 "configure"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3998 #include "confdefs.h"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3999 /* Override any gcc2 internal prototype to avoid an error. */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4000 /* We use char because int might match the return type of a gcc2
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4001 builtin and then its argument prototype would still apply. */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4002 char pthread_create();
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4003
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4004 int main() {
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4005 pthread_create()
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4006 ; return 0; }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4007 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4008 if { (eval echo configure:4009: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4009 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4010 eval "ac_cv_lib_$ac_lib_var=yes"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4011 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4012 echo "configure: failed program was:" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4013 cat conftest.$ac_ext >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4014 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4015 eval "ac_cv_lib_$ac_lib_var=no"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4016 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4017 rm -f conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4018 LIBS="$ac_save_LIBS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4019
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4020 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4021 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4022 echo "$ac_t""yes" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4023 PTHREAD_LIBS="-lpthread"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4024 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4025 echo "$ac_t""no" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4026 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4027
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4028
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4029 if test "x$PTHREAD_LIBS" = x ; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4030 echo $ac_n "checking for pthread_create in -lpthreads""... $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4031 echo "configure:4032: checking for pthread_create in -lpthreads" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4032 ac_lib_var=`echo pthreads'_'pthread_create | sed 'y%./+-%__p_%'`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4033 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4034 echo $ac_n "(cached) $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4035 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4036 ac_save_LIBS="$LIBS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4037 LIBS="-lpthreads $LIBS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4038 cat > conftest.$ac_ext <<EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4039 #line 4040 "configure"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4040 #include "confdefs.h"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4041 /* Override any gcc2 internal prototype to avoid an error. */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4042 /* We use char because int might match the return type of a gcc2
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4043 builtin and then its argument prototype would still apply. */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4044 char pthread_create();
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4045
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4046 int main() {
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4047 pthread_create()
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4048 ; return 0; }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4049 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4050 if { (eval echo configure:4051: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4051 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4052 eval "ac_cv_lib_$ac_lib_var=yes"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4053 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4054 echo "configure: failed program was:" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4055 cat conftest.$ac_ext >&5
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=no"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4058 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4059 rm -f conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4060 LIBS="$ac_save_LIBS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4061
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4062 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4063 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4064 echo "$ac_t""yes" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4065 PTHREAD_LIBS="-lpthreads"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4066 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4067 echo "$ac_t""no" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4068 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4069
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4070 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4071
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4072 if test "x$PTHREAD_LIBS" = x ; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4073 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4074 echo "configure:4075: checking for pthread_create in -lc_r" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4075 ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4076 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4077 echo $ac_n "(cached) $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4078 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4079 ac_save_LIBS="$LIBS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4080 LIBS="-lc_r $LIBS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4081 cat > conftest.$ac_ext <<EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4082 #line 4083 "configure"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4083 #include "confdefs.h"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4084 /* Override any gcc2 internal prototype to avoid an error. */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4085 /* We use char because int might match the return type of a gcc2
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4086 builtin and then its argument prototype would still apply. */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4087 char pthread_create();
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4088
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4089 int main() {
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4090 pthread_create()
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4091 ; return 0; }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4092 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4093 if { (eval echo configure:4094: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4094 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4095 eval "ac_cv_lib_$ac_lib_var=yes"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4096 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4097 echo "configure: failed program was:" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4098 cat conftest.$ac_ext >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4099 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4100 eval "ac_cv_lib_$ac_lib_var=no"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4101 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4102 rm -f conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4103 LIBS="$ac_save_LIBS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4104
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4105 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4106 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4107 echo "$ac_t""yes" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4108 PTHREAD_LIBS="-lc_r"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4109 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4110 echo "$ac_t""no" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4111 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4112
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4113 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4114
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4115 if test "x$PTHREAD_LIBS" = x ; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4116 echo ;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4117 echo "Error: Cannot find the pthread libraries. If you don't have them installed," ;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4118 echo "your X libraries probably aren't thread safe either. You can download the" ;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4119 echo "pthread library and the thread safe X libraries from my webpage at" ;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4120 echo "http://www.gftp.org/. Note the pthread library and the thread safe" ;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4121 echo "X libraries on my webpage are for Linux libc5 machines ONLY" ;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4122 echo ;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4123 exit
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 PTHREAD_CFLAGS="-D_REENTRANT"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4127
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4128 # I took some of these from the glib 1.3.3 configure.in
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4129 case $host in
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4130 *-hpux*)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4131 # From H.Merijn Brand <h.m.brand@hccnet.nl>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4132 echo '#define pthread_attr_init(x) __pthread_attr_init_system(x)'
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4133 +>>confdefs.h
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4134 ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4135 *-aix*)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4136 PTHREAD_CFLAGS="$PTHREAD_CFLAGS -D_THREAD_SAFE"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4137 if test x"$GCC" = xyes; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4138 PTHREAD_CFLAGS="$PTHREAD_CFLAGS -mthreads"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4139 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4140 ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4141 *-freebsd*)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4142 PTHREAD_CFLAGS="$PTHREAD_CFLAGS -D_THREAD_SAFE"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4143
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4144 # FreeBSD 2.2.x shiped with gcc 2.7.2.x, which doesn't support
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4145 # -mthreads flag.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4146 ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4147 *-openbsd*)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4148 PTHREAD_CFLAGS="$PTHREAD_CFLAGS -D_THREAD_SAFE"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4149 if test "x$PTHREAD_LIBS" = "x-lc_r"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4150 PTHREAD_LIBS="-pthread"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4151 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4152 ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4153 *-sysv5uw7*) # UnixWare 7
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4154 if test "$GCC" != "yes"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4155 PTHREAD_CFLAGS="$PTHREAD_CFLAGS -Kthread"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4156 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4157 PTHREAD_CFLAGS="$PTHREAD_CFLAGS -pthread"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4158 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4159 ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4160 *-dg-dgux*) # DG/UX
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4161 PTHREAD_CFLAGS="$PTHREAD_CFLAGS -D_POSIX4A_DRAFT10_SOURCE"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4162 esac
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4163 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4164 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4165
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4166
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4167
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4168
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4169 echo $ac_n "checking for off_t""... $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4170 echo "configure:4171: checking for off_t" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4171 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4172 echo $ac_n "(cached) $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4173 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4174 cat > conftest.$ac_ext <<EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4175 #line 4176 "configure"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4176 #include "confdefs.h"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4177 #include <sys/types.h>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4178 #if STDC_HEADERS
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4179 #include <stdlib.h>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4180 #include <stddef.h>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4181 #endif
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4182 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4183 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4184 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
4185 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4186 ac_cv_type_off_t=yes
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4187 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4188 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4189 ac_cv_type_off_t=no
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4190 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4191 rm -f conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4192
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4193 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4194 echo "$ac_t""$ac_cv_type_off_t" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4195 if test $ac_cv_type_off_t = no; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4196 cat >> confdefs.h <<\EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4197 #define off_t long
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4198 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4199
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4200 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4201
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4202
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4203 echo $ac_n "checking whether we are using the GNU C Library 2.1 or newer""... $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4204 echo "configure:4205: checking whether we are using the GNU C Library 2.1 or newer" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4205 if eval "test \"`echo '$''{'ac_cv_gnu_library_2_1'+set}'`\" = set"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4206 echo $ac_n "(cached) $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4207 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4208 cat > conftest.$ac_ext <<EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4209 #line 4210 "configure"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4210 #include "confdefs.h"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4211
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4212 #include <features.h>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4213 #ifdef __GNU_LIBRARY__
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4214 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4215 Lucky GNU user
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4216 #endif
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4217 #endif
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4218
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4219 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4220 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4221 egrep "Lucky GNU user" >/dev/null 2>&1; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4222 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4223 ac_cv_gnu_library_2_1=yes
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4224 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4225 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4226 ac_cv_gnu_library_2_1=no
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4227 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4228 rm -f conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4229
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4230
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4231
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4232 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4233
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4234 echo "$ac_t""$ac_cv_gnu_library_2_1" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4235
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4236 GLIBC21="$ac_cv_gnu_library_2_1"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4237
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4238
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4239
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4240 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4241 stdlib.h string.h unistd.h sys/param.h
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4242 do
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4243 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4244 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4245 echo "configure:4246: checking for $ac_hdr" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4246 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4247 echo $ac_n "(cached) $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4248 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4249 cat > conftest.$ac_ext <<EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4250 #line 4251 "configure"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4251 #include "confdefs.h"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4252 #include <$ac_hdr>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4253 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4254 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4255 { (eval echo configure:4256: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4256 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4257 if test -z "$ac_err"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4258 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4259 eval "ac_cv_header_$ac_safe=yes"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4260 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4261 echo "$ac_err" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4262 echo "configure: failed program was:" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4263 cat conftest.$ac_ext >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4264 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4265 eval "ac_cv_header_$ac_safe=no"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4266 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4267 rm -f conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4268 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4269 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4270 echo "$ac_t""yes" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4271 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4272 cat >> confdefs.h <<EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4273 #define $ac_tr_hdr 1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4274 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4275
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4276 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4277 echo "$ac_t""no" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4278 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4279 done
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4280
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4281 for ac_func in feof_unlocked fgets_unlocked getcwd getegid geteuid \
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4282 getgid getuid mempcpy munmap putenv setenv setlocale stpcpy strchr strcasecmp \
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4283 strdup strtoul tsearch __argz_count __argz_stringify __argz_next
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4284 do
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4285 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4286 echo "configure:4287: checking for $ac_func" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4287 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4288 echo $ac_n "(cached) $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4289 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4290 cat > conftest.$ac_ext <<EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4291 #line 4292 "configure"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4292 #include "confdefs.h"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4293 /* System header to define __stub macros and hopefully few prototypes,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4294 which can conflict with char $ac_func(); below. */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4295 #include <assert.h>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4296 /* Override any gcc2 internal prototype to avoid an error. */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4297 /* We use char because int might match the return type of a gcc2
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4298 builtin and then its argument prototype would still apply. */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4299 char $ac_func();
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4300
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4301 int main() {
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4302
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4303 /* The GNU C library defines this for functions which it implements
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4304 to always fail with ENOSYS. Some functions are actually named
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4305 something starting with __ and the normal name is an alias. */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4306 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4307 choke me
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4308 #else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4309 $ac_func();
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4310 #endif
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4311
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4312 ; return 0; }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4313 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4314 if { (eval echo configure:4315: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4315 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4316 eval "ac_cv_func_$ac_func=yes"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4317 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4318 echo "configure: failed program was:" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4319 cat conftest.$ac_ext >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4320 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4321 eval "ac_cv_func_$ac_func=no"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4322 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4323 rm -f conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4324 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4325
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4326 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4327 echo "$ac_t""yes" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4328 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4329 cat >> confdefs.h <<EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4330 #define $ac_tr_func 1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4331 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4332
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4333 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4334 echo "$ac_t""no" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4335 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4336 done
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4337
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4338
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4339
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4340
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4341 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4342 if test "${with_libiconv_prefix+set}" = set; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4343 withval="$with_libiconv_prefix"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4344
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4345 for dir in `echo "$withval" | tr : ' '`; do
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4346 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4347 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4348 done
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4349
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4350 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4351
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4352
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4353 echo $ac_n "checking for iconv""... $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4354 echo "configure:4355: checking for iconv" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4355 if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4356 echo $ac_n "(cached) $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4357 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4358
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4359 am_cv_func_iconv="no, consider installing GNU libiconv"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4360 am_cv_lib_iconv=no
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4361 cat > conftest.$ac_ext <<EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4362 #line 4363 "configure"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4363 #include "confdefs.h"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4364 #include <stdlib.h>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4365 #include <iconv.h>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4366 int main() {
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4367 iconv_t cd = iconv_open("","");
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4368 iconv(cd,NULL,NULL,NULL,NULL);
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4369 iconv_close(cd);
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4370 ; return 0; }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4371 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4372 if { (eval echo configure:4373: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4373 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4374 am_cv_func_iconv=yes
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4375 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4376 echo "configure: failed program was:" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4377 cat conftest.$ac_ext >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4378 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4379 rm -f conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4380 if test "$am_cv_func_iconv" != yes; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4381 am_save_LIBS="$LIBS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4382 LIBS="$LIBS -liconv"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4383 cat > conftest.$ac_ext <<EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4384 #line 4385 "configure"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4385 #include "confdefs.h"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4386 #include <stdlib.h>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4387 #include <iconv.h>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4388 int main() {
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4389 iconv_t cd = iconv_open("","");
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4390 iconv(cd,NULL,NULL,NULL,NULL);
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4391 iconv_close(cd);
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4392 ; return 0; }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4393 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4394 if { (eval echo configure:4395: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4395 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4396 am_cv_lib_iconv=yes
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4397 am_cv_func_iconv=yes
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4398 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4399 echo "configure: failed program was:" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4400 cat conftest.$ac_ext >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4401 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4402 rm -f conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4403 LIBS="$am_save_LIBS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4404 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4405
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4406 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4407
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4408 echo "$ac_t""$am_cv_func_iconv" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4409 if test "$am_cv_func_iconv" = yes; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4410 cat >> confdefs.h <<\EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4411 #define HAVE_ICONV 1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4412 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4413
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4414 echo $ac_n "checking for iconv declaration""... $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4415 echo "configure:4416: checking for iconv declaration" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4416 if eval "test \"`echo '$''{'am_cv_proto_iconv'+set}'`\" = set"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4417 echo $ac_n "(cached) $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4418 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4419
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4420 cat > conftest.$ac_ext <<EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4421 #line 4422 "configure"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4422 #include "confdefs.h"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4423
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4424 #include <stdlib.h>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4425 #include <iconv.h>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4426 extern
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4427 #ifdef __cplusplus
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4428 "C"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4429 #endif
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4430 #if defined(__STDC__) || defined(__cplusplus)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4431 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4432 #else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4433 size_t iconv();
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4434 #endif
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4435
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4436 int main() {
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4437
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4438 ; return 0; }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4439 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4440 if { (eval echo configure:4441: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4441 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4442 am_cv_proto_iconv_arg1=""
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4443 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4444 echo "configure: failed program was:" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4445 cat conftest.$ac_ext >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4446 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4447 am_cv_proto_iconv_arg1="const"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4448 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4449 rm -f conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4450 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);"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4451 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4452
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4453 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4454 echo "$ac_t""${ac_t:-
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4455 }$am_cv_proto_iconv" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4456 cat >> confdefs.h <<EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4457 #define ICONV_CONST $am_cv_proto_iconv_arg1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4458 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4459
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4460 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4461 LIBICONV=
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4462 if test "$am_cv_lib_iconv" = yes; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4463 LIBICONV="-liconv"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4464 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4465
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4466
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4467
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4468 echo $ac_n "checking for nl_langinfo and CODESET""... $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4469 echo "configure:4470: checking for nl_langinfo and CODESET" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4470 if eval "test \"`echo '$''{'am_cv_langinfo_codeset'+set}'`\" = set"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4471 echo $ac_n "(cached) $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4472 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4473 cat > conftest.$ac_ext <<EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4474 #line 4475 "configure"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4475 #include "confdefs.h"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4476 #include <langinfo.h>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4477 int main() {
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4478 char* cs = nl_langinfo(CODESET);
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4479 ; return 0; }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4480 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4481 if { (eval echo configure:4482: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4482 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4483 am_cv_langinfo_codeset=yes
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4484 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4485 echo "configure: failed program was:" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4486 cat conftest.$ac_ext >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4487 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4488 am_cv_langinfo_codeset=no
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4489 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4490 rm -f conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4491
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4492 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4493
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4494 echo "$ac_t""$am_cv_langinfo_codeset" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4495 if test $am_cv_langinfo_codeset = yes; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4496 cat >> confdefs.h <<\EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4497 #define HAVE_LANGINFO_CODESET 1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4498 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4499
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4500 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4501
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4502 if test $ac_cv_header_locale_h = yes; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4503 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4504 echo "configure:4505: checking for LC_MESSAGES" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4505 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4506 echo $ac_n "(cached) $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4507 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4508 cat > conftest.$ac_ext <<EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4509 #line 4510 "configure"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4510 #include "confdefs.h"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4511 #include <locale.h>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4512 int main() {
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4513 return LC_MESSAGES
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4514 ; return 0; }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4515 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4516 if { (eval echo configure:4517: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4517 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4518 am_cv_val_LC_MESSAGES=yes
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4519 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4520 echo "configure: failed program was:" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4521 cat conftest.$ac_ext >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4522 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4523 am_cv_val_LC_MESSAGES=no
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4524 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4525 rm -f conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4526 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4527
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4528 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4529 if test $am_cv_val_LC_MESSAGES = yes; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4530 cat >> confdefs.h <<\EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4531 #define HAVE_LC_MESSAGES 1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4532 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4533
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4534 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4535 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4536 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4537 echo "configure:4538: checking whether NLS is requested" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4538 # Check whether --enable-nls or --disable-nls was given.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4539 if test "${enable_nls+set}" = set; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4540 enableval="$enable_nls"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4541 USE_NLS=$enableval
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4542 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4543 USE_NLS=yes
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4544 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4545
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4546 echo "$ac_t""$USE_NLS" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4547
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4548
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4549 BUILD_INCLUDED_LIBINTL=no
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4550 USE_INCLUDED_LIBINTL=no
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4551 INTLLIBS=
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4552
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4553 if test "$USE_NLS" = "yes"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4554 cat >> confdefs.h <<\EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4555 #define ENABLE_NLS 1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4556 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4557
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4558 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4559 echo "configure:4560: checking whether included gettext is requested" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4560 # Check whether --with-included-gettext or --without-included-gettext was given.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4561 if test "${with_included_gettext+set}" = set; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4562 withval="$with_included_gettext"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4563 nls_cv_force_use_gnu_gettext=$withval
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4564 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4565 nls_cv_force_use_gnu_gettext=no
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4566 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4567
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4568 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4569
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4570 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4571 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4572 CATOBJEXT=NONE
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4573
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4574
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4575
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4576
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4577 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4578 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4579 echo "configure:4580: checking for libintl.h" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4580 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4581 echo $ac_n "(cached) $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4582 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4583 cat > conftest.$ac_ext <<EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4584 #line 4585 "configure"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4585 #include "confdefs.h"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4586 #include <libintl.h>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4587 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4588 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4589 { (eval echo configure:4590: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4590 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4591 if test -z "$ac_err"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4592 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4593 eval "ac_cv_header_$ac_safe=yes"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4594 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4595 echo "$ac_err" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4596 echo "configure: failed program was:" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4597 cat conftest.$ac_ext >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4598 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4599 eval "ac_cv_header_$ac_safe=no"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4600 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4601 rm -f conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4602 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4603 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4604 echo "$ac_t""yes" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4605 echo $ac_n "checking for GNU gettext in libc""... $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4606 echo "configure:4607: checking for GNU gettext in libc" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4607 if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libc'+set}'`\" = set"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4608 echo $ac_n "(cached) $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4609 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4610 cat > conftest.$ac_ext <<EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4611 #line 4612 "configure"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4612 #include "confdefs.h"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4613 #include <libintl.h>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4614 extern int _nl_msg_cat_cntr;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4615 int main() {
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4616 bindtextdomain ("", "");
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4617 return (int) gettext ("") + _nl_msg_cat_cntr
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4618 ; return 0; }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4619 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4620 if { (eval echo configure:4621: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4621 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4622 gt_cv_func_gnugettext1_libc=yes
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4623 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4624 echo "configure: failed program was:" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4625 cat conftest.$ac_ext >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4626 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4627 gt_cv_func_gnugettext1_libc=no
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4628 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4629 rm -f conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4630 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4631
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4632 echo "$ac_t""$gt_cv_func_gnugettext1_libc" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4633
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4634 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4635 echo $ac_n "checking for GNU gettext in libintl""... $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4636 echo "configure:4637: checking for GNU gettext in libintl" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4637 if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libintl'+set}'`\" = set"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4638 echo $ac_n "(cached) $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4639 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4640 gt_save_LIBS="$LIBS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4641 LIBS="$LIBS -lintl $LIBICONV"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4642 cat > conftest.$ac_ext <<EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4643 #line 4644 "configure"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4644 #include "confdefs.h"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4645 #include <libintl.h>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4646 extern int _nl_msg_cat_cntr;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4647 int main() {
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4648 bindtextdomain ("", "");
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4649 return (int) gettext ("") + _nl_msg_cat_cntr
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4650 ; return 0; }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4651 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4652 if { (eval echo configure:4653: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4653 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4654 gt_cv_func_gnugettext1_libintl=yes
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4655 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4656 echo "configure: failed program was:" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4657 cat conftest.$ac_ext >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4658 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4659 gt_cv_func_gnugettext1_libintl=no
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4660 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4661 rm -f conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4662 LIBS="$gt_save_LIBS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4663 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4664
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4665 echo "$ac_t""$gt_cv_func_gnugettext1_libintl" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4666 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4667
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4668 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4669 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4670 && test "$PACKAGE" != gettext; }; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4671 cat >> confdefs.h <<\EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4672 #define HAVE_GETTEXT 1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4673 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4674
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4675
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4676 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4677 INTLLIBS="-lintl $LIBICONV"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4678 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4679
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4680 gt_save_LIBS="$LIBS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4681 LIBS="$LIBS $INTLLIBS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4682 for ac_func in dcgettext
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4683 do
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4684 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4685 echo "configure:4686: checking for $ac_func" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4686 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4687 echo $ac_n "(cached) $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4688 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4689 cat > conftest.$ac_ext <<EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4690 #line 4691 "configure"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4691 #include "confdefs.h"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4692 /* System header to define __stub macros and hopefully few prototypes,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4693 which can conflict with char $ac_func(); below. */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4694 #include <assert.h>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4695 /* Override any gcc2 internal prototype to avoid an error. */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4696 /* We use char because int might match the return type of a gcc2
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4697 builtin and then its argument prototype would still apply. */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4698 char $ac_func();
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4699
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4700 int main() {
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4701
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4702 /* The GNU C library defines this for functions which it implements
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4703 to always fail with ENOSYS. Some functions are actually named
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4704 something starting with __ and the normal name is an alias. */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4705 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4706 choke me
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4707 #else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4708 $ac_func();
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4709 #endif
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4710
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4711 ; return 0; }
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4712 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4713 if { (eval echo configure:4714: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4714 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4715 eval "ac_cv_func_$ac_func=yes"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4716 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4717 echo "configure: failed program was:" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4718 cat conftest.$ac_ext >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4719 rm -rf conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4720 eval "ac_cv_func_$ac_func=no"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4721 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4722 rm -f conftest*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4723 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4724
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4725 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4726 echo "$ac_t""yes" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4727 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4728 cat >> confdefs.h <<EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4729 #define $ac_tr_func 1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4730 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4731
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4732 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4733 echo "$ac_t""no" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4734 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4735 done
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4736
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4737 LIBS="$gt_save_LIBS"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4738
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4739 # Extract the first word of "msgfmt", so it can be a program name with args.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4740 set dummy msgfmt; ac_word=$2
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4741 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4742 echo "configure:4743: checking for $ac_word" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4743 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4744 echo $ac_n "(cached) $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4745 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4746 case "$MSGFMT" in
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4747 /*)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4748 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4749 ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4750 *)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4751 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4752 for ac_dir in $PATH; do
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4753 test -z "$ac_dir" && ac_dir=.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4754 if test -f $ac_dir/$ac_word; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4755 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4756 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4757 break
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4758 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4759 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4760 done
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4761 IFS="$ac_save_ifs"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4762 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4763 ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4764 esac
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4765 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4766 MSGFMT="$ac_cv_path_MSGFMT"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4767 if test "$MSGFMT" != ":"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4768 echo "$ac_t""$MSGFMT" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4769 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4770 echo "$ac_t""no" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4771 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4772
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4773 # Extract the first word of "gmsgfmt", so it can be a program name with args.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4774 set dummy gmsgfmt; ac_word=$2
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4775 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4776 echo "configure:4777: checking for $ac_word" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4777 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4778 echo $ac_n "(cached) $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4779 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4780 case "$GMSGFMT" in
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4781 /*)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4782 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4783 ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4784 ?:/*)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4785 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4786 ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4787 *)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4788 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4789 ac_dummy="$PATH"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4790 for ac_dir in $ac_dummy; do
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4791 test -z "$ac_dir" && ac_dir=.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4792 if test -f $ac_dir/$ac_word; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4793 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4794 break
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4795 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4796 done
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4797 IFS="$ac_save_ifs"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4798 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4799 ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4800 esac
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4801 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4802 GMSGFMT="$ac_cv_path_GMSGFMT"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4803 if test -n "$GMSGFMT"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4804 echo "$ac_t""$GMSGFMT" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4805 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4806 echo "$ac_t""no" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4807 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4808
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4809
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4810 # Extract the first word of "xgettext", so it can be a program name with args.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4811 set dummy xgettext; ac_word=$2
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4812 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4813 echo "configure:4814: checking for $ac_word" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4814 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4815 echo $ac_n "(cached) $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4816 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4817 case "$XGETTEXT" in
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4818 /*)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4819 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4820 ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4821 *)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4822 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4823 for ac_dir in $PATH; do
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4824 test -z "$ac_dir" && ac_dir=.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4825 if test -f $ac_dir/$ac_word; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4826 if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4827 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4828 break
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4829 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4830 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4831 done
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4832 IFS="$ac_save_ifs"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4833 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4834 ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4835 esac
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4836 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4837 XGETTEXT="$ac_cv_path_XGETTEXT"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4838 if test "$XGETTEXT" != ":"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4839 echo "$ac_t""$XGETTEXT" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4840 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4841 echo "$ac_t""no" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4842 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4843
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4844
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4845 CATOBJEXT=.gmo
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4846 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4847
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4848 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4849 echo "$ac_t""no" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4850 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4851
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4852
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4853 if test "$CATOBJEXT" = "NONE"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4854 nls_cv_use_gnu_gettext=yes
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4855 fi
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 if test "$nls_cv_use_gnu_gettext" = "yes"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4859 INTLOBJS="\$(GETTOBJS)"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4860 # Extract the first word of "msgfmt", so it can be a program name with args.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4861 set dummy msgfmt; ac_word=$2
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4862 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4863 echo "configure:4864: checking for $ac_word" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4864 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4865 echo $ac_n "(cached) $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4866 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4867 case "$MSGFMT" in
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4868 /*)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4869 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4870 ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4871 *)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4872 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4873 for ac_dir in $PATH; do
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4874 test -z "$ac_dir" && ac_dir=.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4875 if test -f $ac_dir/$ac_word; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4876 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4877 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4878 break
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4879 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4880 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4881 done
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4882 IFS="$ac_save_ifs"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4883 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4884 ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4885 esac
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4886 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4887 MSGFMT="$ac_cv_path_MSGFMT"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4888 if test "$MSGFMT" != ":"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4889 echo "$ac_t""$MSGFMT" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4890 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4891 echo "$ac_t""no" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4892 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4893
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4894 # Extract the first word of "gmsgfmt", so it can be a program name with args.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4895 set dummy gmsgfmt; ac_word=$2
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4896 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4897 echo "configure:4898: checking for $ac_word" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4898 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4899 echo $ac_n "(cached) $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4900 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4901 case "$GMSGFMT" in
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4902 /*)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4903 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4904 ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4905 ?:/*)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4906 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4907 ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4908 *)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4909 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4910 ac_dummy="$PATH"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4911 for ac_dir in $ac_dummy; do
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4912 test -z "$ac_dir" && ac_dir=.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4913 if test -f $ac_dir/$ac_word; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4914 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4915 break
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4916 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4917 done
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4918 IFS="$ac_save_ifs"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4919 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4920 ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4921 esac
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4922 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4923 GMSGFMT="$ac_cv_path_GMSGFMT"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4924 if test -n "$GMSGFMT"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4925 echo "$ac_t""$GMSGFMT" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4926 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4927 echo "$ac_t""no" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4928 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4929
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4930 # Extract the first word of "xgettext", so it can be a program name with args.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4931 set dummy xgettext; ac_word=$2
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4932 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4933 echo "configure:4934: checking for $ac_word" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4934 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4935 echo $ac_n "(cached) $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4936 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4937 case "$XGETTEXT" in
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4938 /*)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4939 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4940 ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4941 *)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4942 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4943 for ac_dir in $PATH; do
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4944 test -z "$ac_dir" && ac_dir=.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4945 if test -f $ac_dir/$ac_word; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4946 if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4947 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4948 break
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4949 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4950 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4951 done
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4952 IFS="$ac_save_ifs"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4953 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4954 ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4955 esac
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4956 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4957 XGETTEXT="$ac_cv_path_XGETTEXT"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4958 if test "$XGETTEXT" != ":"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4959 echo "$ac_t""$XGETTEXT" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4960 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4961 echo "$ac_t""no" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4962 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4963
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4964
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4965 BUILD_INCLUDED_LIBINTL=yes
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4966 USE_INCLUDED_LIBINTL=yes
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4967 CATOBJEXT=.gmo
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4968 INTLLIBS="\$(top_builddir)/intl/libintl.a $LIBICONV"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4969 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4970 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4971
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4972 if test "$GMSGFMT" != ":"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4973 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4974 : ;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4975 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4976 echo "$ac_t""found msgfmt program is not GNU msgfmt; ignore it" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4977 GMSGFMT=":"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4978 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4979 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4980
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4981 if test "$XGETTEXT" != ":"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4982 if $XGETTEXT --omit-header /dev/null >/dev/null 2>&1; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4983 : ;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4984 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4985 echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4986 XGETTEXT=":"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4987 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4988 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4989
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4990 POSUB=po
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4991 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4992
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4993
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4994
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4995 if test "$PACKAGE" = gettext; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4996 BUILD_INCLUDED_LIBINTL=yes
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4997 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4998
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4999 for ac_prog in bison
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5000 do
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5001 # Extract the first word of "$ac_prog", so it can be a program name with args.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5002 set dummy $ac_prog; ac_word=$2
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5003 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5004 echo "configure:5005: checking for $ac_word" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5005 if eval "test \"`echo '$''{'ac_cv_prog_INTLBISON'+set}'`\" = set"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5006 echo $ac_n "(cached) $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5007 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5008 if test -n "$INTLBISON"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5009 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5010 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5011 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5012 ac_dummy="$PATH"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5013 for ac_dir in $ac_dummy; do
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5014 test -z "$ac_dir" && ac_dir=.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5015 if test -f $ac_dir/$ac_word; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5016 ac_cv_prog_INTLBISON="$ac_prog"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5017 break
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5018 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5019 done
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5020 IFS="$ac_save_ifs"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5021 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5022 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5023 INTLBISON="$ac_cv_prog_INTLBISON"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5024 if test -n "$INTLBISON"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5025 echo "$ac_t""$INTLBISON" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5026 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5027 echo "$ac_t""no" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5028 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5029
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5030 test -n "$INTLBISON" && break
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5031 done
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5032
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5033 if test -z "$INTLBISON"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5034 ac_verc_fail=yes
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5035 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5036 echo $ac_n "checking version of bison""... $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5037 echo "configure:5038: checking version of bison" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5038 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5039 case $ac_prog_version in
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5040 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5041 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5042 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5043 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5044 esac
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5045 echo "$ac_t""$ac_prog_version" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5046 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5047 if test $ac_verc_fail = yes; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5048 INTLBISON=:
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5049 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5050
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5051 for lang in $ALL_LINGUAS; do
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5052 GMOFILES="$GMOFILES $lang.gmo"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5053 POFILES="$POFILES $lang.po"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5054 done
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5055
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5056
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5057
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5058
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5059
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5060
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5061
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5062
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5063
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5064
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5065
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5066 nls_cv_header_intl=
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5067 nls_cv_header_libgt=
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5068
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5069 DATADIRNAME=share
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5070
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5071
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5072 INSTOBJEXT=.mo
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5073
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5074
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5075 GENCAT=gencat
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5076
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5077
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5078
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5079 if test "x$CATOBJEXT" != "x"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5080 if test "x$ALL_LINGUAS" = "x"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5081 LINGUAS=
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5082 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5083 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5084 echo "configure:5085: checking for catalogs to be installed" >&5
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5085 NEW_LINGUAS=
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5086 for presentlang in $ALL_LINGUAS; do
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5087 useit=no
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5088 for desiredlang in ${LINGUAS-$ALL_LINGUAS}; do
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5089 # Use the presentlang catalog if desiredlang is
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5090 # a. equal to presentlang, or
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5091 # b. a variant of presentlang (because in this case,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5092 # presentlang can be used as a fallback for messages
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5093 # which are not translated in the desiredlang catalog).
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5094 case "$desiredlang" in
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5095 "$presentlang"*) useit=yes;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5096 esac
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5097 done
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5098 if test $useit = yes; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5099 NEW_LINGUAS="$NEW_LINGUAS $presentlang"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5100 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5101 done
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5102 LINGUAS=$NEW_LINGUAS
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5103 echo "$ac_t""$LINGUAS" 1>&6
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5104 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5105
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5106 if test -n "$LINGUAS"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5107 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5108 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5109 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5110
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5111 MKINSTALLDIRS=
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5112 if test -n "$ac_aux_dir"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5113 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5114 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5115 if test -z "$MKINSTALLDIRS"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5116 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5117 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5118
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5119
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5120 INTL_LIBTOOL_SUFFIX_PREFIX=
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5121
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5122
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5123
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5124 trap '' 1 2 15
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5125 cat > confcache <<\EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5126 # This file is a shell script that caches the results of configure
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5127 # tests run on this system so they can be shared between configure
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5128 # scripts and configure runs. It is not useful on other systems.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5129 # If it contains results you don't want to keep, you may remove or edit it.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5130 #
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5131 # By default, configure uses ./config.cache as the cache file,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5132 # creating it if it does not exist already. You can give configure
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5133 # the --cache-file=FILE option to use a different cache file; that is
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5134 # what configure does when it calls configure scripts in
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5135 # subdirectories, so they share the cache.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5136 # Giving --cache-file=/dev/null disables caching, for debugging configure.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5137 # config.status only pays attention to the cache file if you give it the
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5138 # --recheck option to rerun configure.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5139 #
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5140 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5141 # The following way of writing the cache mishandles newlines in values,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5142 # but we know of no workaround that is simple, portable, and efficient.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5143 # So, don't put newlines in cache variables' values.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5144 # Ultrix sh set writes to stderr and can't be redirected directly,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5145 # and sets the high bit in the cache file unless we assign to the vars.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5146 (set) 2>&1 |
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5147 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5148 *ac_space=\ *)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5149 # `set' does not quote correctly, so add quotes (double-quote substitution
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5150 # turns \\\\ into \\, and sed turns \\ into \).
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5151 sed -n \
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5152 -e "s/'/'\\\\''/g" \
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5153 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5154 ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5155 *)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5156 # `set' quotes correctly as required by POSIX, so do not add quotes.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5157 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5158 ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5159 esac >> confcache
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5160 if cmp -s $cache_file confcache; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5161 :
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5162 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5163 if test -w $cache_file; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5164 echo "updating cache $cache_file"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5165 cat confcache > $cache_file
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5166 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5167 echo "not updating unwritable cache $cache_file"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5168 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5169 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5170 rm -f confcache
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5171
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5172 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5173
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5174 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5175 # Let make expand exec_prefix.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5176 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5177
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5178 # Any assignment to VPATH causes Sun make to only execute
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5179 # the first set of double-colon rules, so remove it if not needed.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5180 # If there is a colon in the path, we need to keep it.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5181 if test "x$srcdir" = x.; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5182 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5183 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5184
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5185 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5186
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5187 DEFS=-DHAVE_CONFIG_H
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5188
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5189 # Without the "./", some shells look in PATH for config.status.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5190 : ${CONFIG_STATUS=./config.status}
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5191
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5192 echo creating $CONFIG_STATUS
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5193 rm -f $CONFIG_STATUS
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5194 cat > $CONFIG_STATUS <<EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5195 #! /bin/sh
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5196 # Generated automatically by configure.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5197 # Run this file to recreate the current configuration.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5198 # This directory was configured as follows,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5199 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5200 #
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5201 # $0 $ac_configure_args
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5202 #
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5203 # Compiler output produced by configure, useful for debugging
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5204 # configure, is in ./config.log if it exists.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5205
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5206 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5207 for ac_option
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5208 do
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5209 case "\$ac_option" in
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5210 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5211 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5212 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5213 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5214 echo "$CONFIG_STATUS generated by autoconf version 2.13"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5215 exit 0 ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5216 -help | --help | --hel | --he | --h)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5217 echo "\$ac_cs_usage"; exit 0 ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5218 *) echo "\$ac_cs_usage"; exit 1 ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5219 esac
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5220 done
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5221
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5222 ac_given_srcdir=$srcdir
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5223 ac_given_INSTALL="$INSTALL"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5224
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5225 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
5226 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5227 cat >> $CONFIG_STATUS <<EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5228
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5229 # Protect against being on the right side of a sed subst in config.status.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5230 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5231 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5232 $ac_vpsub
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5233 $extrasub
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5234 s%@SHELL@%$SHELL%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5235 s%@CFLAGS@%$CFLAGS%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5236 s%@CPPFLAGS@%$CPPFLAGS%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5237 s%@CXXFLAGS@%$CXXFLAGS%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5238 s%@FFLAGS@%$FFLAGS%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5239 s%@DEFS@%$DEFS%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5240 s%@LDFLAGS@%$LDFLAGS%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5241 s%@LIBS@%$LIBS%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5242 s%@exec_prefix@%$exec_prefix%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5243 s%@prefix@%$prefix%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5244 s%@program_transform_name@%$program_transform_name%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5245 s%@bindir@%$bindir%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5246 s%@sbindir@%$sbindir%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5247 s%@libexecdir@%$libexecdir%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5248 s%@datadir@%$datadir%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5249 s%@sysconfdir@%$sysconfdir%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5250 s%@sharedstatedir@%$sharedstatedir%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5251 s%@localstatedir@%$localstatedir%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5252 s%@libdir@%$libdir%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5253 s%@includedir@%$includedir%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5254 s%@oldincludedir@%$oldincludedir%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5255 s%@infodir@%$infodir%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5256 s%@mandir@%$mandir%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5257 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5258 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5259 s%@INSTALL_DATA@%$INSTALL_DATA%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5260 s%@PACKAGE@%$PACKAGE%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5261 s%@VERSION@%$VERSION%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5262 s%@ACLOCAL@%$ACLOCAL%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5263 s%@AUTOCONF@%$AUTOCONF%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5264 s%@AUTOMAKE@%$AUTOMAKE%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5265 s%@AUTOHEADER@%$AUTOHEADER%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5266 s%@MAKEINFO@%$MAKEINFO%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5267 s%@SET_MAKE@%$SET_MAKE%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5268 s%@PREFIX@%$PREFIX%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5269 s%@host@%$host%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5270 s%@host_alias@%$host_alias%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5271 s%@host_cpu@%$host_cpu%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5272 s%@host_vendor@%$host_vendor%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5273 s%@host_os@%$host_os%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5274 s%@AWK@%$AWK%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5275 s%@CC@%$CC%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5276 s%@LN_S@%$LN_S%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5277 s%@RANLIB@%$RANLIB%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5278 s%@CPP@%$CPP%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5279 s%@ALLOCA@%$ALLOCA%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5280 s%@PKG_CONFIG@%$PKG_CONFIG%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5281 s%@GLIB_CFLAGS@%$GLIB_CFLAGS%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5282 s%@GLIB_LIBS@%$GLIB_LIBS%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5283 s%@GLIB_CONFIG@%$GLIB_CONFIG%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5284 s%@EXTRA_LIBS@%$EXTRA_LIBS%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5285 s%@READLINE_LIBS@%$READLINE_LIBS%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5286 s%@GFTP_TEXT@%$GFTP_TEXT%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5287 s%@GTK_CFLAGS@%$GTK_CFLAGS%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5288 s%@GTK_LIBS@%$GTK_LIBS%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5289 s%@GTK_CONFIG@%$GTK_CONFIG%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5290 s%@PTHREAD_CFLAGS@%$PTHREAD_CFLAGS%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5291 s%@PTHREAD_LIBS@%$PTHREAD_LIBS%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5292 s%@GFTP_GTK@%$GFTP_GTK%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5293 s%@GLIBC21@%$GLIBC21%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5294 s%@LIBICONV@%$LIBICONV%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5295 s%@USE_NLS@%$USE_NLS%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5296 s%@MSGFMT@%$MSGFMT%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5297 s%@GMSGFMT@%$GMSGFMT%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5298 s%@XGETTEXT@%$XGETTEXT%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5299 s%@INTLBISON@%$INTLBISON%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5300 s%@BUILD_INCLUDED_LIBINTL@%$BUILD_INCLUDED_LIBINTL%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5301 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5302 s%@CATALOGS@%$CATALOGS%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5303 s%@CATOBJEXT@%$CATOBJEXT%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5304 s%@GMOFILES@%$GMOFILES%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5305 s%@INTLLIBS@%$INTLLIBS%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5306 s%@INTLOBJS@%$INTLOBJS%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5307 s%@POFILES@%$POFILES%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5308 s%@POSUB@%$POSUB%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5309 s%@DATADIRNAME@%$DATADIRNAME%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5310 s%@INSTOBJEXT@%$INSTOBJEXT%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5311 s%@GENCAT@%$GENCAT%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5312 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5313 s%@INTL_LIBTOOL_SUFFIX_PREFIX@%$INTL_LIBTOOL_SUFFIX_PREFIX%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5314
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5315 CEOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5316 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5317
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5318 cat >> $CONFIG_STATUS <<\EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5319
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5320 # Split the substitutions into bite-sized pieces for seds with
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5321 # small command number limits, like on Digital OSF/1 and HP-UX.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5322 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5323 ac_file=1 # Number of current file.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5324 ac_beg=1 # First line for current file.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5325 ac_end=$ac_max_sed_cmds # Line after last line for current file.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5326 ac_more_lines=:
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5327 ac_sed_cmds=""
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5328 while $ac_more_lines; do
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5329 if test $ac_beg -gt 1; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5330 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5331 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5332 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5333 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5334 if test ! -s conftest.s$ac_file; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5335 ac_more_lines=false
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5336 rm -f conftest.s$ac_file
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5337 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5338 if test -z "$ac_sed_cmds"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5339 ac_sed_cmds="sed -f conftest.s$ac_file"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5340 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5341 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5342 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5343 ac_file=`expr $ac_file + 1`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5344 ac_beg=$ac_end
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5345 ac_end=`expr $ac_end + $ac_max_sed_cmds`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5346 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5347 done
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5348 if test -z "$ac_sed_cmds"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5349 ac_sed_cmds=cat
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5350 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5351 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5352
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5353 cat >> $CONFIG_STATUS <<EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5354
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5355 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
5356 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5357 cat >> $CONFIG_STATUS <<\EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5358 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5359 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5360 case "$ac_file" in
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5361 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5362 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5363 *) ac_file_in="${ac_file}.in" ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5364 esac
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5365
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5366 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5367
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5368 # Remove last slash and all that follows it. Not all systems have dirname.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5369 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5370 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5371 # The file is in a subdirectory.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5372 test ! -d "$ac_dir" && mkdir "$ac_dir"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5373 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5374 # A "../" for each directory in $ac_dir_suffix.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5375 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5376 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5377 ac_dir_suffix= ac_dots=
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5378 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5379
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5380 case "$ac_given_srcdir" in
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5381 .) srcdir=.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5382 if test -z "$ac_dots"; then top_srcdir=.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5383 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5384 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5385 *) # Relative path.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5386 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5387 top_srcdir="$ac_dots$ac_given_srcdir" ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5388 esac
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5389
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5390 case "$ac_given_INSTALL" in
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5391 [/$]*) INSTALL="$ac_given_INSTALL" ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5392 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5393 esac
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5394
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5395 echo creating "$ac_file"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5396 rm -f "$ac_file"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5397 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5398 case "$ac_file" in
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5399 *Makefile*) ac_comsub="1i\\
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5400 # $configure_input" ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5401 *) ac_comsub= ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5402 esac
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5403
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5404 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
5405 sed -e "$ac_comsub
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5406 s%@configure_input@%$configure_input%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5407 s%@srcdir@%$srcdir%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5408 s%@top_srcdir@%$top_srcdir%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5409 s%@INSTALL@%$INSTALL%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5410 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5411 fi; done
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5412 rm -f conftest.s*
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5413
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5414 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5415 # NAME is the cpp macro being defined and VALUE is the value it is being given.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5416 #
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5417 # ac_d sets the value in "#define NAME VALUE" lines.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5418 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5419 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5420 ac_dC='\3'
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5421 ac_dD='%g'
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5422 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5423 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5424 ac_uB='\([ ]\)%\1#\2define\3'
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5425 ac_uC=' '
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5426 ac_uD='\4%g'
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5427 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5428 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5429 ac_eB='$%\1#\2define\3'
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5430 ac_eC=' '
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5431 ac_eD='%g'
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5432
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5433 if test "${CONFIG_HEADERS+set}" != set; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5434 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5435 cat >> $CONFIG_STATUS <<EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5436 CONFIG_HEADERS="config.h"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5437 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5438 cat >> $CONFIG_STATUS <<\EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5439 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5440 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5441 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5442 case "$ac_file" in
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5443 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5444 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5445 *) ac_file_in="${ac_file}.in" ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5446 esac
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5447
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5448 echo creating $ac_file
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5449
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5450 rm -f conftest.frag conftest.in conftest.out
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5451 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
5452 cat $ac_file_inputs > conftest.in
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5453
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5454 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5455
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5456 # Transform confdefs.h into a sed script conftest.vals that substitutes
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5457 # the proper values into config.h.in to produce config.h. And first:
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5458 # Protect against being on the right side of a sed subst in config.status.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5459 # Protect against being in an unquoted here document in config.status.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5460 rm -f conftest.vals
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5461 cat > conftest.hdr <<\EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5462 s/[\\&%]/\\&/g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5463 s%[\\$`]%\\&%g
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5464 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
5465 s%ac_d%ac_u%gp
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5466 s%ac_u%ac_e%gp
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5467 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5468 sed -n -f conftest.hdr confdefs.h > conftest.vals
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5469 rm -f conftest.hdr
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5470
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5471 # This sed command replaces #undef with comments. This is necessary, for
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5472 # example, in the case of _POSIX_SOURCE, which is predefined and required
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5473 # on some systems where configure will not decide to define it.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5474 cat >> conftest.vals <<\EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5475 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5476 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5477
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5478 # Break up conftest.vals because some shells have a limit on
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5479 # the size of here documents, and old seds have small limits too.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5480
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5481 rm -f conftest.tail
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5482 while :
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5483 do
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5484 ac_lines=`grep -c . conftest.vals`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5485 # grep -c gives empty output for an empty file on some AIX systems.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5486 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5487 # Write a limited-size here document to conftest.frag.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5488 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5489 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5490 echo 'CEOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5491 sed -f conftest.frag conftest.in > conftest.out
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5492 rm -f conftest.in
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5493 mv conftest.out conftest.in
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5494 ' >> $CONFIG_STATUS
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5495 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5496 rm -f conftest.vals
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5497 mv conftest.tail conftest.vals
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5498 done
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5499 rm -f conftest.vals
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5500
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5501 cat >> $CONFIG_STATUS <<\EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5502 rm -f conftest.frag conftest.h
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5503 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5504 cat conftest.in >> conftest.h
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5505 rm -f conftest.in
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5506 if cmp -s $ac_file conftest.h 2>/dev/null; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5507 echo "$ac_file is unchanged"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5508 rm -f conftest.h
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5509 else
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5510 # Remove last slash and all that follows it. Not all systems have dirname.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5511 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5512 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5513 # The file is in a subdirectory.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5514 test ! -d "$ac_dir" && mkdir "$ac_dir"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5515 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5516 rm -f $ac_file
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5517 mv conftest.h $ac_file
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5518 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5519 fi; done
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5520
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5521 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5522 cat >> $CONFIG_STATUS <<EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5523
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5524
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5525
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5526 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5527 cat >> $CONFIG_STATUS <<\EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5528 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5529 for ac_file in $CONFIG_FILES; do
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5530 # Support "outfile[:infile[:infile...]]"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5531 case "$ac_file" in
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5532 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5533 esac
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5534 # PO directories have a Makefile.in generated from Makefile.in.in.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5535 case "$ac_file" in */Makefile.in)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5536 # Adjust a relative srcdir.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5537 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5538 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5539 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5540 # In autoconf-2.13 it is called $ac_given_srcdir.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5541 # In autoconf-2.50 it is called $srcdir.
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5542 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5543 case "$ac_given_srcdir" in
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5544 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5545 /*) top_srcdir="$ac_given_srcdir" ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5546 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5547 esac
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5548 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5549 rm -f "$ac_dir/POTFILES"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5550 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5551 sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," -e "\$s/\(.*\) \\\\/\1/" < "$ac_given_srcdir/$ac_dir/POTFILES.in" > "$ac_dir/POTFILES"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5552 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5553 sed -e "/POTFILES =/r $ac_dir/POTFILES" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5554 fi
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5555 ;;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5556 esac
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5557 done
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5558
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5559 exit 0
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5560 EOF
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5561 chmod +x $CONFIG_STATUS
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5562 rm -fr confdefs* $ac_clean_files
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5563 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5564